Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude unneeded files from build output #6284

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions webpack.common.js
Original file line number Diff line number Diff line change
@@ -73,8 +73,7 @@ const config = {
new CopyPlugin({
patterns: [
{
from: 'themes/',
to: 'themes/'
from: 'themes/**/*.css'
},
{
from: 'assets/**',
@@ -87,7 +86,13 @@ const config = {
from: '*.*',
globOptions: {
dot: true,
ignore: ['**.js', '**.html']
ignore: [
'**.js',
'**.jsx',
'**.html',
'**.ts',
'**.tsx'
]
}
}
]

Unchanged files with check annotations Beta

};
}, [ onTabsUpdate ]);
// HACK: Force resizing to workaround upstream bug with tab resizing

Check warning on line 56 in src/apps/dashboard/components/AppTabs.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

Unexpected 'hack' comment: 'HACK: Force resizing to workaround...'
// https://github.com/mui/material-ui/issues/24011
useEffect(() => {
handleResize();
loadMediaFolders(user, mediaFolders);
loadDevices(user, devices);
loading.hide();
}, [loadChannels, loadDevices, loadMediaFolders]);

Check warning on line 141 in src/apps/dashboard/routes/users/access.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

React Hook useCallback has a missing dependency: 'libraryMenu'. Either include it or remove the dependency array
const loadData = useCallback(() => {
loading.show();
});
(page.querySelector('.userLibraryAccessForm') as HTMLFormElement).addEventListener('submit', onSubmit);
}, [loadData]);

Check warning on line 239 in src/apps/dashboard/routes/users/access.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

React Hook useEffect has a missing dependency: 'userId'. Either include it or remove the dependency array
return (
<Page
(page.querySelector('#txtMaxActiveSessions') as HTMLInputElement).value = String(user.Policy?.MaxActiveSessions) || '0';
(page.querySelector('#selectSyncPlayAccess') as HTMLSelectElement).value = String(user.Policy?.SyncPlayAccess);
loading.hide();
}, [loadAuthProviders, loadPasswordResetProviders, loadDeleteFolders ]);

Check warning on line 176 in src/apps/dashboard/routes/users/profile.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

React Hook useCallback has a missing dependency: 'libraryMenu'. Either include it or remove the dependency array
const loadData = useCallback(() => {
loading.show();
}).catch(err => {
console.error('[useredit] failed to load data', err);
});
}, [loadUser]);

Check warning on line 185 in src/apps/dashboard/routes/users/profile.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

React Hook useCallback has a missing dependency: 'getUser'. Either include it or remove the dependency array
useEffect(() => {
const page = element.current;
(page.querySelector('#btnCancel') as HTMLButtonElement).addEventListener('click', function() {
window.history.back();
});
}, [loadData]);

Check warning on line 264 in src/apps/dashboard/routes/users/profile.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

React Hook useEffect has a missing dependency: 'getUser'. Either include it or remove the dependency array
const optionLoginProvider = authProviders.map((provider) => {
const selected = provider.Id === authenticationProviderId || authProviders.length < 2 ? ' selected' : '';
const isBigScreen = useMediaQuery((theme: Theme) => theme.breakpoints.up('sm'));
const { searchParams, setSearchParams, activeTab } = useCurrentTab();
// HACK: Force resizing to workaround upstream bug with tab resizing

Check warning on line 25 in src/apps/experimental/components/tabs/AppTabs.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

Unexpected 'hack' comment: 'HACK: Force resizing to workaround...'
// https://github.com/mui/material-ui/issues/24011
useEffect(() => {
handleResize();
currentTabController.onResume({});
}
(document.querySelector('.skinHeader') as HTMLDivElement).classList.add('noHomeButtonHeader');
}, [ initialTabIndex, mainTabsManager ]);

Check warning on line 126 in src/apps/experimental/routes/home.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

React Hook useCallback has a missing dependency: 'setTitle'. Either include it or remove the dependency array
const onPause = useCallback(() => {
const currentTabController = tabController.current;
private mediaSegments: MediaSegmentDto[] = [];
private async fetchMediaSegments(api: Api, itemId: string, includeSegmentTypes: MediaSegmentType[]) {
// FIXME: Replace with SDK getMediaSegmentsApi function when available in stable

Check warning on line 28 in src/apps/stable/features/playback/utils/mediaSegmentManager.ts

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

Unexpected 'fixme' comment: 'FIXME: Replace with SDK...'
const mediaSegmentsApi = new MediaSegmentsApi(api.configuration, undefined, api.axiosInstance);
try {
}).catch(err => {
console.error('[userprofile] failed to load data', err);
});
}, [userId]);

Check warning on line 75 in src/apps/stable/routes/user/userprofile.tsx

GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️‍♂️

React Hook useCallback has a missing dependency: 'libraryMenu'. Either include it or remove the dependency array
useEffect(() => {
const page = element.current;