build(deps): bump the npm group in /web with 23 updates (#1750)

This commit is contained in:
dependabot[bot] 2024-10-24 13:43:28 +00:00 committed by GitHub
parent 63b8519bd9
commit 4ba380b8ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 707 additions and 761 deletions

View file

@ -33,28 +33,28 @@
} }
}, },
"dependencies": { "dependencies": {
"@headlessui/react": "^2.1.1", "@headlessui/react": "^2.1.8",
"@heroicons/react": "^2.1.4", "@heroicons/react": "^2.1.4",
"@hookform/error-message": "^2.0.1", "@hookform/error-message": "^2.0.1",
"@popperjs/core": "^2.11.8", "@popperjs/core": "^2.11.8",
"@tailwindcss/forms": "^0.5.8", "@tailwindcss/forms": "^0.5.9",
"@tanstack/react-query": "^5.53.2", "@tanstack/react-query": "^5.56.2",
"@tanstack/react-query-devtools": "^5.29.2", "@tanstack/react-query-devtools": "^5.29.2",
"@tanstack/react-router": "^1.52.3", "@tanstack/react-router": "^1.58.15",
"@types/node": "^22.5.2", "@types/node": "^22.7.4",
"@types/react": "^18.3.5", "@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0", "@types/react-dom": "^18.3.0",
"@types/react-portal": "^4.0.7", "@types/react-portal": "^4.0.7",
"@types/react-table": "^7.7.20", "@types/react-table": "^7.7.20",
"@typescript-eslint/eslint-plugin": "^8.3.0", "@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.3.0", "@typescript-eslint/parser": "^8.8.0",
"@vitejs/plugin-react-swc": "^3.7.0", "@vitejs/plugin-react-swc": "^3.7.1",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"date-fns": "^3.6.0", "date-fns": "^4.1.0",
"formik": "^2.4.6", "formik": "^2.4.6",
"http-proxy-middleware": "^3.0.1", "http-proxy-middleware": "^3.0.2",
"postcss": "^8.4.44", "postcss": "^8.4.47",
"react": "^18.3.1", "react": "^18.3.1",
"react-debounce-input": "^3.3.0", "react-debounce-input": "^3.3.0",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
@ -64,38 +64,38 @@
"react-popper-tooltip": "^4.4.2", "react-popper-tooltip": "^4.4.2",
"react-portal": "^4.2.2", "react-portal": "^4.2.2",
"react-ridge-state": "4.2.9", "react-ridge-state": "4.2.9",
"react-select": "^5.8.0", "react-select": "^5.8.1",
"react-table": "^7.8.0", "react-table": "^7.8.0",
"react-textarea-autosize": "^8.5.3", "react-textarea-autosize": "^8.5.3",
"stacktracey": "^2.1.8", "stacktracey": "^2.1.8",
"tailwind-lerp-colors": "1.2.6", "tailwind-lerp-colors": "1.2.6",
"tailwindcss": "^3.4.10", "tailwindcss": "^3.4.13",
"workbox-window": "^7.1.0", "workbox-window": "^7.1.0",
"zod": "^3.23.8", "zod": "^3.23.8",
"zod-formik-adapter": "^1.3.0" "zod-formik-adapter": "^1.3.0"
}, },
"devDependencies": { "devDependencies": {
"@microsoft/eslint-formatter-sarif": "^3.1.0", "@microsoft/eslint-formatter-sarif": "^3.1.0",
"@rollup/wasm-node": "^4.21.2", "@rollup/wasm-node": "^4.23.0",
"@tanstack/router-devtools": "^1.52.3", "@tanstack/router-devtools": "^1.58.15",
"@types/node": "^22.5.2", "@types/node": "^22.7.4",
"@types/react": "^18.3.5", "@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0", "@types/react-dom": "^18.3.0",
"@types/react-portal": "^4.0.7", "@types/react-portal": "^4.0.7",
"@types/react-table": "^7.7.20", "@types/react-table": "^7.7.20",
"@typescript-eslint/eslint-plugin": "^8.3.0", "@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.3.0", "@typescript-eslint/parser": "^8.8.0",
"@vitejs/plugin-react-swc": "^3.7.0", "@vitejs/plugin-react-swc": "^3.7.1",
"eslint": "^8.57.0", "eslint": "^8.57.1",
"eslint-plugin-import": "^2.29.1", "eslint-plugin-import": "^2.30.0",
"eslint-plugin-react": "^7.35.0", "eslint-plugin-react": "^7.37.0",
"eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.11", "eslint-plugin-react-refresh": "^0.4.12",
"eslint-watch": "^8.0.0", "eslint-watch": "^8.0.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "^5.5.4", "typescript": "^5.6.2",
"vite": "^5.4.2", "vite": "^5.4.8",
"vite-plugin-pwa": "^0.20.2", "vite-plugin-pwa": "^0.20.5",
"vite-plugin-svgr": "^4.2.0" "vite-plugin-svgr": "^4.2.0"
} }
} }

