Update dependencies (#3123)

* Update localforage, remove query-string
* Update fontawesome and flag-icons
* Update formatjs
* Update axios and videojs
* Update apollo client and graphql
* Update bootstrap and react
* Update polyfills
* Update vite
* Update ESLint
* Update stylelint
* Update configs
* Rebuild yarn.lock
This commit is contained in:
DingDongSoLong4
2023-02-16 05:06:44 +02:00
committed by GitHub
parent 0c9eeef143
commit a1851b3713
137 changed files with 5102 additions and 5729 deletions

View File

@@ -36,7 +36,6 @@ import { ImageUtils, FormUtils, getStashIDs } from "src/utils";
import { MovieSelect } from "src/components/Shared/Select";
import { useFormik } from "formik";
import { Prompt, useHistory } from "react-router-dom";
import queryString from "query-string";
import { ConfigurationContext } from "src/hooks/Config";
import { stashboxDisplayName } from "src/utils/stashbox";
import { SceneMovieTable } from "./SceneMovieTable";
@@ -54,6 +53,7 @@ const SceneQueryModal = lazy(() => import("./SceneQueryModal"));
interface IProps {
scene: Partial<GQL.SceneDataFragment>;
fileID?: string;
initialCoverImage?: string;
isNew?: boolean;
isVisible: boolean;
@@ -62,6 +62,7 @@ interface IProps {
export const SceneEditPanel: React.FC<IProps> = ({
scene,
fileID,
initialCoverImage,
isNew = false,
isVisible,
@@ -71,10 +72,6 @@ export const SceneEditPanel: React.FC<IProps> = ({
const Toast = useToast();
const history = useHistory();
const queryParams = queryString.parse(location.search);
const fileID = (queryParams?.file_id ?? "") as string;
const [galleries, setGalleries] = useState<{ id: string; title: string }[]>(
[]
);
@@ -83,17 +80,13 @@ export const SceneEditPanel: React.FC<IProps> = ({
const [fragmentScrapers, setFragmentScrapers] = useState<GQL.Scraper[]>([]);
const [queryableScrapers, setQueryableScrapers] = useState<GQL.Scraper[]>([]);
const [scraper, setScraper] = useState<GQL.ScraperSourceInput | undefined>();
const [
isScraperQueryModalOpen,
setIsScraperQueryModalOpen,
] = useState<boolean>(false);
const [scraper, setScraper] = useState<GQL.ScraperSourceInput>();
const [isScraperQueryModalOpen, setIsScraperQueryModalOpen] =
useState<boolean>(false);
const [scrapedScene, setScrapedScene] = useState<GQL.ScrapedScene | null>();
const [endpoint, setEndpoint] = useState<string | undefined>();
const [endpoint, setEndpoint] = useState<string>();
const [coverImagePreview, setCoverImagePreview] = useState<
string | undefined
>();
const [coverImagePreview, setCoverImagePreview] = useState<string>();
useEffect(() => {
setCoverImagePreview(
@@ -286,7 +279,7 @@ export const SceneEditPanel: React.FC<IProps> = ({
const createValues = getCreateValues(input);
const result = await mutateCreateScene({
...createValues,
file_ids: fileID ? [fileID as string] : undefined,
file_ids: fileID ? [fileID] : undefined,
});
if (result.data?.sceneCreate?.id) {
history.push(`/scenes/${result.data?.sceneCreate.id}`);
@@ -901,9 +894,8 @@ export const SceneEditPanel: React.FC<IProps> = ({
</Form.Label>
<ul className="pl-0">
{formik.values.stash_ids.map((stashID) => {
const base = stashID.endpoint.match(
/https?:\/\/.*?\//
)?.[0];
const base =
stashID.endpoint.match(/https?:\/\/.*?\//)?.[0];
const link = base ? (
<a
href={`${base}scenes/${stashID.stash_id}`}