mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
React code splitting (#2603)
* Code split using react lazy * Split locales * Move to lodash-es * Import individual icons
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
ScrapedTextAreaRow,
|
||||
ScrapedImageRow,
|
||||
} from "src/components/Shared/ScrapeDialog";
|
||||
import _ from "lodash";
|
||||
import clone from "lodash-es/clone";
|
||||
import {
|
||||
useStudioCreate,
|
||||
usePerformerCreate,
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
useTagCreate,
|
||||
makePerformerCreateInput,
|
||||
} from "src/core/StashService";
|
||||
import { useToast } from "src/hooks";
|
||||
import { DurationUtils } from "src/utils";
|
||||
import useToast from "src/hooks/Toast";
|
||||
import DurationUtils from "src/utils/duration";
|
||||
import { useIntl } from "react-intl";
|
||||
|
||||
function renderScrapedStudio(
|
||||
@@ -297,7 +297,7 @@ export const SceneScrapeDialog: React.FC<ISceneScrapeDialogProps> = ({
|
||||
return;
|
||||
}
|
||||
|
||||
const ret = _.clone(idList);
|
||||
const ret = clone(idList);
|
||||
// sort by id numerically
|
||||
ret.sort((a, b) => {
|
||||
return parseInt(a, 10) - parseInt(b, 10);
|
||||
@@ -634,3 +634,5 @@ export const SceneScrapeDialog: React.FC<ISceneScrapeDialogProps> = ({
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default SceneScrapeDialog;
|
||||
|
||||
Reference in New Issue
Block a user