1343
web/pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -356,7 +356,14 @@ export const SelectFieldWide = ({
} }
})} })}
value={field?.value && field.value.value} value={field?.value && field.value.value}
onChange={(option) => setFieldValue(field.name, option?.value ?? "")} onChange={(newValue: unknown) => {
if (newValue) {
setFieldValue(field.name, (newValue as { value: string }).value);
}
else {
setFieldValue(field.name, "")
}
}}
options={options} options={options}
/> />
)} )}

View file

@ -74,12 +74,12 @@ export function SelectFieldCreatable<T>({ name, label, help, placeholder, toolti
})} })}
// value={field?.value ? field.value : options.find(o => o.value == field?.value)} // value={field?.value ? field.value : options.find(o => o.value == field?.value)}
value={field?.value ? { value: field.value, label: field.value } : field.value} value={field?.value ? { value: field.value, label: field.value } : field.value}
onChange={(option) => { onChange={(newValue: unknown) => {
if (option === null) { if (newValue) {
setFieldValue(field.name, ""); setFieldValue(field.name, (newValue as { value: string }).value);
return; }
} else { else {
setFieldValue(field.name, option.value ?? ""); setFieldValue(field.name, "")
} }
}} }}
options={[...[...options, { value: field.value, label: field.value }].reduce((map, obj) => map.set(obj.value, obj), new Map()).values()]} options={[...[...options, { value: field.value, label: field.value }].reduce((map, obj) => map.set(obj.value, obj), new Map()).values()]}
@ -139,12 +139,12 @@ export function SelectField<T>({ name, label, help, placeholder, options }: Sele
})} })}
// value={field?.value ? field.value : options.find(o => o.value == field?.value)} // value={field?.value ? field.value : options.find(o => o.value == field?.value)}
value={field?.value ? { value: field.value, label: field.value } : field.value} value={field?.value ? { value: field.value, label: field.value } : field.value}
onChange={(option) => { onChange={(newValue: unknown) => {
if (option === null) { if (newValue) {
setFieldValue(field.name, ""); setFieldValue(field.name, (newValue as { value: string }).value);
return; }
} else { else {
setFieldValue(field.name, option.value ?? ""); setFieldValue(field.name, "")
} }
}} }}
options={[...[...options, { value: field.value, label: field.value }].reduce((map, obj) => map.set(obj.value, obj), new Map()).values()]} options={[...[...options, { value: field.value, label: field.value }].reduce((map, obj) => map.set(obj.value, obj), new Map()).values()]}
@ -209,12 +209,12 @@ export function SelectFieldBasic<T>({ name, label, help, placeholder, required,
})} })}
defaultValue={defaultValue} defaultValue={defaultValue}
value={field?.value && options.find(o => o.value == field?.value)} value={field?.value && options.find(o => o.value == field?.value)}
onChange={(option) => { onChange={(newValue: unknown) => {
if (option === null) { if (newValue) {
setFieldValue(field.name, ""); setFieldValue(field.name, (newValue as { value: string }).value);
return; }
} else { else {
setFieldValue(field.name, option.value ?? ""); setFieldValue(field.name, "")
} }
}} }}
options={options} options={options}

View file

@ -519,18 +519,12 @@ export function SelectField<T>({ name, label, options, placeholder }: SelectFiel
} }
})} })}
value={field?.value && options.find(o => o.value == field?.value)} value={field?.value && options.find(o => o.value == field?.value)}
onChange={(option) => { onChange={(newValue: unknown) => {
// resetForm(); if (newValue) {
setFieldValue(field.name, (newValue as { value: number }).value);
if (option !== null) { }
// const opt = option as SelectOption; else {
// setFieldValue("name", option?.label ?? "") setFieldValue(field.name, 0)
setFieldValue(
field.name,
option.value ?? ""
);
} else {
setFieldValue(field.name, undefined);
} }
}} }}
options={options} options={options}

View file

@ -61,8 +61,8 @@ export function Actions() {
ignore_rules: false, ignore_rules: false,
first_last_piece_prio: false, first_last_piece_prio: false,
skip_hash_check: false, skip_hash_check: false,
content_layout: "" || undefined, content_layout: "",
priority: "" || undefined, priority: "",
limit_upload_speed: 0, limit_upload_speed: 0,
limit_download_speed: 0, limit_download_speed: 0,
limit_ratio: 0, limit_ratio: 0,

View file

@ -117,7 +117,7 @@ interface Action {
filter_id?: number; filter_id?: number;
} }
type ActionContentLayout = "ORIGINAL" | "SUBFOLDER_CREATE" | "SUBFOLDER_NONE"; type ActionContentLayout = "ORIGINAL" | "SUBFOLDER_CREATE" | "SUBFOLDER_NONE" | "";
type ActionPriorityLayout = "MAX" | "MIN" | ""; type ActionPriorityLayout = "MAX" | "MIN" | "";