update deps

This commit is contained in:
2025-11-10 14:46:34 +01:00
parent 7376a5dd4d
commit ef9bec3334
15 changed files with 845 additions and 1141 deletions
-2
View File
@@ -1,2 +0,0 @@
dist
node_modules
-31
View File
@@ -1,31 +0,0 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"no-use-before-define": [
"error",
{ "functions": false, "classes": true, "variables": true }
],
"react/react-in-jsx-scope": "off",
"react/prop-types": "off"
}
}
+53
View File
@@ -0,0 +1,53 @@
import js from '@eslint/js';
import pluginReact from 'eslint-plugin-react';
import pluginReactHooks from 'eslint-plugin-react-hooks';
import globals from 'globals';
const sharedRules = {
...js.configs.recommended.rules,
...pluginReact.configs.recommended.rules,
...pluginReactHooks.configs.recommended.rules,
'no-use-before-define': [
'error',
{ functions: false, classes: true, variables: true },
],
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react-hooks/set-state-in-effect': 'off',
'react-hooks/refs': 'off',
'react-hooks/preserve-manual-memoization': 'off',
};
const sharedLanguageOptions = {
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.node,
},
};
export default [
{
ignores: ['dist', 'node_modules'],
},
{
files: ['src/**/*.{js,jsx}', 'tests/**/*.{js,jsx}'],
languageOptions: sharedLanguageOptions,
plugins: {
react: pluginReact,
'react-hooks': pluginReactHooks,
},
settings: {
react: {
version: 'detect',
},
},
rules: sharedRules,
},
];
+763 -1063
View File
File diff suppressed because it is too large Load Diff
+21 -20
View File
@@ -11,27 +11,28 @@
},
"dependencies": {
"@fontsource/inter": "^5.2.8",
"@tabler/icons-react": "3.11.0",
"axios": "1.7.7",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "6.27.0"
"@tabler/icons-react": "^3.35.0",
"axios": "^1.13.2",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-router-dom": "^7.9.5"
},
"devDependencies": {
"@babel/core": "7.26.0",
"@babel/preset-env": "7.26.0",
"@babel/preset-react": "7.26.3",
"eslint": "8.57.0",
"eslint-plugin-react": "7.37.1",
"eslint-plugin-react-hooks": "4.6.0",
"@svgr/webpack": "8.1.0",
"babel-loader": "9.2.1",
"css-loader": "7.1.2",
"dotenv": "16.4.5",
"html-webpack-plugin": "5.6.3",
"style-loader": "4.0.0",
"webpack": "5.95.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.1.0"
"@babel/core": "^7.28.5",
"@babel/preset-env": "^7.28.5",
"@babel/preset-react": "^7.28.5",
"@svgr/webpack": "^8.1.0",
"babel-loader": "^10.0.0",
"css-loader": "^7.1.2",
"dotenv": "^17.2.3",
"eslint": "^9.39.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"globals": "^16.5.0",
"html-webpack-plugin": "^5.6.4",
"style-loader": "^4.0.0",
"webpack": "^5.102.1",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.2"
}
}
+1 -1
View File
@@ -99,7 +99,7 @@ const withStore = async (mode, handler) => {
}
try {
await done;
} catch (suppressed) {
} catch {
// noop prefer original error
}
throw error;
-2
View File
@@ -1223,7 +1223,6 @@ export const useWorkspaceSnapshot = (engine, useSyncExternalStoreHook) => {
};
/* istanbul ignore next */
/* eslint-disable no-undef */
if (typeof module !== 'undefined' && module && module.exports) {
module.exports = {
WorkspaceEngine,
@@ -1245,4 +1244,3 @@ if (typeof module !== 'undefined' && module && module.exports) {
useWorkspaceSnapshot,
};
}
/* eslint-enable no-undef */
@@ -31,7 +31,7 @@ const useBulkDocumentActions = ({
if (!target) {
try {
target = await handleCorrespondentCreate({ name: trimmed });
} catch (error) {
} catch {
return;
}
}
@@ -160,7 +160,6 @@ const useBulkDocumentActions = ({
if (folderIds.length) {
for (const folderId of folderIds) {
// eslint-disable-next-line no-await-in-loop
const success = await handleFolderDelete(folderId, { showMessage: false, manageLoading: false });
if (!success) {
foldersOk = false;
+1 -1
View File
@@ -97,7 +97,7 @@ const useInlineRename = (
}
resetState();
return true;
} catch (error) {
} catch {
return false;
} finally {
setSavingId((current) => (current === entityId ? null : current));
@@ -87,7 +87,7 @@ const useDocumentCorrespondentActions = ({
if (!target) {
try {
target = await handleCorrespondentCreate({ name: trimmed });
} catch (error) {
} catch {
return;
}
}
@@ -127,4 +127,3 @@ const useDocumentCorrespondentActions = ({
};
export default useDocumentCorrespondentActions;
@@ -175,7 +175,6 @@ const useDocumentUploads = ({
const entries = [];
let batch = [];
do {
// eslint-disable-next-line no-await-in-loop
batch = await new Promise((resolve, reject) => reader.readEntries(resolve, reject));
if (batch.length) {
entries.push(...batch);
@@ -203,7 +202,6 @@ const useDocumentUploads = ({
const reader = entry.createReader();
const entries = await readAllEntries(reader);
for (const child of entries) {
// eslint-disable-next-line no-await-in-loop
await walkEntry(child, nextAncestors);
}
}
@@ -306,7 +304,6 @@ const useDocumentUploads = ({
updateQueueItem(queueItem.id, patch);
Object.assign(queueItem, patch);
}
// eslint-disable-next-line no-await-in-loop
const destinationId = segments.length
? await ensureFolderPathOnServer(baseFolderId, segments)
: baseFolderId;
@@ -316,7 +313,6 @@ const useDocumentUploads = ({
(targetFolderId && targetFolderId !== 'root' ? targetFolderId : 'root');
try {
// eslint-disable-next-line no-await-in-loop
const { duplicate, statusCode, document, conflictDocumentId } = await uploadFile(
file,
uploadTarget,
@@ -96,7 +96,6 @@ const useFolderTreeActions = ({
const refreshTargets = new Set([previousParentKey, targetKey]);
for (const key of refreshTargets) {
// eslint-disable-next-line no-await-in-loop
await ensureFolderData(key === 'root' ? 'root' : key, { force: true, prefetchDepth: 1 });
}
@@ -112,7 +111,6 @@ const useFolderTreeActions = ({
const refreshTargets = new Set([previousParentKey, targetKey]);
for (const key of refreshTargets) {
// eslint-disable-next-line no-await-in-loop
await ensureFolderData(key === 'root' ? 'root' : key, { force: true, prefetchDepth: 1 });
}
}
@@ -516,7 +514,6 @@ const useFolderTreeActions = ({
}
for (const sourceId of folderIds) {
// eslint-disable-next-line no-await-in-loop
await moveFolder(sourceId, folderId);
}
}
@@ -132,7 +132,7 @@ const ApiTokensSection = ({
await navigator.clipboard.writeText(createdToken);
showSuccess();
return;
} catch (error) {
} catch {
// Some browsers expose writeText but still reject outside secure context
setCanCopyToken(false);
}
-6
View File
@@ -115,18 +115,15 @@ const BreadcrumbTrail = ({
for (let start = 0; start < entryNodes.length; start += 1) {
entryNodes.forEach((node, index) => {
// Hide entries that fall before the visible window.
// eslint-disable-next-line no-param-reassign
node.style.display = index < start ? 'none' : '';
});
separatorNodes.forEach((node) => {
const targetIndex = Number(node.getAttribute('data-target-index'));
// eslint-disable-next-line no-param-reassign
node.style.display = targetIndex < Math.max(start, 1) ? 'none' : '';
});
if (ellipsisNode) {
// eslint-disable-next-line no-param-reassign
ellipsisNode.style.display = start > 0 ? '' : 'none';
}
@@ -134,17 +131,14 @@ const BreadcrumbTrail = ({
}
entryNodes.forEach((node, index) => {
// eslint-disable-next-line no-param-reassign
node.style.display = originalEntryDisplay[index] ?? '';
});
separatorNodes.forEach((node, index) => {
// eslint-disable-next-line no-param-reassign
node.style.display = originalSeparatorDisplay[index] ?? '';
});
if (ellipsisNode) {
// eslint-disable-next-line no-param-reassign
ellipsisNode.style.display = originalEllipsisDisplay ?? 'none';
}
+3 -3
View File
@@ -66,7 +66,7 @@ export async function openOcrTextInNewTab(options) {
if (popupAvailable) {
try {
popup.opener = null;
} catch (error) {
} catch {
/* ignore */
}
}
@@ -83,7 +83,7 @@ export async function openOcrTextInNewTab(options) {
if (popupAvailable) {
try {
popup.location.replace(url);
} catch (navigationError) {
} catch {
try {
popup.location.href = url;
} catch (secondError) {
@@ -96,7 +96,7 @@ export async function openOcrTextInNewTab(options) {
if (finalWindow) {
try {
finalWindow.opener = null;
} catch (error) {
} catch {
/* ignore */
}
}