Compare commits

...
Author SHA1 Message Date
Kevin B. e3aac7c34f remove stylelint (#3407) 2026-11-17 09:17:36 -06:00
98 changed files with 1127 additions and 1481 deletions

No files matched your search

+157 -100
View File
@@ -21,6 +21,7 @@
"linter": {
"enabled": true,
"rules": {
"preset": "recommended",
"a11y": {
"noAutofocus": "off",
"noNoninteractiveElementToInteractiveRole": "off",
@@ -39,176 +40,236 @@
"noRedundantDefaultExport": "warn",
"noUnnecessaryTemplateExpression": "error",
"noUselessStringConcat": "warn",
"useMathMinMax": "warn"
"useMathMinMax": "warn",
"useRegexpTest": "warn"
},
"correctness": {
"noUnknownPseudoClass": "off",
"noInvalidDirectionInLinearGradient": "error",
"noInvalidGridAreas": "error",
"noInvalidPositionAtImportRule": "error",
"noMissingVarFunction": "error",
"noUnknownFunction": "error",
"noUnknownMediaFeatureName": "error",
"noUnknownProperty": "error",
"noUnknownPseudoClass": "error",
"noUnknownPseudoElement": "error",
"noUnknownTypeSelector": "error",
"noUnknownUnit": "error",
"noUnmatchableAnbSelector": "error",
"noVueDuplicateKeys": "error",
"noVueImportCompilerMacros": "error",
"noVueRefAsOperand": "error",
"noVueVOnNumberValues": "error",
"useVueValidVFor": "error",
"noVueVIfWithVFor": "error",
"noVueDuplicateKeys": "error"
"noVueVOnNumberValues": "error",
"useVueValidVFor": "error"
},
"nursery": {
"noArgumentsCallerOrCallee": "warn",
"noArrayForEach": "error",
"noBooleanSortComparator": "error",
"noBufferConstructor": "warn",
"noChainedComparison": "error",
"noConfusingArraySplice": "warn",
"noDoubleComparison": "on",
"noDynamicDelete": "warn",
"noDynamicRequire": "error",
"noFloatingPromises": "error",
"noImpliedEval": "error",
"noJsonUnsafeValues": "error",
"noMisusedPromises": "error",
"noVueDeprecatedScopedSlots": "error",
"noVueUndeclaredDirectives": "off",
"useConsistentObjectKeys": "error",
"useVueBaseImport": "warn",
"noDoubleComparison": "on",
"noNestedSwitch": "on",
"noVueLifecycleAfterAwait": "error",
"noVueShadowNativeEvents": "warn",
"noVueVHtml": "error",
"noVueVText": "warn",
"noVueVTextVHtmlOnComponent": "error",
"useSimplifiedBooleanReturn": "warn",
"useVueConsistentEventHyphenation": "warn",
"noPromiseExecutorReturn": "warn",
"noArgumentsCallerOrCallee": "warn",
"noVueRequiredPropWithDefault": "warn",
"noBooleanSortComparator": "error",
"noObsoleteAttributes": "error",
"noUnsafeReturn": "warn",
"noUselessSplice": "warn",
"noVueWatchAfterAwait": "error",
"useMathAbs": "warn",
"useMathTrunc": "warn",
"useVueComponentIs": "error",
"useVueTypedRef": "error",
"noReturnArrayPush": "warn",
"noUselessRecursion": "error",
"noVueComputedPropertiesInData": "error",
"noVueDeprecatedDeleteSet": "error",
"noVueDeprecatedRouterLinkTagProp": "error",
"noVueMutatingProps": "error",
"noVueMultipleSlotArgs": "warn",
"noVueSideEffectsInComputed": "error",
"noVueUnusedRefs": "error",
"useVueTemplateRef": "warn",
"useVueTypedProps": "warn",
"useVueVModel": "warn",
"useVueValidDefineEmits": "error",
"useVueValidDefineProps": "error",
"useVueValidVIs": "error",
"useVueValidVModel": "error",
"useVueValidVShow": "error",
"useVueValidVSlot": "error",
"noVueDeprecatedListeners": "error",
"noArrayForEach": "error",
"noChainedComparison": "error",
"noDynamicDelete": "warn",
"noLateCurrentTargetAccess": "error",
"noLateEventControl": "error",
"noMisusedPromises": "error",
"noNestedSwitch": "on",
"noObjectLiteralComparison": "error",
"noObsoleteAttributes": "error",
"noPlaywrightUnsafeReferences": "error",
"noPromiseExecutorReturn": "warn",
"noRedundantTypeConstituents": "warn",
"noReturnArrayPush": "warn",
"noUnnecessaryStringTrim": "warn",
"noUnsafeReturn": "warn",
"noUselessLengthCheck": "info",
"noUselessRecursion": "error",
"noUselessSplice": "warn",
"noUselessSpread": "warn",
"noUselessTypeAssertion": "warn",
"noVueAsyncComputed": "error",
"noVueChildContent": "error",
"noVueComputedPropertiesInData": "error",
"noVueDefineModelDefault": "warn",
"noVueDeprecatedConfigKeyCodes": "info",
"noVueDeprecatedDeleteSet": "error",
"noVueDeprecatedEventsApi": "error",
"noVueDeprecatedHtmlElementIs": "error",
"noVueDeprecatedListeners": "error",
"noVueDeprecatedModelDefinition": "error",
"noVueDeprecatedPropsDefaultThis": "error",
"noVueDeprecatedRouterLinkTagProp": "error",
"noVueDeprecatedScopedSlots": "error",
"noVueDeprecatedVBindSync": "error",
"noVueDeprecatedVIs": "error",
"noVueExportInScriptSetup": "error",
"noVueExposeAfterAwait": "error",
"noVueLifecycleAfterAwait": "error",
"noVueLoneTemplate": "error",
"noVueMixin": "error",
"noVueMultipleObjectsInClass": "warn",
"noVueMultipleSlotArgs": "warn",
"noVueMutatingProps": "error",
"noVueRefObjectReactivityLoss": "error",
"noVueRequiredPropWithDefault": "warn",
"noVueRestrictedCallAfterAwait": "error",
"noVueRestrictedVOn": "warn",
"noVueShadowNativeEvents": "warn",
"noVueSideEffectsInComputed": "error",
"noVueTemplateKey": "error",
"noVueTemplateShadow": "warn",
"noVueThisInTemplate": "warn",
"noVueUndeclaredDirectives": "off",
"noVueUndeclaredEmits": "warn",
"noVueUndeclaredProperties": "error",
"noVueUndeclaredSlots": "warn",
"noVueUselessVBind": "warn",
"noVueUnusedEmitDeclarations": "error",
"noVueUnusedRefs": "error",
"noVueUselessTemplateAttributes": "error",
"noVueUselessVBind": "warn",
"noVueVForTemplateKeyOnChild": "error",
"noVueVHtml": "error",
"noVueVText": "warn",
"noVueVTextVHtmlOnComponent": "error",
"noVueWatchAfterAwait": "error",
"useConsistentLightnessNotation": {
"level": "error",
"options": { "notation": "percentage" }
},
"useConsistentObjectKeys": "error",
"useMathAbs": "warn",
"useMathTrunc": "warn",
"useObjectFromEntries": "warn",
"useSimplifiedBooleanReturn": "warn",
"useValidNamespaceImports": "error",
"useVueBaseImport": "warn",
"useVueBlockOrder": {
"level": "on",
"options": {
"order": [
"template",
"script",
"style"
]
}
"options": { "order": ["template", "script", "style"] }
},
"useVueBooleanPropTypeFirst": "warn",
"useVueComponentIs": "error",
"useVueComputedPropertyReturn": "error",
"useVueConsistentEventHyphenation": "warn",
"useVueEmitValidator": "warn",
"useVueEmitsValidatorReturn": "error",
"useVuePropTypeConstructor": "error",
"useVueRenderReturn": "error",
"useVueSingleEventPayload": "warn",
"useVueTemplateRef": "warn",
"useVueTypedObjectProps": "warn",
"useVueTypedProps": "warn",
"useVueTypedRef": "error",
"useVueVModel": "warn",
"useVueValidDefaultProp": "error",
"useVueValidNextTick": "error",
"useVueValidDefineEmits": "error",
"useVueValidDefineOptions": "error",
"noRedundantTypeConstituents": "warn",
"noUselessSpread": "warn",
"noVueExposeAfterAwait": "error",
"noBufferConstructor": "warn",
"noConfusingArraySplice": "warn",
"noDynamicRequire": "error",
"noLateCurrentTargetAccess": "error",
"noVueAsyncComputed": "error",
"noVueDefineModelDefault": "warn",
"noVueDeprecatedVIs": "error",
"noVueExportInScriptSetup": "error",
"useValidNamespaceImports": "error",
"noVueUnusedEmitDeclarations": "error"
"useVueValidDefineProps": "error",
"useVueValidNextTick": "error",
"useVueValidVIs": "error",
"useVueValidVModel": "error",
"useVueValidVShow": "error",
"useVueValidVSlot": "error",
"noInvalidPropertyInitValue": "warn",
"noPseudoElementInFunctionalPseudoClass": "error",
"noSelfNestedLayer": "warn",
"noVueDeprecatedDestroyedLifecycle": "error",
"noVueDeprecatedFilter": "error",
"noVueDeprecatedFunctionalTemplate": "error",
"noVueDeprecatedInlineTemplate": "error",
"noVueDeprecatedScopeAttribute": "error",
"noVueDeprecatedSlotAttribute": "error",
"noVueDeprecatedSlotScope": "error",
"noVueDeprecatedVOnNativeModifier": "error",
"noObsoleteTags": "error",
"noNonScalableViewport": "warn",
"noShortTimeValues": "warn",
"useNamedLayer": "warn",
"useVueDefineOptions": "warn",
"useVueConsistentDefineEmitsDeclaration": "warn",
"useVueConsistentVSlotStyle": "warn",
"useVueSlotsAsFunctions": "warn",
"useVueMacroVariableName": "warn",
"useVueVOnExact": "warn",
"useConsistentFontWeightNotation": "warn",
"useIncludes": "warn",
"useStringStartsEndsWith": "warn",
"useModernMathApis": "warn"
},
"performance": { "useVueVapor": "off" },
"security": {
"preset": "recommended",
"useIframeSandbox": "off"
},
"security": { "preset": "recommended", "useIframeSandbox": "off" },
"style": {
"noDescendingSpecificity": "off",
"noCommonJs": "warn",
"noDescendingSpecificity": "error",
"noTopLevelLiterals": "error",
"noVueOptionsApi": "off",
"useDomQuerySelector": "warn",
"useImportsFirst": "off",
"useVarsOnTop": "on",
"useVueConsistentDefinePropsDeclaration": "on",
"useVueConsistentVBindStyle": "off",
"useVueConsistentVBindStyle": "warn",
"useVueDefineMacrosOrder": "warn",
"useVueHyphenatedAttributes": "off",
"useVueMultiWordComponentNames": "off",
"useVueNextTickPromise": "warn",
"useImportsFirst": "off",
"useVarsOnTop": "on",
"useDomQuerySelector": "warn",
"useVueDefineMacrosOrder": "warn",
"noCommonJs": "warn"
"noValueAtRule": "warn",
"noHexColors": "off",
"useObjectSpread": "warn",
"useSpreadOverApply": "warn",
"noSubstr": "warn",
"useNumberNamespace": "warn",
"useAtIndex": "warn",
"useForOf": "warn"
},
"suspicious": {
"noConfusingVoidType": "warn",
"noDeprecatedMediaType": "error",
"noDuplicateAtImportRules": "error",
"noDuplicateCustomProperties": "error",
"noDuplicateFontNames": "error",
"noDuplicateProperties": "error",
"noDuplicateSelectors": "error",
"noDuplicateSelectorsKeyframeBlock": "error",
"noEmptyBlock": "error",
"noEmptyObjectKeys": "error",
"noEmptySource": "error",
"noExplicitAny": "warn",
"noImportCycles": "off",
"noImportantInKeyframe": "error",
"noIrregularWhitespace": "error",
"noNestedPromises": "error",
"noParametersOnlyUsedInRecursion": "error",
"noShadow": "off",
"noShadow": "error",
"noShorthandPropertyOverrides": "error",
"noUnknownAtRules": "error",
"noUnnecessaryConditions": "off",
"useArraySortCompare": "error",
"useScopedStyles": "off",
"noConfusingVoidType": "warn"
"noUselessEscapeInString": "warn",
"noVar": "error",
"noForIn": "warn"
}
},
"domains": { "vue": "all", "project": "all", "types": "all" }
},
"css": {
"formatter": { "enabled": false },
"linter": { "enabled": false },
"assist": { "enabled": false }
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"linter": { "enabled": true },
"assist": { "enabled": true }
},
"html": {
"experimentalFullSupportEnabled": true,
"parser": { "interpolation": true },
"parser": { "interpolation": true, "vue": true },
"linter": { "enabled": true }
},
"overrides": [
@@ -218,7 +279,6 @@
"rules": {
"complexity": { "noPlaywrightUselessAwait": "error" },
"correctness": {
"noEmptyPattern": "off",
"noPlaywrightMissingAwait": "error",
"noUnresolvedImports": "off",
"usePlaywrightValidDescribeCallback": "error"
@@ -229,23 +289,19 @@
"noPlaywrightWaitForSelector": "error"
},
"suspicious": {
"noEmptyObjectKeys": "error",
"noPlaywrightForceOption": "error",
"noPlaywrightNetworkidle": "error",
"noPlaywrightPagePause": "error",
"noPlaywrightWaitForNavigation": "error",
"noPlaywrightWaitForTimeout": "warn",
"noEmptyObjectKeys": "error"
"noPlaywrightWaitForTimeout": "warn"
}
}
}
},
{
"includes": ["**/*.js"],
"linter": {
"rules": {
"nursery": { "noUnsafeReturn": "off" }
}
}
"linter": { "rules": { "nursery": { "noUnsafeReturn": "off" } } }
},
{
"includes": [
@@ -265,6 +321,7 @@
}
}
],
"plugins": ["./scripts/biome/css-legacy.grit"],
"assist": {
"actions": {
"source": {
+44 -657
View File
@@ -36,9 +36,6 @@
"esbuild": "^0.28.2",
"fs-extra": "^11.4.1",
"jsdom": "^31.0.1",
"stylelint": "^18.0.0",
"stylelint-config-standard": "^41.0.0",
"stylelint-config-standard-vue": "^2.0.0",
"typescript": "^6.0.3",
"vite": "^8.3.8",
"vite-plugin-checker": "^1.0.0",
@@ -76,13 +73,6 @@
"node": "^22.18.0 || >=24.11.0"
}
},
"node_modules/@babel/code-frame/node_modules/js-tokens": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz",
"integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==",
"dev": true,
"license": "MIT"
},
"node_modules/@babel/helper-string-parser": {
"version": "7.29.14",
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.14.tgz",
@@ -340,168 +330,6 @@
"node": ">=14.21.3"
}
},
"node_modules/@csstools/css-calc": {
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.4.3.tgz",
"integrity": "sha512-iex20d8CHVkyvg6B7UKV7uHnI2Bqo9g+EFfT9E0y+GvTvhZ/DwONJ+9aKb1dlqm0ZiGsL5RXjp0fCoJYnkeDjA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"license": "MIT",
"engines": {
"node": ">=20.19.0"
},
"peerDependencies": {
"@csstools/css-parser-algorithms": "^4.0.2",
"@csstools/css-tokenizer": "^4.0.2"
}
},
"node_modules/@csstools/css-parser-algorithms": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.2.tgz",
"integrity": "sha512-40cSKyMvK+tq4qz6Awrlye2WGuOKt3FwPgtGg6KTfbHOWNw+Rk1rzbAtZnZ6IBhsY491HLRnDXwoyBAijmmILA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"license": "MIT",
"engines": {
"node": ">=20.19.0"
},
"peerDependencies": {
"@csstools/css-tokenizer": "^4.0.2"
}
},
"node_modules/@csstools/css-syntax-patches-for-csstree": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.16.tgz",
"integrity": "sha512-LsDbJPP/B8cPasUJyTA5S99F7C4G93ngW8hUluXz8CFeOaaRnBPtBiIlvgcPYU0HmHNz8CXg+1vwFrIB4F6Dgw==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"license": "MIT-0",
"peerDependencies": {
"css-tree": "^3.2.1"
},
"peerDependenciesMeta": {
"css-tree": {
"optional": true
}
}
},
"node_modules/@csstools/css-tokenizer": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.2.tgz",
"integrity": "sha512-OoKoR0f76dCY666JlcbhmVTs2drYj1GUXZTYTcbUgJjh9Nv41aFfZ21bPQTERm5+L5cBDo466NltB2lplS5GBw==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"license": "MIT",
"engines": {
"node": ">=20.19.0"
}
},
"node_modules/@csstools/media-query-list-parser": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-5.0.2.tgz",
"integrity": "sha512-qx19O8AbbLLbDSAcI6YOby/Vq8rV51psgIvlF5OZT/L8fQJDCyQifL6k+kYU4a8ySpzJ4RBzZkIs530bAn8y4Q==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"license": "MIT",
"engines": {
"node": ">=20.19.0"
},
"peerDependencies": {
"@csstools/css-parser-algorithms": "^4.0.2",
"@csstools/css-tokenizer": "^4.0.2"
}
},
"node_modules/@csstools/selector-resolve-nested": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-4.0.2.tgz",
"integrity": "sha512-JpjNBJFA+4OnAHKRK4AMp8xrYyLhI9XapOeBlP2PhRU/IylSw+1ep3BFNTksBJnrTS3KT6kqKNVfpzLLwZUW5Q==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"license": "MIT-0",
"engines": {
"node": ">=20.19.0"
},
"peerDependencies": {
"postcss-selector-parser": "^7.1.1"
}
},
"node_modules/@csstools/selector-specificity": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-6.0.1.tgz",
"integrity": "sha512-MBuqFIIvqk4S593MGAskTkPpEUUzZNvGzh8mMxEwl3oHwjQlXmqHEDxNbN3Y0Tsh+xjmem4GZjeg7I0qkwBivg==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"license": "MIT-0",
"engines": {
"node": ">=20.19.0"
},
"peerDependencies": {
"postcss-selector-parser": "^7.1.1"
}
},
"node_modules/@emnapi/core": {
"version": "2.0.0-beta.2",
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz",
@@ -2113,14 +1941,14 @@
"optional": true
},
"node_modules/@typescript-eslint/project-service": {
"version": "8.72.2",
"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.2.tgz",
"integrity": "sha512-6y5dLTZdHhI8Eh3yIQ/bfQhRKwn5e+TpJj64o18Cngc0iW/BCrVvrr6zGYqXPnYH31u6YXAYiFh0+qxX5mybJw==",
"version": "8.73.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.73.0.tgz",
"integrity": "sha512-/pEf8Rc4Mjk+qJnY0uO1+Gadeal8uv50xpuic+srG2vIVatA0XxvWMUeMtFvs6OCHqftiQ7/+qH4aehG5stzIA==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/tsconfig-utils": "^8.72.2",
"@typescript-eslint/types": "^8.72.2",
"@typescript-eslint/tsconfig-utils": "^8.73.0",
"@typescript-eslint/types": "^8.73.0",
"debug": "^4.4.3"
},
"engines": {
@@ -2135,14 +1963,14 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
"version": "8.72.2",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.2.tgz",
"integrity": "sha512-iIoMJ6/8c1/QpFNyFjU0d1YzPco4MsZjQw0k3V+vfzNWAFmUmvhlyMoYEoYYDQZXc+J6Gi1X5XcxlzW2taIIGQ==",
"version": "8.73.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.73.0.tgz",
"integrity": "sha512-/TjD738Iq2rzj5z0ixVOi+TsvgjAzZPLPaH1yWdDBytR/HTR5gMpyYWZeCe5WTQZLwk3ho8AV7U3muoQCRtXBQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/types": "8.72.2",
"@typescript-eslint/visitor-keys": "8.72.2"
"@typescript-eslint/types": "8.73.0",
"@typescript-eslint/visitor-keys": "8.73.0"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -2153,9 +1981,9 @@
}
},
"node_modules/@typescript-eslint/tsconfig-utils": {
"version": "8.72.2",
"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.2.tgz",
"integrity": "sha512-+h3iCgZXuTNtoLXcnnjP12ZUHLMqoUcIHPfQrFEXTUqvb9dF8QK9b5nv5VtSo5fLkdHuks8ehbTzZj3rImAm9w==",
"version": "8.73.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.73.0.tgz",
"integrity": "sha512-lmtCFOfYaJfpqZywGuXi4FpNtE+NQ+YLe3T0K9rtEDcW8ZuGWvfI++pj8r05sYMI8vWT2CYK4rWyedmD6Rp4og==",
"dev": true,
"license": "MIT",
"engines": {
@@ -2170,9 +1998,9 @@
}
},
"node_modules/@typescript-eslint/types": {
"version": "8.72.2",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.2.tgz",
"integrity": "sha512-Xfn37OLZx03+PCU7qWx9DTv2FCRh1E6fk2+wONeNY15HXIwtcwuveaSwVpGAUptkNmPQegRxW5JyRel9T7wrog==",
"version": "8.73.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.73.0.tgz",
"integrity": "sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==",
"dev": true,
"license": "MIT",
"engines": {
@@ -2184,18 +2012,18 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
"version": "8.72.2",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.2.tgz",
"integrity": "sha512-pQEGqIK/cqEvKivVWaFLYpe7XYejFxfuAOi4mu1oAWFvIo36aRHI9esRFTUxcIy/z8N482RJyH+LpZB0ZIU7Ow==",
"version": "8.73.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz",
"integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/project-service": "8.72.2",
"@typescript-eslint/tsconfig-utils": "8.72.2",
"@typescript-eslint/types": "8.72.2",
"@typescript-eslint/visitor-keys": "8.72.2",
"@typescript-eslint/project-service": "8.73.0",
"@typescript-eslint/tsconfig-utils": "8.73.0",
"@typescript-eslint/types": "8.73.0",
"@typescript-eslint/visitor-keys": "8.73.0",
"debug": "^4.4.3",
"minimatch": "^10.2.2",
"minimatch": "^11.0.1",
"semver": "^7.7.3",
"tinyglobby": "^0.2.15",
"ts-api-utils": "^2.5.0"
@@ -2208,17 +2036,23 @@
"url": "https://opencollective.com/typescript-eslint"
},
"peerDependencies": {
"@typescript/native": "npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev",
"typescript": ">=4.8.4 <6.1.0"
},
"peerDependenciesMeta": {
"@typescript/native": {
"optional": true
}
}
},
"node_modules/@typescript-eslint/visitor-keys": {
"version": "8.72.2",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.2.tgz",
"integrity": "sha512-NAGrjn0Pitjqzq/GkgMC4kBYm233PQ8GffyQ9+kTA3AlNQYEzOf25EIM02BAHZv5FRJSpHpJk+OGUxVkOB93GQ==",
"version": "8.73.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.73.0.tgz",
"integrity": "sha512-k4lsFVpRZICbltkIEEH4hZRkwXkqDF1GHBpClKQOHQY+RkoZAAuyc1ci3I6p+CB6v3U4jaHIUshc4RzzQXZWLg==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/types": "8.72.2",
"@typescript-eslint/types": "8.73.0",
"eslint-visitor-keys": "^5.0.0"
},
"engines": {
@@ -2935,13 +2769,6 @@
"node": ">=22.1.0"
}
},
"node_modules/colord": {
"version": "2.13.0",
"resolved": "https://registry.npmjs.org/colord/-/colord-2.13.0.tgz",
"integrity": "sha512-2g8RPH6UvoD1ZXYmccAuo0zfMw4mxqzXbeToeVoMSm6na0QEDXggahcZdlTFnFdahlV3I158ipRb2AIvCcwiAQ==",
"dev": true,
"license": "MIT"
},
"node_modules/combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
@@ -2967,37 +2794,6 @@
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
"license": "MIT"
},
"node_modules/cosmiconfig": {
"version": "10.0.1",
"resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-10.0.1.tgz",
"integrity": "sha512-/zvGoYn0y27QTBmK+0B+oPdEPC4fKGUmJsMTQbDjqph00TrkqfVFW/M+C6ya54sYCgHC6QCwK/mI6djt8cEGHQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"env-paths": "^2.2.1",
"js-yaml": "^5.4.1"
},
"engines": {
"node": "^22.18 || >= 24"
},
"funding": {
"url": "https://github.com/sponsors/d-fischer"
}
},
"node_modules/css-tree": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz",
"integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==",
"dev": true,
"license": "MIT",
"dependencies": {
"mdn-data": "2.27.1",
"source-map-js": "^1.2.1"
},
"engines": {
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
}
},
"node_modules/csstype": {
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
@@ -3092,67 +2888,6 @@
"integrity": "sha512-R0bRerYzy/EZP6QzD3Hkl6JjUDA1Mnn+pd928w0nWjPzihnbAR6dcjGJGiRyznj5E4S1duEKzWrTqw02DPcdzg==",
"license": "BSD-2-Clause"
},
"node_modules/dom-serializer": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
"integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"domelementtype": "^2.3.0",
"domhandler": "^5.0.2",
"entities": "^4.2.0"
},
"funding": {
"url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
}
},
"node_modules/dom-serializer/node_modules/entities": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
"dev": true,
"license": "BSD-2-Clause",
"peer": true,
"engines": {
"node": ">=0.12"
},
"funding": {
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
"node_modules/domelementtype": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",
"integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/fb55"
}
],
"license": "BSD-2-Clause",
"peer": true
},
"node_modules/domhandler": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz",
"integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==",
"dev": true,
"license": "BSD-2-Clause",
"peer": true,
"dependencies": {
"domelementtype": "^2.3.0"
},
"engines": {
"node": ">= 4"
},
"funding": {
"url": "https://github.com/fb55/domhandler?sponsor=1"
}
},
"node_modules/dompurify": {
"version": "3.4.18",
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.18.tgz",
@@ -3162,22 +2897,6 @@
"@types/trusted-types": "^2.0.7"
}
},
"node_modules/domutils": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz",
"integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==",
"dev": true,
"license": "BSD-2-Clause",
"peer": true,
"dependencies": {
"dom-serializer": "^2.0.0",
"domelementtype": "^2.3.0",
"domhandler": "^5.0.3"
},
"funding": {
"url": "https://github.com/fb55/domutils?sponsor=1"
}
},
"node_modules/duck": {
"version": "0.1.12",
"resolved": "https://registry.npmjs.org/duck/-/duck-0.1.12.tgz",
@@ -3214,16 +2933,6 @@
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
"node_modules/env-paths": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
"integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/es-define-property": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
@@ -3617,41 +3326,6 @@
"node": "^22.13.0 || >=24.0.0"
}
},
"node_modules/htmlparser2": {
"version": "9.1.0",
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-9.1.0.tgz",
"integrity": "sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==",
"dev": true,
"funding": [
"https://github.com/fb55/htmlparser2?sponsor=1",
{
"type": "github",
"url": "https://github.com/sponsors/fb55"
}
],
"license": "MIT",
"peer": true,
"dependencies": {
"domelementtype": "^2.3.0",
"domhandler": "^5.0.3",
"domutils": "^3.1.0",
"entities": "^4.5.0"
}
},
"node_modules/htmlparser2/node_modules/entities": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
"dev": true,
"license": "BSD-2-Clause",
"peer": true,
"engines": {
"node": ">=0.12"
},
"funding": {
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
"node_modules/https-proxy-agent": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
@@ -3666,33 +3340,12 @@
"node": ">= 6"
}
},
"node_modules/ignore": {
"version": "7.0.14",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz",
"integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 4"
}
},
"node_modules/immediate": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
"integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",
"license": "MIT"
},
"node_modules/import-meta-resolve": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz",
"integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==",
"dev": true,
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
@@ -3750,12 +3403,11 @@
"license": "MIT"
},
"node_modules/js-tokens": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",
"integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==",
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz",
"integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==",
"dev": true,
"license": "MIT",
"peer": true
"license": "MIT"
},
"node_modules/js-yaml": {
"version": "5.5.0",
@@ -4265,9 +3917,9 @@
}
},
"node_modules/marked": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/marked/-/marked-18.2.0.tgz",
"integrity": "sha512-KaeL+tAbtvI930q7HE2PN5lYXYdT8EiSmxHlN6F3rsfb57wd5mp5W5TLazpdj4inTQBJdgjYwbs40W/0VUGU+Q==",
"version": "18.2.1",
"resolved": "https://registry.npmjs.org/marked/-/marked-18.2.1.tgz",
"integrity": "sha512-ii4bxCTCqqwpT86XZWgJNs+ZnAIZksmLGYMViWA7PDIXYIeNo1x6cDdX3JOip9NM/cI6p8z57FxliACboTruMA==",
"license": "MIT",
"bin": {
"marked": "bin/marked.js"
@@ -4286,13 +3938,6 @@
"node": ">= 0.4"
}
},
"node_modules/mdn-data": {
"version": "2.27.1",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz",
"integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",
"dev": true,
"license": "CC0-1.0"
},
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
@@ -4317,9 +3962,9 @@
}
},
"node_modules/minimatch": {
"version": "11.0.8",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz",
"integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==",
"version": "11.0.9",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
"integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
@@ -4586,72 +4231,6 @@
"node": "^10 || ^12 || >=14"
}
},
"node_modules/postcss-html": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/postcss-html/-/postcss-html-2.0.1.tgz",
"integrity": "sha512-FqutI3u6D7j28ZgviEFjGCbId174THaVxFAMe/yd6Y/+BSQidYYh2nRCxFk8btwEV64f3TvfNz7ureGnkzqtmA==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"htmlparser2": "^9.1.0",
"js-tokens": "^9.0.0",
"postcss-safe-parser": "^7.0.1"
},
"engines": {
"node": "^22.12 || >=24"
},
"peerDependencies": {
"postcss": "^8.5.0"
}
},
"node_modules/postcss-safe-parser": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.1.0.tgz",
"integrity": "sha512-1WzZxRLaAFwEh6Do+zyGpjWV3nGJNxxhuh7Ubu/q1ICImMgZJnLwhoaEpRbG4pJppp2Y1ncL9ffA2f+LhrefQg==",
"dev": true,
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/postcss-safe-parser"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"license": "MIT",
"engines": {
"node": ">=18.0"
},
"peerDependencies": {
"postcss": "^8.4.31"
}
},
"node_modules/postcss-selector-parser": {
"version": "7.2.1",
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.2.1.tgz",
"integrity": "sha512-GwxlMgTTXwIom+ebC7an3k6RaJDwklRQQnfiXsLPGicu8FYV/k/+1/9YY2OU2+r938H2t4X0TDxoif+HP2rjzQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"util-deprecate": "^1.0.2"
},
"engines": {
"node": ">=4"
}
},
"node_modules/postcss-value-parser": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
"dev": true,
"license": "MIT"
},
"node_modules/process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -4816,19 +4395,6 @@
"integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==",
"license": "MIT"
},
"node_modules/signal-exit": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
"dev": true,
"license": "ISC",
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/source-map-js": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
@@ -4854,172 +4420,6 @@
"safe-buffer": "~5.1.0"
}
},
"node_modules/stylelint": {
"version": "18.0.0",
"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-18.0.0.tgz",
"integrity": "sha512-kI10GsHXQvsH/AcklVZdQgwDuxtHi+A+h1Ujzd7h9LDf3e5jQiLQkWFlPtpynX3E6oVWHG1wo9v6dL0Mr+nnSA==",
"dev": true,
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/stylelint"
},
{
"type": "github",
"url": "https://github.com/sponsors/stylelint"
}
],
"license": "MIT",
"dependencies": {
"@csstools/css-calc": "^3.4.3",
"@csstools/css-parser-algorithms": "^4.0.2",
"@csstools/css-syntax-patches-for-csstree": "^1.1.15",
"@csstools/css-tokenizer": "^4.0.2",
"@csstools/media-query-list-parser": "^5.0.2",
"@csstools/selector-resolve-nested": "^4.0.2",
"@csstools/selector-specificity": "^6.0.1",
"colord": "^2.10.0",
"cosmiconfig": "^10.0.1",
"css-tree": "^3.2.1",
"ignore": "^7.0.14",
"import-meta-resolve": "^4.2.0",
"picomatch": "^4.0.7",
"postcss": "^8.5.31",
"postcss-safe-parser": "^7.1.0",
"postcss-selector-parser": "^7.1.7",
"postcss-value-parser": "^4.2.0",
"tinyglobby": "^0.2.17",
"write-file-atomic": "^8.0.0"
},
"bin": {
"stylelint": "bin/stylelint.mjs"
},
"engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
}
},
"node_modules/stylelint-config-html": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-html/-/stylelint-config-html-2.0.0.tgz",
"integrity": "sha512-Lk1NPEdUxzHkPv3ehktjpiOk4MPaqQ3H8fkvhxdWlQpaZCm9ze0SoMbRQLqkUxEMfPE1G9/x968uxm/+d2njoA==",
"dev": true,
"license": "MIT",
"peer": true,
"engines": {
"node": "^22.12 || >=24"
},
"funding": {
"url": "https://github.com/sponsors/ota-meshi"
},
"peerDependencies": {
"postcss-html": "^2.0.0",
"stylelint": ">=16.0.0"
}
},
"node_modules/stylelint-config-recommended": {
"version": "19.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-19.0.0.tgz",
"integrity": "sha512-Y15XB19RManqBOpbRC42tF8R/Hfe314xYLzedRlnnYxYzZ0777RakDQIGcqYfrz9jWGoVyjaGTdpSl9F+roOOw==",
"dev": true,
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/stylelint"
},
{
"type": "github",
"url": "https://github.com/sponsors/stylelint"
}
],
"license": "MIT",
"engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
},
"peerDependencies": {
"stylelint": "^18.0.0"
}
},
"node_modules/stylelint-config-recommended-vue": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended-vue/-/stylelint-config-recommended-vue-2.0.0.tgz",
"integrity": "sha512-SrGBfxgX+CmxRoFOl6HHhfKrp+6YvGnuiHj/N+/deI310eGNhix8aZOtPHG+OeqB6+5Si5BbjsZiC+kULUO1DQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"semver": "^7.3.5"
},
"engines": {
"node": "^22.12 || >=24"
},
"funding": {
"url": "https://github.com/sponsors/ota-meshi"
},
"peerDependencies": {
"postcss-html": "^2.0.0",
"stylelint": ">=16.0.0",
"stylelint-config-html": ">=2.0.0",
"stylelint-config-recommended": ">=14.0.0",
"stylelint-config-recommended-scss": ">=14.0.0"
},
"peerDependenciesMeta": {
"stylelint-config-recommended-scss": {
"optional": true
}
}
},
"node_modules/stylelint-config-standard": {
"version": "41.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-41.0.0.tgz",
"integrity": "sha512-EJIvMOMARieBOLhw2yzN7BaVFiIY2Ex8CkbXahxP6tQZK41+N8OVUo57Uvx9iTr862h+thqDoDH7vQbeth1ryg==",
"dev": true,
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/stylelint"
},
{
"type": "github",
"url": "https://github.com/sponsors/stylelint"
}
],
"license": "MIT",
"dependencies": {
"stylelint-config-recommended": "^19.0.0"
},
"engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
},
"peerDependencies": {
"stylelint": "^18.0.0"
}
},
"node_modules/stylelint-config-standard-vue": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard-vue/-/stylelint-config-standard-vue-2.0.0.tgz",
"integrity": "sha512-JXHJVpIKusIS9AVJ7z82lN//2BG7N5dVs5+gzbGj51YLcJBp/B921XS2ymsrHNrQaBIiEo3oDK3gloAz0PMMeg==",
"dev": true,
"license": "MIT",
"engines": {
"node": "^22.12 || >=24"
},
"funding": {
"url": "https://github.com/sponsors/ota-meshi"
},
"peerDependencies": {
"postcss-html": "^2.0.0",
"stylelint": ">=16.0.0",
"stylelint-config-html": ">=2.0.0",
"stylelint-config-recommended-vue": ">=2.0.0",
"stylelint-config-standard": ">=36.0.0",
"stylelint-config-standard-scss": ">=13.0.0"
},
"peerDependenciesMeta": {
"stylelint-config-standard-scss": {
"optional": true
}
}
},
"node_modules/tar-mini": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/tar-mini/-/tar-mini-0.2.0.tgz",
@@ -5776,19 +5176,6 @@
"node": ">=20.11"
}
},
"node_modules/write-file-atomic": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-8.0.0.tgz",
"integrity": "sha512-dYwyZredl67GyLLIHJnRM3h2PcOmN5SkcgC7eM5DPDEOEl6dLFqVrMg3F1Ea32usj4VSVZtd2H4MtKTNOf6nPg==",
"dev": true,
"license": "ISC",
"dependencies": {
"signal-exit": "^4.0.1"
},
"engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
}
},
"node_modules/xml-name-validator": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
-7
View File
@@ -15,12 +15,9 @@
"typecheck": "vue-tsc --build",
"lint": "biome check && npm run i18n:check",
"lint:fix": "biome check --write",
"lint:biome": "biome check",
"format": "biome format --write",
"i18n:check": "node scripts/i18n/index.ts check",
"i18n:check:strict": "node scripts/i18n/index.ts check --strict",
"lint:css": "stylelint \"**/*.{css,vue}\"",
"lint:css:fix": "stylelint --fix \"**/*.{css,vue}\"",
"i18n:types": "node scripts/i18n/index.ts types",
"i18n:sync": "node scripts/i18n/index.ts sync",
"i18n:cleanup": "node scripts/i18n/index.ts sync --cleanup",
@@ -49,7 +46,6 @@
"vue-router": "^5.5.1"
},
"overrides": {
"stylelint-config-recommended": "^19.0.0",
"minimatch": "^11.0.8",
"@xmldom/xmldom": "^0.8.15",
"mammoth": {
@@ -70,9 +66,6 @@
"esbuild": "^0.28.2",
"fs-extra": "^11.4.1",
"jsdom": "^31.0.1",
"stylelint": "^18.0.0",
"stylelint-config-standard": "^41.0.0",
"stylelint-config-standard-vue": "^2.0.0",
"typescript": "^6.0.3",
"vite": "^8.3.8",
"vite-plugin-checker": "^1.0.0",
+204 -198
View File
@@ -11,13 +11,13 @@
/* -------------------------------------------------------------------------- */
.loader {
box-sizing: border-box;
margin: 0 auto;
border: none;
overflow: visible;
position: relative;
display: block;
border-radius: 50%;
box-sizing: border-box;
margin: 0 auto;
border: none;
overflow: visible;
position: relative;
display: block;
border-radius: 50%;
}
/* -------------------------------------------------------------------------- */
@@ -26,33 +26,33 @@
/* -------------------------------------------------------------------------- */
.loader__comet {
pointer-events: none;
position: absolute;
inset: 0;
display: block;
direction: ltr;
/* The concrete fallback keeps the spinner visible before the app stylesheet loads,
pointer-events: none;
position: absolute;
inset: 0;
display: block;
direction: ltr;
/* The concrete fallback keeps the spinner visible before the app stylesheet loads,
when neither --spinner-color nor --primaryColor is defined (initial index.html shell). */
background-color: var(--spinner-color, var(--primaryColor, #2196f3));
/* Mirrored annulus-sector polygon, 120° sweep, viewBox 0 0 100 100 */
--fb-loader-taper-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M57.47%2C7.65%20L54.99%2C7.29%20L52.50%2C7.07%20L50.00%2C7.00%20L47.50%2C7.07%20L45.01%2C7.29%20L42.53%2C7.65%20L40.08%2C8.16%20L37.67%2C8.81%20L35.29%2C9.59%20L32.97%2C10.52%20L30.70%2C11.57%20L28.50%2C12.76%20L26.37%2C14.07%20L24.32%2C15.51%20L22.36%2C17.06%20L20.49%2C18.72%20L18.72%2C20.49%20L17.06%2C22.36%20L15.51%2C24.32%20L14.07%2C26.37%20L12.76%2C28.50%20L11.57%2C30.70%20L10.52%2C32.97%20L9.59%2C35.29%20L8.81%2C37.67%20L8.16%2C40.08%20L7.65%2C42.53%20L7.29%2C45.01%20L7.07%2C47.50%20L7.00%2C50.00%20L7.07%2C52.50%20L7.29%2C54.99%20L7.65%2C57.47%20L8.16%2C59.92%20L8.81%2C62.33%20L9.59%2C64.71%20L10.16%2C64.50%20L9.56%2C62.11%20L9.12%2C59.69%20L8.81%2C57.26%20L8.65%2C54.83%20L8.63%2C52.41%20L8.75%2C50.00%20L9.01%2C47.61%20L9.41%2C45.26%20L9.94%2C42.94%20L10.61%2C40.66%20L11.40%2C38.44%20L12.32%2C36.28%20L13.36%2C34.19%20L14.51%2C32.18%20L15.77%2C30.24%20L17.14%2C28.39%20L18.60%2C26.63%20L20.16%2C24.96%20L21.81%2C23.40%20L23.53%2C21.95%20L25.33%2C20.60%20L27.20%2C19.37%20L29.12%2C18.26%20L31.10%2C17.26%20L33.12%2C16.39%20L35.18%2C15.64%20L37.27%2C15.02%20L39.38%2C14.52%20L41.50%2C14.15%20L43.64%2C13.91%20L45.77%2C13.79%20L47.89%2C13.79%20L50.00%2C13.92%20L52.09%2C14.18%20L54.14%2C14.55%20L56.16%2C15.04Z%22%2F%3E%3C%2Fsvg%3E");
background-color: var(--spinner-color, var(--primaryColor, #2196f3));
/* Mirrored annulus-sector polygon, 120° sweep, viewBox 0 0 100 100 */
--fb-loader-taper-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M57.47%2C7.65%20L54.99%2C7.29%20L52.50%2C7.07%20L50.00%2C7.00%20L47.50%2C7.07%20L45.01%2C7.29%20L42.53%2C7.65%20L40.08%2C8.16%20L37.67%2C8.81%20L35.29%2C9.59%20L32.97%2C10.52%20L30.70%2C11.57%20L28.50%2C12.76%20L26.37%2C14.07%20L24.32%2C15.51%20L22.36%2C17.06%20L20.49%2C18.72%20L18.72%2C20.49%20L17.06%2C22.36%20L15.51%2C24.32%20L14.07%2C26.37%20L12.76%2C28.50%20L11.57%2C30.70%20L10.52%2C32.97%20L9.59%2C35.29%20L8.81%2C37.67%20L8.16%2C40.08%20L7.65%2C42.53%20L7.29%2C45.01%20L7.07%2C47.50%20L7.00%2C50.00%20L7.07%2C52.50%20L7.29%2C54.99%20L7.65%2C57.47%20L8.16%2C59.92%20L8.81%2C62.33%20L9.59%2C64.71%20L10.16%2C64.50%20L9.56%2C62.11%20L9.12%2C59.69%20L8.81%2C57.26%20L8.65%2C54.83%20L8.63%2C52.41%20L8.75%2C50.00%20L9.01%2C47.61%20L9.41%2C45.26%20L9.94%2C42.94%20L10.61%2C40.66%20L11.40%2C38.44%20L12.32%2C36.28%20L13.36%2C34.19%20L14.51%2C32.18%20L15.77%2C30.24%20L17.14%2C28.39%20L18.60%2C26.63%20L20.16%2C24.96%20L21.81%2C23.40%20L23.53%2C21.95%20L25.33%2C20.60%20L27.20%2C19.37%20L29.12%2C18.26%20L31.10%2C17.26%20L33.12%2C16.39%20L35.18%2C15.64%20L37.27%2C15.02%20L39.38%2C14.52%20L41.50%2C14.15%20L43.64%2C13.91%20L45.77%2C13.79%20L47.89%2C13.79%20L50.00%2C13.92%20L52.09%2C14.18%20L54.14%2C14.55%20L56.16%2C15.04Z%22%2F%3E%3C%2Fsvg%3E");
mask-image: var(--fb-loader-taper-mask);
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
transform-origin: 50% 50%;
transform-box: fill-box;
animation: fb-spinner-rotation var(--animation-duration, 1s) linear infinite;
mask-image: var(--fb-loader-taper-mask);
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
transform-origin: 50% 50%;
transform-box: fill-box;
animation: fb-spinner-rotation var(--animation-duration, 1s) linear infinite;
}
@keyframes fb-spinner-rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* -------------------------------------------------------------------------- */
@@ -60,23 +60,23 @@
/* -------------------------------------------------------------------------- */
.loader--xsmall {
width: 12px;
height: 12px;
width: 12px;
height: 12px;
}
.loader--small {
width: 24px;
height: 24px;
width: 24px;
height: 24px;
}
.loader--medium {
width: 48px;
height: 48px;
width: 48px;
height: 48px;
}
.loader--large {
width: 96px;
height: 96px;
width: 96px;
height: 96px;
}
/* -------------------------------------------------------------------------- */
@@ -84,59 +84,59 @@
/* -------------------------------------------------------------------------- */
body > .loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
transition: 0.1s ease opacity;
pointer-events: none;
border: none;
animation: none;
border-radius: 0;
margin: 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
transition: 0.1s ease opacity;
pointer-events: none;
border: none;
animation: none;
border-radius: 0;
margin: 0;
}
body > .loader.loader--xsmall,
body > .loader.loader--small,
body > .loader.loader--medium,
body > .loader.loader--large {
width: 100%;
height: 100%;
width: 100%;
height: 100%;
}
body > .loader .loader__comet {
position: relative;
inset: auto;
flex-shrink: 0;
position: relative;
inset: auto;
flex-shrink: 0;
}
body > .loader.loader--xsmall .loader__comet {
width: 12px;
height: 12px;
width: 12px;
height: 12px;
}
body > .loader.loader--small .loader__comet {
width: 24px;
height: 24px;
width: 24px;
height: 24px;
}
body > .loader.loader--medium .loader__comet {
width: 48px;
height: 48px;
width: 48px;
height: 48px;
}
body > .loader.loader--large .loader__comet {
width: 96px;
height: 96px;
width: 96px;
height: 96px;
}
body > .loader.done {
opacity: 0;
opacity: 0;
}
/* -------------------------------------------------------------------------- */
@@ -144,21 +144,21 @@ body > .loader.done {
/* -------------------------------------------------------------------------- */
.loader--pulse {
border: none;
background: var(--spinner-color, var(--primaryColor, #2196f3));
animation: fb-pulse-scale var(--animation-duration, 0.75s) ease infinite;
border: none;
background: var(--spinner-color, var(--primaryColor, #2196f3));
animation: fb-pulse-scale var(--animation-duration, 0.75s) ease infinite;
}
@keyframes fb-pulse-scale {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(0.95);
opacity: 0.8;
}
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(0.95);
opacity: 0.8;
}
}
/* -------------------------------------------------------------------------- */
@@ -166,86 +166,88 @@ body > .loader.done {
/* -------------------------------------------------------------------------- */
.loader--bounce {
display: flex;
align-items: center;
justify-content: center;
gap: 0.3em;
border: none;
background: transparent;
animation: none;
display: flex;
align-items: center;
justify-content: center;
gap: 0.3em;
border: none;
background: transparent;
animation: none;
}
.loader--bounce::before,
.loader--bounce::after {
content: "";
width: 0.6em;
height: 0.6em;
/* The concrete fallback keeps the spinner visible before the app stylesheet loads,
content: "";
width: 0.6em;
height: 0.6em;
/* The concrete fallback keeps the spinner visible before the app stylesheet loads,
when neither --spinner-color nor --primaryColor is defined (initial index.html shell). */
background-color: var(--spinner-color, var(--primaryColor, #2196f3));
border-radius: 50%;
display: inline-block;
animation: fb-bounce-scale var(--animation-duration, 0.75s) infinite ease-in-out both;
background-color: var(--spinner-color, var(--primaryColor, #2196f3));
border-radius: 50%;
display: inline-block;
animation: fb-bounce-scale var(--animation-duration, 0.75s) infinite
ease-in-out both;
}
.loader--bounce::before {
animation-delay: -0.32s;
animation-delay: -0.32s;
}
.loader--bounce::after {
animation-delay: -0.16s;
animation-delay: -0.16s;
}
.loader--bounce .bounce-dot {
width: 0.6em;
height: 0.6em;
/* The concrete fallback keeps the spinner visible before the app stylesheet loads,
width: 0.6em;
height: 0.6em;
/* The concrete fallback keeps the spinner visible before the app stylesheet loads,
when neither --spinner-color nor --primaryColor is defined (initial index.html shell). */
background-color: var(--spinner-color, var(--primaryColor, #2196f3));
border-radius: 50%;
display: inline-block;
animation: fb-bounce-scale var(--animation-duration, 0.75s) infinite ease-in-out both;
background-color: var(--spinner-color, var(--primaryColor, #2196f3));
border-radius: 50%;
display: inline-block;
animation: fb-bounce-scale var(--animation-duration, 0.75s) infinite
ease-in-out both;
}
@keyframes fb-bounce-scale {
0%,
80%,
100% {
transform: scale(0);
opacity: 0.5;
}
40% {
transform: scale(1);
opacity: 1;
}
0%,
80%,
100% {
transform: scale(0);
opacity: 0.5;
}
40% {
transform: scale(1);
opacity: 1;
}
}
.loader--bounce.loader--xsmall::before,
.loader--bounce.loader--xsmall::after,
.loader--bounce.loader--xsmall .bounce-dot {
width: 0.3em;
height: 0.3em;
width: 0.3em;
height: 0.3em;
}
.loader--bounce.loader--small::before,
.loader--bounce.loader--small::after,
.loader--bounce.loader--small .bounce-dot {
width: 0.45em;
height: 0.45em;
width: 0.45em;
height: 0.45em;
}
.loader--bounce.loader--medium::before,
.loader--bounce.loader--medium::after,
.loader--bounce.loader--medium .bounce-dot {
width: 0.6em;
height: 0.6em;
width: 0.6em;
height: 0.6em;
}
.loader--bounce.loader--large::before,
.loader--bounce.loader--large::after,
.loader--bounce.loader--large .bounce-dot {
width: 0.9em;
height: 0.9em;
width: 0.9em;
height: 0.9em;
}
/* -------------------------------------------------------------------------- */
@@ -253,102 +255,106 @@ body > .loader.done {
/* -------------------------------------------------------------------------- */
.loader--placeholder {
display: flex;
flex-direction: column;
gap: 0.5em;
border: none;
animation: none;
width: auto;
height: auto;
border-radius: 0;
display: flex;
flex-direction: column;
gap: 0.5em;
border: none;
animation: none;
width: auto;
height: auto;
border-radius: 0;
}
.placeholder-item {
background-color: rgb(128 128 128 / 10%);
animation: fb-placeholder-ripple 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite,
fb-placeholder-bg-fade 2s ease-in-out infinite;
display: block;
border-radius: 0.25em;
margin: 0;
padding: 0;
transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
background-color: rgb(128 128 128 / 10%);
animation:
fb-placeholder-ripple 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite,
fb-placeholder-bg-fade 2s ease-in-out infinite;
display: block;
border-radius: 0.25em;
margin: 0;
padding: 0;
transition:
transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.placeholder-item-1 {
animation-delay: 0s;
animation-delay: 0s;
}
.placeholder-item-2 {
animation-delay: 0.36s;
animation-delay: 0.36s;
}
.placeholder-item-3 {
animation-delay: 0.72s;
animation-delay: 0.72s;
}
@keyframes fb-placeholder-ripple {
0% {
transform: scale(1);
box-shadow: none;
opacity: 0.3;
}
25% {
transform: scale(1.07);
box-shadow: inset 0 -3em 3em rgb(172 172 172 / 21.1%),
0 0 0 2px var(--alt-background), 0 4px 12px rgb(0 0 0 / 15%);
opacity: 0.6;
}
50% {
transform: scale(0.97);
box-shadow: none;
opacity: 0.3;
}
100% {
transform: scale(1);
box-shadow: none;
opacity: 0.3;
}
0% {
transform: scale(1);
box-shadow: none;
opacity: 0.3;
}
25% {
transform: scale(1.07);
box-shadow:
inset 0 -3em 3em rgb(172 172 172 / 21.1%),
0 0 0 2px var(--alt-background),
0 4px 12px rgb(0 0 0 / 15%);
opacity: 0.6;
}
50% {
transform: scale(0.97);
box-shadow: none;
opacity: 0.3;
}
100% {
transform: scale(1);
box-shadow: none;
opacity: 0.3;
}
}
@keyframes fb-placeholder-bg-fade {
0% {
background-color: rgb(128 128 128 / 10%);
}
50% {
background-color: rgb(128 128 128 / 40%);
}
100% {
background-color: rgb(128 128 128 / 10%);
}
0% {
background-color: rgb(128 128 128 / 10%);
}
50% {
background-color: rgb(128 128 128 / 40%);
}
100% {
background-color: rgb(128 128 128 / 10%);
}
}
.loader--placeholder.loader--xsmall .placeholder-item {
width: 30px;
height: 7.5px;
min-width: 30px;
min-height: 7.5px;
width: 30px;
height: 7.5px;
min-width: 30px;
min-height: 7.5px;
}
.loader--placeholder.loader--small .placeholder-item {
width: 150px;
height: 12.5px;
min-width: 150px;
min-height: 12.5px;
width: 150px;
height: 12.5px;
min-width: 150px;
min-height: 12.5px;
}
.loader--placeholder.loader--medium .placeholder-item {
width: 200px;
height: 25px;
min-width: 200px;
min-height: 25px;
width: 200px;
height: 25px;
min-width: 200px;
min-height: 25px;
}
.loader--placeholder.loader--large .placeholder-item {
width: 400px;
height: 50px;
min-width: 400px;
min-height: 50px;
width: 400px;
height: 50px;
min-width: 400px;
min-height: 50px;
}
/* -------------------------------------------------------------------------- */
@@ -356,10 +362,10 @@ body > .loader.done {
/* -------------------------------------------------------------------------- */
@media (width <= 768px) {
.loader--placeholder.loader--large .placeholder-item {
width: 100%;
min-width: auto;
}
.loader--placeholder.loader--large .placeholder-item {
width: 100%;
min-width: auto;
}
}
/* -------------------------------------------------------------------------- */
@@ -369,12 +375,12 @@ body > .loader.done {
/* Honor the OS "reduce motion" preference: stop the rotation, pulse, bounce,
and placeholder shimmer. The spinner stays visible as a static shape. */
@media (prefers-reduced-motion: reduce) {
.loader__comet,
.loader--pulse,
.loader--bounce::before,
.loader--bounce::after,
.loader--bounce .bounce-dot,
.placeholder-item {
animation: none;
}
.loader__comet,
.loader--pulse,
.loader--bounce::before,
.loader--bounce::after,
.loader--bounce .bounce-dot,
.placeholder-item {
animation: none;
}
}
+3 -4
View File
@@ -1,4 +1,3 @@
/* `--background` is intentionally set here as a placeholder for stylelint */
:root {
--background: #f5f5f5;
--alt-background: #ddd;
@@ -12,10 +11,10 @@
}
.dark-mode {
--background: #141D24;
--background: #141d24;
--alt-background: #283136;
--surfacePrimary: #20292F;
--surfaceSecondary: #3A4147;
--surfacePrimary: #20292f;
--surfaceSecondary: #3a4147;
--divider: rgb(255 255 255 / 12%);
--textPrimary: rgb(255 255 255 / 87%);
--textSecondary: rgb(255 255 255 / 60%);
+10
View File
@@ -0,0 +1,10 @@
language css;
`$prop: $value` where {
$prop <: r"^(?:-ms-.*|-moz-osx-font-smoothing)$",
register_diagnostic(
span = $prop,
message = "Don't use vendor legacy properties",
severity = "warn"
)
}
+1 -1
View File
@@ -93,7 +93,7 @@ export function getDirectoryMetadataMap(path: string, { source }: { source?: str
path,
async () => {
const payload = await fetchMetadata(scope, path);
const withMetadata = (payload.items || []).filter((i) => i.metadata);
const withMetadata = (payload.items ?? []).filter((i) => i.metadata);
return new Map(withMetadata.map((i) => [i.name, i.metadata as object]));
},
async (name) => {
+16 -16
View File
@@ -396,7 +396,7 @@ function totalFromContentRange(headerVal) {
if (!headerVal || typeof headerVal !== 'string') return 0
const idx = headerVal.lastIndexOf('/')
if (idx === -1) return 0
const n = parseInt(headerVal.slice(idx + 1), 10)
const n = Number.parseInt(headerVal.slice(idx + 1), 10)
return Number.isFinite(n) ? n : 0
}
@@ -414,7 +414,7 @@ async function resolveDownloadContentLength(url) {
token = res.headers.get('X-Archive-Token')
const cl = res.headers.get('Content-Length')
if (cl) {
const n = parseInt(cl, 10)
const n = Number.parseInt(cl, 10)
if (Number.isFinite(n) && n > 0) {
return { size: n, token }
}
@@ -438,7 +438,7 @@ async function resolveDownloadContentLength(url) {
if (res.ok) {
const cl = res.headers.get('Content-Length')
if (cl) {
const n = parseInt(cl, 10)
const n = Number.parseInt(cl, 10)
if (Number.isFinite(n) && n > 0) {
cancelBody()
return { size: n, token }
@@ -466,7 +466,7 @@ function archiveDisplayFileName(format, files) {
if (first?.path) {
const parts = first.path.split('/').filter(Boolean)
if (parts.length >= 2) {
return `${parts[parts.length - 2]}${ext}`
return `${parts.at(-2)}${ext}`
}
if (parts.length === 1) {
return `${parts[0]}${ext}`
@@ -496,8 +496,8 @@ async function chunkedRangeDownloadToBlob(
let totalSize = fileSize
while (offset < totalSize) {
const download = downloadManager.findById(downloadId)
if (download?.status === 'cancelled') {
const downloadItem = downloadManager.findById(downloadId)
if (downloadItem?.status === 'cancelled') {
return null
}
@@ -536,7 +536,7 @@ async function chunkedRangeDownloadToBlob(
} else if (response.status === 200) {
const clFull = response.headers.get('Content-Length')
if (clFull) {
const n = parseInt(clFull, 10)
const n = Number.parseInt(clFull, 10)
if (Number.isFinite(n) && n > 0) {
totalSize = n
const dl = downloadManager.findById(downloadId)
@@ -550,7 +550,7 @@ async function chunkedRangeDownloadToBlob(
const cl = response.headers.get('Content-Length')
let expectedChunkSize = end - offset + 1
if (cl) {
const n = parseInt(cl, 10)
const n = Number.parseInt(cl, 10)
if (Number.isFinite(n) && n > 0) {
expectedChunkSize = n
}
@@ -586,8 +586,8 @@ async function chunkedRangeDownloadToBlob(
}
}
} catch (readError) {
const download = downloadManager.findById(downloadId)
if (readError.name === 'AbortError' || (download?.status === 'cancelled')) {
const currentDownload = downloadManager.findById(downloadId)
if (readError.name === 'AbortError' || (currentDownload?.status === 'cancelled')) {
downloadManager.setStatus(downloadId, 'cancelled')
return null
}
@@ -689,8 +689,8 @@ async function downloadChunkedArchive(url, format, files, filePaths, source, sha
URL.revokeObjectURL(blobUrl)
}, 100)
} catch (error) {
const download = downloadManager.findById(downloadId)
if (error.name === 'AbortError' || (download?.status === 'cancelled')) {
const downloadItem = downloadManager.findById(downloadId)
if (error.name === 'AbortError' || (downloadItem?.status === 'cancelled')) {
downloadManager.setStatus(downloadId, 'cancelled')
return
}
@@ -744,9 +744,9 @@ async function downloadChunked(file, shareHash = "") {
mutations.showPrompt({ name: 'download' })
}
const download = downloadManager.findById(downloadId)
const downloadItem = downloadManager.findById(downloadId)
const abortController = new AbortController()
download.abortController = abortController
downloadItem.abortController = abortController
try {
const blob = await chunkedRangeDownloadToBlob(
@@ -781,8 +781,8 @@ async function downloadChunked(file, shareHash = "") {
}, 100)
} catch (error) {
// Check if download was cancelled by user
const download = downloadManager.findById(downloadId);
if (error.name === 'AbortError' || (download?.status === "cancelled")) {
const currentDownload = downloadManager.findById(downloadId);
if (error.name === 'AbortError' || (currentDownload?.status === "cancelled")) {
downloadManager.setStatus(downloadId, "cancelled")
// Don't throw error or show notification for user-initiated cancellation
return;
+2 -2
View File
@@ -169,7 +169,7 @@ export default {
},
methods: {
updateGallerySize(event) {
const newValue = parseInt(event.target.value, 10);
const newValue = Number.parseInt(event.target.value, 10);
this.gallerySize = newValue;
},
commitGallerySize() {
@@ -278,7 +278,7 @@ export default {
.button {
padding: 0 0.5em;
font-size: 0.9em;
font-weight: bold;
font-weight: 700;
cursor: unset;
}
+3 -3
View File
@@ -675,7 +675,7 @@ export default {
};
// right half - ascending hz means x increases (center to right edge)
let lastXRight = -Infinity;
let lastXRight = Number.NEGATIVE_INFINITY;
for (const { hz, label } of visibleTicks) {
const x = hzToBarX(hz, halfCount);
if (x === null || x - lastXRight < 20) continue; // if too near on this side, skip
@@ -686,7 +686,7 @@ export default {
}
// left half - ascending hz means x decreases (center to left edge)
let lastXLeft = Infinity;
let lastXLeft = Number.POSITIVE_INFINITY;
for (const { hz, label } of visibleTicks) {
const x = hzToBarX(hz, 0);
if (x === null || lastXLeft - x < 20) continue;
@@ -864,7 +864,7 @@ export default {
.lyric-line.active {
opacity: 1;
font-weight: bold;
font-weight: 700;
color: var(--primaryColor);
font-size: 1.33rem;
animation: lyric-line-in 0.3s ease;
@@ -102,7 +102,7 @@ export default {
originalParts.shift();
encodedParts.shift();
}
if (originalParts[originalParts.length - 1] === "") {
if (originalParts.at(-1) === "") {
originalParts.pop();
encodedParts.pop();
}
@@ -309,10 +309,10 @@ export default {
mutations.showPrompt({
name: "replace-rename",
pinned: true,
confirm: (event, option) => {
confirm: (e, option) => {
const overwrite = option === "overwrite";
const rename = option === "rename";
event.preventDefault();
e.preventDefault();
mutations.closeTopPrompt();
void moveAction(overwrite, rename);
},
@@ -815,7 +815,7 @@ export default {
const p1 = event.targetTouches[0];
const p2 = event.targetTouches[1];
const touchDistance = Math.sqrt((p2.pageX - p1.pageX) ** 2 + (p2.pageY - p1.pageY) ** 2);
const touchDistance = Math.hypot(p2.pageX - p1.pageX, p2.pageY - p1.pageY);
if (!this.lastTouchDistance) {
this.lastTouchDistance = touchDistance;
+1 -1
View File
@@ -2,7 +2,7 @@
<div ref="root" class="card-content" aria-label="file-list-prompt">
<!-- Source Selection Dropdown (hidden when browsing a fixed source, e.g. user scope row) -->
<div v-if="!hidePathChrome && showSourceSelector" class="source-selector" style="margin-bottom: 1rem;">
<label for="destinationSource" style="display: block; margin-bottom: 0.5rem; font-weight: bold;">
<label for="destinationSource" style="display: block; margin-bottom: 0.5rem; font-weight: 700;">
{{ t("prompts.destinationSource") }}
</label>
<ExpandDropdown
+2 -2
View File
@@ -730,10 +730,10 @@ async function handleDrop(event: DragEvent, node: TreeNode) {
mutations.showPrompt({
name: 'replace-rename',
pinned: true,
confirm: async (event: Event, option: string) => {
confirm: async (e: Event, option: string) => {
const overwrite = option === 'overwrite';
const rename = option === 'rename';
event.preventDefault();
e.preventDefault();
mutations.closeTopPrompt();
try {
await performAction(overwrite, rename);
@@ -286,7 +286,6 @@ span {
/* Column widths are shared with the list/compact rows (see listing.css) so the
header lines up with the items and the name column gets the remaining space. */
/* stylelint-disable no-unknown-custom-properties -- defined in css/listing.css */
.desktop-view {
/* same right inset as the list/compact rows */
padding-right: var(--listing-col-gap);
@@ -339,7 +338,6 @@ span {
.desktop-view .duration {
width: var(--listing-col-duration);
}
/* stylelint-enable no-unknown-custom-properties */
i {
font-size: 1.2em;
@@ -358,6 +356,6 @@ p:hover i,
.active,
p:hover {
font-weight: bold;
font-weight: 700;
}
</style>
@@ -755,14 +755,14 @@ export default {
name: "replace-rename",
pinned: true,
/**
* @param {Event} event
* @param {Event} confirmEvent
* @param {string} option
*/
confirm: async (event, option) => {
confirm: async (confirmEvent, option) => {
const overwrite = option === "overwrite";
const rename = option === "rename";
event.preventDefault();
confirmEvent.preventDefault();
mutations.closeTopPrompt();
try {
await action(overwrite, rename);
+1 -1
View File
@@ -121,7 +121,7 @@ export default {
.share-info__box__header {
font-size: 1.2em;
font-weight: bold;
font-weight: 700;
text-align: center;
padding-bottom: 1em;
border-bottom: 1px solid var(--divider);
@@ -329,7 +329,7 @@ export default {
window.addEventListener("mousemove", this.handleGlobalMouseMove, true);
// Calculate 10em threshold in pixels
const emSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
const emSize = Number.parseFloat(getComputedStyle(document.documentElement).fontSize);
this.dragState.threshold = 10 * emSize;
this.updateNavigationEnabled();
@@ -726,7 +726,7 @@ export default {
if (!this.dragState.isDragging) {
// Calculate 10em threshold in pixels if not set
if (!this.dragState.threshold) {
const emSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
const emSize = Number.parseFloat(getComputedStyle(document.documentElement).fontSize);
this.dragState.threshold = 10 * emSize;
}
+1 -1
View File
@@ -184,7 +184,7 @@ function closeTopPrompt() {
function getItemName(path: string) {
const parts = path.split("/").filter(p => p);
return parts[parts.length - 1] || path;
return parts.at(-1) || path;
}
function getItemError(item: DeleteItem) {
+7 -7
View File
@@ -322,13 +322,13 @@ export default {
};
});
// Define the action function
const action = async (overwrite, rename) => {
const action = async (shouldOverwrite, shouldRename) => {
buttons.loading(this.operation);
let result;
if (getters.isShare()) {
result = await resourcesApi.moveCopyPublic(getters.shareHash(), itemsToProcess, this.operation, overwrite, rename);
result = await resourcesApi.moveCopyPublic(getters.shareHash(), itemsToProcess, this.operation, shouldOverwrite, shouldRename);
} else {
result = await resourcesApi.moveCopy(itemsToProcess, this.operation, overwrite, rename);
result = await resourcesApi.moveCopy(itemsToProcess, this.operation, shouldOverwrite, shouldRename);
}
return result; // Return the result to check for failures
};
@@ -362,16 +362,16 @@ export default {
operation: this.operation,
destSource: this.destSource,
},
confirm: async (event, option) => {
confirm: async (confirmEvent, option) => {
overwrite = option === "overwrite";
rename = option === "rename";
event.preventDefault();
confirmEvent.preventDefault();
try {
this.isLoading = true;
result = await action(overwrite, rename);
resolve(); // Resolve the promise if action succeeds
} catch (e) {
reject(e); // Reject the promise if an error occurs
} catch (err) {
reject(err); // Reject the promise if an error occurs
} finally {
this.isLoading = false;
}
+2 -2
View File
@@ -85,7 +85,7 @@ export default {
let fileExtension = "";
if (usesTemplate) {
const ext = getFileExtension(this.initialName);
fileName = this.initialName.substring(0, this.initialName.length - ext.length);
fileName = this.initialName.slice(0, this.initialName.length - ext.length);
fileExtension = removePrefix(ext, ".");
}
return {
@@ -317,7 +317,7 @@ export default {
}
.extension-separator {
font-weight: bold;
font-weight: 700;
}
.file-type-icon {
@@ -24,8 +24,8 @@
{{ $t("onlyoffice.documentKey") }}: {{ clientConfig.document.key }}<br/>
{{ $t("onlyoffice.fileType") }}: {{ clientConfig.document.fileType }}<br/>
{{ $t("onlyoffice.editMode") }}: {{ clientConfig.editorConfig ? clientConfig.editorConfig.mode : 'N/A' }}<br/>
{{ $t("onlyoffice.downloadURL") }}: {{ clientConfig.document.url ? `${clientConfig.document.url.substring(0, 80)}...` : 'N/A' }}<br/>
{{ $t("onlyoffice.callbackURL") }}: {{ clientConfig.editorConfig?.callbackUrl ? `${clientConfig.editorConfig.callbackUrl.substring(0, 80)}...` : 'N/A' }}<br/>
{{ $t("onlyoffice.downloadURL") }}: {{ clientConfig.document.url ? `${clientConfig.document.url.slice(0, 80)}...` : 'N/A' }}<br/>
{{ $t("onlyoffice.callbackURL") }}: {{ clientConfig.editorConfig?.callbackUrl ? `${clientConfig.editorConfig.callbackUrl.slice(0, 80)}...` : 'N/A' }}<br/>
<br/>
<strong>{{ $t("onlyoffice.networkFlow") }}:</strong><br/>
{{ $t("onlyoffice.browser") }} ({{ windowOrigin }}) ↔ {{ $t("onlyoffice.onlyOffice") }}: {{ onlyOfficeUrl }}<br/>
@@ -504,7 +504,7 @@ export default {
}
.debug-log-level {
font-weight: bold;
font-weight: 700;
}
.debug-log-timestamp {
+7 -7
View File
@@ -305,7 +305,7 @@ export default {
},
isTopmost(id) {
const allPrompts = this.prompts;
return allPrompts[allPrompts.length - 1]?.id === id;
return allPrompts.at(-1)?.id === id;
},
isDragging(id) {
return this.draggingIds.has(id);
@@ -524,11 +524,11 @@ export default {
if (!root) {
return null;
}
const buttons = root.querySelectorAll('.card-actions button');
const buttons = Array.from(root.querySelectorAll('.card-actions button'));
if (!buttons.length) {
return null;
}
const last = buttons[buttons.length - 1];
const last = buttons.at(-1);
if (last.disabled) {
return null;
}
@@ -601,8 +601,8 @@ export default {
});
this.draggingIds.add(id);
const move = (e) => this.onPointerMove(e, id, type);
const end = (e) => this.onPointerEnd(e, id, type, move, end);
const move = (moveEvent) => this.onPointerMove(moveEvent, id, type);
const end = (endEvent) => this.onPointerEnd(endEvent, id, type, move, end);
if (type === "mouse") {
window.addEventListener("mousemove", move);
@@ -684,8 +684,8 @@ export default {
clientY: pos.y,
};
const moveHandler = (e) => this.onResizeMove(e, type);
const endHandler = (e) => this.onResizeEnd(e, type, moveHandler, endHandler);
const moveHandler = (moveEvent) => this.onResizeMove(moveEvent, type);
const endHandler = (endEvent) => this.onResizeEnd(endEvent, type, moveHandler, endHandler);
if (type === 'mouse') {
window.addEventListener('mousemove', moveHandler);
+5 -5
View File
@@ -87,7 +87,7 @@ export default {
let fileExtension = "";
if (this.item.type !== 'directory') {
const ext = getFileExtension(this.item.name);
const filenamePrefix = this.item.name.substring(0, this.item.name.length - ext.length);
const filenamePrefix = this.item.name.slice(0, this.item.name.length - ext.length);
fileName = filenamePrefix;
fileExtension = removePrefix(ext, ".");
}
@@ -224,16 +224,16 @@ export default {
async submit() {
// remove trailing slashes
if (this.name.endsWith("/") || this.name.endsWith("\\")) {
this.name = this.name.substring(0, this.name.length - 1);
this.name = this.name.slice(0, -1);
}
if (!this.validation.valid || !this.canRename) return;
// Remove trailing slashes from the source path before calculating parent directory
let sourcePath = this.item.path;
while (sourcePath.endsWith("/") || sourcePath.endsWith("\\")) {
sourcePath = sourcePath.substring(0, sourcePath.length - 1);
sourcePath = sourcePath.slice(0, -1);
}
let newPath = sourcePath.substring(0, sourcePath.lastIndexOf("/"));
let newPath = sourcePath.slice(0, Math.max(0, sourcePath.lastIndexOf("/")));
newPath = `${newPath}/${this.name}`;
this.renaming = true;
try {
@@ -325,7 +325,7 @@ export default {
}
.extension-separator {
font-weight: bold;
font-weight: 700;
}
.file-type-icon {
+2 -2
View File
@@ -673,8 +673,8 @@ export default {
allowDelete: this.allowDelete,
allowCreate: this.allowCreate,
allowReplacements: this.allowReplacements,
maxBandwidth: this.maxBandwidth ? parseInt(this.maxBandwidth, 10) : 0,
downloadsLimit: this.downloadsLimit ? parseInt(this.downloadsLimit, 10) : 0,
maxBandwidth: this.maxBandwidth ? Number.parseInt(this.maxBandwidth, 10) : 0,
downloadsLimit: this.downloadsLimit ? Number.parseInt(this.downloadsLimit, 10) : 0,
quotaLimitBytes: this.quotaLimitBytes,
perUserDownloadLimit: this.perUserDownloadLimit,
shareTheme: this.shareTheme,
+1 -1
View File
@@ -13,7 +13,7 @@ const { store, router, notify } = vi.hoisted(() => {
showPrompt: vi.fn(),
closeTopPrompt: vi.fn(),
updateCurrentUser: vi.fn(),
setCurrentUser: vi.fn((user) => { state.user = user; }),
setCurrentUser: vi.fn((nextUser) => { state.user = nextUser; }),
setSession: vi.fn(),
syncEnforcedUserDefaults: vi.fn(),
syncMediaSettings: vi.fn(),
+2 -2
View File
@@ -604,7 +604,7 @@ async function getFilesFromDirectoryEntry(entry: FileSystemEntry): Promise<Uploa
if (entry.isFile) {
return new Promise((resolve) => {
(entry as FileSystemFileEntry).file((file) => {
const relativePath = entry.fullPath.startsWith("/") ? entry.fullPath.substring(1) : entry.fullPath;
const relativePath = entry.fullPath.startsWith("/") ? entry.fullPath.slice(1) : entry.fullPath;
resolve([{ file, relativePath }]);
});
});
@@ -844,7 +844,7 @@ function getHelpText(file: UploadItem): string {
margin-left: 1em;
min-width: 2ch;
text-align: center;
font-weight: bold;
font-weight: 700;
}
.sizeInput {
@@ -542,7 +542,7 @@ export default {
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-weight: 700;
text-shadow:
0 0 3px rgb(0 0 0 / 90%),
0 0 5px rgb(0 0 0 / 70%),
@@ -57,15 +57,15 @@ export default {
min-width: 0;
}
.profile-enforceable-field.toggle-container--enforceable :deep(.profile-enforce-row) {
margin-top: 0;
}
.profile-enforceable-field.toggle-container--enforceable:hover :deep(.profile-enforce-row),
.profile-enforceable-field.toggle-container--enforceable:hover :deep(.profile-enforce-row:hover) {
background-color: transparent;
}
.profile-enforceable-field.toggle-container--enforceable :deep(.profile-enforce-row) {
margin-top: 0;
}
.profile-enforceable-field.toggle-container--enforceable :deep(.settings-items) {
width: 100%;
margin-top: 0;
+2 -2
View File
@@ -345,14 +345,14 @@ export default {
const sourceInfo = this.sourceInfo[link.sourceName];
if (!sourceInfo) return '#'; // Source not found
const encodedSourceName = encodeURIComponent(link.sourceName);
const targetPath = link.target.startsWith('/') ? link.target.substring(1) : link.target;
const targetPath = link.target.startsWith('/') ? link.target.slice(1) : link.target;
fullPath = `/files/${encodedSourceName}/${targetPath}`;
} else {
// For other links (tools, custom, share), use target as-is
fullPath = link.target;
}
const target = fullPath.startsWith('/') ? fullPath.substring(1) : fullPath;
const target = fullPath.startsWith('/') ? fullPath.slice(1) : fullPath;
return baseURL + target;
},
goHome() {
+1 -1
View File
@@ -147,7 +147,7 @@ export default {
},
getBaseFontSize() {
const rootFontSize = getComputedStyle(document.documentElement).fontSize;
return parseFloat(rootFontSize);
return Number.parseFloat(rootFontSize);
},
handleMobileStateChange(isMobile) {
if (isMobile) {
@@ -226,6 +226,10 @@ export default {
background-color: var(--surfaceSecondary);
}
.tool-access-toggle :deep(.toggle-container--enforceable) {
padding: 0;
}
.tool-access-item:hover :deep(.toggle-container--enforceable),
.tool-access-item:hover :deep(.toggle-container--enforceable:hover) {
background-color: transparent;
@@ -240,8 +244,4 @@ export default {
flex: 1 1 auto;
min-width: 0;
}
.tool-access-toggle :deep(.toggle-container--enforceable) {
padding: 0;
}
</style>
@@ -26,11 +26,11 @@ const num = (value: string) => Number.parseFloat(value) || 0;
const rect = (left: number, top: number, width: number, height: number) =>
({ left, top, width, height, right: left + width, bottom: top + height, x: left, y: top, toJSON: () => ({}) }) as DOMRect;
function itemsOf(group: HTMLElement) {
return group.querySelectorAll(":scope > .listing-item").length;
function itemsOf(target: HTMLElement) {
return target.querySelectorAll(":scope > .listing-item").length;
}
function boxHeight(group: HTMLElement) {
const rows = Math.ceil(itemsOf(group) / columnsOnScreen);
function boxHeight(target: HTMLElement) {
const rows = Math.ceil(itemsOf(target) / columnsOnScreen);
return PADDING * 2 + (rows > 0 ? rows * PITCH - GAP : 0);
}
/** Where the border box of a group starts, in the scrolled content */
@@ -370,8 +370,8 @@ describe("useListingVirtualization", () => {
it("renders the last items after a jump straight to the bottom", async () => {
await mount();
const files = group("files");
const bottom = groupTop(files) + boxHeight(files) + Number.parseFloat(files.style.marginBottom || "0") + PADDING - VIEWPORT;
const filesGroup = group("files");
const bottom = groupTop(filesGroup) + boxHeight(filesGroup) + Number.parseFloat(filesGroup.style.marginBottom || "0") + PADDING - VIEWPORT;
await scrollTo(bottom);
expect(present(519)).toBe(true);
expect(present(510)).toBe(true); // the screen at the bottom
@@ -380,8 +380,8 @@ describe("useListingVirtualization", () => {
it("keeps a window of about three screens around a jump, and never the whole listing", async () => {
await mount();
const files = group("files");
const bottom = groupTop(files) + boxHeight(files) + Number.parseFloat(files.style.marginBottom || "0") + PADDING - VIEWPORT;
const filesGroup = group("files");
const bottom = groupTop(filesGroup) + boxHeight(filesGroup) + Number.parseFloat(filesGroup.style.marginBottom || "0") + PADDING - VIEWPORT;
await scrollTo(bottom);
expect(present(519)).toBe(true);
expect(rendered().length).toBeLessThan(150);
@@ -86,7 +86,7 @@ export function useListingKeyboard(options: ListingKeyboardOptions) {
const down = direction === "down";
let closestItem: Element | null = null;
let closestDistance = Infinity;
let closestDistance = Number.POSITIVE_INFINITY;
const step = down ? 1 : -1;
for (let i = selectedIndex + step; i >= 0 && i < listItems.length; i += step) {
@@ -183,7 +183,7 @@ export function useListingKeyboard(options: ListingKeyboardOptions) {
break;
}
const itemIndex = parseInt((nextItem as HTMLElement | null)?.dataset.index as string, 10);
const itemIndex = Number.parseInt((nextItem as HTMLElement | null)?.dataset.index as string, 10);
if (!Number.isNaN(itemIndex)) {
mutations.resetSelected();
mutations.addSelected(itemIndex);
@@ -145,10 +145,10 @@ export function useListingVirtualization<T extends VirtualItem = fileListItemInd
const inputs = computed(() => options.groups());
const gridGroups = computed(() =>
buildGridGroups(inputs.value.map((group) => ({ key: group.key, count: groupSize(group) }))),
buildGridGroups(inputs.value.map((input) => ({ key: input.key, count: groupSize(input) }))),
);
const minItems = options.minItems ?? DEFAULT_MIN_ITEMS;
const totalItems = computed(() => gridGroups.value.reduce((total, group) => total + group.count, 0));
const totalItems = computed(() => gridGroups.value.reduce((total, gridGroup) => total + gridGroup.count, 0));
const active = computed(() => !unsupported.value && !unmeasurable.value && totalItems.value >= minItems);
const settled = computed(() => active.value && metrics.value !== null && !settling.value);
@@ -178,24 +178,24 @@ export function useListingVirtualization<T extends VirtualItem = fileListItemInd
return ends;
});
function windowFor(group: GridGroup): RowWindow {
const rows = rowCount(group.count, columns.value);
const stored = windows.value[group.key];
return fitWindow(stored ?? { firstRow: 0, endRow: initialEnds.value[group.key] ?? 0 }, rows);
function windowFor(gridGroup: GridGroup): RowWindow {
const rows = rowCount(gridGroup.count, columns.value);
const stored = windows.value[gridGroup.key];
return fitWindow(stored ?? { firstRow: 0, endRow: initialEnds.value[gridGroup.key] ?? 0 }, rows);
}
const visible = computed(() => {
const result: Record<string, VisibleGroup<T>> = {};
const grid = gridGroups.value;
for (const [i, input] of inputs.value.entries()) {
const group = grid[i] as GridGroup;
const gridGroup = grid[i] as GridGroup;
if (!active.value) {
result[input.key] = { items: groupSlice(input, 0, group.count), position: group.start, style: undefined };
result[input.key] = { items: groupSlice(input, 0, gridGroup.count), position: gridGroup.start, style: undefined };
continue;
}
const rows = rowCount(group.count, columns.value);
const window = windowFor(group);
const range = itemRangeOfRows(window, columns.value, group.count);
const rows = rowCount(gridGroup.count, columns.value);
const window = windowFor(gridGroup);
const range = itemRangeOfRows(window, columns.value, gridGroup.count);
let above = window.firstRow * rowPitch.value;
let below = (rows - window.endRow) * rowPitch.value;
@@ -206,7 +206,7 @@ export function useListingVirtualization<T extends VirtualItem = fileListItemInd
}
result[input.key] = {
items: groupSlice(input, range.start, range.end),
position: group.start + range.start,
position: gridGroup.start + range.start,
style: { marginTop: `${above}px`, marginBottom: `${below}px` },
};
}
@@ -88,7 +88,7 @@ export function useMouseSelection(options: MouseSelectionOptions) {
function measureItemRects(listingRect: DOMRect) {
const rects: ItemRect[] = [];
for (const element of options.container.value?.querySelectorAll(".listing-item[data-index]") ?? []) {
const index = parseInt(element.getAttribute("data-index") as string, 10);
const index = Number.parseInt(element.getAttribute("data-index") as string, 10);
if (Number.isNaN(index)) continue;
const r = element.getBoundingClientRect();
rects.push({
+42 -42
View File
@@ -1,70 +1,70 @@
.warning-banner {
background-color: var(--alt-background);
border: 1px solid var(--icon-orange);
border-radius: 4px;
padding: 1em;
margin-bottom: 1em;
display: flex;
align-items: center;
gap: 0.5em;
background-color: var(--alt-background);
border: 1px solid var(--icon-orange);
border-radius: 4px;
padding: 1em;
margin-bottom: 1em;
display: flex;
align-items: center;
gap: 0.5em;
}
.warning-banner i {
color: var(--icon-orange);
font-size: 24px;
color: var(--icon-orange);
font-size: 24px;
}
.warning-banner span {
flex: 1;
flex: 1;
}
.warning-icon {
color: var(--icon-orange);
font-size: 20px;
color: var(--icon-orange);
font-size: 20px;
}
.warning-message {
background: #fff3cd;
color: #856404;
padding: 1rem;
border-radius: 4px;
margin-bottom: 1rem;
border: 1px solid #ffc107;
display: flex;
align-items: flex-start;
gap: 0.75rem;
background: #fff3cd;
color: #856404;
padding: 1rem;
border-radius: 4px;
margin-bottom: 1rem;
border: 1px solid #ffc107;
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.warning-message .material-symbols {
font-size: 1.5rem;
color: #f57c00;
flex-shrink: 0;
font-size: 1.5rem;
color: #f57c00;
flex-shrink: 0;
}
.warning-message strong {
display: block;
margin-bottom: 0.25rem;
display: block;
margin-bottom: 0.25rem;
}
.success-message {
background: #d4edda;
color: #155724;
padding: 1rem;
border-radius: 4px;
margin-bottom: 1rem;
border: 1px solid #28a745;
display: flex;
align-items: flex-start;
gap: 0.75rem;
background: #d4edda;
color: #155724;
padding: 1rem;
border-radius: 4px;
margin-bottom: 1rem;
border: 1px solid #28a745;
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.success-message .material-symbols {
font-size: 1.5rem;
color: #28a745;
flex-shrink: 0;
font-size: 1.5rem;
color: #28a745;
flex-shrink: 0;
}
.success-message strong {
display: block;
margin-bottom: 0.25rem;
}
display: block;
margin-bottom: 0.25rem;
}
+8 -4
View File
@@ -1,17 +1,21 @@
/* Button chrome is themeable: every value below is a --button-* hook.
--hover-transform / --hover-shadow (consumed in styles.css) cover :hover. */
.button {
display:flex;
display: flex;
align-items: center;
justify-content: center;
outline: 0;
padding: var(--button-padding-y, .5em) var(--button-padding-x, 1em);
padding: var(--button-padding-y, 0.5em) var(--button-padding-x, 1em);
border-radius: var(--borderRadius);
cursor: pointer;
background: var(--button-background, var(--primaryColor));
color: var(--button-color, white);
box-shadow: var(--button-shadow, 0 0 5px rgb(0 0 0 / 5%));
transition: transform 0.1s ease, opacity 0.1s ease, background-color 0.1s ease, box-shadow 0.2s ease;
transition:
transform 0.1s ease,
opacity 0.1s ease,
background-color 0.1s ease,
box-shadow 0.2s ease;
min-width: var(--button-min-width, 2em);
min-height: var(--button-min-height, 2em);
}
@@ -76,6 +80,6 @@ button:disabled {
}
.button[disabled] {
opacity: .5;
opacity: 0.5;
cursor: not-allowed;
}
+6 -3
View File
@@ -4,9 +4,12 @@
--fab-icon-size: 24px;
--fab-edge-offset: 16px;
--fab-edge-offset-media: 20px;
--fab-elevation-rest: 0 1px 3px 1px rgb(0 0 0 / 15%), 0 1px 2px rgb(0 0 0 / 30%);
--fab-elevation-hover: 0 2px 6px 2px rgb(0 0 0 / 15%), 0 1px 2px rgb(0 0 0 / 30%);
--fab-elevation-pressed: 0 4px 8px 3px rgb(0 0 0 / 15%), 0 1px 3px rgb(0 0 0 / 30%);
--fab-elevation-rest:
0 1px 3px 1px rgb(0 0 0 / 15%), 0 1px 2px rgb(0 0 0 / 30%);
--fab-elevation-hover:
0 2px 6px 2px rgb(0 0 0 / 15%), 0 1px 2px rgb(0 0 0 / 30%);
--fab-elevation-pressed:
0 4px 8px 3px rgb(0 0 0 / 15%), 0 1px 3px rgb(0 0 0 / 30%);
--fab-shadow: var(--fab-elevation-rest);
--fab-transition: 200ms cubic-bezier(0.2, 0, 0, 1);
--fab-fade-transition: 0.4s ease;
+7 -3
View File
@@ -12,7 +12,11 @@
}
.input:hover {
border-color: color-mix(in srgb, var(--surfaceSecondary) 70%, var(--textPrimary));
border-color: color-mix(
in srgb,
var(--surfaceSecondary) 70%,
var(--textPrimary)
);
}
.input:focus {
@@ -58,7 +62,7 @@ input.sizeInput:disabled {
.sizeInputWrapper {
box-sizing: border-box;
border-radius: var(--borderRadius);
margin: .5em;
margin: 0.5em;
display: flex;
align-items: center;
background-color: var(--background);
@@ -69,7 +73,7 @@ input.sizeInput:disabled {
0 4px 4px hsl(0deg 0% 0% / 7.5%),
0 8px 8px hsl(0deg 0% 0% / 7.5%),
0 16px 16px hsl(0deg 0% 0% / 7.5%);
padding: .25em .5em;
padding: 0.25em 0.5em;
justify-content: center;
color: var(--textPrimary);
}
+2 -3
View File
@@ -1,6 +1,6 @@
:root {
--blue: #2196f3;
--dark-blue: #1E88E5;
--dark-blue: #1e88e5;
--red: #f44336;
--dark-red: #be2626;
--icon-red: #d23b4a;
@@ -29,8 +29,7 @@
--panel-bg: color-mix(in srgb, var(--alt-background) 65%, transparent);
--panel-blur: blur(12px) invert(0.1);
--surfaceElevationShadow:
0 1px 2px hsl(0deg 0% 0% / 7%),
0 2px 4px hsl(0deg 0% 0% / 6%),
0 1px 2px hsl(0deg 0% 0% / 7%), 0 2px 4px hsl(0deg 0% 0% / 6%),
0 4px 8px hsl(0deg 0% 0% / 5%);
--overlay: rgb(0 0 0 / 50%);
--hoverOverlay: rgb(0 0 0 / 10%);
+8 -7
View File
@@ -2,7 +2,7 @@ body {
font-family: Roboto, sans-serif;
padding-top: var(--header-height);
color: #333;
overflow:initial;
overflow: initial;
scrollbar-width: none; /* Firefox */
}
@@ -24,7 +24,8 @@ img {
max-width: 100%;
}
audio, video {
audio,
video {
width: 100%;
}
@@ -71,9 +72,9 @@ audio, video {
background-color: var(--background);
border: var(--borderWidth) solid var(--surfaceSecondary);
box-shadow:
0 1px 1px hsl(0deg 0% 0% / 7.5%),
0 2px 2px hsl(0deg 0% 0% / 7.5%),
0 4px 4px hsl(0deg 0% 0% / 7.5%),
0 8px 8px hsl(0deg 0% 0% / 7.5%),
0 16px 16px hsl(0deg 0% 0% / 7.5%);
0 1px 1px hsl(0deg 0% 0% / 7.5%),
0 2px 2px hsl(0deg 0% 0% / 7.5%),
0 4px 4px hsl(0deg 0% 0% / 7.5%),
0 8px 8px hsl(0deg 0% 0% / 7.5%),
0 16px 16px hsl(0deg 0% 0% / 7.5%);
}
+9 -6
View File
@@ -6,13 +6,16 @@
position: relative;
margin: 0 0 1rem;
background-color: var(--surfacePrimary);
box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 1px 5px 0 rgb(0 0 0 / 12%), 0 3px 1px -2px rgb(0 0 0 / 20%);
box-shadow:
0 2px 2px 0 rgb(0 0 0 / 14%),
0 1px 5px 0 rgb(0 0 0 / 12%),
0 3px 1px -2px rgb(0 0 0 / 20%);
border-radius: var(--borderRadius);
color: var(--textPrimary);
}
.small {
font-size: .8em;
font-size: 0.8em;
line-height: 1.5;
}
@@ -26,11 +29,11 @@ body.rtl #nav .wrapper {
list-style: none;
}
.card>*>*:first-child {
.card > * > *:first-child {
margin-top: 0;
}
.card>*>*:last-child {
.card > * > *:last-child {
margin-bottom: 0;
}
@@ -38,11 +41,11 @@ body.rtl #nav .wrapper {
text-align: center;
}
.card-title>*:first-child {
.card-title > *:first-child {
margin-right: auto;
}
body.rtl .card-title>*:first-child {
body.rtl .card-title > *:first-child {
margin-right: 0;
text-align: right;
}
+69 -30
View File
@@ -4,9 +4,12 @@
font-style: normal;
font-weight: 400;
font-display: block;
src: local('Roboto'), local('Roboto-Regular'),
url("/fonts/roboto-normal-latin.woff2") format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
src:
local("Roboto"),
local("Roboto-Regular"),
url("/fonts/roboto-normal-latin.woff2") format("woff2");
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
@@ -14,8 +17,12 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'), url("/fonts/roboto-normal-latin.woff2") format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
src:
local("Roboto"),
local("Roboto-Regular"),
url("/fonts/roboto-normal-latin.woff2") format("woff2");
unicode-range:
U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
@@ -23,7 +30,10 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'), url("/fonts/roboto-normal-latin.woff2") format('woff2');
src:
local("Roboto"),
local("Roboto-Regular"),
url("/fonts/roboto-normal-latin.woff2") format("woff2");
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@@ -32,7 +42,10 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'), url("/fonts/roboto-normal-latin.woff2") format('woff2');
src:
local("Roboto"),
local("Roboto-Regular"),
url("/fonts/roboto-normal-latin.woff2") format("woff2");
unicode-range: U+0370-03FF;
}
@@ -42,9 +55,12 @@
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Roboto Medium'), local('Roboto-Medium'),
url("/fonts/roboto-medium-latin.woff2") format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
src:
local("Roboto Medium"),
local("Roboto-Medium"),
url("/fonts/roboto-medium-latin.woff2") format("woff2");
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
@@ -52,8 +68,12 @@
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Roboto Medium'), local('Roboto-Medium'), url("/fonts/roboto-medium-latin.woff2") format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
src:
local("Roboto Medium"),
local("Roboto-Medium"),
url("/fonts/roboto-medium-latin.woff2") format("woff2");
unicode-range:
U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
@@ -61,7 +81,10 @@
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Roboto Medium'), local('Roboto-Medium'), url("/fonts/roboto-medium-latin.woff2") format('woff2');
src:
local("Roboto Medium"),
local("Roboto-Medium"),
url("/fonts/roboto-medium-latin.woff2") format("woff2");
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@@ -70,7 +93,10 @@
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Roboto Medium'), local('Roboto-Medium'), url("/fonts/roboto-medium-latin.woff2") format('woff2');
src:
local("Roboto Medium"),
local("Roboto-Medium"),
url("/fonts/roboto-medium-latin.woff2") format("woff2");
unicode-range: U+0370-03FF;
}
@@ -80,9 +106,12 @@
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Roboto Bold'), local('Roboto-Bold'),
url("/fonts/roboto-bold-latin.woff2") format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
src:
local("Roboto Bold"),
local("Roboto-Bold"),
url("/fonts/roboto-bold-latin.woff2") format("woff2");
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
@@ -90,8 +119,12 @@
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Roboto Bold'), local('Roboto-Bold'), url("/fonts/roboto-bold-latin.woff2") format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
src:
local("Roboto Bold"),
local("Roboto-Bold"),
url("/fonts/roboto-bold-latin.woff2") format("woff2");
unicode-range:
U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
@@ -99,7 +132,10 @@
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Roboto Bold'), local('Roboto-Bold'), url("/fonts/roboto-bold-latin.woff2") format('woff2');
src:
local("Roboto Bold"),
local("Roboto-Bold"),
url("/fonts/roboto-bold-latin.woff2") format("woff2");
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@@ -108,25 +144,28 @@
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Roboto Bold'), local('Roboto-Bold'), url("/fonts/roboto-bold-latin.woff2") format('woff2');
src:
local("Roboto Bold"),
local("Roboto-Bold"),
url("/fonts/roboto-bold-latin.woff2") format("woff2");
unicode-range: U+0370-03FF;
}
@font-face {
font-family: 'Material Symbols Core';
font-family: "Material Symbols Core";
font-style: normal;
font-weight: 400;
font-display: block;
src: url("/fonts/material-symbols-core-filled.woff2") format('woff2');
src: url("/fonts/material-symbols-core-filled.woff2") format("woff2");
}
/* Declared here but not referenced until html.icons-full — keeps the 3.8 MB font lazy. */
@font-face {
font-family: 'Material Symbols Outlined';
font-family: "Material Symbols Outlined";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/material-symbols.woff2") format('woff2');
src: url("/fonts/material-symbols.woff2") format("woff2");
}
.material-symbols-outlined,
@@ -141,26 +180,26 @@
white-space: nowrap;
overflow-wrap: normal;
direction: ltr;
font-feature-settings: 'liga';
font-feature-settings: "liga";
-webkit-font-smoothing: antialiased;
user-select: none;
transition: font-variation-settings 0.25s ease;
}
.material-symbols {
font-variation-settings: 'FILL' 1;
font-variation-settings: "FILL" 1;
}
.material-symbols-outlined {
font-variation-settings: 'FILL' 0;
font-variation-settings: "FILL" 0;
}
html:not(.icons-full) .material-symbols-outlined,
html:not(.icons-full) .material-symbols {
font-family: 'Material Symbols Core';
font-family: "Material Symbols Core";
}
html.icons-full .material-symbols-outlined,
html.icons-full .material-symbols {
font-family: 'Material Symbols Outlined';
font-family: "Material Symbols Outlined";
}
+158 -47
View File
@@ -44,13 +44,43 @@ body.halloween-theme,
.login-card.tombstone {
/* Updated background for more subtle levels of detail/texture */
--tombstone-bg:
linear-gradient(45deg, transparent 30%, rgb(0 0 0 / 15%) 30.2%, transparent 30.5%),
linear-gradient(135deg, transparent 60%, rgb(0 0 0 / 12%) 60.3%, transparent 60.6%),
linear-gradient(75deg, transparent 45%, rgb(0 0 0 / 10%) 45.1%, transparent 45.2%),
linear-gradient(165deg, transparent 70%, rgb(0 0 0 / 8%) 70.4%, transparent 70.8%),
linear-gradient(
45deg,
transparent 30%,
rgb(0 0 0 / 15%) 30.2%,
transparent 30.5%
),
linear-gradient(
135deg,
transparent 60%,
rgb(0 0 0 / 12%) 60.3%,
transparent 60.6%
),
linear-gradient(
75deg,
transparent 45%,
rgb(0 0 0 / 10%) 45.1%,
transparent 45.2%
),
linear-gradient(
165deg,
transparent 70%,
rgb(0 0 0 / 8%) 70.4%,
transparent 70.8%
),
/* for more noticeable crack */
linear-gradient(-30deg, transparent 55%, rgb(0 0 0 / 30%) 55.5%, transparent 56.5%),
linear-gradient(150deg, transparent 35%, rgb(0 0 0 / 35%) 35.5%, transparent 36.5%),
linear-gradient(
-30deg,
transparent 55%,
rgb(0 0 0 / 30%) 55.5%,
transparent 56.5%
),
linear-gradient(
150deg,
transparent 35%,
rgb(0 0 0 / 35%) 35.5%,
transparent 36.5%
),
/* Subtle rock grain/texture */
radial-gradient(ellipse at 50% 50%, rgb(0 0 0 / 5%) 0%, transparent 80%),
/* Light gray moss/ageing */
@@ -65,14 +95,15 @@ body.halloween-theme,
inset 0 2px 20px rgb(0 0 0 / 30%),
inset 3px 3px 10px rgb(255 255 255 / 20%);
/* drop-shadow follows the whole silhouette, including the rounded top */
filter: drop-shadow(0 8px 28px rgb(255 140 0 / 60%)) drop-shadow(0 0 24px rgb(255 140 0 / 45%));
filter: drop-shadow(0 8px 28px rgb(255 140 0 / 60%))
drop-shadow(0 0 24px rgb(255 140 0 / 45%));
padding: 2.5em 2em 2em;
z-index: 1;
}
/* Tombstone rounded top */
.login-card.tombstone::before {
content: '';
content: "";
position: absolute;
top: -70px;
left: -4px;
@@ -122,9 +153,9 @@ body.halloween-theme,
.tombstone-label {
display: block;
font-family: 'Times New Roman', serif;
font-family: "Times New Roman", serif;
font-size: 1.1em;
font-weight: bold;
font-weight: 700;
color: #444;
text-transform: uppercase;
letter-spacing: 0.25em;
@@ -135,13 +166,13 @@ body.halloween-theme,
}
.tombstone-field.born .tombstone-label::before {
content: '⚰ BORN ⚰';
content: "⚰ BORN ⚰";
display: block;
font-size: 0.9em;
}
.tombstone-field.died .tombstone-label::before {
content: '† DIED †';
content: "† DIED †";
display: block;
font-size: 0.9em;
}
@@ -152,7 +183,9 @@ body.halloween-theme,
color: #ff8c00;
text-shadow: 0 0 8px rgb(255 140 0 / 60%);
font-weight: 500;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease;
}
.tombstone-field .input:focus {
@@ -195,7 +228,7 @@ body.halloween-theme,
.cloud::before,
.cloud::after {
content: '';
content: "";
position: absolute;
background: rgb(40 40 40 / 70%);
border-radius: 400px;
@@ -408,7 +441,8 @@ body.halloween-theme,
}
@keyframes cat-tail-swish {
0%, 100% {
0%,
100% {
transform: translateY(0);
}
50% {
@@ -433,21 +467,47 @@ body.halloween-theme,
}
@keyframes cat-look {
0%, 12% { transform: translate(0, 0); }
20%, 36% { transform: translate(-7px, -1px); }
44%, 58% { transform: translate(7px, 1px); }
66%, 74% { transform: translate(5px, 4px); }
82%, 100% { transform: translate(0, 0); }
0%,
12% {
transform: translate(0, 0);
}
20%,
36% {
transform: translate(-7px, -1px);
}
44%,
58% {
transform: translate(7px, 1px);
}
66%,
74% {
transform: translate(5px, 4px);
}
82%,
100% {
transform: translate(0, 0);
}
}
@keyframes cat-tail-sway {
0%, 100% { transform: rotate(-4deg); }
50% { transform: rotate(7deg); }
0%,
100% {
transform: rotate(-4deg);
}
50% {
transform: rotate(7deg);
}
}
@keyframes cat-blink {
0%, 94%, 100% { transform: scaleY(1); }
96% { transform: scaleY(0.08); }
0%,
94%,
100% {
transform: scaleY(1);
}
96% {
transform: scaleY(0.08);
}
}
/* Skeleton */
@@ -463,7 +523,8 @@ body.halloween-theme,
}
@keyframes skeleton-wobble {
0%, 100% {
0%,
100% {
transform: translateY(0) rotate(-5deg);
}
50% {
@@ -478,7 +539,8 @@ body.halloween-theme,
}
@keyframes head-bob {
0%, 100% {
0%,
100% {
transform: rotate(-5deg);
}
50% {
@@ -491,10 +553,16 @@ body.halloween-theme,
background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
border: 3px solid #ff8c00;
color: #ff8c00;
font-weight: bold;
font-weight: 700;
text-shadow: 0 0 10px rgb(255 140 0 / 80%);
box-shadow: 0 4px 20px rgb(255 140 0 / 50%);
transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
transition:
background 0.3s ease,
border-color 0.3s ease,
color 0.3s ease,
text-shadow 0.3s ease,
box-shadow 0.3s ease,
transform 0.3s ease;
}
.halloween-theme .login-card.tombstone .button:hover {
@@ -513,7 +581,8 @@ body.halloween-theme,
}
@keyframes icon-pulse {
0%, 100% {
0%,
100% {
filter: drop-shadow(0 0 20px rgb(255 140 0 / 80%));
}
50% {
@@ -630,7 +699,7 @@ body.halloween-theme,
/* Eyelids */
.eye::before,
.eye::after {
content: '';
content: "";
position: absolute;
left: 0;
width: 100%;
@@ -673,34 +742,76 @@ body.halloween-theme,
}
@keyframes pupil-look {
0% { transform: translate(-190%, -50%); }
50% { transform: translate(-50%, -50%); }
75% { transform: translate(-10%, -50%); }
100% { transform: translate(-190%, -50%); }
0% {
transform: translate(-190%, -50%);
}
50% {
transform: translate(-50%, -50%);
}
75% {
transform: translate(-10%, -50%);
}
100% {
transform: translate(-190%, -50%);
}
}
/* Double-blink once per cycle, eyes open the rest of the time */
@keyframes lid-blink-top {
0%, 86%, 100% { transform: translateY(-100%); }
89%, 91% { transform: translateY(0); }
93% { transform: translateY(-100%); }
95%, 96% { transform: translateY(0); }
0%,
86%,
100% {
transform: translateY(-100%);
}
89%,
91% {
transform: translateY(0);
}
93% {
transform: translateY(-100%);
}
95%,
96% {
transform: translateY(0);
}
}
@keyframes lid-blink-bottom {
0%, 86%, 100% { transform: translateY(100%); }
89%, 91% { transform: translateY(0); }
93% { transform: translateY(100%); }
95%, 96% { transform: translateY(0); }
0%,
86%,
100% {
transform: translateY(100%);
}
89%,
91% {
transform: translateY(0);
}
93% {
transform: translateY(100%);
}
95%,
96% {
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.cloud, .lightning-flash, .lightning-bolt, .lightning-bolt-glow,
.lightning-bolt-core, .lightning-bolt-branch,
.halloween-cat, .halloween-cat .cat-eye, .halloween-cat .cat-pupil, .halloween-cat .cat-tail,
.halloween-skeleton, .halloween-skeleton .skeleton-head,
.cloud,
.lightning-flash,
.lightning-bolt,
.lightning-bolt-glow,
.lightning-bolt-core,
.lightning-bolt-branch,
.halloween-cat,
.halloween-cat .cat-eye,
.halloween-cat .cat-pupil,
.halloween-cat .cat-tail,
.halloween-skeleton,
.halloween-skeleton .skeleton-head,
.halloween-theme .login-icon,
.eye::before, .eye::after, .pupil {
.eye::before,
.eye::after,
.pupil {
animation: none !important;
}
}
+96 -40
View File
@@ -21,7 +21,7 @@ body.rtl .listing-items {
.listing-items h2 {
margin: 0 0 0 0.5em;
font-size: .9em;
font-size: 0.9em;
font-weight: 500;
padding-bottom: 0.25em;
background: transparent;
@@ -32,7 +32,7 @@ body.rtl .listing-items {
overflow: hidden;
}
.listing-items>div {
.listing-items > div {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
@@ -41,13 +41,17 @@ body.rtl .listing-items {
.listing-item {
display: flex;
flex-wrap: nowrap;
transition: width 0.25s ease, margin-left 0.25s ease, padding-left 0.25s ease, transform 0.25s ease;
transition:
width 0.25s ease,
margin-left 0.25s ease,
padding-left 0.25s ease,
transform 0.25s ease;
align-items: center;
cursor: pointer;
user-select: none;
overflow: hidden;
width: var(--item-width); /* stylelint-disable-line no-unknown-custom-properties */
height: var(--item-height); /* stylelint-disable-line no-unknown-custom-properties */
width: var(--item-width);
height: var(--item-height);
border-radius: var(--borderRadius);
padding: 0.5em;
color: var(--textPrimary);
@@ -109,7 +113,7 @@ body.rtl .listing-items {
.message i {
font-size: 2.5em;
margin-bottom: .2em;
margin-bottom: 0.2em;
display: block;
}
@@ -132,9 +136,11 @@ body.rtl .listing-items {
.listing-items.compact .listing-item,
.listing-items.normal .listing-item,
.listing-items.icons .listing-item {
margin: .5em;
margin: 0.5em;
padding: 0.5em;
box-shadow: rgb(0 0 0 / 6%) 0 1px 3px, rgb(0 0 0 / 12%) 0 1px 2px;
box-shadow:
rgb(0 0 0 / 6%) 0 1px 3px,
rgb(0 0 0 / 12%) 0 1px 2px;
}
/* Rows join into one panel — no radius of their own, even if a theme
@@ -153,7 +159,7 @@ body.rtl .listing-items {
margin: 0;
padding: 0;
width: 100%;
height: var(--item-height); /* stylelint-disable-line no-unknown-custom-properties */
height: var(--item-height);
flex-shrink: 0;
}
@@ -172,7 +178,11 @@ body.rtl .listing-items {
.listing-items.normal .listing-item,
.listing-items.gallery .listing-item,
.listing-items.icons .listing-item {
transition: width 0.25s ease-out, height 0.25s ease-out, box-shadow 0.2s ease-in-out, transform 0.1s ease-in-out;
transition:
width 0.25s ease-out,
height 0.25s ease-out,
box-shadow 0.2s ease-in-out,
transform 0.1s ease-in-out;
}
.listing-items.resizing .listing-item {
@@ -185,7 +195,7 @@ body.rtl .listing-items {
border-left: var(--borderWidth) solid var(--divider);
border-right: var(--borderWidth) solid var(--divider);
padding: 0;
padding-left: .5em;
padding-left: 0.5em;
}
.listing-items.list .listing-item {
@@ -193,7 +203,7 @@ body.rtl .listing-items {
margin: 0;
border-left: var(--borderWidth) solid var(--divider);
border-right: var(--borderWidth) solid var(--divider);
padding: .5em;
padding: 0.5em;
}
.listing-items:not(.list, .compact) .listing-item {
@@ -201,7 +211,9 @@ body.rtl .listing-items {
}
.listing-items:not(.list, .compact) :where(.folder-items) .listing-item,
.listing-items:not(.list, .compact) :where(.pinned-items) .listing-item[data-type="directory"] {
.listing-items:not(.list, .compact)
:where(.pinned-items)
.listing-item[data-type="directory"] {
border-color: var(--divider);
}
@@ -229,7 +241,9 @@ body.rtl .listing-items {
border-radius: 50%;
width: 1.8em;
height: 1.8em;
box-shadow: 0 0 4px rgb(0 0 0 / 30%), 0 0 10px rgb(0 0 0 / 15%);
box-shadow:
0 0 4px rgb(0 0 0 / 30%),
0 0 10px rgb(0 0 0 / 15%);
}
.listing-items.gallery .listing-item .gallery-div {
@@ -239,7 +253,9 @@ body.rtl .listing-items {
width: 100%;
height: 100%;
aspect-ratio: 1;
transition: width 0.25s ease-out, height 0.25s ease-out;
transition:
width 0.25s ease-out,
height 0.25s ease-out;
position: relative;
}
@@ -257,7 +273,7 @@ body.rtl .listing-items {
}
.listing-items .name {
font-weight: normal;
font-weight: 400;
}
.listing-items.list .listing-item .name,
@@ -317,7 +333,9 @@ body.rtl .listing-items {
max-width: 100%;
max-height: 100%;
aspect-ratio: 1;
transition: width 0.25s ease-out, height 0.25s ease-out;
transition:
width 0.25s ease-out,
height 0.25s ease-out;
}
.listing-items.gallery .image-preview {
@@ -338,7 +356,10 @@ body.rtl .listing-items {
.listing-items.gallery .file-items,
.listing-items.gallery .pinned-items {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--item-width, 200px), 1fr));
grid-template-columns: repeat(
auto-fill,
minmax(var(--item-width, 200px), 1fr)
);
gap: 1em;
padding: 0.5em;
width: 100%;
@@ -368,21 +389,24 @@ body.rtl .listing-items {
}
.listing-items.icons .image-preview.download-icon {
width: 100%;
height: 2em;
width: 100%;
height: 2em;
}
.listing-items.icons .image-preview.download-icon .material-symbols {
font-size: 2em;
width: 100%;
text-align: center;
font-size: 2em;
width: 100%;
text-align: center;
}
.listing-items.icons .folder-items,
.listing-items.icons .file-items,
.listing-items.icons .pinned-items {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--icons-view-cell-size, 100px), 1fr));
grid-template-columns: repeat(
auto-fill,
minmax(var(--icons-view-cell-size, 100px), 1fr)
);
gap: 0.5em;
padding: 0.25em;
width: 100%;
@@ -448,16 +472,20 @@ body.rtl .listing-items {
}
.listing-items.list > .listing-item:first-child,
.listing-items.list :where(.pinned-items, .folder-items, .file-items, [data-virtual-group]) .listing-item:first-child {
.listing-items.list
:where(.pinned-items, .folder-items, .file-items, [data-virtual-group])
.listing-item:first-child {
border-top: var(--borderWidth) solid var(--divider);
border-top-left-radius: var(--borderRadius) !important;
border-top-right-radius: var(--borderRadius) !important;
}
.listing-items.list > .listing-item:not(:has(~ .listing-item)),
.listing-items.list :where(.pinned-items, .folder-items, .file-items, [data-virtual-group]) .listing-item:last-child {
.listing-items.list
:where(.pinned-items, .folder-items, .file-items, [data-virtual-group])
.listing-item:last-child {
border-bottom: var(--borderWidth) solid var(--divider);
margin-bottom: .5em;
margin-bottom: 0.5em;
border-bottom-left-radius: var(--borderRadius) !important;
border-bottom-right-radius: var(--borderRadius) !important;
}
@@ -537,7 +565,9 @@ body.rtl .listing-items {
overflow: visible;
line-height: 1;
margin-left: 0.25em;
box-shadow: 0 0 4px rgb(0 0 0 / 30%), 0 0 10px rgb(0 0 0 / 15%);
box-shadow:
0 0 4px rgb(0 0 0 / 30%),
0 0 10px rgb(0 0 0 / 15%);
}
.placeholder {
@@ -552,16 +582,23 @@ body.rtl .listing-items {
scroll-margin-bottom: 3em;
}
.listing-items .listing-item.listing-item:is([aria-selected="true"], .context-item),
.listing-items
.listing-item.listing-item:is([aria-selected="true"], .context-item),
#results .search-entry.current-item {
border-color: var(--primaryColor);
}
.listing-items.gallery .listing-item.listing-item:is([aria-selected="true"], .context-item) {
.listing-items.gallery
.listing-item.listing-item:is([aria-selected="true"], .context-item) {
border-width: 0;
}
:is(.listing-item, .search-entry, .tree-node):is([aria-selected="true"], .context-item, .drag-over, .search-entry.current-item) {
:is(.listing-item, .search-entry, .tree-node):is(
[aria-selected="true"],
.context-item,
.drag-over,
.search-entry.current-item
) {
&::before {
content: "";
position: absolute;
@@ -595,15 +632,20 @@ body.rtl .listing-items {
border-right-width: 0;
}
:where(.listing-items.list, .listing-items.compact .firstGroup, #results) &:where(:first-child)::before,
:where(.listing-items.list, .listing-items.compact .firstGroup, #results)
&:where(:first-child)::before,
:where(:is(.listing-items:is(.list, .compact), #results) &) + &::before,
:where(.listing-items.compact > div:has(> &:last-child) + div + div) > &:where(:first-child)::before {
:where(.listing-items.compact > div:has(> &:last-child) + div + div)
> &:where(:first-child)::before {
border-top: 0;
}
:where(.listing-items.list, .listing-items.compact .lastGroup, #results) &:where(:last-child)::before,
:where(:is(.listing-items:is(.list, .compact), #results)) &:where(:has(+ &))::before,
:where(.listing-items.compact > div:has(+ div + div > &:first-child)) > &:where(:last-child)::before {
:where(.listing-items.list, .listing-items.compact .lastGroup, #results)
&:where(:last-child)::before,
:where(:is(.listing-items:is(.list, .compact), #results))
&:where(:has(+ &))::before,
:where(.listing-items.compact > div:has(+ div + div > &:first-child))
> &:where(:last-child)::before {
border-bottom: 0;
}
@@ -638,12 +680,18 @@ body.rtl .listing-items {
.listing-items.gallery .folder-items,
.listing-items.gallery .file-items,
.listing-items.gallery .pinned-items {
grid-template-columns: repeat(auto-fill, minmax(var(--gallery-mobile-min-width, 140px), 1fr));
grid-template-columns: repeat(
auto-fill,
minmax(var(--gallery-mobile-min-width, 140px), 1fr)
);
}
.listing-items.icons .folder-items,
.listing-items.icons .file-items,
.listing-items.icons .pinned-items {
grid-template-columns: repeat(auto-fill, minmax(var(--icons-view-cell-size, 100px), 1fr));
grid-template-columns: repeat(
auto-fill,
minmax(var(--icons-view-cell-size, 100px), 1fr)
);
}
}
@@ -656,11 +704,19 @@ body.rtl .listing-items {
.listing-items.list .listing-item.zebra-row:not([aria-selected="true"]),
.listing-items.compact .listing-item.zebra-row:not([aria-selected="true"]) {
background: color-mix(in srgb, var(--surfacePrimary) 20%, var(--background) 60%);
background: color-mix(
in srgb,
var(--surfacePrimary) 20%,
var(--background) 60%
);
}
.search-entry.zebra-row {
background: color-mix(in srgb, var(--surfacePrimary) 80%, var(--background) 60%);
background: color-mix(
in srgb,
var(--surfacePrimary) 80%,
var(--background) 60%
);
}
.selection-rectangle {
+1 -1
View File
@@ -16,7 +16,7 @@ samp {
b,
strong {
font-weight: bolder;
font-weight: 700;
}
small {
+53 -20
View File
@@ -26,7 +26,7 @@
padding: 1em 0;
}
#main .spinner>div {
#main .spinner > div {
width: 0.8em;
height: 0.8em;
margin: 0 0.1em;
@@ -57,7 +57,11 @@
* * * * * * * * * * * * * * * */
.action {
cursor: pointer;
transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
transition:
transform 0.2s ease,
width 0.2s ease,
height 0.2s ease,
margin 0.2s ease;
border: 0;
margin: 0;
color: var(--textPrimary);
@@ -74,21 +78,33 @@
.action would otherwise reset these after _buttons.css; every value is a
custom-property hook so themes restyle without fighting specificity. */
.action.button {
padding: var(--button-padding-y, .5em) var(--button-padding-x, 1em);
padding: var(--button-padding-y, 0.5em) var(--button-padding-x, 1em);
background: var(--button-background, transparent);
color: var(--button-color, var(--textPrimary));
box-shadow: var(--button-shadow, none);
transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease,
opacity 0.1s ease, background-color 0.1s ease, box-shadow 0.2s ease;
transition:
transform 0.2s ease,
width 0.2s ease,
height 0.2s ease,
margin 0.2s ease,
opacity 0.1s ease,
background-color 0.1s ease,
box-shadow 0.2s ease;
}
/* Material Symbols resets display/transition after _buttons.css; when the
icon itself is the button, keep button layout and merge transitions. */
.material-symbols.button {
display: flex;
transition: font-variation-settings 0.25s ease, transform 0.2s ease,
width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.1s ease,
background-color 0.1s ease, box-shadow 0.2s ease;
transition:
font-variation-settings 0.25s ease,
transform 0.2s ease,
width 0.2s ease,
height 0.2s ease,
margin 0.2s ease,
opacity 0.1s ease,
background-color 0.1s ease,
box-shadow 0.2s ease;
}
.action.disabled {
@@ -110,12 +126,15 @@
button:hover,
.action:hover,
.listing-item.drag-hover {
box-shadow: var(--hover-shadow, inset 0 -3em 3em var(--hoverOverlay)) !important;
box-shadow: var(
--hover-shadow,
inset 0 -3em 3em var(--hoverOverlay)
) !important;
transform: var(--hover-transform, scale(1.02));
}
.action:not(:disabled):hover {
background-color: var(--action-hover-background, rgb(0 0 0 / 12%));
background-color: var(--action-hover-background, rgb(0 0 0 / 12%));
}
.action .counter {
@@ -131,7 +150,7 @@ button:hover,
height: 1.8em;
text-align: center;
line-height: 1.55em;
font-weight: bold;
font-weight: 700;
}
/* PREVIEWER */
@@ -212,7 +231,12 @@ button:hover,
font-size: 1.3em;
}
#previewer .preview .info .preview-buttons .button--flat.preview-action--icon-only i {
#previewer
.preview
.info
.preview-buttons
.button--flat.preview-action--icon-only
i {
margin-bottom: 0;
}
@@ -229,7 +253,7 @@ button:hover,
margin-left: auto;
}
#previewer>button {
#previewer > button {
position: fixed;
top: calc(50% + 1.85em);
transform: translateY(-50%);
@@ -240,15 +264,18 @@ button:hover,
border: 0;
margin: 0;
padding: 0;
transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
transition:
opacity 0.2s ease,
box-shadow 0.2s ease,
transform 0.2s ease;
}
#previewer>button.hidden {
#previewer > button.hidden {
opacity: 0;
visibility: hidden;
}
#previewer>button:last-of-type {
#previewer > button:last-of-type {
right: 0.5em;
}
@@ -293,7 +320,7 @@ button:hover,
.search-entry.current-item .material-symbols-outlined,
.queue-item:hover .material-symbols-outlined,
.listing-item.context-item .material-symbols-outlined {
font-variation-settings: 'FILL' 1;
font-variation-settings: "FILL" 1;
}
.flat-right,
@@ -371,8 +398,14 @@ button.flat-right.flat-left,
}
/* Joined controls: input/button keeps full border; dropdown drops flat-side border */
.form-flex-group > input.flat-right + .expand-dropdown.flat-left .expand-dropdown-anchor,
.form-flex-group > .input.flat-right + .expand-dropdown.flat-left .expand-dropdown-anchor {
.form-flex-group
> input.flat-right
+ .expand-dropdown.flat-left
.expand-dropdown-anchor,
.form-flex-group
> .input.flat-right
+ .expand-dropdown.flat-left
.expand-dropdown-anchor {
border-left-width: 0;
}
@@ -399,7 +432,7 @@ button.flat-right.flat-left,
padding: 0;
}
.form-flex-group>.form-compact {
.form-flex-group > .form-compact {
min-height: 2em;
width: unset;
}
+2 -2
View File
@@ -69,7 +69,7 @@ export function setToastUpdateCallback(callback) {
* @returns {string}
*/
function generateId() {
return `notification-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`
return `notification-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`
}
/**
@@ -363,7 +363,7 @@ export function showError(message, options = {}) {
export function showMultipleSelection() {
const message = i18n.global.t('files.multipleSelectionEnabled');
showPopup('success', message, { persistent: true });
const Notification = notifications[notifications.length - 1];
const Notification = notifications.at(-1);
if (Notification) {
Notification.isMultipleSelection = true;
}
+2 -2
View File
@@ -46,8 +46,8 @@ export function enableOverlaidHintController({
const btn = getOverlaidButton();
const use = btn?.querySelector('use');
if (!use) return;
const isPlaying = currentlyPlaying ? 'pause' : 'play';
const href = `${baseUrl}public/static/img/plyr.svg#plyr-${isPlaying}`;
const icon = currentlyPlaying ? 'pause' : 'play';
const href = `${baseUrl}public/static/img/plyr.svg#plyr-${icon}`;
use.setAttribute('href', href);
use.setAttribute('xlink:href', href);
};
+1 -1
View File
@@ -192,7 +192,7 @@ export function getScrubPreviewHorizontalBounds(player) {
}
if (getters.isSidebarVisible() && !player?.fullscreen?.active) {
if (!getScrubPreviewHorizontalBounds.cachedRemPx) {
getScrubPreviewHorizontalBounds.cachedRemPx = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
getScrubPreviewHorizontalBounds.cachedRemPx = Number.parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
if (!getScrubPreviewHorizontalBounds.isResizeBound) {
window.addEventListener('resize', () => { getScrubPreviewHorizontalBounds.cachedRemPx = null; }, { passive: true });
getScrubPreviewHorizontalBounds.isResizeBound = true;
@@ -278,8 +278,8 @@ export class TranscodePlaybackController {
budgetMs: remainingMs,
signal: attachAbort.signal,
onRecoverPlayback: onRecoverPlayback
? ({ startSec, sessionId }) => onRecoverPlayback({
startSec,
? ({ startSec: recoverStartSec, sessionId }) => onRecoverPlayback({
startSec: recoverStartSec,
sessionId,
mode,
source,
+1 -1
View File
@@ -19,7 +19,7 @@ describe('servableCoverage', () => {
it('returns null without a usable duration', () => {
expect(servableCoverage({ durationSec: 0 })).toBeNull();
expect(servableCoverage({ durationSec: NaN })).toBeNull();
expect(servableCoverage({ durationSec: Number.NaN })).toBeNull();
expect(servableCoverage(null)).toBeNull();
});
});
+3 -3
View File
@@ -122,7 +122,7 @@ export const getters = {
let path = state.route.path ?? "";
if (state.req.type && state.req.type !== "directory") {
path = path.substring(0, path.lastIndexOf("/") + 1) || "/";
path = path.slice(0, path.lastIndexOf("/") + 1) || "/";
}
return getters.displayPreferenceFor(source, path);
@@ -504,7 +504,7 @@ export const getters = {
if (state.prompts.length === 0) {
return null
}
return state.prompts[state.prompts.length - 1]
return state.prompts.at(-1)
},
currentPromptName: () => {
// Ensure state.prompts is an array
@@ -512,7 +512,7 @@ export const getters = {
return ""
}
// Check if the name property is a string
const lastPrompt = state.prompts[state.prompts.length - 1] as { name?: string };
const lastPrompt = state.prompts.at(-1) as { name?: string };
if (typeof lastPrompt?.name !== 'string') {
return ""
}
+2 -2
View File
@@ -4,7 +4,7 @@ import throttle from "@/utils/throttle.js";
const UPLOADS_LIMIT = 5;
const state = {
const initialState = {
id: 0,
sizes: [],
progress: [],
@@ -103,4 +103,4 @@ const actions = {
},
};
export default { state, mutations, actions, namespaced: true };
export default { state: initialState, mutations, actions, namespaced: true };
+5 -5
View File
@@ -429,7 +429,7 @@ export const mutations = {
const container = document.querySelector<HTMLElement>("#main");
const element = document.querySelector<HTMLElement>(`#${CSS.escape(value)}`);
if (container && element) {
const offset = 4 * parseFloat(getComputedStyle(document.documentElement).fontSize); // 4em in px
const offset = 4 * Number.parseFloat(getComputedStyle(document.documentElement).fontSize); // 4em in px
const containerTop = container.getBoundingClientRect().top;
const elementTop = element.getBoundingClientRect().top;
const scrollOffset = elementTop - containerTop - offset;
@@ -506,7 +506,7 @@ export const mutations = {
closeTopPrompt: (id?: number, options?: { force?: boolean; skipCancel?: boolean }) => {
if (!options?.force && state.prompts.length > 0) {
const targetId =
id ?? state.prompts[state.prompts.length - 1]?.id;
id ?? state.prompts.at(-1)?.id;
const promptToClose = state.prompts.find((p) => p.id === targetId);
if (
promptToClose?.name === "upload" &&
@@ -532,7 +532,7 @@ export const mutations = {
// close topmost prompt
if (state.prompts.length === 0) return;
mutations.closeHovers();
closed = state.prompts[state.prompts.length - 1];
closed = state.prompts.at(-1);
state.prompts.pop();
} else {
// close prompt by ID
@@ -560,7 +560,7 @@ export const mutations = {
// Set parentId to the current topmost prompt, unless the prompt is pinned.
let parentId = prompt.parentId;
if (!parentId && !prompt.pinned) {
const topPrompt = state.prompts[state.prompts.length - 1];
const topPrompt = state.prompts.at(-1);
if (topPrompt) {
parentId = topPrompt.id;
}
@@ -665,7 +665,7 @@ export const mutations = {
const isAnonymous = state.user.username === 'anonymous';
const encoded = !isAnonymous ? url.base64Encode(state.user.username) : '';
let viewMode = (!isAnonymous && localStorage.getItem(`ViewMode_${encoded}`)) || state.user.viewMode || 'normal';
let gallerySize = (!isAnonymous && parseInt(localStorage.getItem(`GallerySize_${encoded}`) ?? '', 10)) || state.user.gallerySize || 3;
let gallerySize = (!isAnonymous && Number.parseInt(localStorage.getItem(`GallerySize_${encoded}`) ?? '', 10)) || state.user.gallerySize || 3;
gallerySize = Math.min(9, Math.max(1, gallerySize)); // ensure 1–9 since this is the slider min and max size
// Normalize to use the view families too
+2 -2
View File
@@ -51,7 +51,7 @@ export const state: StoreState = reactive({
words: 0,
chars: 0,
},
fontSize: parseInt(localStorage.getItem('editorFontSize') ?? '', 10) || 14,
fontSize: Number.parseInt(localStorage.getItem('editorFontSize') ?? '', 10) || 14,
markdownSplitView: loadMarkdownSplitView(),
scrollRatio: 0,
scrollSource: null,
@@ -228,7 +228,7 @@ function loadMarkdownSplitView() {
*/
function getSidebarWidth() {
const savedWidth = localStorage.getItem("sidebarWidth");
return savedWidth ? parseFloat(savedWidth) : 20; // 20em
return savedWidth ? Number.parseFloat(savedWidth) : 20; // 20em
}
function getSidebarMode() {
+4 -4
View File
@@ -95,13 +95,13 @@ export async function validateLogin(isPublicRoute = false) {
getters.isLoggedIn()
// Public share/static routes use the public API; proxy session cookie login is protected-only.
if (state.user.loginMethod === "proxy" && !isPublicRoute) {
const apiPath = getApiPath("auth/login")
const res = await fetch(apiPath, {
const loginPath = getApiPath("auth/login")
const loginRes = await fetch(loginPath, {
method: "POST",
credentials: 'same-origin', // Ensure cookies are sent and can be set
});
const body = await res.text();
if (res.status !== 200) {
const body = await loginRes.text();
if (loginRes.status !== 200) {
throw new Error(body);
}
}
+3 -3
View File
@@ -10,7 +10,7 @@ export function getFileExtension(filename) {
}
// Default: Get everything after the first dot
const firstDotExtension = filename.substring(firstDotIndex)
const firstDotExtension = filename.slice(firstDotIndex)
if (firstDotExtension === '.') {
return ""
@@ -22,7 +22,7 @@ export function getFileExtension(filename) {
// Otherwise, return everything after the last dot
const lastDotIndex = filename.lastIndexOf('.')
return filename.substring(lastDotIndex)
return filename.slice(lastDotIndex)
}
export function removePrefix(filename, prefix = "") {
@@ -60,5 +60,5 @@ export function removeExtension(filename) {
const lastDot = filename.lastIndexOf('.');
if (lastDot === -1) return filename;
if (lastDot === 0) return filename;
return filename.substring(0, lastDot);
return filename.slice(0, lastDot);
}
+2 -2
View File
@@ -194,8 +194,8 @@ export function hitTest(groups: GridGroup[], hitGroups: HitGroup[], metrics: Hit
for (let row = rowMin; row <= rowMax; row++) {
const top = baseTop + row * metrics.rowPitch;
if (!(top < rect.bottom && top + metrics.itemHeight > rect.top)) continue;
const itemsInRow = Math.min(cols, group.count - row * cols);
for (let col = 0; col < itemsInRow; col++) {
const rowItems = Math.min(cols, group.count - row * cols);
for (let col = 0; col < rowItems; col++) {
const local = row * cols + col;
const left = baseLeft + col * metrics.colPitch;
if (left < rect.right && left + metrics.itemWidth > rect.left) {
+2 -2
View File
@@ -25,8 +25,8 @@ export function px(value: string | undefined): number {
export function measureGroup(group: HTMLElement, itemClass = "listing-item"): LayoutMetrics | null {
const children = group.children;
let first: HTMLElement | null = null;
for (let i = 0; i < children.length; i++) {
const child = children[i] as HTMLElement;
for (const el of children) {
const child = el as HTMLElement;
if (child.classList.contains(itemClass)) {
first = child;
break;
+1 -1
View File
@@ -109,7 +109,7 @@ function deleteAtPath(target, path) {
node = node[parts[i]];
}
if (node && typeof node === 'object') {
Reflect.deleteProperty(node, parts[parts.length - 1]);
Reflect.deleteProperty(node, parts.at(-1));
}
}
+1 -1
View File
@@ -2,7 +2,7 @@ export function getRootEmSize() {
if (typeof document === 'undefined') {
return 16;
}
return parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
return Number.parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
}
/** Tap zone (3em) — matches nextPrevious handleDocumentClick. */
+6 -6
View File
@@ -22,7 +22,7 @@ export function getSubtitleFormatExtension(filename) {
if (lastDot === -1) {
return ''
}
return filename.substring(lastDot).toLowerCase()
return filename.slice(lastDot).toLowerCase()
}
/**
@@ -52,7 +52,7 @@ export function convertToVTT (ext, text) {
.replace(
/\d+\n(\d{2}):(\d{2}):(\d{2}),(\d{3}) --> (\d{2}):(\d{2}):(\d{2}),(\d{3})/g,
(_match, h1, m1, s1, ms1, h2, m2, s2, ms2) => {
return `${parseInt(h1, 10)}:${m1}:${s1}.${ms1} --> ${parseInt(h2, 10)}:${m2}:${s2}.${ms2}`
return `${Number.parseInt(h1, 10)}:${m1}:${s1}.${ms1} --> ${Number.parseInt(h2, 10)}:${m2}:${s2}.${ms2}`
}
) // Fix timestamps (remove leading zeros)
.replace(/\n\n+/g, '\n\n') // Ensure proper spacing
@@ -135,11 +135,11 @@ export function convertToVTT (ext, text) {
// Use next SYNC start time as the end time if available
const currentTag = `<SYNC Start=${startTime}>`
const tagPos = text.indexOf(currentTag)
let endTime = parseInt(startTime, 10) + 3000 // Default to +3s
let endTime = Number.parseInt(startTime, 10) + 3000 // Default to +3s
if (tagPos >= 0) {
const nextMatch = text.slice(tagPos + currentTag.length).match(/<SYNC Start=(\d+)>/)
if (nextMatch) {
endTime = parseInt(nextMatch[1], 10)
endTime = Number.parseInt(nextMatch[1], 10)
}
}
@@ -196,9 +196,9 @@ function formatLrcTime (time) {
// Helper function to fix ASS/SSA timestamps
function formatAssTime (time) {
const parts = time.split(':')
const hours = parts.length === 3 ? parseInt(parts[0], 10) : 0
const hours = parts.length === 3 ? Number.parseInt(parts[0], 10) : 0
const minutes = parts.length === 3 ? parts[1] : parts[0]
const seconds = parts[parts.length - 1].replace('.', ':')
const seconds = parts.at(-1).replace('.', ':')
// Ensure proper milliseconds formatting (000)
const [sec, ms = '000'] = seconds.split(':')
+2 -2
View File
@@ -388,7 +388,7 @@ class UploadManager {
if (!basePath) {
basePath = "/";
}
if (basePath.slice(-1) !== "/") {
if (!basePath.endsWith("/")) {
basePath += "/";
}
@@ -530,7 +530,7 @@ class UploadManager {
for (const dir of sortedDirs) {
const pathParts = dir.slice(0, -1).split("/");
const dirName = pathParts[pathParts.length - 1] as string;
const dirName = pathParts.at(-1) as string;
// Skip top-level directories that were already created during probing
if (pathParts.length === 1 && this.probedDirs.has(dirName)) {
+3 -3
View File
@@ -248,12 +248,12 @@ export function extractSourceFromPath(url, knownSources = []) {
export function buildItemUrl(source, path, includeBaseURL = false) {
path = removeLeadingSlash(path);
const encodedPath = encodePath(path);
const encodedItemPath = encodePath(path);
let urlPath;
if (getters.isShare()) {
urlPath = `public/share/${state.shareInfo.hash}/${encodedPath}`;
urlPath = `public/share/${state.shareInfo.hash}/${encodedItemPath}`;
} else {
urlPath = `files/${encodeURIComponent(source)}/${encodedPath}`;
urlPath = `files/${encodeURIComponent(source)}/${encodedItemPath}`;
}
if (includeBaseURL) {
return `${globalVars.baseURL}${urlPath}`;
+3 -3
View File
@@ -43,16 +43,16 @@ function sameListing(a, b) {
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) {
return false;
}
const describe = (i) =>
const describeItem = (i) =>
[ i.type, i.size, i.modified,
i.created, i.pinned, i.hasPreview,
i.isShared, i.hidden, i.viewToken,
].join("|");
const known = new Map();
for (const item of a) {
known.set(item.name, describe(item));
known.set(item.name, describeItem(item));
}
return b.every((item) => known.get(item.name) === describe(item));
return b.every((item) => known.get(item.name) === describeItem(item));
}
function reusableParentItems(inScope, filePath) {
+1 -1
View File
@@ -7,7 +7,7 @@
<div v-if="overlayOverPrompt" @contextmenu.prevent="closeContextMenu" @click="closeContextMenu" class="overlay overlay-prompt"></div>
</transition>
<div v-if="progress" class="progress">
<div v-bind:style="{ width: `${progress}%` }"></div>
<div :style="{ width: `${progress}%` }"></div>
</div>
<defaultBar></defaultBar>
<sidebar v-if="!invalidShare"></sidebar>
+1 -1
View File
@@ -854,7 +854,7 @@ defineExpose({ getValue });
.ace_editor .ace_gutter-active-line {
background-color: color-mix(in srgb, var(--primaryColor) 20%, transparent) !important;
color: var(--primaryColor) !important;
font-weight: bold !important;
font-weight: 700 !important;
}
/* Indent lines */
+17 -17
View File
@@ -74,23 +74,23 @@
v-for="(item, idx) in virtual.group(section.key).items"
:key="item.path || item.name"
:class="{ 'zebra-row': (virtual.group(section.key).position + idx) % 2 === 1 }"
v-bind:index="item.index"
v-bind:name="item.name"
v-bind:isDir="item.type === 'directory'"
v-bind:source="req.source"
v-bind:modified="item.modified"
v-bind:created="item.created"
v-bind:type="item.type"
v-bind:size="item.size"
v-bind:path="item.path"
v-bind:reducedOpacity="item.hidden"
v-bind:hash="shareInfo.hash"
v-bind:hasPreview="item.hasPreview"
v-bind:metadata="item.metadata"
v-bind:hasDuration="hasDuration"
v-bind:isShared="item.isShared"
v-bind:pinned="item.pinned"
v-bind:viewToken="item.viewToken"
:index="item.index"
:name="item.name"
:isDir="item.type === 'directory'"
:source="req.source"
:modified="item.modified"
:created="item.created"
:type="item.type"
:size="item.size"
:path="item.path"
:reducedOpacity="item.hidden"
:hash="shareInfo.hash"
:hasPreview="item.hasPreview"
:metadata="item.metadata"
:hasDuration="hasDuration"
:isShared="item.isShared"
:pinned="item.pinned"
:viewToken="item.viewToken"
/>
</div>
</template>
+10 -10
View File
@@ -115,8 +115,8 @@ marked.use({
const MATH_PATTERN = /\$\$[\s\S]+?\$\$|\$[^\s$][^$\n]*\$/;
const INLINE_MATH_RULE = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1(?=[\s?!.,:?!。,:]|$)/;
const BLOCK_MATH_RULE = /^(\${1,2})\n((?:\\[\s\S]|[^\\])+?)\n\1(?:\n|$)/;
function contentHasMath(content: string): boolean {
return MATH_PATTERN.test(content);
function contentHasMath(markdown: string): boolean {
return MATH_PATTERN.test(markdown);
}
let mathLoaded = false;
let mathPromise: Promise<void> | null = null;
@@ -137,11 +137,11 @@ function loadMath(): Promise<void> {
const index = indexSrc.indexOf("$");
if (index === -1) return undefined;
if (index === 0 || indexSrc.charAt(index - 1) === " ") {
if (INLINE_MATH_RULE.test(indexSrc.substring(index))) {
if (INLINE_MATH_RULE.test(indexSrc.slice(index))) {
return index;
}
}
indexSrc = indexSrc.substring(index + 1).replace(/^\$+/, "");
indexSrc = indexSrc.slice(index + 1).replace(/^\$+/, "");
}
return undefined;
},
@@ -484,7 +484,7 @@ function addLineNumbers(codeBlock: HTMLElement) {
const lines = code.split('\n');
// Remove trailing empty lines
if (lines[lines.length - 1] === '') {
if (lines.at(-1) === '') {
lines.pop();
}
@@ -621,7 +621,7 @@ function splitHighlightedHTML(html: string, expectedLines: number): string[] {
const textLines = textContent.split('\n');
// Remove trailing empty line from textLines if present
if (textLines[textLines.length - 1] === '') {
if (textLines.at(-1) === '') {
textLines.pop();
}
@@ -639,8 +639,8 @@ function splitHighlightedHTML(html: string, expectedLines: number): string[] {
} else {
const lineBreakIndex = currentHTML.indexOf('\n');
if (lineBreakIndex !== -1) {
htmlLines.push(currentHTML.substring(0, lineBreakIndex));
currentHTML = currentHTML.substring(lineBreakIndex + 1);
htmlLines.push(currentHTML.slice(0, lineBreakIndex));
currentHTML = currentHTML.slice(lineBreakIndex + 1);
} else {
htmlLines.push(escapeHtml(lineText));
}
@@ -657,12 +657,12 @@ function escapeHtml(text: string): string {
return div.innerHTML;
}
function parseMarkdown(content: string, filePath: string, source: string): { key: string; line: number; html: string; codeLine?: number }[] {
function parseMarkdown(markdown: string, filePath: string, source: string): { key: string; line: number; html: string; codeLine?: number }[] {
const parser = marked;
// Tag each top level block with its source line for scroll-sync
let tokens: Token[] | null;
try {
tokens = parser.lexer(content);
tokens = parser.lexer(markdown);
} catch (err) {
console.error("Failed to lex markdown:", err);
tokens = null;
+1 -1
View File
@@ -631,7 +631,7 @@ export default {
// Verify Magic Number
const magic = new TextDecoder().decode(new Uint8Array(data, 0, 4));
const modelDir = this.fbdata.path.substring(0, this.fbdata.path.lastIndexOf('/') + 1);
const modelDir = this.fbdata.path.slice(0, this.fbdata.path.lastIndexOf('/') + 1);
if (magic !== 'glTF') {
// Try text parse
+3 -3
View File
@@ -388,7 +388,7 @@ export default {
// Metadata & Art
metadata: null, // Null by default, will be loaded from the audio file.
albumArtUrl: null,
albumArtSize: parseFloat(sessionStorage.getItem('plyrAlbumArtSize')) || 24,
albumArtSize: Number.parseFloat(sessionStorage.getItem('plyrAlbumArtSize')) || 24,
isHovering: false, // Track hover state
// Lyrics
@@ -4652,7 +4652,7 @@ export default {
.lyric-line.active {
opacity: 1;
font-weight: bold;
font-weight: 700;
color: var(--primaryColor);
font-size: 1.35rem;
animation: lyric-line-in 0.3s ease;
@@ -4784,7 +4784,7 @@ export default {
/* Metadata */
.audio-title {
font-size: max(1.4rem, 3.1vmin);
font-weight: bold;
font-weight: 700;
margin-bottom: 8px;
overflow-wrap: break-word;
}
+5 -5
View File
@@ -447,9 +447,9 @@ const CHART_COLORS = [
function hexToRgba(hex, alpha) {
const normalized = hex.replace("#", "");
const r = parseInt(normalized.slice(0, 2), 16);
const g = parseInt(normalized.slice(2, 4), 16);
const b = parseInt(normalized.slice(4, 6), 16);
const r = Number.parseInt(normalized.slice(0, 2), 16);
const g = Number.parseInt(normalized.slice(2, 4), 16);
const b = Number.parseInt(normalized.slice(4, 6), 16);
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
}
@@ -1259,7 +1259,7 @@ export default {
}
this.clampUserFiltersForRole();
if (queryValuePresent(query.page)) {
const page = parseInt(query.page, 10);
const page = Number.parseInt(query.page, 10);
if (!Number.isNaN(page) && page >= 1) {
this.currentPage = page;
}
@@ -1867,7 +1867,7 @@ export default {
backgroundColor: hexToRgba(color, 0.88),
borderColor: color,
borderWidth: 1,
borderRadius: (ctx) => this.stackedBarBorderRadius(ctx, barRadius, stacked),
borderRadius: (chartCtx) => this.stackedBarBorderRadius(chartCtx, barRadius, stacked),
borderSkipped: false,
minBarLength: 0,
stack: stacked ? "activity" : undefined,
+2 -2
View File
@@ -262,7 +262,7 @@ function displayName(fullPath: string, isDirectory: boolean) {
? fullPath.slice(0, -1)
: fullPath;
const parts = withoutTrailing.split("/").filter(Boolean);
const name = parts[parts.length - 1] ?? "";
const name = parts.at(-1) ?? "";
return name !== "" ? name : (isDirectory ? "/" : "?");
}
@@ -565,7 +565,7 @@ function handleScroll() {
const container = scrollContainer;
if (!container) return;
const top = container.scrollTop;
const stickyTop = container.getBoundingClientRect().top + parseFloat(getComputedStyle(container).paddingTop);
const stickyTop = container.getBoundingClientRect().top + Number.parseFloat(getComputedStyle(container).paddingTop);
const resultsTop = results.value?.getBoundingClientRect().top;
if (resultsTop === undefined || resultsTop > stickyTop) {
headerHidden.value = false;
+2 -2
View File
@@ -381,7 +381,7 @@ function getGroupSizeText(group: DuplicateGroup) {
function getFileName(path: string) {
const parts = path.split("/").filter(p => p);
return parts[parts.length - 1] || path;
return parts.at(-1) || path;
}
function ensureLeadingSlash(path: string) {
@@ -405,7 +405,7 @@ function getFullPath(filePath: string) {
}
// Remove leading slash from file path if present before combining
const cleanFilePath = filePath.startsWith('/') ? filePath.substring(1) : filePath;
const cleanFilePath = filePath.startsWith('/') ? filePath.slice(1) : filePath;
return `${normalizedSearchPath}/${cleanFilePath}`;
}
+3 -3
View File
@@ -332,7 +332,7 @@ export default {
// Initialize largerThanValue: query > prop > default
if (query.largerThan !== undefined && query.largerThan !== null) {
const parsed = parseInt(query.largerThan, 10);
const parsed = Number.parseInt(query.largerThan, 10);
if (!Number.isNaN(parsed)) {
this.largerThanValue = parsed;
}
@@ -433,7 +433,7 @@ export default {
}
},
worst(row, container) {
if (row.length === 0) return Infinity;
if (row.length === 0) return Number.POSITIVE_INFINITY;
const total = row.reduce((sum, item) => sum + item.value, 0);
const min = Math.min(...row.map(item => item.value));
@@ -545,7 +545,7 @@ export default {
getDisplayPath(path) {
// Show just the filename/directory name for cleaner display
const parts = path.split("/").filter(p => p);
return parts[parts.length - 1] || path;
return parts.at(-1) || path;
},
humanSize(size) {
return getHumanReadableFilesize(size);
-55
View File
@@ -1,55 +0,0 @@
export default {
extends: [
"stylelint-config-standard",
"stylelint-config-standard-vue",
],
ignoreFiles: [
"**/dist/**",
"**/node_modules/**",
"**/public/**",
"!**/public/css/**",
"**/pkg/**",
],
reportNeedlessDisables: true,
reportInvalidScopeDisables: true,
"referenceFiles": [
"src/css/_variables.css",
"src/css/_fab.css",
"public/css/variables.css"
],
rules: {
"no-descending-specificity": true,
"at-rule-no-deprecated": true,
"media-type-no-deprecated": true,
"property-no-deprecated": true,
"declaration-property-value-keyword-no-deprecated": true,
"declaration-property-value-no-unknown": true,
"selector-class-pattern": null,
"selector-id-pattern": null, // disable enforcing of kebab-case
"custom-property-pattern": null,
"rule-empty-line-before": [
"always-multi-line",
{
except: ["first-nested"],
ignore: ["after-comment", "inside-block"],
},
],
"comment-empty-line-before": null,
"declaration-empty-line-before": null,
"font-family-no-missing-generic-family-keyword": null,
"no-unknown-animations": true,
"no-unknown-custom-properties": true,
"no-unknown-custom-media": true,
"function-no-unknown": true,
"media-feature-name-no-unknown": true,
"unit-no-unknown": true,
"selector-no-deprecated": true,
"color-no-invalid-hex": true,
"selector-no-invalid": true,
"function-linear-gradient-no-nonstandard-direction": true,
"selector-no-unmatchable": true,
"selector-pseudo-element-disallowed-list": [/^-ms-/, /^-moz-focus-/],
"selector-pseudo-class-disallowed-list": [/^-ms-/],
"property-disallowed-list": [/^-ms-/, "-moz-osx-font-smoothing"],
},
};
@@ -1,59 +1,59 @@
body {
margin: 0;
padding: 2rem;
font-family: system-ui, sans-serif;
background: #0d1a12;
color: #e8ece9;
margin: 0;
padding: 2rem;
font-family: system-ui, sans-serif;
background: #0d1a12;
color: #e8ece9;
}
h1 {
color: #7ee2a8;
color: #7ee2a8;
}
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.5rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid #2f4a3a;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.5rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid #2f4a3a;
}
.navbar a {
color: #7ee2a8;
color: #7ee2a8;
}
.subtitle,
figcaption {
color: #9fb3a6;
font-size: 0.9rem;
color: #9fb3a6;
font-size: 0.9rem;
}
.media-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
}
figure {
margin: 0;
overflow: hidden;
border: 1px solid #2f4a3a;
border-radius: 12px;
margin: 0;
overflow: hidden;
border: 1px solid #2f4a3a;
border-radius: 12px;
}
img,
video {
display: block;
width: 100%;
height: auto;
display: block;
width: 100%;
height: auto;
}
figcaption {
padding: 0.75rem 1rem;
padding: 0.75rem 1rem;
}
code {
font-size: 0.85em;
font-size: 0.85em;
}
@@ -77,8 +77,8 @@ test("closing a result we opened returns and scrolls to it", async ({ page, chec
await page.locator(".advanced-search-listing-results .listing-item-header .name").click();
await expect.poll(() => namesOf(items)).not.toEqual(before);
const names = await namesOf(items);
const last = names[names.length - 1];
const beforeLast = names[names.length - 2];
const last = names.at(-1);
const beforeLast = names.at(-2);
await items.last().dblclick();
await expect(page).toHaveTitle(`${TITLE}${last}`);
@@ -201,8 +201,8 @@ test("next/previous follow the quick search result order", async({ page, checkFo
test("closing a quick search result returns and scrolls to it in the panel", async({ page, checkForErrors }) => {
const entries = await quickSearch(page, "jpg");
const names = await entries.evaluateAll((els) => els.map((el) => el.getAttribute("aria-label")));
const last = names[names.length - 1];
const beforeLast = names[names.length - 2];
const last = names.at(-1);
const beforeLast = names.at(-2);
await entries.last().locator("a").click();
await expect(page).toHaveTitle(`Graham's Filebrowser - Files - ${last}`);
+4 -4
View File
@@ -47,10 +47,10 @@ async function globalSetup() {
// Authenticated sharing tests read these from loginAuth.json localStorage.
await page.evaluate(
({ shareHash, shareHashFile, rootShareHash }) => {
localStorage.setItem("shareHash", shareHash);
localStorage.setItem("shareHashFile", shareHashFile);
localStorage.setItem("rootShareHash", rootShareHash);
(hashes) => {
localStorage.setItem("shareHash", hashes.shareHash);
localStorage.setItem("shareHashFile", hashes.shareHashFile);
localStorage.setItem("rootShareHash", hashes.rootShareHash);
},
{ shareHash, shareHashFile, rootShareHash },
);
@@ -28,7 +28,7 @@ const LEVEL_NAMES = [
"level-6-directory-name-long-enough-to-overflow-content",
"level-7-leaf-directory-with-the-longest-name-in-tree-x",
];
const DEEPEST_LEVEL_NAME = LEVEL_NAMES[LEVEL_NAMES.length - 1];
const DEEPEST_LEVEL_NAME = LEVEL_NAMES.at(-1);
const DEEP_PATH = `${FIXTURE_ROOT}${LEVEL_NAMES.join("/")}/`;
// API paths are absolute, so they resolve under the configured baseURL (the app is served under /files/).
@@ -244,9 +244,9 @@ function medianOf(values) {
function hexAlpha(hex, a) {
const n = (hex || "#888").replace("#", "");
const r = parseInt(n.slice(0, 2), 16);
const g = parseInt(n.slice(2, 4), 16);
const b = parseInt(n.slice(4, 6), 16);
const r = Number.parseInt(n.slice(0, 2), 16);
const g = Number.parseInt(n.slice(2, 4), 16);
const b = Number.parseInt(n.slice(4, 6), 16);
return `rgba(${r}, ${g}, ${b}, ${a})`;
}
@@ -681,7 +681,7 @@ function renderDeltaHist() {
const strip = document.querySelector("#delta-strip");
const sorted = [...visibleForHist].sort(
(a, b) => (b.signedPct ?? -Infinity) - (a.signedPct ?? -Infinity),
(a, b) => (b.signedPct ?? Number.NEGATIVE_INFINITY) - (a.signedPct ?? Number.NEGATIVE_INFINITY),
);
strip.innerHTML = "";
for (const row of sorted) {
@@ -98,7 +98,7 @@ export function compareMetric(
const delta = current - baseline.value;
const deltaPct =
baseline.value !== 0 ? (delta / baseline.value) * 100 : current === 0 ? 0 : Infinity;
baseline.value !== 0 ? (delta / baseline.value) * 100 : current === 0 ? 0 : Number.POSITIVE_INFINITY;
const base: Omit<MetricComparison, "status" | "detail"> = {
key,
@@ -98,7 +98,7 @@ export function getPerfConfig(): PerfConfig {
export function selectCountForScale(scale: number): number {
const env = process.env.PERF_SELECT_COUNT;
if (env) {
const n = parseInt(env, 10);
const n = Number.parseInt(env, 10);
if (Number.isFinite(n) && n > 0) return n;
}
const cfg = getPerfConfig();
@@ -168,7 +168,7 @@ export function installFrameTiming(page: {
p50: round2(pct(50)),
p95: round2(pct(95)),
p99: round2(pct(99)),
max: round2(sorted[sorted.length - 1] ?? 0),
max: round2(sorted.at(-1) ?? 0),
droppedFrames: durations.filter((d) => d > droppedThreshold).length,
longFrameMs: Math.round(state.longFrameMs),
effectiveFps: round2(durations.length / (windowMs / 1000)),
@@ -58,7 +58,7 @@ export function baselineUpdateRequested(): boolean {
*/
export function repeatCount(): number {
if (process.env.PERF_REPEATS) {
const n = parseInt(process.env.PERF_REPEATS, 10);
const n = Number.parseInt(process.env.PERF_REPEATS, 10);
if (Number.isFinite(n) && n > 0) return n;
}
return process.env.CI ? 1 : 3;
@@ -164,7 +164,7 @@ export function buildHeadlines(input: {
};
// --- Cross-browser comparison at the largest scale ----------------------
const maxScale = scales[scales.length - 1] ?? 0;
const maxScale = scales.at(-1) ?? 0;
for (const scenario of SCENARIOS) {
const values = browsers
.map((b) => ({ browser: b, ms: durationOf(b, maxScale, scenario) }))
@@ -204,9 +204,9 @@ export function buildHeadlines(input: {
const ratio = superlinearity(scales, durations);
if (ratio !== null && ratio > 1.5) {
const firstScale = scales[0] ?? 0;
const lastScale = scales[scales.length - 1] ?? 0;
const lastScale = scales.at(-1) ?? 0;
const firstMs = durations[0] ?? 0;
const lastMs = durations[durations.length - 1] ?? 0;
const lastMs = durations.at(-1) ?? 0;
findings.push({
severity: ratio > 3 ? "high" : "medium",
category: "scaling",
@@ -46,7 +46,7 @@ export function parsePerfScales(): number[] {
const raw = process.env.PERF_SCALES ?? "100,1000,10000";
const scales = raw
.split(",")
.map((s) => parseInt(s.trim(), 10))
.map((s) => Number.parseInt(s.trim(), 10))
.filter((n) => Number.isFinite(n) && n > 0);
return scales.length > 0 ? scales : [100, 1000, 10000];
}
@@ -55,7 +55,7 @@ export function parsePerfScales(): number[] {
export function seedForScale(scale: number): number {
const env = process.env.PERF_MOCK_SEED;
if (env) {
const n = parseInt(env, 10);
const n = Number.parseInt(env, 10);
if (Number.isFinite(n)) return n + scale;
}
return scale * 1_000_003 + scale;
@@ -298,7 +298,7 @@ function categorize(name: string, location: string | null): string {
if (/^(Layout|UpdateLayoutTree|RecalcStyle|Paint|CompositeLayers)/.test(name)) {
return "rendering";
}
if (/GC$/.test(name)) return "gc";
if (name.endsWith("GC")) return "gc";
if (/^(ParseHTML|ParseAuthorStyleSheet|EvaluateScript|CompileScript|v8)/.test(name)) {
return "parse/compile";
}
@@ -68,7 +68,7 @@ export function installWebVitals(page: {
try {
const po = new PerformanceObserver((list) => {
const entries = list.getEntries();
const last = entries[entries.length - 1];
const last = entries.at(-1);
if (last) state.lcp = last.startTime;
});
po.observe({ type: "largest-contentful-paint", buffered: true } as PerformanceObserverInit);
@@ -105,7 +105,7 @@ test("switching transcode modes sends replaceSessionId for the same file", async
expect(sessionStatuses.every((status) => status === 201 || status === 200)).toBe(true);
// First playlist poll may be 503 (not ready); later polls must be 200, never 500.
await expect.poll(() => mock.playlistHits()).toBeGreaterThanOrEqual(1);
expect(playlistStatuses.some((status) => status === 500)).toBe(false);
expect(playlistStatuses.includes(500)).toBe(false);
expect(playlistStatuses.some((status) => status === 200 || status === 503)).toBe(true);
});
@@ -28,7 +28,7 @@ async function openUserDefaultsPrompt(page: import("@playwright/test").Page) {
.click();
const defaultsResponse = page.waitForResponse(
(response) => isExactSettingsApiResponse(response, "settings/user-defaults", "GET"),
(apiResponse) => isExactSettingsApiResponse(apiResponse, "settings/user-defaults", "GET"),
);
await page.getByRole("button", { name: "User defaults" }).click();
@@ -10,7 +10,7 @@ async function openAccessSettings(page: import("@playwright/test").Page) {
await expect(page).toHaveTitle("Graham's Filebrowser - Settings");
const defaultsResponse = page.waitForResponse(
(response) => isExactSettingsApiResponse(response, "settings/source", "GET"),
(apiResponse) => isExactSettingsApiResponse(apiResponse, "settings/source", "GET"),
);
const usersCard = page
.locator(".settings-card-collapsible")
+1 -1
View File
@@ -88,7 +88,7 @@ async function waitForContextMenuReady(page: Page, contextMenu: Locator): Promis
await contextMenu.waitFor({ state: "visible", timeout: 5000 });
await page.waitForFunction(() => {
const menus = document.querySelectorAll("#context-menu");
const menu = menus[menus.length - 1];
const menu = Array.from(menus).at(-1);
if (!(menu instanceof HTMLElement)) {
return false;
}
+1 -2
View File
@@ -25,7 +25,6 @@
"vite.config.ts",
"scripts/**/*.js",
"scripts/**/*.ts",
"src/i18n/locales.ts",
"stylelint.config.js"
"src/i18n/locales.ts"
]
}
-1
View File
@@ -99,7 +99,6 @@ build-frontend:
lint-frontend:
cd frontend && npm run lint
cd frontend && npm run lint:css
cd frontend && npm run typecheck
lint-backend: