update deps
This commit is contained in:
@@ -99,7 +99,7 @@ const withStore = async (mode, handler) => {
|
||||
}
|
||||
try {
|
||||
await done;
|
||||
} catch (suppressed) {
|
||||
} catch {
|
||||
// noop – prefer original error
|
||||
}
|
||||
throw error;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
@@ -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 */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user