From a33dbfc464706d0af98d20382b808e3a8caa6160 Mon Sep 17 00:00:00 2001 From: Graham Steffaniak <42989099+gtsteffaniak@users.noreply.github.com> Date: Wed, 19 Nov 2025 08:50:49 -0600 Subject: [PATCH] Beta/v1.1.0 (#1614) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Swedish Wiking <121635232+Swedish-Wiking@users.noreply.github.com> Co-authored-by: Pyro Co-authored-by: Kevin B. Co-authored-by: lps-rocks <10893911+lps-rocks@users.noreply.github.com> Co-authored-by: contributor Co-authored-by: Ironic <202444094+YoureIronic@users.noreply.github.com> Co-authored-by: Sarabanga <96509626+Sarabanga@users.noreply.github.com> Co-authored-by: ✿ corey --- .github/workflows/release_beta.yaml | 2 +- .github/workflows/release_dev.yaml | 60 - .gitignore | 5 +- CHANGELOG.md | 51 +- README.md | 20 +- _docker/Dockerfile | 3 +- _docker/Dockerfile.slim | 1 + backend/adapters/fs/files/file_test.go | 135 +- backend/adapters/fs/files/files.go | 291 +- backend/benchmark_results.txt | 139 +- backend/cmd/cli.go | 8 +- backend/cmd/root.go | 17 +- backend/cmd/share.go | 57 + backend/cmd/user.go | 16 +- backend/common/settings/config.go | 312 +- backend/common/settings/configFunctions.go | 8 +- backend/common/settings/functions.go | 166 + backend/common/settings/generator.go | 2 +- .../common/settings/generator_simple_test.go | 8 +- backend/common/settings/generator_test.go | 21 +- backend/common/settings/multiconfig_test.go | 2 +- backend/common/settings/settings.go | 57 +- backend/common/settings/structs.go | 131 +- backend/common/utils/checkForUpdates.go | 5 +- backend/common/utils/file.go | 1 + backend/common/utils/main.go | 21 + backend/config.yaml | 29 +- backend/database/access/access.go | 240 +- backend/database/access/access_test.go | 510 ++ backend/database/access/helper.go | 2 +- backend/database/share/share.go | 74 +- backend/database/share/storage.go | 56 +- backend/database/storage/bolt/share.go | 17 + backend/database/storage/bolt/users.go | 13 + backend/database/storage/storage.go | 10 +- backend/database/users/users.go | 68 +- backend/docs/docs.go | 4646 ++++++++++ backend/docs/swagger.json | 4617 ++++++++++ backend/docs/swagger.yaml | 3229 +++++++ backend/ffmpeg/cache.go | 13 + backend/ffmpeg/image.go | 43 +- backend/ffmpeg/image_test.go | 94 +- backend/ffmpeg/metadata.go | 68 + backend/ffmpeg/service.go | 104 + backend/ffmpeg/subtitles.go | 6 - backend/ffmpeg/video.go | 65 +- backend/go.mod | 61 +- backend/go.sum | 134 +- backend/http/access.go | 81 +- backend/http/auth.go | 2 +- backend/http/duplicates.go | 557 ++ backend/http/httpRouter.go | 51 +- backend/http/oidc.go | 117 +- backend/http/oidc_test.go | 34 +- backend/http/preview.go | 19 +- backend/http/public.go | 4 +- backend/http/resource.go | 10 +- backend/http/search.go | 63 +- backend/http/settings.go | 2 +- backend/http/share.go | 128 +- backend/http/static.go | 341 +- backend/http/users.go | 8 +- backend/indexing/deletion_test.go | 179 + backend/indexing/indexingFiles.go | 172 +- backend/indexing/indexingFiles_test.go | 56 +- backend/indexing/indexingScanner.go | 453 + backend/indexing/indexingSchedule.go | 343 +- backend/indexing/indexing_test.go | 75 + backend/indexing/iteminfo/conditions.go | 33 +- backend/indexing/iteminfo/fileinfo.go | 25 +- backend/indexing/iteminfo/mediaMeta.go | 4 +- backend/indexing/mock.go | 30 +- backend/indexing/mutate.go | 61 +- backend/indexing/mutate_test.go | 26 +- backend/indexing/search.go | 93 +- backend/indexing/search_test.go | 179 +- backend/indexing/unix.go | 5 +- backend/preview/image_enum.go | 46 +- backend/preview/image_test.go | 4 +- backend/preview/preview.go | 120 +- backend/reduce-rounded-corners.css | 1 - backend/swagger/docs/docs.go | 913 +- backend/swagger/docs/swagger.json | 913 +- backend/swagger/docs/swagger.yaml | 657 +- frontend/.eslintrc.json | 32 +- frontend/package-lock.json | 7557 +++++++++++++++++ frontend/package.json | 5 +- frontend/public/config.generated.yaml | 35 +- frontend/public/img/icons/favicon-light.svg | 13 + frontend/public/index.html | 3 +- frontend/src/api/access.js | 24 +- frontend/src/api/files.js | 22 +- frontend/src/api/public.js | 70 +- frontend/src/api/search.js | 40 +- frontend/src/api/share.js | 51 +- frontend/src/api/users.js | 13 +- frontend/src/api/utils.js | 5 +- frontend/src/api/utils.test.js | 9 - frontend/src/components/Breadcrumbs.vue | 42 +- frontend/src/components/ButtonGroup.vue | 8 +- frontend/src/components/ContextMenu.vue | 45 +- frontend/src/components/Notifications.vue | 323 +- frontend/src/components/ProgressBar.vue | 3 +- frontend/src/components/Search.vue | 198 +- frontend/src/components/StatusBar.vue | 254 + frontend/src/components/Toast.vue | 132 + .../src/components/files/ExtendedImage.vue | 2 +- frontend/src/components/files/Icon.vue | 36 +- frontend/src/components/files/IndexInfo.vue | 175 + frontend/src/components/files/ListingItem.vue | 76 +- frontend/src/components/files/Scrollbar.vue | 58 +- .../src/components/files/ShareInfoCard.vue | 65 +- .../src/components/files/nextPrevious.vue | 14 +- frontend/src/components/prompts/Access.vue | 105 +- frontend/src/components/prompts/ActionApi.vue | 20 +- .../prompts/CloseWithActiveUploads.vue | 6 +- .../components/prompts/CopyPasteConfirm.vue | 15 +- frontend/src/components/prompts/CreateApi.vue | 12 +- frontend/src/components/prompts/Delete.vue | 24 +- .../src/components/prompts/DeleteUser.vue | 8 +- frontend/src/components/prompts/Download.vue | 1 + frontend/src/components/prompts/FileList.vue | 52 +- frontend/src/components/prompts/Generic.vue | 2 +- frontend/src/components/prompts/Help.vue | 22 +- .../src/components/prompts/IconPicker.vue | 315 + frontend/src/components/prompts/Info.vue | 68 +- frontend/src/components/prompts/MoveCopy.vue | 192 +- frontend/src/components/prompts/NewDir.vue | 68 +- frontend/src/components/prompts/NewFile.vue | 65 +- frontend/src/components/prompts/Password.vue | 6 +- .../src/components/prompts/PathPicker.vue | 85 + .../src/components/prompts/PlaybackQueue.vue | 19 +- frontend/src/components/prompts/Prompts.vue | 74 +- frontend/src/components/prompts/Rename.vue | 103 +- frontend/src/components/prompts/Replace.vue | 12 +- .../src/components/prompts/ReplaceRename.vue | 23 +- frontend/src/components/prompts/Share.vue | 671 +- .../src/components/prompts/ShareDelete.vue | 12 +- frontend/src/components/prompts/ShareInfo.vue | 150 + .../src/components/prompts/SidebarLinks.vue | 866 ++ frontend/src/components/prompts/Totp.vue | 12 +- frontend/src/components/prompts/Upload.vue | 56 +- frontend/src/components/prompts/UserEdit.vue | 33 +- frontend/src/components/settings/Themes.vue | 4 +- frontend/src/components/sidebar/General.vue | 286 +- frontend/src/components/sidebar/Links.vue | 514 ++ frontend/src/components/sidebar/Settings.vue | 15 +- frontend/src/components/sidebar/Share.vue | 59 - frontend/src/components/sidebar/Sidebar.vue | 21 +- frontend/src/css/_banners.css | 70 + frontend/src/css/_buttons.css | 12 +- frontend/src/css/_inputs.css | 6 +- frontend/src/css/_share.css | 6 +- frontend/src/css/base.css | 4 +- frontend/src/css/dark.css | 18 +- frontend/src/css/dashboard.css | 7 +- frontend/src/css/listing.css | 266 +- frontend/src/css/mobile.css | 59 +- frontend/src/css/styles.css | 13 +- frontend/src/i18n/ar.json | 369 +- frontend/src/i18n/cz.json | 369 +- frontend/src/i18n/de.json | 369 +- frontend/src/i18n/el.json | 369 +- frontend/src/i18n/en.json | 387 +- frontend/src/i18n/es.json | 367 +- frontend/src/i18n/fr.json | 369 +- frontend/src/i18n/he.json | 369 +- frontend/src/i18n/hu.json | 369 +- frontend/src/i18n/is.json | 4 +- frontend/src/i18n/it.json | 369 +- frontend/src/i18n/ja.json | 369 +- frontend/src/i18n/ko.json | 369 +- frontend/src/i18n/nl-be.json | 369 +- frontend/src/i18n/pl.json | 369 +- frontend/src/i18n/pt-br.json | 369 +- frontend/src/i18n/pt.json | 369 +- frontend/src/i18n/ro.json | 369 +- frontend/src/i18n/ru.json | 369 +- frontend/src/i18n/sk.json | 369 +- frontend/src/i18n/sv-se.json | 369 +- frontend/src/i18n/tr.json | 369 +- frontend/src/i18n/ua.json | 369 +- frontend/src/i18n/zh-cn.json | 369 +- frontend/src/i18n/zh-tw.json | 369 +- frontend/src/notify/events.js | 17 +- frontend/src/notify/index.ts | 15 + frontend/src/notify/message.js | 592 +- frontend/src/router/index.ts | 56 +- frontend/src/store/eventBus.js | 31 +- frontend/src/store/getters.js | 110 +- frontend/src/store/modules/upload.js | 2 +- frontend/src/store/mutations.js | 63 +- frontend/src/store/state.js | 29 +- frontend/src/store/types.ts | 3 +- frontend/src/utils/constants.js | 62 +- frontend/src/utils/download.js | 2 +- frontend/src/utils/material-icons.js | 529 ++ frontend/src/utils/sort.js | 6 + frontend/src/utils/sort.test.js | 53 + frontend/src/utils/upload.js | 18 +- frontend/src/utils/url.js | 30 +- frontend/src/utils/url.test.js | 7 +- frontend/src/views/Errors.vue | 4 + frontend/src/views/Files.vue | 105 +- frontend/src/views/Layout.vue | 33 +- frontend/src/views/Login.vue | 34 +- frontend/src/views/Settings.vue | 9 +- frontend/src/views/Tools.vue | 126 + frontend/src/views/bars/Default.vue | 24 +- frontend/src/views/files/DocViewer.vue | 2 +- frontend/src/views/files/Editor.vue | 29 +- frontend/src/views/files/EpubViewer.vue | 2 +- frontend/src/views/files/ListingView.vue | 181 +- frontend/src/views/files/OnlyOfficeEditor.vue | 2 +- frontend/src/views/files/Preview.vue | 21 +- frontend/src/views/files/plyrViewer.vue | 245 +- frontend/src/views/settings/Access.vue | 18 +- frontend/src/views/settings/Api.vue | 134 +- frontend/src/views/settings/FileLoading.vue | 10 +- frontend/src/views/settings/Global.vue | 6 +- frontend/src/views/settings/Notifications.vue | 347 + frontend/src/views/settings/Profile.vue | 37 +- frontend/src/views/settings/Shares.vue | 56 +- frontend/src/views/settings/SystemAdmin.vue | 8 +- frontend/src/views/settings/Users.vue | 18 +- frontend/src/views/tools/DuplicateFinder.vue | 609 ++ .../src/views/tools/MaterialIconPicker.vue | 309 + frontend/src/views/tools/SizeViewer.vue | 975 +++ frontend/tests/mocks/setup.js | 2 +- .../playwright/general/file-actions.spec.ts | 14 +- .../playwright/noauth/file-actions.spec.ts | 14 +- .../noauth/indexing-options.spec.ts | 4 +- .../playwright/noauth/share.mobile.spec.ts | 11 +- .../tests/playwright/noauth/share.spec.ts | 8 +- .../playwright/noauth/theme-branding.spec.ts | 5 +- frontend/tests/playwright/oidc-setup.ts | 4 +- .../tests/playwright/oidc/preview.spec.ts | 3 + .../tests/playwright/proxy/preview.spec.ts | 3 + .../playwright/settings/settings.spec.ts | 10 +- .../tests/playwright/settings/sidebar.spec.ts | 13 + .../playwright/settings/user-actions.spec.ts | 3 - .../playwright/sharing/navigation.spec.ts | 21 + .../playwright/sharing/share.mobile.spec.ts | 11 +- .../tests/playwright/sharing/share.spec.ts | 38 +- .../tests/playwright/sharing/sidebar.spec.ts | 86 + frontend/tests/playwright/test-setup.ts | 160 + frontend/vite.config.ts | 6 +- makefile | 49 +- 248 files changed, 42761 insertions(+), 6759 deletions(-) delete mode 100644 .github/workflows/release_dev.yaml create mode 100644 backend/cmd/share.go create mode 100644 backend/common/settings/functions.go create mode 100644 backend/docs/docs.go create mode 100644 backend/docs/swagger.json create mode 100644 backend/docs/swagger.yaml create mode 100644 backend/ffmpeg/cache.go create mode 100644 backend/ffmpeg/metadata.go create mode 100644 backend/ffmpeg/service.go create mode 100644 backend/http/duplicates.go create mode 100644 backend/indexing/deletion_test.go create mode 100644 backend/indexing/indexingScanner.go create mode 100644 frontend/package-lock.json create mode 100644 frontend/public/img/icons/favicon-light.svg create mode 100644 frontend/src/components/StatusBar.vue create mode 100644 frontend/src/components/Toast.vue create mode 100644 frontend/src/components/files/IndexInfo.vue create mode 100644 frontend/src/components/prompts/IconPicker.vue create mode 100644 frontend/src/components/prompts/PathPicker.vue create mode 100644 frontend/src/components/prompts/ShareInfo.vue create mode 100644 frontend/src/components/prompts/SidebarLinks.vue create mode 100644 frontend/src/components/sidebar/Links.vue delete mode 100644 frontend/src/components/sidebar/Share.vue create mode 100644 frontend/src/css/_banners.css create mode 100644 frontend/src/utils/material-icons.js create mode 100644 frontend/src/views/Tools.vue create mode 100644 frontend/src/views/settings/Notifications.vue create mode 100644 frontend/src/views/tools/DuplicateFinder.vue create mode 100644 frontend/src/views/tools/MaterialIconPicker.vue create mode 100644 frontend/src/views/tools/SizeViewer.vue create mode 100644 frontend/tests/playwright/settings/sidebar.spec.ts create mode 100644 frontend/tests/playwright/sharing/sidebar.spec.ts diff --git a/.github/workflows/release_beta.yaml b/.github/workflows/release_beta.yaml index 10b9c61014..c0b87b583e 100644 --- a/.github/workflows/release_beta.yaml +++ b/.github/workflows/release_beta.yaml @@ -59,7 +59,7 @@ jobs: target_commitish: ${{ github.sha }} token: ${{ secrets.PAT }} tag_name: ${{ steps.extract_branch.outputs.tag_name }} - prerelease: false + prerelease: true make_latest: false draft: false generate_release_notes: true diff --git a/.github/workflows/release_dev.yaml b/.github/workflows/release_dev.yaml deleted file mode 100644 index 336ea86170..0000000000 --- a/.github/workflows/release_dev.yaml +++ /dev/null @@ -1,60 +0,0 @@ -name: dev release - -on: - push: - branches: - - "dev/v[0-9]+.[0-9]+.[0-9]+" - -permissions: - contents: write - -jobs: - push_release_to_registry: - name: Push release - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3.0.0 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.0.0 - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{github.actor}} - password: ${{ secrets.PAT }} - - name: Extract metadata (tags, labels) for Docker and GHCR - id: meta - uses: docker/metadata-action@v5 - with: - images: | - gtstef/filebrowser - ghcr.io/gtsteffaniak/filebrowser - - name: Modify version names - id: modify-json - run: | - TAGS="${{ steps.meta.outputs.tags }}" - # Apply modifications to both docker.io and ghcr.io tags - CLEANED_TAGS=$(echo "$TAGS" | sed 's/filebrowser:dev-v/filebrowser:/g' | sed -E 's/(filebrowser:[0-9]+\.[0-9]+\.[0-9]+)/\1-dev/g') - echo "cleaned_tag<> $GITHUB_OUTPUT - echo "$CLEANED_TAGS" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - build-args: | - VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} - REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} - platforms: linux/amd64 - file: ./_docker/Dockerfile - push: true - tags: ${{ steps.modify-json.outputs.cleaned_tag }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/.gitignore b/.gitignore index 69a8f8100c..76180d9520 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,6 @@ frontend/tsconfig.tsbuildinfo /frontend/screenshots /frontend/tests/playwright-files/demo* /frontend/loginAuth.json -/frontend/package-lock.json /backend/vendor /backend/*.cov /backend/*test_config.yaml @@ -53,3 +52,7 @@ bin/ build/ *__debug* backend/custom.css + +# Runtime cache directories created by tests/application +backend/preview/heic/ +backend/preview/thumbnails/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 648148536e..bf77adbfec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,53 @@ All notable changes to this project will be documented in this file. For commit guidelines, please refer to [Standard Version](https://github.com/conventional-changelog/standard-version). +## v1.1.0-beta + + **New Features**: + - Added tools + - size analyzer -- quickly show largest files in interactive graphical chart + - duplicate finder -- find duplicate files larger than 1MB + - material icon picker and previewer + - Listing View Style updates + - Status bar for listing view #1459 + - Duration field shows up if media is shown with duration + - More dynamic view modes with additional styling changes + - Total display modes consolidated into 3 main groups: list, gallery, normal. "icon" and "compact" mode exist as views based on display size setting. + - Customizable sidebar links + - Logged in users can have their preferences saved and synced + - Can rearrange, add custom links, and save your preferences. + - Can customize shares with their own custom sidebar links. + - Dynamic scopes for OIDC #1414 #1363 + - Share and Access Rules validation + - If a file/path is moved/renamed in UI its rules and shares will always follow. + - If a file/path is moved/renamed outside UI, a warning message will show and ability to associate to new path + - Cascade delete access in Access Management when deleting a User #1347 + - Enhanced notifications #1331 + - Added "toast" notification type support -- most success messages show as toast now. + - multiple stacked notifications possible + - notification button support, such as click to open folder after moving file. + - notification history (not including toasts) + - Add swipe and visual timeout to notifications #1600 + - Choose different bind ip via `server.listen` #1573 + - Allow disabling clearing cache each startup via `server.cacheDirCleanup: false` in config #1576 + + **Notes**: + - more efficient user update actions. Successful PUT actions return only 204 if successful. + - Do not enter directory on "New Folder" action #1343 + - Improved indexing performance - individual scanners per directory at root. + - Improved search memory efficiency + - Improved scrolling performance + - Static file handling has been streamlined, could potentially see some changes from this. + - No longer automatically publishing any dev builds to docker + - deprecated "DefaultLandingPage" option -- now determined by first source link in sidebar. + - Improve rename prompt #1608 #1556 + + **BugFixes**: + - uploading/editing/saving to password protected shares error + - updating a share with password protection without a password removed the password. + - per-user download counts were not persistant accross restarts + - "Update" button in Chinese wraps incorrectely #1542 + ## v1.0.1-stable **BugFixes**: @@ -38,11 +85,7 @@ All notable changes to this project will be documented in this file. For commit - fixed some condition that the halloween background doesn't load properly - some comments not showing up on config viewer in settings -<<<<<<< HEAD ## v1.0.0-beta -======= -## v1.0.0 ->>>>>>> main **Notes**: - Enhanced onlyoffice debugger with more wholistic backend logs diff --git a/README.md b/README.md index 150320baf5..16cceca46c 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,6 @@ ## Pinned -:loudspeaker: [Stable Release & v1.0.0 Update](https://github.com/gtsteffaniak/filebrowser/discussions/1293) - :pushpin: [Read The Official Docs](https://filebrowserquantum.com/) (currently english-only) ## About @@ -35,26 +33,26 @@ Ready to try it out? See [Getting Started Docs](https://filebrowserquantum.com/e FileBrowser Quantum is a massive fork of the file browser open-source project with the following changes: - 1. ✅ Multiple sources support + 1. ✅ Add and configure multiple sources 2. ✅ Login support for OIDC, password + 2FA, and proxy. 3. ✅ Beautiful, Responsive, and Customizable user interface. - 4. ✅ Simplified configuration via `config.yaml` config file. + 4. ✅ Streamlined configuration via `config.yaml` config file. 5. ✅ Ultra-efficient [indexing](https://github.com/gtsteffaniak/filebrowser/wiki/Indexing) and real-time updates - Real-time search results as you type. - Real-time monitoring and updates in the UI. - Search supports file and folder sizes, along with various filters. 6. ✅ Better listing browsing - - More file type previews, such as **office** and **video** file previews - - Instantly switches view modes and sort order without reloading data. - - Folder sizes are displayed. + - Better thumbnail support including **office**, **video**, and **album artwork** + - Faster and more responsive views with animations. + - Folder sizes are displayed and support for thumbnails - Navigating remembers the last scroll position. - 7. ✅ Highly configurable and customizable sharing options, incuding: + 7. ✅ Highly configurable and customizable sharing options - share expiration time - users who can access share (including anonymous) - styling and themes - file viewing, editing, and uploading permissions 8. ✅ Directory-level access control that can be scoped to user or group. - 8. ✅ Developer API support + 9. ✅ Developer API support - Ability to create long-lived API Tokens. - A helpful Swagger page is available at `/swagger` endpoint for API enabled users. @@ -102,11 +100,11 @@ Linux | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | Windows | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | Mac | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | Self hostable | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | -Has Stable Release? | :construction: | ✅ | ✅ | ✅ | ✅ | ✅ | +Has Stable Release? | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | S3 support | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | webdav support | ❌ | ❌ | ✅ | ✅ | ❌ | ✅ | FTP support | ❌ | ❌ | ✅ | ✅ | ❌ | ✅ | -Dedicated docs site? | :construction: | ✅ | ✅ | ✅ | ❌ | ✅ | +Dedicated docs site? | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | Multiple sources at once | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | Docker image size | 180 MB (with ffmpeg) | 31 MB | 240 MB (main image) | 250 MB | ❌ | > 2 GB | Min. Memory Requirements | 256 MB | 128 MB | 128 MB (main image) | 512 MB | ❌ | 512 MB | diff --git a/_docker/Dockerfile b/_docker/Dockerfile index 7375045677..311acb10a5 100644 --- a/_docker/Dockerfile +++ b/_docker/Dockerfile @@ -33,8 +33,9 @@ RUN adduser -D -s /bin/true -u 1000 filebrowser USER filebrowser WORKDIR /home/filebrowser # copy config to two locations for compatibility -COPY --from=base --chown=filebrowser:1000 [ "/app/filebrowser", "/app/config.yaml", "./" ] +COPY --from=base --chown=filebrowser:1000 [ "/app/filebrowser", "./" ] COPY --from=base --chown=filebrowser:1000 [ "/app/config.yaml", "./data/config.yaml" ] +COPY --from=base --chown=filebrowser:1000 [ "/app/config.yaml", "./" ] COPY --from=base --chown=filebrowser:1000 [ "/app/reduce-rounded-corners.css", "./" ] COPY --from=nbuild --chown=filebrowser:1000 [ "/app/dist/", "./http/dist/" ] ## sanity checks diff --git a/_docker/Dockerfile.slim b/_docker/Dockerfile.slim index c9260e0b44..b0fca34bb1 100644 --- a/_docker/Dockerfile.slim +++ b/_docker/Dockerfile.slim @@ -30,6 +30,7 @@ USER filebrowser WORKDIR /home/filebrowser COPY --from=base --chown=filebrowser:1000 [ "/app/filebrowser", "./" ] COPY --from=base --chown=filebrowser:1000 [ "/app/config.yaml", "./data/config.yaml" ] +COPY --from=base --chown=filebrowser:1000 [ "/app/config.yaml", "./" ] COPY --from=base --chown=filebrowser:1000 [ "/app/reduce-rounded-corners.css", "./" ] COPY --from=nbuild --chown=filebrowser:1000 [ "/app/dist/", "./http/dist/" ] ## sanity checks diff --git a/backend/adapters/fs/files/file_test.go b/backend/adapters/fs/files/file_test.go index b4cdb897e0..b05134b460 100644 --- a/backend/adapters/fs/files/file_test.go +++ b/backend/adapters/fs/files/file_test.go @@ -98,11 +98,11 @@ func TestSortItems(t *testing.T) { {Name: "apple"}, {Name: "Banana"}, }, - Files: []iteminfo.ItemInfo{ - {Name: "File2.txt"}, - {Name: "File10.txt"}, - {Name: "File1"}, - {Name: "banana"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "File2.txt"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "File10.txt"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "File1"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "banana"}}, }, }, expected: iteminfo.FileInfo{ @@ -112,11 +112,11 @@ func TestSortItems(t *testing.T) { {Name: "apple"}, {Name: "Banana"}, }, - Files: []iteminfo.ItemInfo{ - {Name: "banana"}, - {Name: "File1"}, - {Name: "File10.txt"}, - {Name: "File2.txt"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "banana"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "File1"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "File10.txt"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "File2.txt"}}, }, }, }, @@ -128,10 +128,10 @@ func TestSortItems(t *testing.T) { {Name: "Cat.txt"}, {Name: "apple"}, }, - Files: []iteminfo.ItemInfo{ - {Name: "Zebra"}, - {Name: "apple"}, - {Name: "cat"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "Zebra"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "apple"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "cat"}}, }, }, expected: iteminfo.FileInfo{ @@ -140,10 +140,10 @@ func TestSortItems(t *testing.T) { {Name: "Cat.txt"}, {Name: "dog.txt"}, }, - Files: []iteminfo.ItemInfo{ - {Name: "apple"}, - {Name: "cat"}, - {Name: "Zebra"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "apple"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "cat"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "Zebra"}}, }, }, }, @@ -153,7 +153,7 @@ func TestSortItems(t *testing.T) { t.Run(test.name, func(t *testing.T) { test.input.SortItems() - getNames := func(items []iteminfo.ItemInfo) []string { + getFolderNames := func(items []iteminfo.ItemInfo) []string { names := []string{} for _, folder := range items { names = append(names, folder.Name) @@ -161,15 +161,23 @@ func TestSortItems(t *testing.T) { return names } - actualFolderNames := getNames(test.input.Folders) - expectedFolderNames := getNames(test.expected.Folders) + getFileNames := func(items []iteminfo.ExtendedItemInfo) []string { + names := []string{} + for _, file := range items { + names = append(names, file.Name) + } + return names + } + + actualFolderNames := getFolderNames(test.input.Folders) + expectedFolderNames := getFolderNames(test.expected.Folders) if !reflect.DeepEqual(actualFolderNames, expectedFolderNames) { t.Errorf("Folders not sorted correctly.\nGot: %v\nExpected: %v", actualFolderNames, expectedFolderNames) } - actualFileNames := getNames(test.input.Files) - expectedFileNames := getNames(test.expected.Files) + actualFileNames := getFileNames(test.input.Files) + expectedFileNames := getFileNames(test.expected.Files) if !reflect.DeepEqual(actualFileNames, expectedFileNames) { t.Errorf("Files not sorted correctly.\nGot: %v\nExpected: %v", actualFileNames, expectedFileNames) @@ -178,73 +186,8 @@ func TestSortItems(t *testing.T) { } } -func TestDeleteFilesCacheClearing(t *testing.T) { - // Create a temporary directory for testing - tempDir, err := os.MkdirTemp("", "filebrowser_test") - if err != nil { - t.Fatalf("Failed to create temp dir: %v", err) - } - defer os.RemoveAll(tempDir) - - // Create a test file - testFile := filepath.Join(tempDir, "Test Object") - err = os.WriteFile(testFile, []byte("test content"), 0644) - if err != nil { - t.Fatalf("Failed to create test file: %v", err) - } - - // Initialize a mock index - idx := indexing.Index{ - Source: settings.Source{ - Path: tempDir, - }, - } - - // Get the real path and cache it - _, isDir, err := idx.GetRealPath("/Test Object") - if err != nil { - t.Fatalf("Failed to get real path: %v", err) - } - - // Verify the file is detected as a file (not directory) - if isDir { - t.Errorf("Expected file to be detected as file, but got directory") - } - - // Initialize the index in the indexing system - indexing.Initialize(&settings.Source{ - Name: "test", - Path: tempDir, - }, true) // true for mock mode - - // Delete the file - err = DeleteFiles("test", testFile, tempDir) - if err != nil { - t.Fatalf("Failed to delete file: %v", err) - } - - // Create a directory with the same name - testDir := filepath.Join(tempDir, "Test Object") - err = os.Mkdir(testDir, 0755) - if err != nil { - t.Fatalf("Failed to create test directory: %v", err) - } - - // Get the real path again - it should now detect it as a directory - // The cache should have been cleared, so it should re-detect the type - realPath2, isDir2, err := idx.GetRealPath("/Test Object") - if err != nil { - t.Fatalf("Failed to get real path after recreation: %v", err) - } - - // Verify the directory is detected as a directory - if !isDir2 { - t.Errorf("Expected directory to be detected as directory, but got file. Real path: %s", realPath2) - } - - // Clean up - os.RemoveAll(tempDir) -} +// TestDeleteFilesCacheClearing was removed because cache clearing is not performed +// per design decision - RealPathCache is auxiliary and doesn't need clearing func TestOverrideDirectoryToFile(t *testing.T) { // Initialize the index in mock mode (no filesystem operations) @@ -282,9 +225,11 @@ func TestOverrideDirectoryToFile(t *testing.T) { } // Add the file to the parent's Files slice - rootInfo.Files = append(rootInfo.Files, iteminfo.ItemInfo{ - Name: "Test Object", - Size: 25, // Length of "This is test file content" + rootInfo.Files = append(rootInfo.Files, iteminfo.ExtendedItemInfo{ + ItemInfo: iteminfo.ItemInfo{ + Name: "Test Object", + Size: 25, // Length of "This is test file content" + }, }) // Verify the directory was replaced with a file in the mock data @@ -341,8 +286,8 @@ func TestOverrideFileToDirectory(t *testing.T) { Name: "/", Type: "directory", }, - Files: []iteminfo.ItemInfo{ - {Name: "Test Object", Size: 12}, // Length of "test content" + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "Test Object", Size: 12}}, // Length of "test content" }, } diff --git a/backend/adapters/fs/files/files.go b/backend/adapters/fs/files/files.go index 2f04328fee..f070de2b9e 100644 --- a/backend/adapters/fs/files/files.go +++ b/backend/adapters/fs/files/files.go @@ -1,17 +1,17 @@ package files import ( + "context" "encoding/base64" "fmt" "io" - "unicode" - "unicode/utf8" - "os" "path/filepath" "strconv" "strings" "time" + "unicode" + "unicode/utf8" "github.com/dhowden/tag" "github.com/gtsteffaniak/filebrowser/backend/adapters/fs/fileutils" @@ -19,6 +19,7 @@ import ( "github.com/gtsteffaniak/filebrowser/backend/common/utils" "github.com/gtsteffaniak/filebrowser/backend/database/access" "github.com/gtsteffaniak/filebrowser/backend/database/share" + "github.com/gtsteffaniak/filebrowser/backend/ffmpeg" "github.com/gtsteffaniak/filebrowser/backend/indexing" "github.com/gtsteffaniak/filebrowser/backend/indexing/iteminfo" "github.com/gtsteffaniak/go-logger/logger" @@ -80,9 +81,55 @@ func FileInfoFaster(opts utils.FileOptions, access *access.Storage) (*iteminfo.E return response, err } } - if opts.Content || opts.Metadata { + + // For directories, populate metadata for audio/video files ONLY if explicitly requested + // This avoids expensive ffprobe calls on every directory listing + if isDir && opts.Metadata { + startTime := time.Now() + metadataCount := 0 + + for i := range response.Files { + fileItem := &response.Files[i] + isItemAudio := strings.HasPrefix(fileItem.Type, "audio") + isItemVideo := strings.HasPrefix(fileItem.Type, "video") + + if isItemAudio || isItemVideo { + // Get the real path for this file + itemRealPath, _, _ := index.GetRealPath(opts.Path, fileItem.Name) + + // Extract metadata for audio files (without album art for performance) + if isItemAudio { + err := extractAudioMetadata(context.Background(), fileItem, itemRealPath, opts.AlbumArt || opts.Content, opts.Metadata) + if err != nil { + logger.Debugf("failed to extract metadata for file: "+fileItem.Name, err) + } else { + metadataCount++ + } + } else if isItemVideo { + // Extract duration for video files + err := extractVideoMetadata(context.Background(), fileItem, itemRealPath) + if err != nil { + logger.Debugf("failed to extract video metadata for file: "+fileItem.Name, err) + } else { + metadataCount++ + } + } + } + } + + if metadataCount > 0 { + elapsed := time.Since(startTime) + logger.Debugf("Extracted metadata for %d audio/video files in %v (avg: %v per file)", + metadataCount, elapsed, elapsed/time.Duration(metadataCount)) + } + } + + // Extract content/metadata when explicitly requested OR for single file audio/video requests + isAudioVideo := strings.HasPrefix(info.Type, "audio") || strings.HasPrefix(info.Type, "video") + if opts.Content || opts.Metadata || (!isDir && isAudioVideo) { processContent(response, index, opts) } + if settings.Config.Integrations.OnlyOffice.Secret != "" && info.Type != "directory" && iteminfo.IsOnlyOffice(info.Name) { response.OnlyOfficeId = generateOfficeId(realPath) } @@ -99,6 +146,18 @@ func processContent(info *iteminfo.ExtendedFileInfo, idx *indexing.Index, opts u } if isVideo { + // Extract duration for video + extItem := &iteminfo.ExtendedItemInfo{ + ItemInfo: info.ItemInfo, + } + err := extractVideoMetadata(context.Background(), extItem, info.RealPath) + if err != nil { + logger.Debugf("failed to extract video metadata for file: "+info.RealPath, info.Name, err) + } else { + info.Metadata = extItem.Metadata + } + + // Handle subtitles if requested if opts.ExtractEmbeddedSubtitles { parentPath := filepath.Dir(info.Path) parentInfo, exists := idx.GetReducedMetadata(parentPath, true) @@ -114,11 +173,17 @@ func processContent(info *iteminfo.ExtendedFileInfo, idx *indexing.Index, opts u } if isAudio { - err := extractAudioMetadata(info) + // Create an ExtendedItemInfo to hold the metadata + extItem := &iteminfo.ExtendedItemInfo{ + ItemInfo: info.ItemInfo, + } + err := extractAudioMetadata(context.Background(), extItem, info.RealPath, opts.AlbumArt || opts.Content, opts.Metadata || opts.Content) if err != nil { logger.Debugf("failed to extract audio metadata for file: "+info.RealPath, info.Name, err) } else { - info.HasPreview = info.AudioMeta.AlbumArt != "" + // Copy metadata to ExtendedFileInfo + info.Metadata = extItem.Metadata + info.HasPreview = extItem.Metadata != nil && extItem.Metadata.AlbumArt != "" } return } @@ -148,8 +213,9 @@ func generateOfficeId(realPath string) string { } // extractAudioMetadata extracts metadata from an audio file using dhowden/tag -func extractAudioMetadata(item *iteminfo.ExtendedFileInfo) error { - file, err := os.Open(item.RealPath) +// and optionally extracts duration using the ffmpeg service with concurrency control +func extractAudioMetadata(ctx context.Context, item *iteminfo.ExtendedItemInfo, realPath string, getArt bool, getDuration bool) error { + file, err := os.Open(realPath) if err != nil { return err } @@ -172,7 +238,7 @@ func extractAudioMetadata(item *iteminfo.ExtendedFileInfo) error { return err } - item.AudioMeta = &iteminfo.AudioMetadata{ + item.Metadata = &iteminfo.MediaMetadata{ Title: m.Title(), Artist: m.Artist(), Album: m.Album(), @@ -182,50 +248,96 @@ func extractAudioMetadata(item *iteminfo.ExtendedFileInfo) error { // Extract track number track, _ := m.Track() - item.AudioMeta.Track = track + item.Metadata.Track = track + + // Extract duration ONLY if explicitly requested using the ffmpeg VideoService + // This respects concurrency limits and gracefully handles missing ffmpeg + if getDuration { + ffmpegService := ffmpeg.NewFFmpegService(5, false, "") + if ffmpegService != nil { + startTime := time.Now() + if duration, err := ffmpegService.GetMediaDuration(ctx, realPath); err == nil { + item.Metadata.Duration = int(duration) + elapsed := time.Since(startTime) + if elapsed > 50*time.Millisecond { + logger.Debugf("Duration extraction took %v for file: %s", elapsed, item.Name) + } + } + } + } + + if !getArt { + return nil + } // Extract album art and encode as base64 with strict size limits if picture := m.Picture(); picture != nil && picture.Data != nil { // More aggressive size limit to prevent memory issues (max 5MB) if len(picture.Data) <= 5*1024*1024 { - item.AudioMeta.AlbumArt = base64.StdEncoding.EncodeToString(picture.Data) + item.Metadata.AlbumArt = base64.StdEncoding.EncodeToString(picture.Data) } else { - logger.Debugf("Skipping album art for %s: too large (%d bytes)", item.RealPath, len(picture.Data)) + logger.Debugf("Skipping album art for %s: too large (%d bytes)", realPath, len(picture.Data)) } } return nil } -func DeleteFiles(source, absPath string, absDirPath string) error { - err := os.RemoveAll(absPath) - if err != nil { - return err +// extractVideoMetadata extracts duration from video files using ffprobe +func extractVideoMetadata(ctx context.Context, item *iteminfo.ExtendedItemInfo, realPath string) error { + // Extract duration using the ffmpeg VideoService with concurrency control + videoService := ffmpeg.NewFFmpegService(10, false, "") + if videoService != nil { + duration, err := videoService.GetMediaDuration(ctx, realPath) + if err != nil { + return err + } + if duration > 0 { + item.Metadata = &iteminfo.MediaMetadata{ + Duration: int(duration), + } + } + return nil } + return nil +} + +func DeleteFiles(source, absPath string, absDirPath string, isDir bool) error { index := indexing.GetIndex(source) if index == nil { return fmt.Errorf("could not get index: %v ", source) } - if index.Config.DisableIndexing { - return nil - } - // Clear RealPathCache entries for the deleted path to prevent cache issues - // when a folder with the same name is created later - indexPath := index.MakeIndexPath(absPath) - realPath, _, err := index.GetRealPath(indexPath) - if err == nil { - // Clear both the path and the isdir cache entries - indexing.RealPathCache.Delete(realPath) - indexing.RealPathCache.Delete(realPath + ":isdir") - } + if !index.Config.DisableIndexing { + indexPath := index.MakeIndexPath(absPath) - refreshConfig := utils.FileOptions{Path: index.MakeIndexPath(absDirPath), IsDir: true} - err = index.RefreshFileInfo(refreshConfig) - if err != nil { + // Perform the physical deletion + err := os.RemoveAll(absPath) + if err != nil { + return err + } + + // Remove metadata from index + if isDir { + // Recursively remove directory and all subdirectories from index + index.DeleteMetadata(indexPath, true, true) + } else { + // Remove file from parent's file list + index.DeleteMetadata(indexPath, false, false) + } + + // Refresh the parent directory to recalculate sizes and update counts + // This will traverse up the tree and update all parent sizes correctly + refreshConfig := utils.FileOptions{ + Path: index.MakeIndexPath(absDirPath), + IsDir: true, + } + err = index.RefreshFileInfo(refreshConfig) return err } - return nil + + // Indexing disabled, just delete the file + return os.RemoveAll(absPath) } func RefreshIndex(source string, path string, isDir bool, recursive bool) error { @@ -249,6 +361,21 @@ func RefreshIndex(source string, path string, isDir bool, recursive bool) error return nil } + // For directories, check if the path exists on disk + // If it doesn't exist, remove it from the index + if isDir { + realPath, _, err := idx.GetRealPath(path) + if err == nil { + // Check if the directory exists on disk + if !Exists(realPath) { + // Directory no longer exists, remove it from the index + // This clears both Directories and DirectoriesLedger maps + idx.DeleteMetadata(path, true, false) + return nil + } + } + } + err := idx.RefreshFileInfo(utils.FileOptions{Path: path, IsDir: isDir, Recursive: recursive}) return err } @@ -282,21 +409,17 @@ func validateMoveDestination(src, dst string, isSrcDir bool) error { return nil } -func MoveResource(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string, s *share.Storage) error { +func MoveResource(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string, s *share.Storage, a *access.Storage) error { + // Check if source and destination are the same file + if realsrc == realdst { + return fmt.Errorf("cannot move a file to itself: %s", realsrc) + } + // Validate the move operation before executing if err := validateMoveDestination(realsrc, realdst, isSrcDir); err != nil { return err } - err := fileutils.MoveFile(realsrc, realdst) - if err != nil { - return err - } - - // For move operations: - // 1. Delete the source from the index (recursively if it's a directory) - // 2. Recursively index the destination to capture the entire moved tree - // Get indexes for deletion and refresh operations srcIdx := indexing.GetIndex(sourceIndex) if srcIdx == nil { @@ -307,44 +430,71 @@ func MoveResource(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string return fmt.Errorf("could not get destination index: %v", destIndex) } - // Delete from source index (recursively for directories) - go srcIdx.DeleteMetadata(realsrc, isSrcDir, isSrcDir) //nolint:errcheck - - // Clear RealPathCache entries for the moved path to prevent cache issues - // when a file/folder with the same name is created later + // Prepare paths for index operations srcIndexPath := srcIdx.MakeIndexPath(realsrc) - srcRealPath, _, err := srcIdx.GetRealPath(srcIndexPath) - if err == nil { - // Clear both the path and the isdir cache entries - indexing.RealPathCache.Delete(srcRealPath) - indexing.RealPathCache.Delete(srcRealPath + ":isdir") + srcParentPath := filepath.Dir(realsrc) + + // Perform the physical move + err := fileutils.MoveFile(realsrc, realdst) + if err != nil { + return err } - // For move operations, refresh the moved item and its new parent directory - // Run all refresh operations in a goroutine to avoid blocking the API - if isSrcDir { - go func() { - // When moving a folder, refresh the folder itself recursively FIRST - // Must complete before parent refresh to avoid race condition - RefreshIndex(destIndex, realdst, true, true) //nolint:errcheck + // Handle SOURCE cleanup (treat as deletion) + if !srcIdx.Config.DisableIndexing { + // Remove metadata from source index + if isSrcDir { + // Recursively remove directory and all subdirectories from source index + srcIdx.DeleteMetadata(srcIndexPath, true, true) + } else { + // Remove file from source parent's file list + srcIdx.DeleteMetadata(srcIndexPath, false, false) + } - // THEN refresh the parent directory so it sees the newly indexed child + // Refresh the source parent directory to recalculate sizes and update counts + go RefreshIndex(sourceIndex, srcParentPath, true, false) //nolint:errcheck + } + + // Handle DESTINATION indexing + if !dstIdx.Config.DisableIndexing { + if isSrcDir { + go func() { + // When moving a folder, refresh the folder itself recursively FIRST + // Must complete before parent refresh to avoid race condition + RefreshIndex(destIndex, realdst, true, true) //nolint:errcheck + + // THEN refresh the parent directory so it sees the newly indexed child + parentDir := filepath.Dir(realdst) + RefreshIndex(destIndex, parentDir, true, false) //nolint:errcheck + }() + } else { + // If moving a file, just refresh the parent directory parentDir := filepath.Dir(realdst) - RefreshIndex(destIndex, parentDir, true, false) //nolint:errcheck - }() - } else { - // If moving a file, just refresh the parent directory - parentDir := filepath.Dir(realdst) - go RefreshIndex(destIndex, parentDir, true, false) //nolint:errcheck + go RefreshIndex(destIndex, parentDir, true, false) //nolint:errcheck + } } // Use backend source paths to match how shares are stored go s.UpdateShares(srcIdx.Path, srcIdx.MakeIndexPath(realsrc), dstIdx.Path, dstIdx.MakeIndexPath(realdst)) //nolint:errcheck + // Update access rules for the moved path + if a != nil { + // If moving within the same source, update the rules + if srcIdx.Path == dstIdx.Path { + go a.UpdateRules(srcIdx.Path, srcIdx.MakeIndexPath(realsrc), dstIdx.MakeIndexPath(realdst)) //nolint:errcheck + } + // Cross-source moves don't preserve access rules (they're source-specific) + } + return nil } func CopyResource(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string) error { + // Check if source and destination are the same file + if realsrc == realdst { + return fmt.Errorf("cannot copy a file to itself: %s", realsrc) + } + // Validate the copy operation before executing if err := validateMoveDestination(realsrc, realdst, isSrcDir); err != nil { return err @@ -397,12 +547,6 @@ func WriteDirectory(opts utils.FileOptions) error { if err != nil { return fmt.Errorf("could not remove existing file to create directory: %v", err) } - // Clear the cache for the removed file - realPath, _, err = idx.GetRealPath(opts.Path) - if err == nil { - indexing.RealPathCache.Delete(realPath) - indexing.RealPathCache.Delete(realPath + ":isdir") - } } // Ensure the parent directories exist @@ -442,9 +586,6 @@ func WriteFile(source, path string, in io.Reader) error { if err != nil { return fmt.Errorf("could not remove existing directory to create file: %v", err) } - // Clear the cache for the removed directory (use realPath without re-fetching) - indexing.RealPathCache.Delete(realPath) - indexing.RealPathCache.Delete(realPath + ":isdir") } // Open the file for writing (create if it doesn't exist, truncate if it does) diff --git a/backend/benchmark_results.txt b/backend/benchmark_results.txt index 253547373e..3f674d1f91 100644 --- a/backend/benchmark_results.txt +++ b/backend/benchmark_results.txt @@ -3,81 +3,106 @@ /usr/local/go/bin/go ? github.com/gtsteffaniak/filebrowser/backend [no test files] PASS -ok github.com/gtsteffaniak/filebrowser/backend/adapters/fs/diskcache 0.004s +ok github.com/gtsteffaniak/filebrowser/backend/adapters/fs/diskcache 0.005s +2025/11/07 17:48:07 [INFO] initializing index: [test] +2025/11/07 17:48:07 [INFO] Setting up multi-scanner system for [test] +2025/11/07 17:48:07 [ERROR] Failed to open root directory: open /tmp/filebrowser_test3280924123/: no such file or directory +2025/11/07 17:48:07 [DEBUG] Created 1 scanners for [test] (1 root + 0 children) +2025/11/07 17:48:07 [INFO] initializing index: [test] +2025/11/07 17:48:07 [INFO] initializing index: [test] +2025/11/07 17:48:07 [ERROR] Root scanner error: open /tmp/filebrowser_test3280924123/: no such file or directory +2025/11/07 17:48:07 [INFO] Setting up multi-scanner system for [test] +2025/11/07 17:48:07 [ERROR] Failed to open root directory: open /tmp/filebrowser_test3280924123/: no such file or directory +2025/11/07 17:48:07 [DEBUG] Time spent indexing [test]: 0s seconds +2025/11/07 17:48:07 [DEBUG] Skipping source update event for mock index. +2025/11/07 17:48:07 [INFO] Setting up multi-scanner system for [test] +2025/11/07 17:48:07 [ERROR] Failed to open root directory: open /mock/path/: no such file or directory +2025/11/07 17:48:07 [DEBUG] Created 1 scanners for [test] (1 root + 0 children) +2025/11/07 17:48:07 [ERROR] Root scanner error: open /mock/path/: no such file or directory +2025/11/07 17:48:07 [ERROR] Root scanner error: open /mock/path/: no such file or directory +2025/11/07 17:48:07 [ERROR] Failed to open root directory: open /mock/path/: no such file or directory +2025/11/07 17:48:07 [ERROR] Failed to open root directory: open /mock/path/: no such file or directory +2025/11/07 17:48:07 [DEBUG] Time spent indexing [test]: 0s seconds +2025/11/07 17:48:07 [DEBUG] Skipping source update event for mock index. +2025/11/07 17:48:07 [DEBUG] Time spent indexing [test]: 0s seconds +2025/11/07 17:48:07 [DEBUG] Skipping source update event for mock index. +2025/11/07 17:48:07 [ERROR] Failed to open root directory: open /mock/path/: no such file or directory +2025/11/07 17:48:07 [DEBUG] Created 1 scanners for [test] (1 root + 0 children) PASS ok github.com/gtsteffaniak/filebrowser/backend/adapters/fs/files 0.006s PASS -ok github.com/gtsteffaniak/filebrowser/backend/adapters/fs/fileutils 0.003s +ok github.com/gtsteffaniak/filebrowser/backend/adapters/fs/fileutils 0.002s ? github.com/gtsteffaniak/filebrowser/backend/auth [no test files] -? github.com/gtsteffaniak/filebrowser/backend/cmd [no test files] -? github.com/gtsteffaniak/go-cache/cache [no test files] +PASS +ok github.com/gtsteffaniak/filebrowser/backend/cmd 0.014s ? github.com/gtsteffaniak/filebrowser/backend/common/errors [no test files] -? github.com/gtsteffaniak/filebrowser/backend/common/logger [no test files] -2025/05/11 20:42:56 Using OnlyOffice secret from FILEBROWSER_ONLYOFFICE_SECRET environment variable -2025/05/11 20:42:56 Using OnlyOffice secret from FILEBROWSER_ONLYOFFICE_SECRET environment variable +goos: linux +goarch: amd64 +pkg: github.com/gtsteffaniak/filebrowser/backend/common/settings +cpu: 11th Gen Intel(R) Core(TM) i5-11320H @ 3.20GHz + 10 374600 ns/op 192030 B/op 3237 allocs/op PASS -ok github.com/gtsteffaniak/filebrowser/backend/common/settings 0.006s +ok github.com/gtsteffaniak/filebrowser/backend/common/settings 0.139s PASS -ok github.com/gtsteffaniak/filebrowser/backend/common/utils 0.003s +ok github.com/gtsteffaniak/filebrowser/backend/common/utils 0.004s ? github.com/gtsteffaniak/filebrowser/backend/common/version [no test files] +PASS +ok github.com/gtsteffaniak/filebrowser/backend/database/access 0.287s +? github.com/gtsteffaniak/filebrowser/backend/database/crud [no test files] ? github.com/gtsteffaniak/filebrowser/backend/database/share [no test files] ? github.com/gtsteffaniak/filebrowser/backend/database/storage [no test files] -? github.com/gtsteffaniak/filebrowser/backend/database/storage/bolt [no test files] PASS -ok github.com/gtsteffaniak/filebrowser/backend/database/users 0.002s +ok github.com/gtsteffaniak/filebrowser/backend/database/storage/bolt 0.842s +PASS +ok github.com/gtsteffaniak/filebrowser/backend/database/users 0.003s +? github.com/gtsteffaniak/filebrowser/backend/docs [no test files] ? github.com/gtsteffaniak/filebrowser/backend/events [no test files] -2025/05/11 20:42:56 [DEBUG] Saving user [admin] changepass: true -2025/05/11 20:42:56 [DEBUG] Saving user [non-admin] changepass: true +goos: linux +goarch: amd64 +pkg: github.com/gtsteffaniak/filebrowser/backend/ffmpeg +cpu: 11th Gen Intel(R) Core(TM) i5-11320H @ 3.20GHz +BenchmarkGetOrientationFilter-8 10 63.00 ns/op 0 B/op 0 allocs/op PASS -ok github.com/gtsteffaniak/filebrowser/backend/http 0.197s -2025/05/11 20:42:57 initializing index: [test] -2025/05/11 20:42:57 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:42:57 [DEBUG] Starting full scan for [test] -2025/05/11 20:42:57 Index assessment : [test] complexity=simple directories=0 files=0 -2025/05/11 20:42:57 [DEBUG] Time spent indexing [test]: 0 seconds -2025/05/11 20:42:57 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:42:57 [DEBUG] Next scan in 1m0s -2025/05/11 20:42:58 initializing index: [test] -2025/05/11 20:42:58 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:42:58 [DEBUG] Starting full scan for [test] -2025/05/11 20:42:58 Index assessment : [test] complexity=simple directories=0 files=0 -2025/05/11 20:42:58 [DEBUG] Time spent indexing [test]: 0 seconds -2025/05/11 20:42:58 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:42:58 [DEBUG] Next scan in 1m0s +ok github.com/gtsteffaniak/filebrowser/backend/ffmpeg 0.006s +2025/11/07 17:48:08 [DEBUG] Saving user [admin] changepass: true +2025/11/07 17:48:08 [DEBUG] Saving user [non-admin] changepass: true +PASS +ok github.com/gtsteffaniak/filebrowser/backend/http 0.248s +2025/11/07 17:48:08 [INFO] initializing index: [test] +2025/11/07 17:48:08 [INFO] Setting up multi-scanner system for [test] +2025/11/07 17:48:08 [DEBUG] Created 1 scanners for [test] (1 root + 0 children) +2025/11/07 17:48:08 [DEBUG] Time spent indexing [test]: 0s seconds +2025/11/07 17:48:08 [DEBUG] Skipping source update event for mock index. +2025/11/07 17:48:08 [INFO] initializing index: [test] +2025/11/07 17:48:08 [INFO] Setting up multi-scanner system for [test] +2025/11/07 17:48:08 [DEBUG] Created 1 scanners for [test] (1 root + 0 children) +2025/11/07 17:48:08 [DEBUG] Time spent indexing [test]: 0s seconds +2025/11/07 17:48:08 [DEBUG] Skipping source update event for mock index. goos: linux goarch: amd64 pkg: github.com/gtsteffaniak/filebrowser/backend/indexing cpu: 11th Gen Intel(R) Core(TM) i5-11320H @ 3.20GHz -BenchmarkFillIndex-8 2025/05/11 20:42:59 initializing index: [test] -2025/05/11 20:42:59 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:42:59 [DEBUG] Starting full scan for [test] -2025/05/11 20:42:59 Index assessment : [test] complexity=simple directories=0 files=0 -2025/05/11 20:42:59 [DEBUG] Time spent indexing [test]: 0 seconds -2025/05/11 20:42:59 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:42:59 [DEBUG] Next scan in 1m0s - 10 3548759 ns/op 38032 B/op 452 allocs/op -BenchmarkCheckIndexExclude-8 10 172.6 ns/op 0 B/op 0 allocs/op -BenchmarkCheckIndexConditionsInclude-8 10 118.2 ns/op 0 B/op 0 allocs/op -2025/05/11 20:43:01 initializing index: [test] -2025/05/11 20:43:01 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:43:01 [DEBUG] Starting full scan for [test] -2025/05/11 20:43:01 Index assessment : [test] complexity=simple directories=0 files=0 -2025/05/11 20:43:01 [DEBUG] Time spent indexing [test]: 0 seconds -2025/05/11 20:43:01 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:43:01 [DEBUG] Next scan in 1m0s -BenchmarkSearchAllIndexes-8 2025/05/11 20:43:02 initializing index: [test] -2025/05/11 20:43:02 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:43:02 [DEBUG] Starting full scan for [test] -2025/05/11 20:43:02 Index assessment : [test] complexity=simple directories=0 files=0 -2025/05/11 20:43:02 [DEBUG] Time spent indexing [test]: 0 seconds -2025/05/11 20:43:02 [DEBUG] Skipping source update event for mock index. -2025/05/11 20:43:02 [DEBUG] Next scan in 1m0s - 10 781119 ns/op 38515 B/op 900 allocs/op +BenchmarkFillIndex-8 2025/11/07 17:48:08 [INFO] initializing index: [test] +2025/11/07 17:48:08 [INFO] Setting up multi-scanner system for [test] +2025/11/07 17:48:08 [DEBUG] Created 1 scanners for [test] (1 root + 0 children) +2025/11/07 17:48:08 [DEBUG] Time spent indexing [test]: 0s seconds +2025/11/07 17:48:08 [DEBUG] Skipping source update event for mock index. + 10 3611835 ns/op 323676 B/op 1655 allocs/op +2025/11/07 17:48:08 [INFO] initializing index: [test] +2025/11/07 17:48:08 [INFO] Setting up multi-scanner system for [test] +2025/11/07 17:48:08 [DEBUG] Created 1 scanners for [test] (1 root + 0 children) +2025/11/07 17:48:08 [DEBUG] Time spent indexing [test]: 0s seconds +2025/11/07 17:48:08 [DEBUG] Skipping source update event for mock index. +BenchmarkSearchAllIndexes-8 2025/11/07 17:48:08 [INFO] initializing index: [test] +2025/11/07 17:48:08 [INFO] Setting up multi-scanner system for [test] +2025/11/07 17:48:08 [DEBUG] Created 1 scanners for [test] (1 root + 0 children) +2025/11/07 17:48:08 [DEBUG] Time spent indexing [test]: 0s seconds +2025/11/07 17:48:08 [DEBUG] Skipping source update event for mock index. + 10 784497 ns/op 97700 B/op 1061 allocs/op PASS -ok github.com/gtsteffaniak/filebrowser/backend/indexing 5.097s +ok github.com/gtsteffaniak/filebrowser/backend/indexing 0.077s PASS -ok github.com/gtsteffaniak/filebrowser/backend/indexing/iteminfo 0.005s +ok github.com/gtsteffaniak/filebrowser/backend/indexing/iteminfo 0.006s PASS -ok github.com/gtsteffaniak/filebrowser/backend/preview 0.128s +ok github.com/gtsteffaniak/filebrowser/backend/preview 0.130s ? github.com/gtsteffaniak/filebrowser/backend/swagger/docs [no test files] -? github.com/gtsteffaniak/filebrowser/backend/tools [no test files] diff --git a/backend/cmd/cli.go b/backend/cmd/cli.go index 8cfd66bf83..e4a3fca203 100644 --- a/backend/cmd/cli.go +++ b/backend/cmd/cli.go @@ -110,7 +110,7 @@ func runCLI() bool { } else { logger.Infof("Creating non-admin user: %s\n", username) } - newUser.Permissions = settings.Config.UserDefaults.Permissions + newUser.Permissions = settings.ConvertPermissionsToUsers(settings.Config.UserDefaults.Permissions) newUser.Permissions.Admin = asAdmin err = storage.CreateUser(newUser, newUser.Permissions) if err != nil { @@ -128,6 +128,10 @@ func runCLI() bool { if asAdmin { user.Permissions.Admin = true } + // Ensure version is set for existing users being updated + if user.Version == 0 { + user.Version = 1 + } err = store.Users.Save(user, true, false) if err != nil { logger.Errorf("could not update user: %v", err) @@ -350,7 +354,7 @@ func createConfig(configpath string) { func generateYaml() { generateConfig := os.Getenv("FILEBROWSER_GENERATE_CONFIG") == "true" - if generateConfig || settings.Config.Env.IsDevMode { + if generateConfig || settings.Env.IsDevMode { logger.Info("Generating config.yaml") settings.GenerateYaml() } diff --git a/backend/cmd/root.go b/backend/cmd/root.go index 086b5676d5..3a4e29f981 100644 --- a/backend/cmd/root.go +++ b/backend/cmd/root.go @@ -15,6 +15,7 @@ import ( "github.com/gtsteffaniak/filebrowser/backend/common/version" "github.com/gtsteffaniak/filebrowser/backend/database/storage" "github.com/gtsteffaniak/filebrowser/backend/database/storage/bolt" + "github.com/gtsteffaniak/filebrowser/backend/ffmpeg" fbhttp "github.com/gtsteffaniak/filebrowser/backend/http" "github.com/gtsteffaniak/filebrowser/backend/indexing" "github.com/gtsteffaniak/filebrowser/backend/preview" @@ -81,8 +82,8 @@ func StartFilebrowser() { // Dev mode enables development features like template hot-reloading _, err := os.Stat("http/dist") // In dev mode, always use filesystem assets. Otherwise, check if http/dist exists - if !settings.Config.Env.IsDevMode { - settings.Config.Env.EmbeddedFs = os.IsNotExist(err) + if !settings.Env.IsDevMode { + settings.Env.EmbeddedFs = os.IsNotExist(err) } sourceList := []string{} @@ -94,7 +95,7 @@ func StartFilebrowser() { logger.Infof("Auth Methods : %v", settings.Config.Auth.AuthMethods) logger.Info(database) logger.Infof("Sources : %v", sourceList) - logger.Debugf("Using Embedded FS : %v", settings.Config.Env.EmbeddedFs) + logger.Debugf("Using Embedded FS : %v", settings.Env.EmbeddedFs) serverConfig := settings.Config.Server swagInfo := docs.SwaggerInfo @@ -110,6 +111,7 @@ func StartFilebrowser() { validateUserInfo(!dbExists) validateOfficeIntegration() validateAccessRules() + validateShareInfo() // Start the rootCMD in a goroutine go func() { if err := rootCMD(ctx, store, &serverConfig, shutdownComplete); err != nil { @@ -125,7 +127,9 @@ func StartFilebrowser() { case <-done: logger.Info("Server stopped unexpectedly. Shutting down...") } - fileutils.ClearCacheDir(settings.Config.Server.CacheDir) + if !*settings.Config.Server.CacheDirCleanup { + fileutils.ClearCacheDir(settings.Config.Server.CacheDir) + } <-shutdownComplete // Ensure we don't exit prematurely // Wait for the server to stop @@ -138,9 +142,10 @@ func rootCMD(ctx context.Context, store *bolt.BoltStore, serverConfig *settings. } cacheDir := settings.Config.Server.CacheDir numWorkers := settings.Config.Server.NumImageProcessors - ffpmpegPath := settings.Config.Integrations.Media.FfmpegPath + ffmpeg.SetFFmpegPaths() + // setup disk cache - err := preview.StartPreviewGenerator(numWorkers, ffpmpegPath, cacheDir) + err := preview.StartPreviewGenerator(numWorkers, cacheDir) if err != nil { logger.Fatalf("Error starting preview service: %v", err) } diff --git a/backend/cmd/share.go b/backend/cmd/share.go new file mode 100644 index 0000000000..5e27531e6b --- /dev/null +++ b/backend/cmd/share.go @@ -0,0 +1,57 @@ +package cmd + +import ( + "github.com/gtsteffaniak/filebrowser/backend/database/users" + "github.com/gtsteffaniak/go-logger/logger" +) + +// validateShareInfo migrates share links to add default sidebar links +func validateShareInfo() { + if store.Share == nil { + return + } + + // Get all shares + shares, err := store.Share.All() + if err != nil { + logger.Debugf("No shares found or error getting shares: %v", err) + return + } + + migratedCount := 0 + for _, link := range shares { + // Check if this share needs migration (version not set or 0) + if link.Version == 0 { + // Add default sidebar links + link.SidebarLinks = []users.SidebarLink{ + { + Name: "Share QR Code and Info", + Category: "shareInfo", + Target: "#", + Icon: "qr_code", + }, + { + Name: "Download", + Category: "download", + Target: "#", + Icon: "download", + }, + } + + // Set version to 1 to indicate migration is complete + link.Version = 1 + + // Save the updated share + if err := store.Share.Save(link); err != nil { + logger.Errorf("Failed to migrate share %s: %v", link.Hash, err) + continue + } + + migratedCount++ + } + } + + if migratedCount > 0 { + logger.Infof("Migrated %d share links with default sidebar links", migratedCount) + } +} diff --git a/backend/cmd/user.go b/backend/cmd/user.go index f84c46b339..c4f0f7391f 100644 --- a/backend/cmd/user.go +++ b/backend/cmd/user.go @@ -76,27 +76,23 @@ func updateUserScopes(user *users.User) bool { // Preserve order by using Config.Server.Sources for _, src := range settings.Config.Server.Sources { - realsource, ok := settings.Config.Server.NameToSource[src.Name] - if !ok { - continue - } - existingScope, ok := existing[realsource.Path] + existingScope, ok := existing[src.Path] if ok { // If scope is empty and there's a default, apply default if existingScope.Scope == "" { existingScope.Scope = src.Config.DefaultUserScope } - } else if realsource.Config.DefaultEnabled { - existingScope.Scope = realsource.Config.DefaultUserScope + } else if src.Config.DefaultEnabled { + existingScope.Scope = src.Config.DefaultUserScope } else { continue } newScopes = append(newScopes, users.SourceScope{ - Name: realsource.Path, + Name: src.Path, Scope: existingScope.Scope, }) - seen[realsource.Path] = struct{}{} + seen[src.Path] = struct{}{} } // Preserve user-defined scopes not matching current sources, append to end @@ -111,7 +107,7 @@ func updateUserScopes(user *users.User) bool { } func updateShowFirstLogin(user *users.User) bool { - if user.ShowFirstLogin && !settings.Config.Env.IsFirstLoad { + if user.ShowFirstLogin && !settings.Env.IsFirstLoad { user.ShowFirstLogin = false return true } diff --git a/backend/common/settings/config.go b/backend/common/settings/config.go index 71a42b3a2a..b5f17694ba 100644 --- a/backend/common/settings/config.go +++ b/backend/common/settings/config.go @@ -15,6 +15,7 @@ import ( "github.com/go-playground/validator/v10" "github.com/goccy/go-yaml" "github.com/gtsteffaniak/filebrowser/backend/adapters/fs/fileutils" + "github.com/gtsteffaniak/filebrowser/backend/common/utils" "github.com/gtsteffaniak/filebrowser/backend/common/version" "github.com/gtsteffaniak/filebrowser/backend/database/users" "github.com/gtsteffaniak/go-logger/logger" @@ -33,6 +34,9 @@ func Initialize(configFile string) { time.Sleep(5 * time.Second) // allow sleep time before exiting to give docker/kubernetes time before restarting logger.Fatal(err.Error()) } + setupLogging() + // setup logging first to ensure we log any errors + setupEnv() err = ValidateConfig(Config) if err != nil { errmsg := "The provided config file failed validation. " @@ -43,18 +47,30 @@ func Initialize(configFile string) { time.Sleep(5 * time.Second) // allow sleep time before exiting to give docker/kubernetes time before restarting logger.Fatal(err.Error()) } - Config.Env.IsPlaywright = os.Getenv("FILEBROWSER_PLAYWRIGHT_TEST") == "true" - if Config.Env.IsPlaywright { - logger.Warning("Running in playwright test mode. This is not recommended for production.") - } - // setup logging first to ensure we log any errors - setupLogging() setupFs() + setupServer() setupAuth(false) setupSources(false) setupUrls() setupFrontend(false) - setupVideoPreview() + setupMedia() +} + +func setupServer() { + if Config.Server.ListenAddress == "" { + Config.Server.ListenAddress = "0.0.0.0" + } +} + +func setupEnv() { + Env.IsPlaywright = os.Getenv("FILEBROWSER_PLAYWRIGHT_TEST") == "true" + if Env.IsPlaywright { + logger.Warning("Running in playwright test mode. This is not recommended for production.") + } + Env.IsDevMode = os.Getenv("FILEBROWSER_DEVMODE") == "true" + if Env.IsDevMode { + logger.Warning("Running in dev mode. This is not recommended for production.") + } } func setupFs() { @@ -85,28 +101,8 @@ func setupFs() { } func setupFrontend(generate bool) { - if Config.Frontend.LoginIcon != "" { - // check if file exists - if _, err := os.Stat(Config.Frontend.LoginIcon); os.IsNotExist(err) { - logger.Warningf("login icon file '%v' does not exist", Config.Frontend.LoginIcon) - Config.Frontend.LoginIcon = "" - } else { - // validate image type - validExtensions := []string{".svg", ".png", ".jpg", ".jpeg", ".gif", ".webp", ".ico"} - isValid := false - lowerPath := strings.ToLower(Config.Frontend.LoginIcon) - for _, ext := range validExtensions { - if strings.HasSuffix(lowerPath, ext) { - isValid = true - break - } - } - if !isValid { - logger.Warningf("login icon file '%v' is not a valid image type (supported: svg, png, jpg, jpeg, gif, webp, ico)", Config.Frontend.LoginIcon) - Config.Frontend.LoginIcon = "" - } - } - } + // Load login icon configuration at startup + loadLoginIcon() if Config.Server.MinSearchLength == 0 { Config.Server.MinSearchLength = 3 } @@ -162,7 +158,7 @@ func setupFrontend(generate bool) { loadCustomFavicon() } -func setupVideoPreview() { +func setupMedia() { // If VideoPreview is not initialized, initialize with all types enabled if Config.Integrations.Media.Convert.VideoPreview == nil { Config.Integrations.Media.Convert.VideoPreview = make(map[VideoPreviewType]bool) @@ -200,14 +196,6 @@ func setupVideoPreview() { } } -func checkPathExists(realPath string) error { - // check path exists - if _, err := os.Stat(realPath); os.IsNotExist(err) { - return fmt.Errorf("source path %v is currently not available", realPath) - } - return nil -} - func setupSources(generate bool) { if len(Config.Server.Sources) == 0 { logger.Fatal("There are no `server.sources` configured. If you have `server.root` configured, please update the config and add at least one `server.sources` with a `path` configured.") @@ -220,9 +208,9 @@ func setupSources(generate bool) { if err != nil { logger.Fatalf("error getting real path for source %v: %v", source.Path, err) } - err = checkPathExists(realPath) - if err != nil { - logger.Warningf("error checking path exists: %v", err) + exists := utils.CheckPathExists(realPath) + if !exists { + logger.Warningf("source path %v is currently not available", realPath) } name := filepath.Base(realPath) if name == "\\" { @@ -347,7 +335,7 @@ func setupLogging() { for _, logConfig := range Config.Server.Logging { // Enable debug logging automatically in dev mode levels := logConfig.Levels - if Config.Env.IsDevMode { + if os.Getenv("FILEBROWSER_DEVMODE") == "true" { levels = "info|warning|error|debug" } @@ -365,10 +353,6 @@ func setupLogging() { log.Println("[ERROR] Failed to set up logger:", err) } } - Config.Env.IsDevMode = os.Getenv("FILEBROWSER_DEVMODE") == "true" - if Config.Env.IsDevMode { - logger.Warning("Running in dev mode. This is not recommended for production.") - } } func loadConfigWithDefaults(configFile string, generate bool) error { @@ -549,6 +533,7 @@ func setDefaults(generate bool) Settings { NameToSource: map[string]*Source{}, MaxArchiveSizeGB: 50, CacheDir: "tmp", + CacheDirCleanup: boolPtr(true), Filesystem: Filesystem{ CreateFilePermission: "644", CreateDirectoryPermission: "755", @@ -570,21 +555,32 @@ func setDefaults(generate bool) Settings { }, UserDefaults: UserDefaults{ - DisableOnlyOfficeExt: ".md .txt .pdf", + DisableOnlyOfficeExt: ".md .txt .pdf .html .xml", StickySidebar: true, LockPassword: false, ShowHidden: false, - DarkMode: true, + DarkMode: boolPtr(true), DisableSettings: false, ViewMode: "normal", Locale: "en", GallerySize: 3, ThemeColor: "var(--blue)", - Permissions: users.Permissions{ - Modify: false, - Share: false, - Admin: false, - Api: false, + Permissions: UserDefaultsPermissions{ + Modify: false, + Share: false, + Admin: false, + Api: false, + Download: boolPtr(true), // defaults to true + }, + Preview: UserDefaultsPreview{ + HighQuality: boolPtr(true), + Image: boolPtr(true), + Video: boolPtr(true), + MotionVideoPreview: boolPtr(true), + Office: boolPtr(true), + PopUp: boolPtr(true), + AutoplayMedia: boolPtr(true), + Folder: boolPtr(true), }, FileLoading: users.FileLoading{ MaxConcurrent: 10, @@ -606,164 +602,106 @@ func setDefaults(generate bool) Settings { return s } -func ConvertToBackendScopes(scopes []users.SourceScope) ([]users.SourceScope, error) { - if len(scopes) == 0 { - return Config.UserDefaults.DefaultScopes, nil +// validateCustomImage validates a custom image file path and returns the absolute path or error +func validateCustomImage(configPath, imageName string, maxSize int64, allowedFormats []string) (absolutePath string, err error) { + // Get absolute path + absolutePath, err = filepath.Abs(configPath) + if err != nil { + return "", fmt.Errorf("could not resolve path: %w", err) } - newScopes := []users.SourceScope{} - for _, scope := range scopes { - // first check if its already a path name and keep it - source, ok := Config.Server.SourceMap[scope.Name] - if ok { - if scope.Scope == "" { - scope.Scope = source.Config.DefaultUserScope - } - if !strings.HasPrefix(scope.Scope, "/") { - scope.Scope = "/" + scope.Scope - } - if scope.Scope != "/" && strings.HasSuffix(scope.Scope, "/") { - scope.Scope = strings.TrimSuffix(scope.Scope, "/") - } - newScopes = append(newScopes, users.SourceScope{ - Name: source.Path, // backend name is path - Scope: scope.Scope, - }) - continue - } - - // check if its the name of a source and convert it to a path - source, ok = Config.Server.NameToSource[scope.Name] - if !ok { - // source might no longer be configured - continue - } - if scope.Scope == "" { - scope.Scope = source.Config.DefaultUserScope - } - if !strings.HasPrefix(scope.Scope, "/") { - scope.Scope = "/" + scope.Scope - } - if scope.Scope != "/" && strings.HasSuffix(scope.Scope, "/") { - scope.Scope = strings.TrimSuffix(scope.Scope, "/") - } - newScopes = append(newScopes, users.SourceScope{ - Name: source.Path, // backend name is path - Scope: scope.Scope, - }) + // Check if file exists + stat, err := os.Stat(absolutePath) + if err != nil { + return "", fmt.Errorf("could not access file: %w", err) } - return newScopes, nil -} -func ConvertToFrontendScopes(scopes []users.SourceScope) []users.SourceScope { - newScopes := []users.SourceScope{} - for _, scope := range scopes { - if source, ok := Config.Server.SourceMap[scope.Name]; ok { - // Replace scope.Name with source.Path while keeping the same Scope value - newScopes = append(newScopes, users.SourceScope{ - Name: source.Name, - Scope: scope.Scope, - }) + // Check file size + if stat.Size() > maxSize { + return "", fmt.Errorf("file too large (%d bytes), maximum allowed is %d bytes", stat.Size(), maxSize) + } + + // Validate file format + ext := strings.ToLower(filepath.Ext(absolutePath)) + validFormat := false + for _, format := range allowedFormats { + if ext == format { + validFormat = true + break } } - return newScopes -} - -func HasSourceByPath(scopes []users.SourceScope, sourcePath string) bool { - for _, scope := range scopes { - if scope.Name == sourcePath { - return true - } + if !validFormat { + return "", fmt.Errorf("unsupported format '%s', supported formats: %v", ext, allowedFormats) } - return false -} -func GetScopeFromSourceName(scopes []users.SourceScope, sourceName string) (string, error) { - source, ok := Config.Server.NameToSource[sourceName] - if !ok { - logger.Debug("Could not get scope from source name: ", sourceName) - return "", fmt.Errorf("source with name not found %v", sourceName) - } - for _, scope := range scopes { - if scope.Name == source.Path { - return scope.Scope, nil - } - } - logger.Debugf("scope not found for source %v", sourceName) - return "", fmt.Errorf("scope not found for source %v", sourceName) -} - -func GetScopeFromSourcePath(scopes []users.SourceScope, sourcePath string) (string, error) { - for _, scope := range scopes { - if scope.Name == sourcePath { - return scope.Scope, nil - } - } - return "", fmt.Errorf("scope not found for source %v", sourcePath) -} - -// assumes backend style scopes -func GetSources(u *users.User) []string { - sources := []string{} - - // preserves order of sources - for _, source := range Config.Server.Sources { - _, err := GetScopeFromSourcePath(u.Scopes, source.Path) - if err != nil { - logger.Warningf("could not get scope for source %v: %v", source.Path, err) - continue - } - sources = append(sources, source.Name) - } - return sources + return absolutePath, nil } func loadCustomFavicon() { + const imageName = "favicon" + const maxSize = 1024 * 1024 // 1MB + allowedFormats := []string{".ico", ".png", ".svg"} + + // Set default embedded favicon path + Env.FaviconEmbeddedPath = "img/icons/favicon.ico" + // Check if a custom favicon path is configured if Config.Frontend.Favicon == "" { - logger.Debug("No custom favicon configured, using default") + Env.FaviconPath = Env.FaviconEmbeddedPath + Env.FaviconIsCustom = false return } - // Get absolute path for the favicon - faviconPath, err := filepath.Abs(Config.Frontend.Favicon) + // Validate custom favicon + validatedPath, err := validateCustomImage(Config.Frontend.Favicon, imageName, maxSize, allowedFormats) if err != nil { - logger.Warningf("Could not resolve favicon path '%v': %v", Config.Frontend.Favicon, err) - Config.Frontend.Favicon = "" // Unset invalid path + logger.Warningf("Custom favicon validation failed: %v, using default", err) + Config.Frontend.Favicon = "" + Env.FaviconPath = Env.FaviconEmbeddedPath + Env.FaviconIsCustom = false return } - // Check if the favicon file exists and get info - stat, err := os.Stat(faviconPath) + // Update to validated path and mark as custom + Config.Frontend.Favicon = validatedPath + Env.FaviconPath = validatedPath + Env.FaviconIsCustom = true + logger.Infof("Using custom favicon: %s", Env.FaviconPath) +} + +func loadLoginIcon() { + const imageName = "login icon" + const maxSize = 1024 * 1024 // 1MB + allowedFormats := []string{".svg", ".png", ".jpg", ".jpeg", ".gif", ".webp", ".ico"} + + // Set default embedded icon path based on dark mode preference + isDarkMode := Config.UserDefaults.DarkMode != nil && *Config.UserDefaults.DarkMode + if isDarkMode { + Env.LoginIconEmbeddedPath = "img/icons/favicon.svg" // Dark mode: dark background + } else { + Env.LoginIconEmbeddedPath = "img/icons/favicon-light.svg" // Light mode: light background + } + + // Check if a custom login icon path is configured + if Config.Frontend.LoginIcon == "" { + Env.LoginIconPath = Env.LoginIconEmbeddedPath + Env.LoginIconIsCustom = false + return + } + + // Validate custom login icon + validatedPath, err := validateCustomImage(Config.Frontend.LoginIcon, imageName, maxSize, allowedFormats) if err != nil { - logger.Warningf("Could not access custom favicon file '%v': %v", faviconPath, err) - Config.Frontend.Favicon = "" // Unset invalid path + logger.Warningf("Custom login icon validation failed: %v, using default", err) + Env.LoginIconPath = Env.LoginIconEmbeddedPath + Env.LoginIconIsCustom = false return } - // Check file size (limit to 1MB for security) - const maxFaviconSize = 1024 * 1024 // 1MB - if stat.Size() > maxFaviconSize { - logger.Warningf("Favicon file '%v' is too large (%d bytes), maximum allowed is %d bytes", faviconPath, stat.Size(), maxFaviconSize) - Config.Frontend.Favicon = "" // Unset invalid path - return - } - - // Validate file format based on extension - ext := strings.ToLower(filepath.Ext(faviconPath)) - switch ext { - case ".ico", ".png", ".svg": - // Valid favicon formats - default: - logger.Warningf("Unsupported favicon format '%v', supported formats: .ico, .png, .svg", ext) - Config.Frontend.Favicon = "" // Unset invalid path - return - } - - // Update to absolute path and mark as valid - Config.Frontend.Favicon = faviconPath - - logger.Infof("Successfully validated custom favicon at '%v' (%d bytes, %s)", faviconPath, stat.Size(), ext) + // Update to validated path and mark as custom + Env.LoginIconPath = validatedPath + Env.LoginIconIsCustom = true + logger.Infof("Using custom login icon: %s", Env.LoginIconPath) } // setConditionalsMap builds optimized map structures from conditional rules for O(1) lookups diff --git a/backend/common/settings/configFunctions.go b/backend/common/settings/configFunctions.go index 6297885b7d..261f01b1cf 100644 --- a/backend/common/settings/configFunctions.go +++ b/backend/common/settings/configFunctions.go @@ -1,9 +1,13 @@ package settings func CanConvertImage(ext string) bool { - return Config.Integrations.Media.FfmpegPath != "" && Config.Integrations.Media.Convert.ImagePreview[ImagePreviewType(ext)] + return MediaEnabled() && Config.Integrations.Media.Convert.ImagePreview[ImagePreviewType(ext)] } func CanConvertVideo(ext string) bool { - return Config.Integrations.Media.FfmpegPath != "" && Config.Integrations.Media.Convert.VideoPreview[VideoPreviewType(ext)] + return MediaEnabled() && Config.Integrations.Media.Convert.VideoPreview[VideoPreviewType(ext)] +} + +func MediaEnabled() bool { + return Env.FFmpegPath != "" && Env.FFprobePath != "" } diff --git a/backend/common/settings/functions.go b/backend/common/settings/functions.go new file mode 100644 index 0000000000..09750e4044 --- /dev/null +++ b/backend/common/settings/functions.go @@ -0,0 +1,166 @@ +package settings + +import ( + "fmt" + "strings" + + "github.com/gtsteffaniak/filebrowser/backend/database/users" + "github.com/gtsteffaniak/go-logger/logger" +) + +func ConvertToBackendScopes(scopes []users.SourceScope) ([]users.SourceScope, error) { + if len(scopes) == 0 { + return Config.UserDefaults.DefaultScopes, nil + } + newScopes := []users.SourceScope{} + for _, scope := range scopes { + + // first check if its already a path name and keep it + source, ok := Config.Server.SourceMap[scope.Name] + if ok { + if scope.Scope == "" { + scope.Scope = source.Config.DefaultUserScope + } + if !strings.HasPrefix(scope.Scope, "/") { + scope.Scope = "/" + scope.Scope + } + if scope.Scope != "/" && strings.HasSuffix(scope.Scope, "/") { + scope.Scope = strings.TrimSuffix(scope.Scope, "/") + } + newScopes = append(newScopes, users.SourceScope{ + Name: source.Path, // backend name is path + Scope: scope.Scope, + }) + continue + } + + // check if its the name of a source and convert it to a path + source, ok = Config.Server.NameToSource[scope.Name] + if !ok { + // source might no longer be configured + continue + } + if scope.Scope == "" { + scope.Scope = source.Config.DefaultUserScope + } + if !strings.HasPrefix(scope.Scope, "/") { + scope.Scope = "/" + scope.Scope + } + if scope.Scope != "/" && strings.HasSuffix(scope.Scope, "/") { + scope.Scope = strings.TrimSuffix(scope.Scope, "/") + } + newScopes = append(newScopes, users.SourceScope{ + Name: source.Path, // backend name is path + Scope: scope.Scope, + }) + } + return newScopes, nil +} + +func ConvertToFrontendScopes(scopes []users.SourceScope) []users.SourceScope { + newScopes := []users.SourceScope{} + for _, scope := range scopes { + if source, ok := Config.Server.SourceMap[scope.Name]; ok { + // Replace scope.Name with source.Path while keeping the same Scope value + newScopes = append(newScopes, users.SourceScope{ + Name: source.Name, + Scope: scope.Scope, + }) + } + } + return newScopes +} + +func ConvertToFrontendSidebarLinks(links []users.SidebarLink) []users.SidebarLink { + newLinks := []users.SidebarLink{} + for _, link := range links { + // For source links, validate that the source still exists + if link.Category == "source" { + if link.SourceName == "" { + logger.Warningf("source link missing sourceName: %v", link.Name) + continue + } + // Check if source exists + sourceInfo, ok := Config.Server.SourceMap[link.SourceName] + if !ok { + logger.Warningf("source not found: %v (link name: %v)", link.SourceName, link.Name) + continue + } + link.SourceName = sourceInfo.Name + } + // For share links, just pass through (shares are validated separately) + // For all other links, pass through as-is + newLinks = append(newLinks, link) + } + return newLinks +} + +func ConvertToBackendSidebarLinks(links []users.SidebarLink) ([]users.SidebarLink, error) { + newLinks := []users.SidebarLink{} + for _, link := range links { + // For source links, validate that the source exists using SourceName + if link.Category == "source" { + if link.SourceName == "" { + return nil, fmt.Errorf("source link missing sourceName (link name: %v)", link.Name) + } + // Validate source exists + sourceInfo, ok := Config.Server.NameToSource[link.SourceName] + if !ok { + return nil, fmt.Errorf("source not found: %v (link name: %v)", link.SourceName, link.Name) + } + link.SourceName = sourceInfo.Path // if name chages keep link alive + } + // Store the link as-is with all fields preserved + newLinks = append(newLinks, link) + } + return newLinks, nil +} + +func HasSourceByPath(scopes []users.SourceScope, sourcePath string) bool { + for _, scope := range scopes { + if scope.Name == sourcePath { + return true + } + } + return false +} + +func GetScopeFromSourceName(scopes []users.SourceScope, sourceName string) (string, error) { + source, ok := Config.Server.NameToSource[sourceName] + if !ok { + logger.Debug("Could not get scope from source name: ", sourceName) + return "", fmt.Errorf("source with name not found %v", sourceName) + } + for _, scope := range scopes { + if scope.Name == source.Path { + return scope.Scope, nil + } + } + logger.Debugf("scope not found for source %v", sourceName) + return "", fmt.Errorf("scope not found for source %v", sourceName) +} + +func GetScopeFromSourcePath(scopes []users.SourceScope, sourcePath string) (string, error) { + for _, scope := range scopes { + if scope.Name == sourcePath { + return scope.Scope, nil + } + } + return "", fmt.Errorf("scope not found for source %v", sourcePath) +} + +// assumes backend style scopes +func GetSources(u *users.User) []string { + sources := []string{} + + // preserves order of sources + for _, source := range Config.Server.Sources { + _, err := GetScopeFromSourcePath(u.Scopes, source.Path) + if err != nil { + logger.Warningf("could not get scope for source %v: %v", source.Path, err) + continue + } + sources = append(sources, source.Name) + } + return sources +} diff --git a/backend/common/settings/generator.go b/backend/common/settings/generator.go index 8dd184b673..49fffb9eab 100644 --- a/backend/common/settings/generator.go +++ b/backend/common/settings/generator.go @@ -727,7 +727,7 @@ func GenerateYaml() { setupSources(true) setupUrls() - setupVideoPreview() + setupMedia() setupFrontend(true) // Restore original paths so the YAML output has the correct paths, not the placeholder diff --git a/backend/common/settings/generator_simple_test.go b/backend/common/settings/generator_simple_test.go index 162a9a14f9..ce34fb9349 100644 --- a/backend/common/settings/generator_simple_test.go +++ b/backend/common/settings/generator_simple_test.go @@ -9,10 +9,11 @@ import ( func TestGenerateConfigYaml_Basic(t *testing.T) { reNumber := regexp.MustCompile(`^-?\d+(\.\d+)?$`) // Test using the actual source directory structure + trueVal := true config := &Settings{ UserDefaults: UserDefaults{ Locale: "es", // Non-default value - DarkMode: true, // Default value + DarkMode: &trueVal, // Default value DisableOfficePreviewExt: ".docx .xlsx", // This field is deprecated }, Auth: Auth{ @@ -104,6 +105,11 @@ func TestGenerateConfigYaml_Basic(t *testing.T) { continue } + // Check if it's null (should NOT be quoted - it's a YAML literal for nil) + if value == "null" { + continue + } + // Everything else should be a quoted string if !strings.HasPrefix(value, "\"") || !strings.HasSuffix(value, "\"") { // Add debug info to see what's wrong diff --git a/backend/common/settings/generator_test.go b/backend/common/settings/generator_test.go index 8cd9e97c79..03aeeb6475 100644 --- a/backend/common/settings/generator_test.go +++ b/backend/common/settings/generator_test.go @@ -108,6 +108,11 @@ type Auth struct { continue } + // Check if it's null (should NOT be quoted - it's a YAML literal for nil) + if value == "null" { + continue + } + // Everything else should be a quoted string if !strings.HasPrefix(value, "\"") || !strings.HasSuffix(value, "\"") { t.Errorf("String value should be quoted: %s (value: '%s')", line, value) @@ -204,10 +209,11 @@ type UserDefaults struct { sourcePath := tmpFile[:strings.LastIndex(tmpFile, "/")] // Create a config with both default and non-default values + trueVal := true config := &Settings{ UserDefaults: UserDefaults{ - DarkMode: true, // This matches default - Locale: "es", // This differs from default ("en") + DarkMode: &trueVal, // This matches default + Locale: "es", // This differs from default ("en") }, } @@ -278,10 +284,11 @@ func TestGenerateConfigYaml_CommentsOnOff(t *testing.T) { func TestGenerateConfigYaml_IntegrationTest(t *testing.T) { reNumber := regexp.MustCompile(`^-?\d+(\.\d+)?$`) // Comprehensive test with all features + trueVal := true config := &Settings{ UserDefaults: UserDefaults{ Locale: "es", // Non-default - DarkMode: true, // Default + DarkMode: &trueVal, // Default DisableOfficePreviewExt: ".docx .xlsx", // This is deprecated }, Auth: Auth{ @@ -400,8 +407,8 @@ func TestGenerateConfigYaml_IntegrationTest(t *testing.T) { continue } - // Skip arrays, objects, and empty values - if value == "" || strings.HasPrefix(value, "[") || strings.HasPrefix(value, "{") || strings.Contains(value, ":") { + // Skip arrays, objects, empty values, and null + if value == "" || value == "null" || strings.HasPrefix(value, "[") || strings.HasPrefix(value, "{") || strings.Contains(value, ":") { continue } @@ -433,8 +440,8 @@ func TestGenerateConfigYaml_EdgeCases(t *testing.T) { name: "only_defaults", config: &Settings{ UserDefaults: UserDefaults{ - DarkMode: true, // default value - Locale: "en", // default value + DarkMode: boolPtr(true), // default value + Locale: "en", // default value }, }, desc: "Config with only default values", diff --git a/backend/common/settings/multiconfig_test.go b/backend/common/settings/multiconfig_test.go index 5cd66889ab..67ec29ee66 100644 --- a/backend/common/settings/multiconfig_test.go +++ b/backend/common/settings/multiconfig_test.go @@ -214,7 +214,7 @@ frontend: } // Verify user defaults - if Config.UserDefaults.DarkMode != true { + if Config.UserDefaults.DarkMode == nil || !*Config.UserDefaults.DarkMode { t.Errorf("Expected dark mode true, got %v", Config.UserDefaults.DarkMode) } diff --git a/backend/common/settings/settings.go b/backend/common/settings/settings.go index 3fd88ee027..111e2b8508 100644 --- a/backend/common/settings/settings.go +++ b/backend/common/settings/settings.go @@ -7,6 +7,33 @@ import ( "github.com/gtsteffaniak/filebrowser/backend/database/users" ) +// boolPtr returns a pointer to a bool value +func boolPtr(b bool) *bool { + return &b +} + +// boolValueOrDefault returns the value of a bool pointer, or the default if nil +func boolValueOrDefault(ptr *bool, defaultValue bool) bool { + if ptr != nil { + return *ptr + } + return defaultValue +} + +// ConvertPermissionsToUsers converts UserDefaultsPermissions to users.Permissions +func ConvertPermissionsToUsers(p UserDefaultsPermissions) users.Permissions { + return users.Permissions{ + Api: p.Api, + Admin: p.Admin, + Modify: p.Modify, + Share: p.Share, + Realtime: p.Realtime, + Delete: p.Delete, + Create: p.Create, + Download: boolValueOrDefault(p.Download, true), + } +} + const DefaultUsersHomeBasePath = "/users" // AuthMethod describes an authentication method. @@ -41,12 +68,36 @@ func AdminPerms() users.Permissions { func ApplyUserDefaults(u *users.User) { u.StickySidebar = Config.UserDefaults.StickySidebar u.DisableSettings = Config.UserDefaults.DisableSettings - u.DarkMode = Config.UserDefaults.DarkMode + + // Handle DarkMode with default - dereference pointer from config + u.DarkMode = boolValueOrDefault(Config.UserDefaults.DarkMode, true) + u.Locale = Config.UserDefaults.Locale u.ViewMode = Config.UserDefaults.ViewMode u.SingleClick = Config.UserDefaults.SingleClick - u.Permissions = Config.UserDefaults.Permissions - u.Preview = Config.UserDefaults.Preview + + // Handle Permissions - convert from pointer-based defaults to regular bools + u.Permissions.Api = Config.UserDefaults.Permissions.Api + u.Permissions.Admin = Config.UserDefaults.Permissions.Admin + u.Permissions.Modify = Config.UserDefaults.Permissions.Modify + u.Permissions.Share = Config.UserDefaults.Permissions.Share + u.Permissions.Realtime = Config.UserDefaults.Permissions.Realtime + u.Permissions.Delete = Config.UserDefaults.Permissions.Delete + u.Permissions.Create = Config.UserDefaults.Permissions.Create + u.Permissions.Download = boolValueOrDefault(Config.UserDefaults.Permissions.Download, true) + + // Handle Preview - convert from pointer-based defaults to regular bools + u.Preview.DisableHideSidebar = Config.UserDefaults.Preview.DisableHideSidebar + u.Preview.HighQuality = boolValueOrDefault(Config.UserDefaults.Preview.HighQuality, true) + u.Preview.Image = boolValueOrDefault(Config.UserDefaults.Preview.Image, true) + u.Preview.Video = boolValueOrDefault(Config.UserDefaults.Preview.Video, true) + u.Preview.MotionVideoPreview = boolValueOrDefault(Config.UserDefaults.Preview.MotionVideoPreview, true) + u.Preview.Office = boolValueOrDefault(Config.UserDefaults.Preview.Office, true) + u.Preview.PopUp = boolValueOrDefault(Config.UserDefaults.Preview.PopUp, true) + u.Preview.AutoplayMedia = boolValueOrDefault(Config.UserDefaults.Preview.AutoplayMedia, true) + u.Preview.DefaultMediaPlayer = Config.UserDefaults.Preview.DefaultMediaPlayer + u.Preview.Folder = boolValueOrDefault(Config.UserDefaults.Preview.Folder, true) + u.ShowHidden = Config.UserDefaults.ShowHidden u.DateFormat = Config.UserDefaults.DateFormat u.DisableViewingExt = Config.UserDefaults.DisableViewingExt diff --git a/backend/common/settings/structs.go b/backend/common/settings/structs.go index 4dd3090003..1e6033d195 100644 --- a/backend/common/settings/structs.go +++ b/backend/common/settings/structs.go @@ -6,6 +6,8 @@ import ( type AllowedMethods string +var Env Environment + const ( ProxyAuth AllowedMethods = "proxyAuth" NoAuth AllowedMethods = "noAuth" @@ -13,7 +15,6 @@ const ( ) type Settings struct { - Env Env `json:"-"` Server Server `json:"server"` Auth Auth `json:"auth"` Frontend Frontend `json:"frontend"` @@ -21,12 +22,20 @@ type Settings struct { Integrations Integrations `json:"integrations"` } -type Env struct { - IsPlaywright bool `json:"-"` - IsDevMode bool `json:"-"` - IsFirstLoad bool `json:"-"` // used internally to track if this is the first load of the application - MuPdfAvailable bool `json:"-"` // used internally if compiled with mupdf support - EmbeddedFs bool `json:"-"` // used internally if compiled with embedded fs support +type Environment struct { + IsPlaywright bool `json:"-"` + IsDevMode bool `json:"-"` + IsFirstLoad bool `json:"-"` // used internally to track if this is the first load of the application + MuPdfAvailable bool `json:"-"` // used internally if compiled with mupdf support + EmbeddedFs bool `json:"-"` // used internally if compiled with embedded fs support + FFmpegPath string `json:"-"` + FFprobePath string `json:"-"` + LoginIconPath string `json:"-"` // resolved login icon path (filesystem or embedded) + LoginIconIsCustom bool `json:"-"` // true if login icon is from custom filesystem path + LoginIconEmbeddedPath string `json:"-"` // embedded asset path for default icon + FaviconPath string `json:"-"` // resolved favicon path (filesystem or embedded) + FaviconIsCustom bool `json:"-"` // true if favicon is from custom filesystem path + FaviconEmbeddedPath string `json:"-"` // embedded asset path for default favicon } type Server struct { @@ -40,15 +49,17 @@ type Server struct { DisableResize bool `json:"disablePreviewResize"` // disable resizing of previews for faster loading over slow connections DisableTypeDetectionByHeader bool `json:"disableTypeDetectionByHeader"` // disable type detection by header, useful if filesystem is slow. Port int `json:"port"` // port to listen on + ListenAddress string `json:"listen"` // address to listen on (default: 0.0.0.0) BaseURL string `json:"baseURL"` // base URL for the server, the subpath that the server is running on. Logging []LogConfig `json:"logging" yaml:"logging"` Database string `json:"database"` // path to the database file Sources []*Source `json:"sources" validate:"required,dive"` - ExternalUrl string `json:"externalUrl"` // used by share links if set (eg. http://mydomain.com) - InternalUrl string `json:"internalUrl"` // used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080) - CacheDir string `json:"cacheDir"` // path to the cache directory, used for thumbnails and other cached files - MaxArchiveSizeGB int64 `json:"maxArchiveSize"` // max pre-archive combined size of files/folder that are allowed to be archived (in GB) - Filesystem Filesystem `json:"filesystem"` // filesystem settings + ExternalUrl string `json:"externalUrl"` // used by share links if set (eg. http://mydomain.com) + InternalUrl string `json:"internalUrl"` // used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080) + CacheDir string `json:"cacheDir"` // path to the cache directory, used for thumbnails and other cached files + CacheDirCleanup *bool `json:"cacheDirCleanup"` // whether to automatically cleanup the cache directory (default: true) + MaxArchiveSizeGB int64 `json:"maxArchiveSize"` // max pre-archive combined size of files/folder that are allowed to be archived (in GB) + Filesystem Filesystem `json:"filesystem"` // filesystem settings // not exposed to config SourceMap map[string]*Source `json:"-" validate:"omitempty"` // uses realpath as key NameToSource map[string]*Source `json:"-" validate:"omitempty"` // uses name as key @@ -170,12 +181,12 @@ type SourceConfig struct { DenyByDefault bool `json:"denyByDefault,omitempty"` // deny access unless an "allow" access rule was specifically created. Private bool `json:"private"` // designate as source as private -- currently just means no sharing permitted. Disabled bool `json:"disabled,omitempty"` // disable the source, this is useful so you don't need to remove it from the config file - IndexingInterval uint32 `json:"indexingIntervalMinutes,omitempty"` // optional manual overide interval in minutes to re-index the source - DisableIndexing bool `json:"disableIndexing,omitempty"` // disable the indexing of this source + IndexingInterval uint32 `json:"indexingIntervalMinutes,omitempty"` // (optional) not recommended: manual overide interval in minutes to re-index the source + DisableIndexing bool `json:"disableIndexing,omitempty"` // (optional) not recommended: disable the indexing of this source Conditionals ConditionalFilter `json:"conditionals"` // conditional rules to apply when indexing to include/exclude certain items - DefaultUserScope string `json:"defaultUserScope"` // default "/" should match folders under path + DefaultUserScope string `json:"defaultUserScope"` // defaults to root of index "/" should match folders under path DefaultEnabled bool `json:"defaultEnabled"` // should be added as a default source for new users? - CreateUserDir bool `json:"createUserDir"` // create a user directory for each user + CreateUserDir bool `json:"createUserDir"` // create a user directory for each user under defaultUserScope + username // hidden but used internally - optimized map lookups for conditional rules ResolvedConditionals *ResolvedConditionalsConfig `json:"-"` } @@ -261,38 +272,64 @@ type ExternalLink struct { Url string `json:"url" validate:"required"` // the url to link to } +// UserDefaultsPreview holds preview settings with pointer types for defaults +type UserDefaultsPreview struct { + DisableHideSidebar bool `json:"disableHideSidebar"` // keep sidebar open when previewing files + HighQuality *bool `json:"highQuality"` // use high quality thumbnails + Image *bool `json:"image"` // show thumbnails for image files + Video *bool `json:"video"` // show thumbnails for video files + MotionVideoPreview *bool `json:"motionVideoPreview"` // show multiple frames for videos in thumbnail preview when hovering + Office *bool `json:"office"` // show thumbnails for office files + PopUp *bool `json:"popup"` // show larger popup preview when hovering over thumbnail + AutoplayMedia *bool `json:"autoplayMedia"` // autoplay media files in preview + DefaultMediaPlayer bool `json:"defaultMediaPlayer"` // disable the styled feature-rich media player for browser default + Folder *bool `json:"folder"` // show thumbnails for folders that have previewable contents +} + +// UserDefaultsPermissions holds permission settings with pointer types for defaults +type UserDefaultsPermissions struct { + Api bool `json:"api"` // allow api access + Admin bool `json:"admin"` // allow admin access + Modify bool `json:"modify"` // allow modifying files + Share bool `json:"share"` // allow sharing files + Realtime bool `json:"realtime"` // allow realtime updates + Delete bool `json:"delete"` // allow deleting files + Create bool `json:"create"` // allow creating or uploading files + Download *bool `json:"download"` // allow downloading files +} + // UserDefaults is a type that holds the default values // for some fields on User. type UserDefaults struct { - EditorQuickSave bool `json:"editorQuickSave"` // show quick save button in editor - HideSidebarFileActions bool `json:"hideSidebarFileActions"` // hide the file actions in the sidebar - DisableQuickToggles bool `json:"disableQuickToggles"` // disable the quick toggles in the sidebar - DisableSearchOptions bool `json:"disableSearchOptions"` // disable the search options in the search bar - StickySidebar bool `json:"stickySidebar"` // keep sidebar open when navigating - DarkMode bool `json:"darkMode"` // should dark mode be enabled - Locale string `json:"locale"` // language to use: eg. de, en, or fr - ViewMode string `json:"viewMode"` // view mode to use: eg. normal, list, grid, or compact - SingleClick bool `json:"singleClick"` // open directory on single click, also enables middle click to open in new tab - ShowHidden bool `json:"showHidden"` // show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files - DateFormat bool `json:"dateFormat"` // when false, the date is relative, when true, the date is an exact timestamp - GallerySize int `json:"gallerySize"` // 0-9 - the size of the gallery thumbnails - ThemeColor string `json:"themeColor"` // theme color to use: eg. #ff0000, or var(--red), var(--purple), etc - QuickDownload bool `json:"quickDownload"` // show icon to download in one click - DisablePreviewExt string `json:"disablePreviewExt"` // space separated list of file extensions to disable preview for - DisableViewingExt string `json:"disableViewingExt"` // space separated list of file extensions to disable viewing for - LockPassword bool `json:"lockPassword"` // disable the user from changing their password - DisableSettings bool `json:"disableSettings,omitempty"` // disable the user from viewing the settings page - Preview users.Preview `json:"preview"` - DefaultScopes []users.SourceScope `json:"-"` - Permissions users.Permissions `json:"permissions"` - LoginMethod string `json:"loginMethod,omitempty"` // login method to use: eg. password, proxy, oidc - DisableUpdateNotifications bool `json:"disableUpdateNotifications"` // disable update notifications banner for admin users - DeleteWithoutConfirming bool `json:"deleteWithoutConfirming"` // delete files without confirmation - FileLoading users.FileLoading `json:"fileLoading"` // upload and download settings - DisableOfficePreviewExt string `json:"disableOfficePreviewExt"` // deprecated: use disablePreviewExt instead - DisableOnlyOfficeExt string `json:"disableOnlyOfficeExt"` // list of file extensions to disable onlyoffice editor for - CustomTheme string `json:"customTheme"` // Name of theme to use chosen from custom themes config. - ShowSelectMultiple bool `json:"showSelectMultiple"` // show select multiple files on desktop - DebugOffice bool `json:"debugOffice"` // debug onlyoffice editor - DefaultLandingPage string `json:"defaultLandingPage"` // default landing page to use if no redirect is specified: eg. /files/mysource/mysubpath, /settings, etc. + EditorQuickSave bool `json:"editorQuickSave"` // show quick save button in editor + HideSidebarFileActions bool `json:"hideSidebarFileActions"` // hide the file actions in the sidebar + DisableQuickToggles bool `json:"disableQuickToggles"` // disable the quick toggles in the sidebar + DisableSearchOptions bool `json:"disableSearchOptions"` // disable the search options in the search bar + StickySidebar bool `json:"stickySidebar"` // keep sidebar open when navigating + DarkMode *bool `json:"darkMode"` // should dark mode be enabled + Locale string `json:"locale"` // language to use: eg. de, en, or fr + ViewMode string `json:"viewMode"` // view mode to use: eg. normal, list, grid, or compact + SingleClick bool `json:"singleClick"` // open directory on single click, also enables middle click to open in new tab + ShowHidden bool `json:"showHidden"` // show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files + DateFormat bool `json:"dateFormat"` // when false, the date is relative, when true, the date is an exact timestamp + GallerySize int `json:"gallerySize"` // 0-9 - the size of the gallery thumbnails + ThemeColor string `json:"themeColor"` // theme color to use: eg. #ff0000, or var(--red), var(--purple), etc + QuickDownload bool `json:"quickDownload"` // show icon to download in one click + DisablePreviewExt string `json:"disablePreviewExt"` // space separated list of file extensions to disable preview for + DisableViewingExt string `json:"disableViewingExt"` // space separated list of file extensions to disable viewing for + LockPassword bool `json:"lockPassword"` // disable the user from changing their password + DisableSettings bool `json:"disableSettings,omitempty"` // disable the user from viewing the settings page + Preview UserDefaultsPreview `json:"preview"` + DefaultScopes []users.SourceScope `json:"-"` + Permissions UserDefaultsPermissions `json:"permissions"` + LoginMethod string `json:"loginMethod,omitempty"` // login method to use: eg. password, proxy, oidc + DisableUpdateNotifications bool `json:"disableUpdateNotifications"` // disable update notifications banner for admin users + DeleteWithoutConfirming bool `json:"deleteWithoutConfirming"` // delete files without confirmation + FileLoading users.FileLoading `json:"fileLoading"` // upload and download settings + DisableOfficePreviewExt string `json:"disableOfficePreviewExt"` // deprecated: use disablePreviewExt instead + DisableOnlyOfficeExt string `json:"disableOnlyOfficeExt"` // list of file extensions to disable onlyoffice editor for + CustomTheme string `json:"customTheme"` // Name of theme to use chosen from custom themes config. + ShowSelectMultiple bool `json:"showSelectMultiple"` // show select multiple files on desktop + DebugOffice bool `json:"debugOffice"` // debug onlyoffice editor + DefaultLandingPage string `json:"defaultLandingPage"` // deprecated: determined by sidebar link order since 1.1.0 } diff --git a/backend/common/utils/checkForUpdates.go b/backend/common/utils/checkForUpdates.go index e887304e6e..2faa34bf7a 100644 --- a/backend/common/utils/checkForUpdates.go +++ b/backend/common/utils/checkForUpdates.go @@ -4,10 +4,10 @@ import ( "encoding/json" "fmt" "net/http" + "os" "strings" "time" - "github.com/gtsteffaniak/filebrowser/backend/common/settings" "github.com/gtsteffaniak/filebrowser/backend/common/version" "github.com/gtsteffaniak/go-logger/logger" "golang.org/x/mod/semver" @@ -31,7 +31,8 @@ func CheckForUpdates() (updateInfo, error) { repoOwner := "gtsteffaniak" repoName := "filebrowser" currentVersion := version.Version - if currentVersion == "untracked" || currentVersion == "testing" || currentVersion == "" || settings.Config.Env.IsDevMode { + isDevMode := os.Getenv("FILEBROWSER_DEVMODE") == "true" + if currentVersion == "untracked" || currentVersion == "testing" || currentVersion == "" || isDevMode { return updateInfo{}, nil } splitVersion := strings.Split(currentVersion, "-") diff --git a/backend/common/utils/file.go b/backend/common/utils/file.go index 45453ab35e..2a11b77de0 100644 --- a/backend/common/utils/file.go +++ b/backend/common/utils/file.go @@ -54,4 +54,5 @@ type FileOptions struct { Recursive bool // whether to recursively index directories Metadata bool // whether to get metadata ExtractEmbeddedSubtitles bool // whether to extract embedded subtitles from media files + AlbumArt bool // whether to get album art from media files } diff --git a/backend/common/utils/main.go b/backend/common/utils/main.go index ec4d67ac10..1c683b0685 100644 --- a/backend/common/utils/main.go +++ b/backend/common/utils/main.go @@ -6,6 +6,7 @@ import ( "encoding/hex" "fmt" math "math/rand" + "os" "path/filepath" "reflect" "runtime" @@ -128,3 +129,23 @@ func Ternary[T any](cond bool, vtrue, vfalse T) T { } return vfalse } + +// NormalizeRulePath ensures directory paths have trailing slashes for consistent rule storage +func AddTrailingSlashIfNotExists(indexPath string) string { + // Root path stays as "/" + if indexPath == "/" { + return "/" + } + // For all other paths, ensure they have trailing slashes + if !strings.HasSuffix(indexPath, "/") { + return indexPath + "/" + } + return indexPath +} + +func CheckPathExists(realPath string) bool { + if _, err := os.Stat(realPath); os.IsNotExist(err) { + return false + } + return true +} diff --git a/backend/config.yaml b/backend/config.yaml index 1e1ce3efe8..7897a6b65f 100644 --- a/backend/config.yaml +++ b/backend/config.yaml @@ -11,7 +11,7 @@ userDefaults: disableQuickToggles: false # disable the quick toggles in the sidebar disableSearchOptions: false # disable the search options in the search bar stickySidebar: true # keep sidebar open when navigating - darkMode: true # should dark mode be enabled + darkMode: true # should dark mode be enabled (defaults to true if not set) viewMode: "normal" # view mode to use: eg. normal, list, grid, or compact singleClick: false # open directory on single click, also enables middle click to open in new tab showHidden: false # show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files @@ -24,16 +24,16 @@ userDefaults: lockPassword: false # disable the user from changing their password disableSettings: false # disable the user from viewing the settings page preview: - disableHideSidebar: true # disable the hide sidebar preview for previews and editors - highQuality: true # generate high quality thumbnail preview images - image: true # show thumbnail preview image for image files - video: true # show thumbnail preview image for video files - motionVideoPreview: true # show multiple frames for videos in thumbnail preview when hovering - office: true # show thumbnail preview image for office files - popup: true # show larger popup preview when hovering over thumbnail - autoplayMedia: true # autoplay media files in preview - defaultMediaPlayer: true # disable html5 media player and use the default media player - folder: true # show thumbnail preview image for folder files + disableHideSidebar: false # disable the hide sidebar preview for previews and editors + highQuality: true # generate high quality thumbnail preview images (defaults to true if not set) + image: true # show thumbnail preview image for image files (defaults to true if not set) + video: true # show thumbnail preview image for video files (defaults to true if not set) + motionVideoPreview: true # show multiple frames for videos in thumbnail preview when hovering (defaults to true if not set) + office: true # show thumbnail preview image for office files (defaults to true if not set) + popup: true # show larger popup preview when hovering over thumbnail (defaults to true if not set) + autoplayMedia: true # autoplay media files in preview (defaults to true if not set) + defaultMediaPlayer: false # disable html5 media player and use the default media player + folder: true # show thumbnail preview image for folder files (defaults to true if not set) permissions: api: false # allow api access admin: false # allow admin access @@ -42,9 +42,10 @@ userDefaults: realtime: false # allow realtime updates delete: false # allow deleting files create: false # allow creating or uploading files - download: true # allow downloading files + download: true # allow downloading files (defaults to true if not set) disableUpdateNotifications: false # disable update notifications banner for admin users deleteWithoutConfirming: false # delete files without confirmation - disableOnlyOfficeExt: ".md .txt .pdf" # list of file extensions to disable onlyoffice editor for + disableOnlyOfficeExt: ".md .txt .pdf .html .xml" # list of file extensions to disable onlyoffice editor for + customTheme: "" # Name of theme to use chosen from custom themes config. showSelectMultiple: false # show select multiple files on desktop - defaultLandingPage: "" # default landing page to use if no redirect is specified: eg. /files/mysource/mysubpath, /settings, etc. \ No newline at end of file + debugOffice: false # debug onlyoffice editor \ No newline at end of file diff --git a/backend/database/access/access.go b/backend/database/access/access.go index d9bd7d597d..155aafa3f8 100644 --- a/backend/database/access/access.go +++ b/backend/database/access/access.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "maps" + "path/filepath" "slices" "sort" "strings" @@ -63,6 +64,7 @@ type FrontendAccessRule struct { Deny FrontendRuleSet `json:"deny"` Allow FrontendRuleSet `json:"allow"` SourceDenyDefault bool `json:"sourceDenyDefault"` + PathExists bool `json:"pathExists"` } // GroupMap maps group names to a set of usernames. @@ -197,24 +199,11 @@ func (s *Storage) RemoveRuleByPath(sourcePath, indexPath string) { } } -// normalizeRulePath ensures directory paths have trailing slashes for consistent rule storage -func normalizeRulePath(indexPath string) string { - // Root path stays as "/" - if indexPath == "/" { - return "/" - } - // For all other paths, ensure they have trailing slashes - if !strings.HasSuffix(indexPath, "/") { - return indexPath + "/" - } - return indexPath -} - // getOrCreateRuleNL ensures a rule exists for the given source and index path. // The caller must hold the lock. func (s *Storage) getOrCreateRuleNL(sourcePath, indexPath string) *AccessRule { // Normalize the path to ensure consistent rule storage - normalizedPath := normalizeRulePath(indexPath) + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) if _, ok := s.AllRules[sourcePath]; !ok { s.AllRules[sourcePath] = make(RuleMap) } @@ -412,7 +401,7 @@ func (s *Storage) getRuleAtExactPath(sourcePath, indexPath string) (*AccessRule, return nil, false } // Normalize the path to ensure consistent rule lookup - normalizedPath := normalizeRulePath(indexPath) + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) rule, ok := rulesBySource[normalizedPath] return rule, ok } @@ -471,8 +460,12 @@ func (s *Storage) GetFrontendRules(sourcePath, indexPath string) (FrontendAccess sourceDenyDefault = sourceInfo.Config.DenyByDefault } + // Check if path exists on filesystem + pathExists := utils.CheckPathExists(filepath.Join(sourcePath, indexPath)) + frontendRules := FrontendAccessRule{ SourceDenyDefault: sourceDenyDefault, + PathExists: pathExists, Deny: FrontendRuleSet{ Users: make([]string, 0), Groups: make([]string, 0), @@ -532,10 +525,14 @@ func (s *Storage) GetAllRules(sourcePath string) (map[string]FrontendAccessRule, // This ensures consistency between internal storage and frontend display frontendPath := indexPath + // Check if path exists on filesystem + pathExists := utils.CheckPathExists(filepath.Join(sourcePath, indexPath)) + // Convert AccessRule to FrontendAccessRule frontendRules[frontendPath] = FrontendAccessRule{ DenyAll: rule.DenyAll, SourceDenyDefault: sourceDenyDefault, + PathExists: pathExists, Deny: FrontendRuleSet{ Users: utils.NonNilSlice(slices.Collect(maps.Keys(rule.Deny.Users))), Groups: utils.NonNilSlice(slices.Collect(maps.Keys(rule.Deny.Groups))), @@ -653,7 +650,7 @@ func (s *Storage) RemoveUserFromGroup(group, username string) error { func (s *Storage) RemoveAllowUser(sourcePath, indexPath, username string) (bool, error) { s.mux.Lock() defer s.mux.Unlock() - normalizedPath := normalizeRulePath(indexPath) + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) rule, ok := s.AllRules[sourcePath][normalizedPath] if !ok { return false, nil @@ -686,7 +683,7 @@ func (s *Storage) RemoveAllowUser(sourcePath, indexPath, username string) (bool, func (s *Storage) RemoveAllowGroup(sourcePath, indexPath, groupname string) (bool, error) { s.mux.Lock() defer s.mux.Unlock() - normalizedPath := normalizeRulePath(indexPath) + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) rule, ok := s.AllRules[sourcePath][normalizedPath] if !ok { return false, nil @@ -719,7 +716,7 @@ func (s *Storage) RemoveAllowGroup(sourcePath, indexPath, groupname string) (boo func (s *Storage) RemoveDenyUser(sourcePath, indexPath, username string) (bool, error) { s.mux.Lock() defer s.mux.Unlock() - normalizedPath := normalizeRulePath(indexPath) + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) rule, ok := s.AllRules[sourcePath][normalizedPath] if !ok { return false, nil @@ -752,7 +749,7 @@ func (s *Storage) RemoveDenyUser(sourcePath, indexPath, username string) (bool, func (s *Storage) RemoveDenyGroup(sourcePath, indexPath, groupname string) (bool, error) { s.mux.Lock() defer s.mux.Unlock() - normalizedPath := normalizeRulePath(indexPath) + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) rule, ok := s.AllRules[sourcePath][normalizedPath] if !ok { return false, nil @@ -785,7 +782,7 @@ func (s *Storage) RemoveDenyGroup(sourcePath, indexPath, groupname string) (bool func (s *Storage) RemoveDenyAll(sourcePath, indexPath string) (bool, error) { s.mux.Lock() defer s.mux.Unlock() - normalizedPath := normalizeRulePath(indexPath) + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) rule, ok := s.AllRules[sourcePath][normalizedPath] if !ok { return false, nil @@ -1116,3 +1113,206 @@ func (s *Storage) HasAnyVisibleItems(sourcePath, parentPath string, itemNames [] return false } + +// RemoveUserCascade removes a user from either the allow or deny list for a given path and all its subpaths. +// This is used for cascade delete operations when deleting user access from a directory tree. +// The allow parameter determines which list to remove from: true for allow list, false for deny list. +func (s *Storage) RemoveUserCascade(sourcePath, indexPath, username string, allow bool) (int, error) { + s.mux.Lock() + defer s.mux.Unlock() + + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) + rulesBySource, ok := s.AllRules[sourcePath] + if !ok { + return 0, nil + } + + changed := false + removedCount := 0 + + // Iterate through all rules for this source + for rulePath, rule := range rulesBySource { + // Check if this rule path matches or is a subpath of the target path + if rulePath == normalizedPath || strings.HasPrefix(rulePath, normalizedPath) { + if allow { + // Remove user from allow list only + if _, exists := rule.Allow.Users[username]; exists { + delete(rule.Allow.Users, username) + changed = true + removedCount++ + } + } else { + // Remove user from deny list only + if _, exists := rule.Deny.Users[username]; exists { + delete(rule.Deny.Users, username) + changed = true + removedCount++ + } + } + + // If rule is now empty, mark it for deletion + if len(rule.Allow.Users) == 0 && len(rule.Allow.Groups) == 0 && + len(rule.Deny.Users) == 0 && len(rule.Deny.Groups) == 0 && !rule.DenyAll { + delete(s.AllRules[sourcePath], rulePath) + } + } + } + + // If no rules left for this source, remove the source entry + if len(s.AllRules[sourcePath]) == 0 { + delete(s.AllRules, sourcePath) + } + + if changed { + s.incrementSourceVersion(sourcePath) + accessCache.Set(accessChangedKey+sourcePath, "false") + rulesCache.Delete(accessChangedKey + sourcePath) + return removedCount, s.SaveToDB() + } + + return 0, nil +} + +// RemoveGroupCascade removes a group from either the allow or deny list for a given path and all its subpaths. +// This is used for cascade delete operations when deleting group access from a directory tree. +// The allow parameter determines which list to remove from: true for allow list, false for deny list. +func (s *Storage) RemoveGroupCascade(sourcePath, indexPath, groupname string, allow bool) (int, error) { + s.mux.Lock() + defer s.mux.Unlock() + + normalizedPath := utils.AddTrailingSlashIfNotExists(indexPath) + rulesBySource, ok := s.AllRules[sourcePath] + if !ok { + return 0, nil + } + + changed := false + removedCount := 0 + + // Iterate through all rules for this source + for rulePath, rule := range rulesBySource { + // Check if this rule path matches or is a subpath of the target path + if rulePath == normalizedPath || strings.HasPrefix(rulePath, normalizedPath) { + if allow { + // Remove group from allow list only + if _, exists := rule.Allow.Groups[groupname]; exists { + delete(rule.Allow.Groups, groupname) + changed = true + removedCount++ + } + } else { + // Remove group from deny list only + if _, exists := rule.Deny.Groups[groupname]; exists { + delete(rule.Deny.Groups, groupname) + changed = true + removedCount++ + } + } + + // If rule is now empty, mark it for deletion + if len(rule.Allow.Users) == 0 && len(rule.Allow.Groups) == 0 && + len(rule.Deny.Users) == 0 && len(rule.Deny.Groups) == 0 && !rule.DenyAll { + delete(s.AllRules[sourcePath], rulePath) + } + } + } + + // If no rules left for this source, remove the source entry + if len(s.AllRules[sourcePath]) == 0 { + delete(s.AllRules, sourcePath) + } + + if changed { + s.incrementSourceVersion(sourcePath) + accessCache.Set(accessChangedKey+sourcePath, "false") + rulesCache.Delete(accessChangedKey + sourcePath) + return removedCount, s.SaveToDB() + } + + return 0, nil +} + +// UpdateRules updates all access rules that match oldPath to point to newPath. +// Handles both exact matches and subdirectories. Similar to share.Storage.UpdateShares. +func (s *Storage) UpdateRules(sourcePath, oldPath, newPath string) (int, error) { + s.mux.Lock() + defer s.mux.Unlock() + + rulesBySource, ok := s.AllRules[sourcePath] + if !ok { + return 0, nil // No rules for this source, not an error + } + + // Normalize paths (always add trailing slash for access rules) + oldPath = utils.AddTrailingSlashIfNotExists(oldPath) + newPath = utils.AddTrailingSlashIfNotExists(newPath) + + updated := 0 + rulesToUpdate := make(map[string]string) // old path -> new path + + // Find all rules that need to be updated + for rulePath := range rulesBySource { + if rulePath == oldPath { + // Exact match + rulesToUpdate[rulePath] = newPath + } else if strings.HasPrefix(rulePath, oldPath) { + // Subdirectory - replace prefix + newRulePath := newPath + strings.TrimPrefix(rulePath, oldPath) + rulesToUpdate[rulePath] = newRulePath + } + } + + // Update all matched rules + for oldRulePath, newRulePath := range rulesToUpdate { + rule := rulesBySource[oldRulePath] + delete(rulesBySource, oldRulePath) + rulesBySource[newRulePath] = rule + logger.Info("access rule updated", "source", sourcePath, "fromPath", oldRulePath, "toPath", newRulePath) + updated++ + } + + if updated > 0 { + // Invalidate caches + s.incrementSourceVersion(sourcePath) + accessCache.Set(accessChangedKey+sourcePath, "false") + rulesCache.Delete(accessChangedKey + sourcePath) + + if err := s.SaveToDB(); err != nil { + return updated, err + } + } + + return updated, nil +} + +// UpdateRulePath updates the path for a specific access rule (used by PATCH API endpoint). +func (s *Storage) UpdateRulePath(sourcePath, oldPath, newPath string) error { + s.mux.Lock() + defer s.mux.Unlock() + + // Normalize paths + oldPath = utils.AddTrailingSlashIfNotExists(oldPath) + newPath = utils.AddTrailingSlashIfNotExists(newPath) + + rulesBySource, ok := s.AllRules[sourcePath] + if !ok { + return fmt.Errorf("no rules found for source: %s", sourcePath) + } + + rule, ok := rulesBySource[oldPath] + if !ok { + return fmt.Errorf("no rule found for path: %s", oldPath) + } + + // Remove the old rule and add it with the new path + delete(rulesBySource, oldPath) + rulesBySource[newPath] = rule + + // Invalidate caches + s.incrementSourceVersion(sourcePath) + accessCache.Set(accessChangedKey+sourcePath, "false") + rulesCache.Delete(accessChangedKey + sourcePath) + + logger.Debugf("access rule path updated: source=%s, fromPath=%s, toPath=%s", sourcePath, oldPath, newPath) + return s.SaveToDB() +} diff --git a/backend/database/access/access_test.go b/backend/database/access/access_test.go index b0e40a1f2c..9d8fe61f14 100644 --- a/backend/database/access/access_test.go +++ b/backend/database/access/access_test.go @@ -1203,3 +1203,513 @@ func TestHasAnyVisibleItems(t *testing.T) { t.Log("✓ HasAnyVisibleItems correctly checks access permissions for items") } + +// TestRemoveUserCascade_OnlyRemovesSpecificList tests that cascade delete only removes from the specified list +func TestRemoveUserCascade_OnlyRemovesSpecificList(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "alice") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Set up rules: alice has both allow and deny rules on different paths + if err = s.AllowUser("mnt/storage", "/docs/", "alice"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.AllowUser("mnt/storage", "/docs/public/", "alice"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.DenyUser("mnt/storage", "/docs/", "alice"); err != nil { + t.Fatalf("DenyUser failed: %v", err) + } + if err = s.DenyUser("mnt/storage", "/docs/private/", "alice"); err != nil { + t.Fatalf("DenyUser failed: %v", err) + } + + // Cascade delete only allow rules + var count int + count, err = s.RemoveUserCascade("mnt/storage", "/docs/", "alice", true) + if err != nil { + t.Fatalf("RemoveUserCascade failed: %v", err) + } + if count != 2 { + t.Errorf("Expected 2 allow rules removed, got %d", count) + } + + // Verify allow rules are gone + rule, ok := s.GetFrontendRules("mnt/storage", "/docs/") + if ok && len(rule.Allow.Users) != 0 { + t.Error("Allow rule should be removed from /docs/") + } + rule, ok = s.GetFrontendRules("mnt/storage", "/docs/public/") + if ok && len(rule.Allow.Users) != 0 { + t.Error("Allow rule should be removed from /docs/public/") + } + + // Verify deny rules are still present + rule, ok = s.GetFrontendRules("mnt/storage", "/docs/") + if !ok || len(rule.Deny.Users) == 0 { + t.Error("Deny rule should still exist on /docs/") + } + rule, ok = s.GetFrontendRules("mnt/storage", "/docs/private/") + if !ok || len(rule.Deny.Users) == 0 { + t.Error("Deny rule should still exist on /docs/private/") + } + + t.Log("✓ Cascade delete correctly removes only allow rules, leaving deny rules intact") +} + +// TestRemoveUserCascade_DenyRules tests cascade delete for deny rules specifically +func TestRemoveUserCascade_DenyRules(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "bob") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Set up both allow and deny rules + if err = s.AllowUser("mnt/storage", "/projects/", "bob"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.AllowUser("mnt/storage", "/projects/team/", "bob"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.DenyUser("mnt/storage", "/projects/", "bob"); err != nil { + t.Fatalf("DenyUser failed: %v", err) + } + if err = s.DenyUser("mnt/storage", "/projects/secret/", "bob"); err != nil { + t.Fatalf("DenyUser failed: %v", err) + } + + // Cascade delete only deny rules + var count int + count, err = s.RemoveUserCascade("mnt/storage", "/projects/", "bob", false) + if err != nil { + t.Fatalf("RemoveUserCascade failed: %v", err) + } + if count != 2 { + t.Errorf("Expected 2 deny rules removed, got %d", count) + } + + // Verify deny rules are gone + rule, ok := s.GetFrontendRules("mnt/storage", "/projects/") + if !ok || len(rule.Deny.Users) != 0 { + t.Error("Deny rule should be removed from /projects/") + } + rule, ok = s.GetFrontendRules("mnt/storage", "/projects/secret/") + if ok && len(rule.Deny.Users) != 0 { + t.Error("Deny rule should be removed from /projects/secret/") + } + + // Verify allow rules are still present + rule, ok = s.GetFrontendRules("mnt/storage", "/projects/") + if !ok || len(rule.Allow.Users) == 0 { + t.Error("Allow rule should still exist on /projects/") + } + rule, ok = s.GetFrontendRules("mnt/storage", "/projects/team/") + if !ok || len(rule.Allow.Users) == 0 { + t.Error("Allow rule should still exist on /projects/team/") + } + + t.Log("✓ Cascade delete correctly removes only deny rules, leaving allow rules intact") +} + +// TestRemoveUserCascade_MultipleSubpaths tests cascade delete across multiple subpath levels +func TestRemoveUserCascade_MultipleSubpaths(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "carol") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Set up a deep hierarchy of allow rules + paths := []string{ + "/data/", + "/data/2024/", + "/data/2024/q1/", + "/data/2024/q1/jan/", + "/data/2024/q1/feb/", + "/data/2024/q2/", + "/data/2024/q2/apr/", + "/data/2025/", + } + + for _, path := range paths { + if err = s.AllowUser("mnt/storage", path, "carol"); err != nil { + t.Fatalf("AllowUser failed for %s: %v", path, err) + } + } + + // Cascade delete from /data/2024/ should remove all 2024 subpaths + var count int + count, err = s.RemoveUserCascade("mnt/storage", "/data/2024/", "carol", true) + if err != nil { + t.Fatalf("RemoveUserCascade failed: %v", err) + } + if count != 6 { + t.Errorf("Expected 6 rules removed (2024 + 5 subpaths), got %d", count) + } + + // Verify 2024 paths are gone + for _, path := range []string{"/data/2024/", "/data/2024/q1/", "/data/2024/q1/jan/", "/data/2024/q1/feb/", "/data/2024/q2/", "/data/2024/q2/apr/"} { + rule, ok := s.GetFrontendRules("mnt/storage", path) + if ok && len(rule.Allow.Users) > 0 { + t.Errorf("Rule should be removed from %s", path) + } + } + + // Verify other paths still exist + rule, ok := s.GetFrontendRules("mnt/storage", "/data/") + if !ok || len(rule.Allow.Users) == 0 { + t.Error("Rule should still exist on /data/") + } + rule, ok = s.GetFrontendRules("mnt/storage", "/data/2025/") + if !ok || len(rule.Allow.Users) == 0 { + t.Error("Rule should still exist on /data/2025/") + } + + t.Log("✓ Cascade delete correctly removes rules from all subpath levels") +} + +// TestRemoveGroupCascade_OnlyRemovesSpecificList tests cascade delete for groups +func TestRemoveGroupCascade_OnlyRemovesSpecificList(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "alice") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Create a group + if err = s.AddUserToGroup("editors", "alice"); err != nil { + t.Fatalf("AddUserToGroup failed: %v", err) + } + + // Set up both allow and deny rules for the group + if err = s.AllowGroup("mnt/storage", "/content/", "editors"); err != nil { + t.Fatalf("AllowGroup failed: %v", err) + } + if err = s.AllowGroup("mnt/storage", "/content/articles/", "editors"); err != nil { + t.Fatalf("AllowGroup failed: %v", err) + } + if err = s.DenyGroup("mnt/storage", "/content/", "editors"); err != nil { + t.Fatalf("DenyGroup failed: %v", err) + } + if err = s.DenyGroup("mnt/storage", "/content/drafts/", "editors"); err != nil { + t.Fatalf("DenyGroup failed: %v", err) + } + + // Cascade delete only allow rules + count, err := s.RemoveGroupCascade("mnt/storage", "/content/", "editors", true) + if err != nil { + t.Fatalf("RemoveGroupCascade failed: %v", err) + } + if count != 2 { + t.Errorf("Expected 2 allow rules removed, got %d", count) + } + + // Verify allow rules are gone + rule, ok := s.GetFrontendRules("mnt/storage", "/content/") + if !ok || len(rule.Allow.Groups) != 0 { + t.Error("Allow rule should be removed from /content/") + } + + // Verify deny rules are still present + rule, ok = s.GetFrontendRules("mnt/storage", "/content/") + if !ok || len(rule.Deny.Groups) == 0 { + t.Error("Deny rule should still exist on /content/") + } + rule, ok = s.GetFrontendRules("mnt/storage", "/content/drafts/") + if !ok || len(rule.Deny.Groups) == 0 { + t.Error("Deny rule should still exist on /content/drafts/") + } + + t.Log("✓ Cascade delete for groups correctly removes only allow rules") +} + +// TestRemoveGroupCascade_DenyRules tests cascade delete for group deny rules specifically +func TestRemoveGroupCascade_DenyRules(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "alice") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Create a group + if err = s.AddUserToGroup("contractors", "alice"); err != nil { + t.Fatalf("AddUserToGroup failed: %v", err) + } + + // Set up both allow and deny rules for the group + if err = s.AllowGroup("mnt/storage", "/work/", "contractors"); err != nil { + t.Fatalf("AllowGroup failed: %v", err) + } + if err = s.AllowGroup("mnt/storage", "/work/public/", "contractors"); err != nil { + t.Fatalf("AllowGroup failed: %v", err) + } + if err = s.DenyGroup("mnt/storage", "/work/", "contractors"); err != nil { + t.Fatalf("DenyGroup failed: %v", err) + } + if err = s.DenyGroup("mnt/storage", "/work/confidential/", "contractors"); err != nil { + t.Fatalf("DenyGroup failed: %v", err) + } + + // Cascade delete only deny rules + var count int + count, err = s.RemoveGroupCascade("mnt/storage", "/work/", "contractors", false) + if err != nil { + t.Fatalf("RemoveGroupCascade failed: %v", err) + } + if count != 2 { + t.Errorf("Expected 2 deny rules removed, got %d", count) + } + + // Verify deny rules are gone + rule, ok := s.GetFrontendRules("mnt/storage", "/work/") + if ok && len(rule.Deny.Groups) != 0 { + t.Error("Deny rule should be removed from /work/") + } + rule, ok = s.GetFrontendRules("mnt/storage", "/work/confidential/") + if ok && len(rule.Deny.Groups) != 0 { + t.Error("Deny rule should be removed from /work/confidential/") + } + + // Verify allow rules are still present + rule, ok = s.GetFrontendRules("mnt/storage", "/work/") + if !ok || len(rule.Allow.Groups) == 0 { + t.Error("Allow rule should still exist on /work/") + } + rule, ok = s.GetFrontendRules("mnt/storage", "/work/public/") + if !ok || len(rule.Allow.Groups) == 0 { + t.Error("Allow rule should still exist on /work/public/") + } + + t.Log("✓ Cascade delete for groups correctly removes only deny rules, leaving allow rules intact") +} + +// TestRemoveUserCascade_EmptyResult tests cascade delete when no rules exist +func TestRemoveUserCascade_EmptyResult(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "dave") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Try to cascade delete when no rules exist + var count int + count, err = s.RemoveUserCascade("mnt/storage", "/nonexistent/", "dave", true) + if err != nil { + t.Fatalf("RemoveUserCascade should not error on nonexistent rules: %v", err) + } + if count != 0 { + t.Errorf("Expected 0 rules removed, got %d", count) + } + + t.Log("✓ Cascade delete correctly returns 0 when no rules exist") +} + +// TestRemoveUserCascade_ExactPathOnly tests that exact path is included in cascade +func TestRemoveUserCascade_ExactPathOnly(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "eve") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Add rule only on exact path, no subpaths + if err = s.AllowUser("mnt/storage", "/single/", "eve"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + + // Cascade delete should remove the exact path rule + var count int + count, err = s.RemoveUserCascade("mnt/storage", "/single/", "eve", true) + if err != nil { + t.Fatalf("RemoveUserCascade failed: %v", err) + } + if count != 1 { + t.Errorf("Expected 1 rule removed, got %d", count) + } + + // Verify rule is gone + rule, ok := s.GetFrontendRules("mnt/storage", "/single/") + if ok && len(rule.Allow.Users) > 0 { + t.Error("Rule should be removed from /single/") + } + + t.Log("✓ Cascade delete correctly removes the exact path rule") +} + +// TestRemoveUserCascade_DoesNotAffectParentPaths tests that parent paths are not affected +func TestRemoveUserCascade_DoesNotAffectParentPaths(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "frank") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Set up rules on parent and child paths + if err = s.AllowUser("mnt/storage", "/parent/", "frank"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.AllowUser("mnt/storage", "/parent/child/", "frank"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.AllowUser("mnt/storage", "/parent/child/grandchild/", "frank"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + + // Cascade delete from child path + count, err := s.RemoveUserCascade("mnt/storage", "/parent/child/", "frank", true) + if err != nil { + t.Fatalf("RemoveUserCascade failed: %v", err) + } + if count != 2 { + t.Errorf("Expected 2 rules removed (child + grandchild), got %d", count) + } + + // Verify parent rule still exists + rule, ok := s.GetFrontendRules("mnt/storage", "/parent/") + if !ok || len(rule.Allow.Users) == 0 { + t.Error("Parent rule should still exist") + } + + // Verify child rules are gone + rule, ok = s.GetFrontendRules("mnt/storage", "/parent/child/") + if ok && len(rule.Allow.Users) > 0 { + t.Error("Child rule should be removed") + } + + t.Log("✓ Cascade delete does not affect parent paths") +} + +// TestRemoveUserCascade_CleanupEmptyRules tests that empty rules are cleaned up +func TestRemoveUserCascade_CleanupEmptyRules(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "grace") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Add only allow rule (no deny rules) + if err = s.AllowUser("mnt/storage", "/temp/", "grace"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.AllowUser("mnt/storage", "/temp/files/", "grace"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + + // Verify rules exist + allRules, err := s.GetAllRules("mnt/storage") + if err != nil { + t.Fatalf("GetAllRules failed: %v", err) + } + if len(allRules) < 2 { + t.Error("Expected at least 2 rules to exist") + } + + // Cascade delete - should remove rules and cleanup empty rule objects + var count int + count, err = s.RemoveUserCascade("mnt/storage", "/temp/", "grace", true) + if err != nil { + t.Fatalf("RemoveUserCascade failed: %v", err) + } + if count != 2 { + t.Errorf("Expected 2 rules removed, got %d", count) + } + + // Verify rules are completely gone (not just empty) + allRules, err = s.GetAllRules("mnt/storage") + if err != nil { + t.Fatalf("GetAllRules failed: %v", err) + } + if _, exists := allRules["/temp/"]; exists { + t.Error("Empty rule should be cleaned up from /temp/") + } + if _, exists := allRules["/temp/files/"]; exists { + t.Error("Empty rule should be cleaned up from /temp/files/") + } + + t.Log("✓ Cascade delete correctly cleans up empty rules") +} + +// TestRemoveUserCascade_MixedUsers tests that cascade delete only affects the specified user +func TestRemoveUserCascade_MixedUsers(t *testing.T) { + setupTestSources() + s, userStore := createTestStorage(t) + createTestUser(t, userStore, "henry") + createTestUser(t, userStore, "iris") + err := s.LoadFromDB() + if err != nil && err != storm.ErrNotFound { + t.Errorf("unexpected error loading from DB: %v", err) + } + + // Add rules for both users on same paths + if err = s.AllowUser("mnt/storage", "/shared/", "henry"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.AllowUser("mnt/storage", "/shared/", "iris"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.AllowUser("mnt/storage", "/shared/docs/", "henry"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + if err = s.AllowUser("mnt/storage", "/shared/docs/", "iris"); err != nil { + t.Fatalf("AllowUser failed: %v", err) + } + + // Cascade delete only henry's rules + var count int + count, err = s.RemoveUserCascade("mnt/storage", "/shared/", "henry", true) + if err != nil { + t.Fatalf("RemoveUserCascade failed: %v", err) + } + if count != 2 { + t.Errorf("Expected 2 rules removed for henry, got %d", count) + } + + // Verify henry's rules are gone + rule, ok := s.GetFrontendRules("mnt/storage", "/shared/") + if !ok { + t.Fatal("Rule should still exist (iris's rule)") + } + hasHenry := false + for _, user := range rule.Allow.Users { + if user == "henry" { + hasHenry = true + } + } + if hasHenry { + t.Error("henry should be removed from allow list") + } + + // Verify iris's rules still exist + hasIris := false + for _, user := range rule.Allow.Users { + if user == "iris" { + hasIris = true + } + } + if !hasIris { + t.Error("iris should still be in allow list") + } + + t.Log("✓ Cascade delete only affects the specified user") +} diff --git a/backend/database/access/helper.go b/backend/database/access/helper.go index 7ed5667472..43d9954b3d 100644 --- a/backend/database/access/helper.go +++ b/backend/database/access/helper.go @@ -32,7 +32,7 @@ func (s *Storage) CheckChildItemAccess(response *iteminfo.ExtendedFileInfo, inde // Filter and return only the items the user has access to response.Folders = make([]iteminfo.ItemInfo, 0) - response.Files = make([]iteminfo.ItemInfo, 0) + response.Files = make([]iteminfo.ExtendedItemInfo, 0) // Check each subfolder for access permissions for _, folder := range originalFolders { diff --git a/backend/database/share/share.go b/backend/database/share/share.go index f5ee29bbeb..436d3c0828 100644 --- a/backend/database/share/share.go +++ b/backend/database/share/share.go @@ -1,39 +1,45 @@ package share -import "sync" +import ( + "sync" + + "github.com/gtsteffaniak/filebrowser/backend/database/users" +) type CommonShare struct { - DownloadsLimit int `json:"downloadsLimit,omitempty"` - ShareTheme string `json:"shareTheme,omitempty"` - DisableAnonymous bool `json:"disableAnonymous,omitempty"` - MaxBandwidth int `json:"maxBandwidth,omitempty"` - DisableThumbnails bool `json:"disableThumbnails,omitempty"` - KeepAfterExpiration bool `json:"keepAfterExpiration,omitempty"` - AllowedUsernames []string `json:"allowedUsernames,omitempty"` - ThemeColor string `json:"themeColor,omitempty"` - Banner string `json:"banner,omitempty"` - Title string `json:"title,omitempty"` - Description string `json:"description,omitempty"` - Favicon string `json:"favicon,omitempty"` - QuickDownload bool `json:"quickDownload,omitempty"` - HideNavButtons bool `json:"hideNavButtons,omitempty"` - DisableSidebar bool `json:"disableSidebar"` - Source string `json:"source,omitempty"` // backend source is path to maintain between name changes - Path string `json:"path,omitempty"` - DownloadURL string `json:"downloadURL,omitempty"` - DisableShareCard bool `json:"disableShareCard,omitempty"` - EnforceDarkLightMode string `json:"enforceDarkLightMode,omitempty"` // "dark" or "light" - ViewMode string `json:"viewMode,omitempty"` // default view mode for anonymous users: "list", "compact", "normal", "gallery" - EnableOnlyOffice bool `json:"enableOnlyOffice,omitempty"` - ShareType string `json:"shareType"` // type of share: normal, upload, max - PerUserDownloadLimit bool `json:"perUserDownloadLimit,omitempty"` - ExtractEmbeddedSubtitles bool `json:"extractEmbeddedSubtitles,omitempty"` // can be io intensive for large files and take 10-30 seconds. - AllowDelete bool `json:"allowDelete,omitempty"` - AllowCreate bool `json:"allowCreate,omitempty"` // allow creating files - AllowModify bool `json:"allowModify,omitempty"` // allow modifying files - DisableFileViewer bool `json:"disableFileViewer,omitempty"` // don't allow viewing files - DisableDownload bool `json:"disableDownload,omitempty"` // don't allow downloading files - AllowReplacements bool `json:"allowReplacements,omitempty"` // allow replacements of files + DownloadsLimit int `json:"downloadsLimit,omitempty"` + ShareTheme string `json:"shareTheme,omitempty"` + DisableAnonymous bool `json:"disableAnonymous,omitempty"` + MaxBandwidth int `json:"maxBandwidth,omitempty"` + DisableThumbnails bool `json:"disableThumbnails,omitempty"` + KeepAfterExpiration bool `json:"keepAfterExpiration,omitempty"` + AllowedUsernames []string `json:"allowedUsernames,omitempty"` + ThemeColor string `json:"themeColor,omitempty"` + Banner string `json:"banner,omitempty"` + Title string `json:"title,omitempty"` + Description string `json:"description,omitempty"` + Favicon string `json:"favicon,omitempty"` + QuickDownload bool `json:"quickDownload,omitempty"` + HideNavButtons bool `json:"hideNavButtons,omitempty"` + DisableSidebar bool `json:"disableSidebar"` + Source string `json:"source,omitempty"` // backend source is path to maintain between name changes + Path string `json:"path,omitempty"` + DownloadURL string `json:"downloadURL,omitempty"` + DisableShareCard bool `json:"disableShareCard,omitempty"` + EnforceDarkLightMode string `json:"enforceDarkLightMode,omitempty"` // "dark" or "light" + ViewMode string `json:"viewMode,omitempty"` // default view mode for anonymous users: "list", "compact", "normal", "gallery" + EnableOnlyOffice bool `json:"enableOnlyOffice,omitempty"` + ShareType string `json:"shareType"` // type of share: normal, upload, max + PerUserDownloadLimit bool `json:"perUserDownloadLimit,omitempty"` + ExtractEmbeddedSubtitles bool `json:"extractEmbeddedSubtitles,omitempty"` // can be io intensive for large files and take 10-30 seconds. + AllowDelete bool `json:"allowDelete,omitempty"` + AllowCreate bool `json:"allowCreate,omitempty"` // allow creating files + AllowModify bool `json:"allowModify,omitempty"` // allow modifying files + DisableFileViewer bool `json:"disableFileViewer,omitempty"` // don't allow viewing files + DisableDownload bool `json:"disableDownload,omitempty"` // don't allow downloading files + AllowReplacements bool `json:"allowReplacements,omitempty"` // allow replacements of files + SidebarLinks []users.SidebarLink `json:"sidebarLinks"` // customizable sidebar links + HasPassword bool `json:"hasPassword,omitempty"` } type CreateBody struct { CommonShare @@ -57,6 +63,6 @@ type Link struct { Token string `json:"token,omitempty"` Mu sync.Mutex `json:"-"` - UserDownloads map[string]int `json:"-"` // Track downloads per username (not persisted) - + UserDownloads map[string]int `json:"userDownloads,omitempty"` // Track downloads per username + Version int `json:"version,omitempty"` } diff --git a/backend/database/share/storage.go b/backend/database/share/storage.go index 01571959cc..1d8e568c24 100644 --- a/backend/database/share/storage.go +++ b/backend/database/share/storage.go @@ -6,6 +6,7 @@ import ( "time" "github.com/gtsteffaniak/filebrowser/backend/common/errors" + "github.com/gtsteffaniak/filebrowser/backend/common/utils" "github.com/gtsteffaniak/filebrowser/backend/database/crud" "github.com/gtsteffaniak/filebrowser/backend/database/users" "github.com/gtsteffaniak/go-logger/logger" @@ -16,6 +17,7 @@ type StorageBackend interface { All() ([]*Link, error) FindByUserID(id uint) ([]*Link, error) GetByHash(hash string) (*Link, error) + GetCommonShareByHash(hash string) (*CommonShare, error) GetPermanent(path, source string, id uint) (*Link, error) GetBySourcePath(path, source string) ([]*Link, error) Gets(path, source string, id uint) ([]*Link, error) @@ -220,51 +222,84 @@ func (s *Storage) GetBySourcePath(path, source string) ([]*Link, error) { return filtered, nil } -// UpdateShares updates all shares that exactly match oldSource and oldPath -// to point to newSource and newPath. Returns the number of updated shares. +// UpdateShares updates all shares that match oldSource and oldPath to point to newSource and newPath. +// Handles both exact matches and subdirectories, regardless of trailing slashes. func (s *Storage) UpdateShares(oldSource, oldPath, newSource, newPath string) (int, error) { links, err := s.back.All() if err != nil && err != errors.ErrNotExist { logger.Error("failed to list shares", "error", err) return 0, err } + + // Normalize paths for comparison (remove trailing slashes) + oldPath = utils.AddTrailingSlashIfNotExists(oldPath) + newPath = utils.AddTrailingSlashIfNotExists(newPath) + updated := 0 for _, l := range links { - if l == nil { - continue - } - if l.Source != oldSource { + if l == nil || l.Source != oldSource { continue } + l.Path = utils.AddTrailingSlashIfNotExists(l.Path) + pos := strings.Index(l.Path, oldPath) if pos < 0 { continue } + oldFullPath := l.Path l.Source = newSource - l.Path = oldFullPath[:pos] + newPath + oldFullPath[pos+len(oldPath):] + l.Path = newPath + if err := s.back.Save(l); err != nil { logger.Error("failed to save updated share", "hash", l.Hash, "error", err) return updated, err } + s.mu.Lock() if existing, ok := s.shareCache[l.Hash]; ok && existing != nil { - // update existing cached pointer fields existing.Source = l.Source existing.Path = l.Path } else { s.shareCache[l.Hash] = l } s.mu.Unlock() + logger.Info("share updated", "hash", l.Hash, "fromPath", oldFullPath, "toPath", l.Path) updated++ } + if updated == 0 { logger.Warning("no matching shares to update for provided source/path") } return updated, nil } +// UpdateSharePath updates the path for a specific share identified by hash +func (s *Storage) UpdateSharePath(hash, newPath string) error { + link, err := s.GetByHash(hash) + if err != nil { + return err + } + + oldPath := link.Path + link.Path = newPath + + if err := s.back.Save(link); err != nil { + logger.Error("failed to save updated share", "hash", hash, "error", err) + return err + } + + s.mu.Lock() + if existing, ok := s.shareCache[hash]; ok && existing != nil { + existing.Path = newPath + } + s.mu.Unlock() + + logger.Debug("share path updated", "hash", hash, "fromPath", oldPath, "toPath", newPath) + return nil +} + // Save wraps StorageBackend.Save func (s *Storage) Save(l *Link) error { if err := s.back.Save(l); err != nil { @@ -321,3 +356,8 @@ func (s *Storage) filterExpired(links []*Link) ([]*Link, error) { } return filtered, nil } + +// GetCommonShareByHash retrieves only the CommonShare attributes for a given hash +func (s *Storage) GetCommonShareByHash(hash string) (*CommonShare, error) { + return s.back.GetCommonShareByHash(hash) +} diff --git a/backend/database/storage/bolt/share.go b/backend/database/storage/bolt/share.go index 6b02aa587f..d564985ed6 100644 --- a/backend/database/storage/bolt/share.go +++ b/backend/database/storage/bolt/share.go @@ -45,6 +45,23 @@ func (s shareBackend) GetByHash(hash string) (*share.Link, error) { return &v, err } +func (s shareBackend) GetCommonShareByHash(hash string) (*share.CommonShare, error) { + var v share.Link + err := s.db.One("Hash", hash, &v) + if err == storm.ErrNotFound { + return nil, errors.ErrNotExist + } + if err != nil { + return nil, err + } + v.Source = "" + v.Path = "" + v.AllowedUsernames = nil + v.DownloadsLimit = 0 + v.CommonShare.HasPassword = v.HasPassword() + return &v.CommonShare, nil +} + func (s shareBackend) GetPermanent(path, source string, id uint) (*share.Link, error) { var v share.Link // TODO remove legacy and return notfound errors diff --git a/backend/database/storage/bolt/users.go b/backend/database/storage/bolt/users.go index 58f6aa4a4d..9649cd9b4f 100644 --- a/backend/database/storage/bolt/users.go +++ b/backend/database/storage/bolt/users.go @@ -74,11 +74,15 @@ func (st usersBackend) Update(user *users.User, actorIsAdmin bool, fields ...str if err != nil { return err } + passwordUser := existingUser.LoginMethod == users.LoginMethodPassword enforcedOtp := settings.Config.Auth.Methods.PasswordAuth.EnforcedOtp if passwordUser && enforcedOtp && !user.OtpEnabled { return errors.ErrNoTotpConfigured } + if user.LoginMethod == "" { + user.LoginMethod = existingUser.LoginMethod + } fields, err = parseFields(user, fields, actorIsAdmin) if err != nil { return err @@ -116,6 +120,14 @@ func (st usersBackend) Update(user *users.User, actorIsAdmin bool, fields ...str return err } } + // converting scopes to map of paths intead of names (names can change) + if slices.Contains(fields, "SidebarLinks") { + adjustedLinks, err := settings.ConvertToBackendSidebarLinks(user.SidebarLinks) + if err != nil { + return err + } + user.SidebarLinks = adjustedLinks + } // Use reflection to access struct fields userFields := reflect.ValueOf(user).Elem() // Get struct value for _, field := range fields { @@ -279,6 +291,7 @@ func parseFields(user *users.User, fields []string, actorIsAdmin bool) ([]string if capitalField == "Password" { // Only process password if it's actually being updated (not empty) if user.Password != "" { + logger.Debugf("Updating password for user [%s] loginMethod: %s", user.Username, user.LoginMethod) if user.LoginMethod != users.LoginMethodPassword { return nil, fmt.Errorf("password cannot be changed when login method is not password") } diff --git a/backend/database/storage/storage.go b/backend/database/storage/storage.go index 9f9f67b77a..6dea7ccf08 100644 --- a/backend/database/storage/storage.go +++ b/backend/database/storage/storage.go @@ -42,10 +42,10 @@ func InitializeDb(path string) (*bolt.BoltStore, bool, error) { return nil, exists, err } if !exists { - if settings.Config.Env.IsPlaywright || settings.Config.Env.IsDevMode { - settings.Config.Env.IsFirstLoad = false + if settings.Env.IsPlaywright || settings.Env.IsDevMode { + settings.Env.IsFirstLoad = false } else { - settings.Config.Env.IsFirstLoad = true + settings.Env.IsFirstLoad = true } quickSetup(store) } @@ -99,7 +99,7 @@ func quickSetup(store *bolt.BoltStore) { } user.LockPassword = false user.Permissions = settings.AdminPerms() - user.ShowFirstLogin = settings.Config.Env.IsFirstLoad && user.Permissions.Admin + user.ShowFirstLogin = settings.Env.IsFirstLoad && user.Permissions.Admin logger.Debugf("Creating user as admin: %v %v", user.Username, user.Password) err = store.Users.Save(user, true, true) utils.CheckErr("store.Users.Save", err) @@ -109,7 +109,7 @@ func quickSetup(store *bolt.BoltStore) { // create new user func CreateUser(userInfo users.User, permissions users.Permissions) error { newUser := &userInfo - newUser.ShowFirstLogin = settings.Config.Env.IsFirstLoad && newUser.Permissions.Admin + newUser.ShowFirstLogin = settings.Env.IsFirstLoad && newUser.Permissions.Admin if userInfo.LoginMethod == "password" { if userInfo.Password == "" { return fmt.Errorf("password is required to create a password login user") diff --git a/backend/database/users/users.go b/backend/database/users/users.go index ce42ababc2..1f7402ba82 100644 --- a/backend/database/users/users.go +++ b/backend/database/users/users.go @@ -84,35 +84,36 @@ type SourceScope struct { // json tags must match variable name with smaller case first letter type NonAdminEditable struct { - EditorQuickSave bool `json:"editorQuickSave"` // show quick save button in editor - HideSidebarFileActions bool `json:"hideSidebarFileActions"` // hide the file actions in the sidebar - DisableQuickToggles bool `json:"disableQuickToggles"` // disable the quick toggles in the sidebar - DisableSearchOptions bool `json:"disableSearchOptions"` // disable the search options in the search bar - DeleteWithoutConfirming bool `json:"deleteWithoutConfirming"` // delete files without confirmation - Preview Preview `json:"preview"` - StickySidebar bool `json:"stickySidebar"` // keep sidebar open when navigating - DarkMode bool `json:"darkMode"` // should dark mode be enabled - Password string `json:"password,omitempty"` - Locale string `json:"locale"` // language to use: eg. de, en, or fr - ViewMode string `json:"viewMode"` // view mode to use: eg. normal, list, grid, or compact - SingleClick bool `json:"singleClick"` // open directory on single click, also enables middle click to open in new tab - Sorting Sorting `json:"sorting"` - ShowHidden bool `json:"showHidden"` // show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files - DateFormat bool `json:"dateFormat"` // when false, the date is relative, when true, the date is an exact timestamp - GallerySize int `json:"gallerySize"` // 0-9 - the size of the gallery thumbnails - ThemeColor string `json:"themeColor"` // theme color to use: eg. #ff0000, or var(--red), var(--purple), etc - QuickDownload bool `json:"quickDownload"` // show icon to download in one click - DisableUpdateNotifications bool `json:"disableUpdateNotifications"` // disable update notifications - FileLoading FileLoading `json:"fileLoading"` // upload and download settings - DisableOfficePreviewExt string `json:"disableOfficePreviewExt"` // deprecated - DisableOnlyOfficeExt string `json:"disableOnlyOfficeExt"` // deprecated - DisablePreviewExt string `json:"disablePreviewExt"` // space separated list of file extensions to disable preview for - DisableViewingExt string `json:"disableViewingExt"` // space separated list of file extensions to disable viewing for - CustomTheme string `json:"customTheme"` // Name of theme to use chosen from custom themes config. - ShowSelectMultiple bool `json:"showSelectMultiple"` // show select multiple files on desktop - DebugOffice bool `json:"debugOffice"` // debug onlyoffice editor - OtpEnabled bool `json:"otpEnabled"` // allow non-admin users to disable their own OTP - DefaultLandingPage string `json:"defaultLandingPage"` // default landing page to use: eg. /files/mysource/mysubpath, /settings, etc. + EditorQuickSave bool `json:"editorQuickSave"` // show quick save button in editor + HideSidebarFileActions bool `json:"hideSidebarFileActions"` // hide the file actions in the sidebar + DisableQuickToggles bool `json:"disableQuickToggles"` // disable the quick toggles in the sidebar + DisableSearchOptions bool `json:"disableSearchOptions"` // disable the search options in the search bar + DeleteWithoutConfirming bool `json:"deleteWithoutConfirming"` // delete files without confirmation + Preview Preview `json:"preview"` + StickySidebar bool `json:"stickySidebar"` // keep sidebar open when navigating + DarkMode bool `json:"darkMode"` // should dark mode be enabled + Password string `json:"password,omitempty"` + Locale string `json:"locale"` // language to use: eg. de, en, or fr + ViewMode string `json:"viewMode"` // view mode to use: eg. normal, list, grid, or compact + SingleClick bool `json:"singleClick"` // open directory on single click, also enables middle click to open in new tab + Sorting Sorting `json:"sorting"` + ShowHidden bool `json:"showHidden"` // show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files + DateFormat bool `json:"dateFormat"` // when false, the date is relative, when true, the date is an exact timestamp + GallerySize int `json:"gallerySize"` // 0-9 - the size of the gallery thumbnails + ThemeColor string `json:"themeColor"` // theme color to use: eg. #ff0000, or var(--red), var(--purple), etc + QuickDownload bool `json:"quickDownload"` // show icon to download in one click + DisableUpdateNotifications bool `json:"disableUpdateNotifications"` // disable update notifications + FileLoading FileLoading `json:"fileLoading"` // upload and download settings + DisableOfficePreviewExt string `json:"disableOfficePreviewExt"` // deprecated + DisableOnlyOfficeExt string `json:"disableOnlyOfficeExt"` // deprecated + DisablePreviewExt string `json:"disablePreviewExt"` // space separated list of file extensions to disable preview for + DisableViewingExt string `json:"disableViewingExt"` // space separated list of file extensions to disable viewing for + CustomTheme string `json:"customTheme"` // Name of theme to use chosen from custom themes config. + ShowSelectMultiple bool `json:"showSelectMultiple"` // show select multiple files on desktop + DebugOffice bool `json:"debugOffice"` // debug onlyoffice editor + OtpEnabled bool `json:"otpEnabled"` // allow non-admin users to disable their own OTP + DefaultLandingPage string `json:"defaultLandingPage"` // deprecated: determined by sidebar link order instead + SidebarLinks []SidebarLink `json:"sidebarLinks"` // customizable sidebar links } type FileLoading struct { @@ -121,6 +122,15 @@ type FileLoading struct { ClearAll bool `json:"clearAll"` } +// SidebarLink represents a customizable link in the sidebar. +type SidebarLink struct { + Name string `json:"name"` // Display name of the link + Category string `json:"category"` // Category type: "source", "share", "tool", "custom", etc. + Target string `json:"target"` // Target path/URL for the link (relative for source/share) + Icon string `json:"icon"` // Material icon name + SourceName string `json:"sourceName,omitempty"` // Source identifier for source-type links +} + func CleanUsername(s string) string { // Remove any trailing space to avoid ending on - s = strings.Trim(s, " ") diff --git a/backend/docs/docs.go b/backend/docs/docs.go new file mode 100644 index 0000000000..eb56088833 --- /dev/null +++ b/backend/docs/docs.go @@ -0,0 +1,4646 @@ +// Package docs Code generated by swaggo/swag. DO NOT EDIT +package docs + +import "github.com/swaggo/swag" + +const docTemplate = `{ + "schemes": {{ marshal .Schemes }}, + "swagger": "2.0", + "info": { + "description": "{{escape .Description}}", + "title": "{{.Title}}", + "contact": {}, + "version": "{{.Version}}" + }, + "host": "{{.Host}}", + "basePath": "{{.BasePath}}", + "paths": { + "/api/access": { + "get": { + "description": "Lists access rules. Can be filtered by source, path, user, or group. Can also be grouped by user or group.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "List access rules", + "parameters": [ + { + "type": "string", + "description": "Source name (e.g. 'default')", + "name": "source", + "in": "query" + }, + { + "type": "string", + "description": "Index path (e.g. /secret)", + "name": "path", + "in": "query" + }, + { + "type": "string", + "description": "Username to filter rules for", + "name": "user", + "in": "query" + }, + { + "type": "string", + "description": "Group name to filter rules for", + "name": "group", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Varies based on query. Can be access.FrontendAccessRule (when source and path specified), []access.PrincipalRule, map[string][]access.PrincipalRule, or map[string]access.FrontendAccessRule", + "schema": { + "type": "object" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Add or update an access rule for a sourcePath and indexPath.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Add or update access rule", + "parameters": [ + { + "type": "string", + "description": "Source path prefix (e.g. mnt/storage)", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Index path (e.g. /secret)", + "name": "path", + "in": "query", + "required": true + }, + { + "description": "Rule details: allow (true/false), ruleCategory (user/group), value (username or groupname)", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "allow": { + "type": "boolean" + }, + "ruleCategory": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Rule added or updated", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Delete a user or group from an allow or deny list for a sourcePath and indexPath. When cascade=true, removes the user/group from the specified path and all subpaths.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Delete access rule entry", + "parameters": [ + { + "type": "string", + "description": "Source path prefix (e.g. mnt/storage)", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Index path (e.g. /secret)", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Rule type (allow or deny)", + "name": "ruleType", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Rule category (user or group)", + "name": "ruleCategory", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Username or groupname to remove", + "name": "value", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "Cascade delete to all subpaths (default: false)", + "name": "cascade", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Rule entry deleted", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "patch": { + "description": "Updates the path for a specific access rule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Update access rule path", + "parameters": [ + { + "description": "Source, old path, and new path", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "newPath": { + "type": "string" + }, + "oldPath": { + "type": "string" + }, + "source": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Rule path updated successfully", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request - missing or invalid parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/access/group": { + "post": { + "description": "Adds a user to a group.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Add a user to a group", + "parameters": [ + { + "type": "string", + "description": "Group name", + "name": "group", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "User name", + "name": "user", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "User added to group successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Removes a user from a group.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Remove a user from a group", + "parameters": [ + { + "type": "string", + "description": "Group name", + "name": "group", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "User name", + "name": "user", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "User removed from group successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/access/groups": { + "get": { + "description": "Returns a list of all groups or the groups for a specific user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Get all groups or groups for a user", + "parameters": [ + { + "type": "string", + "description": "User name", + "name": "user", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Object containing a list of groups", + "schema": { + "$ref": "#/definitions/http.GroupListResponse" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/login": { + "post": { + "description": "Authenticate a user with a username and password.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Auth" + ], + "summary": "User login", + "responses": { + "200": { + "description": "JWT token for authentication", + "schema": { + "type": "string" + } + }, + "403": { + "description": "Forbidden - authentication failed", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/logout": { + "post": { + "description": "Returns a logout URL for the frontend to redirect to.", + "produces": [ + "application/json" + ], + "tags": [ + "Auth" + ], + "summary": "User Logout", + "parameters": [ + { + "type": "string", + "description": "JWT token", + "name": "auth", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"logoutUrl\": \"http://...\"}", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/oidc/callback": { + "get": { + "description": "Handles OIDC login callback.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "OIDC" + ], + "summary": "OIDC callback", + "parameters": [ + { + "type": "string", + "description": "OIDC code", + "name": "code", + "in": "query" + }, + { + "type": "string", + "description": "OIDC state", + "name": "state", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OIDC callback result", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/oidc/login": { + "get": { + "description": "Initiates OIDC login flow.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "OIDC" + ], + "summary": "OIDC login", + "responses": { + "302": { + "description": "Redirect to OIDC provider", + "schema": { + "type": "string" + } + } + } + } + }, + "/api/auth/otp/generate": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Generates a new TOTP secret and QR code for the authenticated user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "OTP" + ], + "summary": "Generate OTP", + "responses": { + "200": { + "description": "OTP secret generated successfully.", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/otp/verify": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Verifies the provided TOTP code for the authenticated user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "OTP" + ], + "summary": "Verify OTP", + "parameters": [ + { + "type": "string", + "description": "TOTP code to verify", + "name": "code", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "OTP token is valid.", + "schema": { + "$ref": "#/definitions/http.HttpResponse" + } + }, + "401": { + "description": "Unauthorized - invalid TOTP token", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/signup": { + "post": { + "description": "Register a new user account with a username and password.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Auth" + ], + "summary": "User signup", + "responses": { + "201": { + "description": "User created successfully", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad request - invalid input", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "405": { + "description": "Method not allowed - signup is disabled", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "Conflict - user already exists", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/token": { + "put": { + "description": "Create an API key with specified name, duration, and permissions.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "API Keys" + ], + "summary": "Create API key", + "parameters": [ + { + "type": "string", + "description": "Name of the API key", + "name": "name", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Duration of the API key in days", + "name": "days", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Permissions for the API key (comma-separated)", + "name": "permissions", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Token created successfully, response contains json object with token key", + "schema": { + "$ref": "#/definitions/http.HttpResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "Conflict", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Delete an API key with specified name.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "API Keys" + ], + "summary": "Delete API key", + "parameters": [ + { + "type": "string", + "description": "Name of the API key to delete", + "name": "name", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "API key deleted successfully", + "schema": { + "$ref": "#/definitions/http.HttpResponse" + } + }, + "404": { + "description": "Not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/tokens": { + "get": { + "description": "List all API keys or retrieve details for a specific key.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "API Keys" + ], + "summary": "List API keys", + "parameters": [ + { + "type": "string", + "description": "Name of the API to retrieve details", + "name": "name", + "in": "query" + } + ], + "responses": { + "200": { + "description": "List of API keys or specific key details", + "schema": { + "$ref": "#/definitions/http.AuthTokenMin" + } + }, + "404": { + "description": "Not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/jobs/{action}/{target}": { + "get": { + "description": "Returns job info for the user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Jobs" + ], + "summary": "Get jobs info", + "parameters": [ + { + "type": "string", + "description": "Job action", + "name": "action", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Job target", + "name": "target", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Job info", + "schema": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/indexing.ReducedIndex" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/media/subtitles": { + "get": { + "description": "Extracts embedded subtitle content from video files by stream index and returns raw WebVTT content", + "consumes": [ + "application/json" + ], + "produces": [ + "text/vtt" + ], + "tags": [ + "Subtitles" + ], + "summary": "Extract embedded subtitles", + "parameters": [ + { + "type": "string", + "description": "Index path to the video file", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "Stream index for embedded subtitle extraction, defaults to 0", + "name": "index", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Raw WebVTT subtitle content", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/preview": { + "get": { + "description": "Returns a preview image based on the requested path and size.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Get image preview", + "parameters": [ + { + "type": "string", + "description": "File path of the image to preview", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Preview size ('small' or 'large'). Default is based on server config.", + "name": "size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Preview image content", + "schema": { + "type": "file" + } + }, + "202": { + "description": "Download permissions required", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Invalid request path", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "File not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "415": { + "description": "Unsupported file type for preview", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Preview generation not implemented", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/raw": { + "get": { + "description": "Returns the raw content of a file, multiple files, or a directory. Supports downloading files as archives in various formats.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Get raw content of a file, multiple files, or directory", + "parameters": [ + { + "type": "string", + "description": "a list of files in the following format 'source::filename' and separated by '||' with additional items in the list. (required)", + "name": "files", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "If true, sets 'Content-Disposition' to 'inline'. Otherwise, defaults to 'attachment'.", + "name": "inline", + "in": "query" + }, + { + "type": "string", + "description": "Compression algorithm for archiving multiple files or directories. Options: 'zip' and 'tar.gz'. Default is 'zip'.", + "name": "algo", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Raw file or directory content, or archive for multiple files", + "schema": { + "type": "file" + } + }, + "202": { + "description": "Modify permissions required", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Invalid request path", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "File or directory not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/renew": { + "post": { + "description": "Refresh the authentication token for a logged-in user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Auth" + ], + "summary": "Renew authentication token", + "responses": { + "200": { + "description": "New JWT token generated", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized - invalid token", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/resources": { + "get": { + "description": "Returns metadata and optionally file contents for a specified resource path.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Get resource information", + "parameters": [ + { + "type": "string", + "description": "Path to the resource", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source, default is used if not provided", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Include file content if true", + "name": "content", + "in": "query" + }, + { + "type": "string", + "description": "Optional checksum validation", + "name": "checksum", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Resource metadata", + "schema": { + "$ref": "#/definitions/iteminfo.FileInfo" + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "put": { + "description": "Updates an existing file at the specified path.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Update a file resource", + "parameters": [ + { + "type": "string", + "description": "Destination path where to place the files inside the destination source", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source, default is used if not provided", + "name": "source", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Resource updated successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "405": { + "description": "Method not allowed", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Creates a new resource or uploads a file at the specified path. Supports file uploads and directory creation.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Create or upload a resource", + "parameters": [ + { + "type": "string", + "description": "url encoded destination path where to place the files inside the destination source, a directory must end in / to create a directory", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Name for the desired filebrowser destination source name, default is used if not provided", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "Override existing file if true", + "name": "override", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Resource created successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "Conflict - Resource already exists", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Deletes a resource located at the specified path.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Delete a resource", + "parameters": [ + { + "type": "string", + "description": "Path to the resource", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source, default is used if not provided", + "name": "source", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "patch": { + "description": "Moves or renames a resource to a new destination.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Patch resource (move/rename)", + "parameters": [ + { + "type": "string", + "description": "Path from resource in \u003csource_name\u003e::\u003cindex_path\u003e format", + "name": "from", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Destination path for the resource", + "name": "destination", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Action to perform (copy, rename)", + "name": "action", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "Overwrite if destination exists", + "name": "overwrite", + "in": "query" + }, + { + "type": "boolean", + "description": "Rename if destination exists", + "name": "rename", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Resource moved/renamed successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "Conflict - Destination exists", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/search": { + "get": { + "description": "Searches for files matching the provided query. Returns file paths and metadata based on the user's session and scope.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Search" + ], + "summary": "Search Files", + "parameters": [ + { + "type": "string", + "description": "Search query", + "name": "query", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "path within user scope to search, for example '/first/second' to search within the second directory only", + "name": "scope", + "in": "query" + }, + { + "type": "string", + "description": "User session ID, add unique value to prevent collisions", + "name": "SessionId", + "in": "header" + } + ], + "responses": { + "200": { + "description": "List of search results", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/indexing.SearchResult" + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/settings": { + "get": { + "description": "Returns the current configuration settings for signup, user directories, rules, frontend.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Settings" + ], + "summary": "Get system settings", + "parameters": [ + { + "type": "string", + "description": "Property to retrieve: ` + "`" + `userDefaults` + "`" + `, ` + "`" + `frontend` + "`" + `, ` + "`" + `auth` + "`" + `, ` + "`" + `server` + "`" + `, ` + "`" + `sources` + "`" + `", + "name": "property", + "in": "query" + } + ], + "responses": { + "200": { + "description": "System settings data", + "schema": { + "$ref": "#/definitions/settings.Settings" + } + } + } + } + }, + "/api/settings/config": { + "get": { + "description": "Returns the current running configuration settings as YAML format with optional comments and filtering.", + "consumes": [ + "application/json" + ], + "produces": [ + "text/plain" + ], + "tags": [ + "Settings" + ], + "summary": "Get system settings as YAML", + "parameters": [ + { + "type": "boolean", + "description": "Show all values (true) or only non-default values (false, default)", + "name": "full", + "in": "query" + }, + { + "type": "boolean", + "description": "Include comments in YAML (true) or plain YAML (false, default)", + "name": "comments", + "in": "query" + } + ], + "responses": { + "200": { + "description": "System settings in YAML format", + "schema": { + "type": "string" + } + } + } + } + }, + "/api/share": { + "get": { + "description": "Retrieves all share links associated with a specific resource path for the current user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Get share links by path", + "parameters": [ + { + "type": "string", + "description": "Resource path for which to retrieve share links", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for share links", + "name": "source", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "List of share links for the specified path", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/share.Link" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Creates a new share link with an optional expiration time and password protection.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Create a share link", + "parameters": [ + { + "description": "Share creation parameters", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/share.CreateBody" + } + } + ], + "responses": { + "200": { + "description": "Created share link", + "schema": { + "$ref": "#/definitions/share.Link" + } + }, + "400": { + "description": "Bad request - failed to decode body", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "patch": { + "description": "Updates the path for a specific share link identified by hash", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Update share link path", + "parameters": [ + { + "description": "Hash and new path", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Updated share link", + "schema": { + "$ref": "#/definitions/http.ShareResponse" + } + }, + "400": { + "description": "Bad request - missing or invalid parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/share/direct": { + "get": { + "description": "Creates a direct download link for a specific file with configurable duration, download count, and speed limits. If a share already exists with matching parameters, the existing share will be reused.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Create direct download link", + "parameters": [ + { + "type": "string", + "description": "File path to create download link for", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the file", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Duration in minutes for link validity (default: 60)", + "name": "duration", + "in": "query" + }, + { + "type": "string", + "description": "Maximum number of downloads allowed (default: unlimited)", + "name": "count", + "in": "query" + }, + { + "type": "string", + "description": "Download speed limit in kbps (default: unlimited)", + "name": "speed", + "in": "query" + } + ], + "responses": { + "201": { + "description": "Direct download link created", + "schema": { + "$ref": "#/definitions/http.DirectDownloadResponse" + } + }, + "400": { + "description": "Bad request - invalid parameters or path is not a file", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Forbidden - access denied", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/shares": { + "get": { + "description": "Returns a list of share links for the current user, or all links if the user is an admin.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "List share links", + "responses": { + "200": { + "description": "List of share links", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/share.Link" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Deletes a share link specified by its hash.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Delete a share link", + "parameters": [ + { + "type": "string", + "description": "Hash of the share link to delete", + "name": "hash", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Share link deleted successfully" + }, + "400": { + "description": "Bad request - missing or invalid hash", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/users": { + "get": { + "description": "Returns a user's details based on their ID, or all users if no id is provided.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Users" + ], + "summary": "Retrieve a user by ID", + "parameters": [ + { + "type": "string", + "description": "User ID or 'self'", + "name": "id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "User details or list of users", + "schema": { + "$ref": "#/definitions/users.User" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Not Found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "put": { + "description": "Updates the details of a user identified by ID.", + "consumes": [ + "application/json" + ], + "tags": [ + "Users" + ], + "summary": "Update a user's details", + "parameters": [ + { + "type": "string", + "description": "user ID to update", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "usename to update", + "name": "id", + "in": "query" + }, + { + "description": "User data to update", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/users.User" + } + } + ], + "responses": { + "204": { + "description": "No Content - User updated successfully" + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Adds a new user to the system.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Users" + ], + "summary": "Create a new user", + "parameters": [ + { + "description": "User data to create a new user", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/users.User" + } + } + ], + "responses": { + "201": { + "description": "Created user", + "schema": { + "$ref": "#/definitions/users.User" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Deletes a user identified by their ID.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Users" + ], + "summary": "Delete a user by ID", + "parameters": [ + { + "type": "string", + "description": "User ID", + "name": "id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "User deleted successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/health": { + "get": { + "description": "Returns the health status of the API.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Health" + ], + "summary": "Health Check", + "responses": { + "200": { + "description": "successful health check response", + "schema": { + "$ref": "#/definitions/http.HttpResponse" + } + } + } + } + }, + "/public/api/preview": { + "get": { + "description": "Returns a preview (thumbnail) for images or videos accessible via a public share. Preview generation can be disabled globally or per-share. Not available for upload-only shares.", + "consumes": [ + "application/json" + ], + "produces": [ + "image/jpeg" + ], + "tags": [ + "Public Shares" + ], + "summary": "Get image/video preview from a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "File path within the share to preview", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Preview size: 'small' or 'large'. Default is based on server config.", + "name": "size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Preview image content (JPEG)", + "schema": { + "type": "file" + } + }, + "403": { + "description": "Share unavailable or access denied", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "File not found or preview not available", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Previews disabled globally, for this share, or for upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/public/api/raw": { + "get": { + "description": "Downloads raw content from a public share. Supports single files, multiple files, or directories as archives. Enforces download limits (global or per-user) and blocks anonymous users when per-user limits are enabled.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/octet-stream" + ], + "tags": [ + "Public Shares" + ], + "summary": "Download files from a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Files to download in format: 'source::path||source::path'. Example: '/file1||/folder/file2'", + "name": "files", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "If true, sets 'Content-Disposition' to 'inline'. Otherwise, defaults to 'attachment'.", + "name": "inline", + "in": "query" + }, + { + "type": "string", + "description": "Compression algorithm for archiving multiple files or directories. Options: 'zip' and 'tar.gz'. Default is 'zip'.", + "name": "algo", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Raw file or directory content, or archive for multiple files", + "schema": { + "type": "file" + } + }, + "400": { + "description": "Invalid request path or encoding", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Download limit reached, anonymous access blocked, or share unavailable", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found or file not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Downloads disabled for upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/public/api/resources": { + "put": { + "description": "Updates the content of a file in a public share.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Public Shares" + ], + "summary": "Update a file in a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Path to the file to update", + "name": "path", + "in": "query", + "required": true + }, + { + "description": "New content for the file", + "name": "content", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "File updated successfully", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Invalid request or parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Share unavailable or update not allowed", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found or file not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Handles file and directory uploads to an upload-only public share. Supports chunked uploads, conflict resolution (override), and directory creation.", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Public Shares" + ], + "summary": "Upload files to a public upload share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Target path within the share to upload to. Must be relative to share root.", + "name": "targetPath", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "If true, overwrite existing files/folders. Defaults to false.", + "name": "override", + "in": "query" + }, + { + "type": "string", + "description": "Upload action: 'override' to replace files, 'rename' to auto-rename", + "name": "action", + "in": "query" + }, + { + "type": "file", + "description": "File to upload", + "name": "file", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "Upload successful", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Invalid request or parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Share unavailable or upload not allowed", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "File or directory already exists (conflict)", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error during upload", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Uploading disabled for non-upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/public/api/share": { + "get": { + "description": "Returns metadata for files or directories accessible via a public share link. Browsing is disabled for upload-only shares.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Public Shares" + ], + "summary": "Get file/directory information from a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Path within the share to retrieve information for. Defaults to share root.", + "name": "path", + "in": "query" + } + ], + "responses": { + "200": { + "description": "File or directory metadata", + "schema": { + "$ref": "#/definitions/iteminfo.FileInfo" + } + }, + "403": { + "description": "Share unavailable or access denied", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found or file not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Browsing disabled for upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + } + }, + "definitions": { + "http.AuthTokenMin": { + "type": "object", + "properties": { + "Permissions": { + "$ref": "#/definitions/users.Permissions" + }, + "created": { + "type": "integer" + }, + "expires": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "http.DirectDownloadResponse": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "status": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "http.GroupListResponse": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "http.HttpResponse": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "token": { + "type": "string" + } + } + }, + "http.ShareResponse": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloads": { + "type": "integer" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "expire": { + "type": "integer" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hash": { + "type": "string" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "password_hash": { + "type": "string" + }, + "path": { + "type": "string" + }, + "pathExists": { + "type": "boolean" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "source": { + "description": "Override embedded field to show source name", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "token": { + "description": "Token is a random value that will only be set when PasswordHash is set. It is\nURL-Safe and is used to download links in password-protected shares via a\nquery arg.", + "type": "string" + }, + "userID": { + "type": "integer" + }, + "username": { + "type": "string" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, + "indexing.IndexStatus": { + "type": "string", + "enum": [ + "ready", + "indexing", + "unavailable" + ], + "x-enum-varnames": [ + "READY", + "INDEXING", + "UNAVAILABLE" + ] + }, + "indexing.ReducedIndex": { + "type": "object", + "properties": { + "assessment": { + "type": "string" + }, + "fullScanDurationSeconds": { + "type": "integer" + }, + "lastIndexedUnixTime": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "numDeleted": { + "type": "integer" + }, + "numDirs": { + "type": "integer" + }, + "numFiles": { + "type": "integer" + }, + "quickScanDurationSeconds": { + "type": "integer" + }, + "scanners": { + "type": "array", + "items": { + "$ref": "#/definitions/indexing.ScannerInfo" + } + }, + "status": { + "$ref": "#/definitions/indexing.IndexStatus" + }, + "total": { + "type": "integer" + }, + "used": { + "type": "integer" + } + } + }, + "indexing.ScannerInfo": { + "type": "object", + "properties": { + "assessment": { + "type": "string" + }, + "currentSchedule": { + "type": "integer" + }, + "fullScanTime": { + "type": "integer" + }, + "isRoot": { + "type": "boolean" + }, + "lastScanned": { + "type": "string" + }, + "numDirs": { + "type": "integer" + }, + "numFiles": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "quickScanTime": { + "type": "integer" + } + } + }, + "indexing.SearchResult": { + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + } + } + }, + "iteminfo.ExtendedItemInfo": { + "type": "object", + "properties": { + "hasPreview": { + "description": "whether the file has a thumbnail preview", + "type": "boolean" + }, + "hidden": { + "description": "whether the file is hidden", + "type": "boolean" + }, + "metadata": { + "description": "optional media metadata (audio/video only)", + "allOf": [ + { + "$ref": "#/definitions/iteminfo.MediaMetadata" + } + ] + }, + "modified": { + "description": "modification time", + "type": "string" + }, + "name": { + "description": "name of the file", + "type": "string" + }, + "size": { + "description": "length in bytes for regular files", + "type": "integer" + }, + "type": { + "description": "type of the file, either \"directory\" or a file mimetype", + "type": "string" + } + } + }, + "iteminfo.FileInfo": { + "type": "object", + "properties": { + "files": { + "description": "files in the directory with optional metadata", + "type": "array", + "items": { + "$ref": "#/definitions/iteminfo.ExtendedItemInfo" + } + }, + "folders": { + "description": "folders in the directory", + "type": "array", + "items": { + "$ref": "#/definitions/iteminfo.ItemInfo" + } + }, + "hasPreview": { + "description": "whether the file has a thumbnail preview", + "type": "boolean" + }, + "hidden": { + "description": "whether the file is hidden", + "type": "boolean" + }, + "modified": { + "description": "modification time", + "type": "string" + }, + "name": { + "description": "name of the file", + "type": "string" + }, + "path": { + "description": "path scoped to the associated index", + "type": "string" + }, + "size": { + "description": "length in bytes for regular files", + "type": "integer" + }, + "type": { + "description": "type of the file, either \"directory\" or a file mimetype", + "type": "string" + } + } + }, + "iteminfo.ItemInfo": { + "type": "object", + "properties": { + "hasPreview": { + "description": "whether the file has a thumbnail preview", + "type": "boolean" + }, + "hidden": { + "description": "whether the file is hidden", + "type": "boolean" + }, + "modified": { + "description": "modification time", + "type": "string" + }, + "name": { + "description": "name of the file", + "type": "string" + }, + "size": { + "description": "length in bytes for regular files", + "type": "integer" + }, + "type": { + "description": "type of the file, either \"directory\" or a file mimetype", + "type": "string" + } + } + }, + "iteminfo.MediaMetadata": { + "type": "object", + "properties": { + "album": { + "description": "album name", + "type": "string" + }, + "albumArt": { + "description": "base64 encoded album art / video thumbnail", + "type": "string" + }, + "artist": { + "description": "track artist", + "type": "string" + }, + "duration": { + "description": "duration in seconds", + "type": "integer" + }, + "genre": { + "description": "music/video genre", + "type": "string" + }, + "title": { + "description": "track/video title", + "type": "string" + }, + "track": { + "description": "track number", + "type": "integer" + }, + "year": { + "description": "release year", + "type": "integer" + } + } + }, + "settings.Auth": { + "type": "object", + "properties": { + "adminPassword": { + "description": "secret: the password of the admin user. If not set, the default is \"admin\".", + "type": "string" + }, + "adminUsername": { + "description": "secret: the username of the admin user. If not set, the default is \"admin\".", + "type": "string" + }, + "key": { + "description": "secret: the key used to sign the JWT tokens. If not set, a random key will be generated.", + "type": "string" + }, + "methods": { + "$ref": "#/definitions/settings.LoginMethods" + }, + "tokenExpirationHours": { + "description": "time in hours each web UI session token is valid for. Default is 2 hours.", + "type": "integer" + }, + "totpSecret": { + "description": "secret: secret used to encrypt TOTP secrets", + "type": "string" + } + } + }, + "settings.ConditionalFilter": { + "type": "object", + "properties": { + "hidden": { + "description": "deprecated: use ignoreHidden instead to exclude hidden files and folders.", + "type": "boolean" + }, + "ignoreHidden": { + "description": "exclude hidden files and folders.", + "type": "boolean" + }, + "ignoreZeroSizeFolders": { + "description": "ignore folders with 0 size", + "type": "boolean" + }, + "rules": { + "description": "list of item rules to apply to specific paths", + "type": "array", + "items": { + "$ref": "#/definitions/settings.ConditionalIndexConfig" + } + } + } + }, + "settings.ConditionalIndexConfig": { + "type": "object", + "properties": { + "fileEndsWith": { + "description": "(global) exclude files that end with these suffixes. Eg. \".jpg\" or \".txt\"", + "type": "string" + }, + "fileName": { + "description": "(global) exclude files that match these names. Eg. \"file.txt\" or \"test.csv\"", + "type": "string" + }, + "fileNames": { + "description": "deprecated: exclude files that match these names. Eg. \"file.txt\" or \"test.csv\"", + "type": "string" + }, + "filePath": { + "description": "(global) exclude files that match this path. Eg. \"/path/to/file.txt\" or \"/path/to/file.txt/subfile.txt\"", + "type": "string" + }, + "fileStartsWith": { + "description": "(global) exclude files that start with these prefixes. Eg. \"archive-\" or \"backup-\"", + "type": "string" + }, + "folderEndsWith": { + "description": "(global) exclude folders that end with these suffixes. Eg. \".thumbnails\" or \".git\"", + "type": "string" + }, + "folderName": { + "description": "(global) exclude folders that match these names. Eg. \"folder\" or \"subfolder\"", + "type": "string" + }, + "folderNames": { + "description": "deprecated: exclude folders that match these names. Eg. \"folder\" or \"subfolder\"", + "type": "string" + }, + "folderPath": { + "description": "(global) exclude folders that match this path. Eg. \"/path/to/folder\" or \"/path/to/folder/subfolder\"", + "type": "string" + }, + "folderStartsWith": { + "description": "(global) exclude folders that start with these prefixes. Eg. \"archive-\" or \"backup-\"", + "type": "string" + }, + "includeRootItem": { + "description": "include only these items at root folder level", + "type": "string" + }, + "neverWatchPath": { + "description": "index the folder in the first pass to get included in search, but never re-indexed.", + "type": "string" + }, + "viewable": { + "description": "Enable viewing in UI but exclude from indexing", + "type": "boolean" + } + } + }, + "settings.CustomTheme": { + "type": "object", + "properties": { + "css": { + "description": "The css file path and filename to use for the theme.", + "type": "string" + }, + "description": { + "description": "The description of the theme to display in the UI.", + "type": "string" + } + } + }, + "settings.ExternalLink": { + "type": "object", + "required": [ + "text", + "url" + ], + "properties": { + "text": { + "description": "the text to display on the link", + "type": "string" + }, + "title": { + "description": "the title to display on hover", + "type": "string" + }, + "url": { + "description": "the url to link to", + "type": "string" + } + } + }, + "settings.FfmpegConvert": { + "type": "object", + "properties": { + "imagePreview": { + "description": "supported image preview formats. defaults to false for all types unless explicitly enabled.", + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "videoPreview": { + "description": "supported video preview formats. defaults to true for all types unless explicitly disabled.", + "type": "object", + "additionalProperties": { + "type": "boolean" + } + } + } + }, + "settings.Filesystem": { + "type": "object", + "required": [ + "createDirectoryPermission", + "createFilePermission" + ], + "properties": { + "createDirectoryPermission": { + "description": "Unix permissions like 755, 2755, 1777 (default: 755)", + "type": "string" + }, + "createFilePermission": { + "description": "Unix permissions like 644, 755, 2755 (default: 644)", + "type": "string" + } + } + }, + "settings.Frontend": { + "type": "object", + "properties": { + "description": { + "description": "description that shows up in html head meta description", + "type": "string" + }, + "disableDefaultLinks": { + "description": "disable default links in the sidebar", + "type": "boolean" + }, + "disableNavButtons": { + "description": "disable the nav buttons in the sidebar", + "type": "boolean" + }, + "disableUsedPercentage": { + "description": "disable used percentage for the sources in the sidebar", + "type": "boolean" + }, + "externalLinks": { + "type": "array", + "items": { + "$ref": "#/definitions/settings.ExternalLink" + } + }, + "favicon": { + "description": "path to a favicon to use for the frontend", + "type": "string" + }, + "loginIcon": { + "description": "path to an image file for the login page icon", + "type": "string" + }, + "name": { + "description": "display name", + "type": "string" + }, + "styling": { + "$ref": "#/definitions/settings.StylingConfig" + } + } + }, + "settings.Integrations": { + "type": "object", + "properties": { + "media": { + "$ref": "#/definitions/settings.Media" + }, + "office": { + "$ref": "#/definitions/settings.OnlyOffice" + } + } + }, + "settings.LogConfig": { + "type": "object", + "properties": { + "apiLevels": { + "description": "separated list of log levels to enable for the API. (eg. \"info|warning|error\")", + "type": "string" + }, + "json": { + "description": "output in json format", + "type": "boolean" + }, + "levels": { + "description": "separated list of log levels to enable. (eg. \"info|warning|error|debug\")", + "type": "string" + }, + "noColors": { + "description": "disable colors in the output", + "type": "boolean" + }, + "output": { + "description": "output location. (eg. \"stdout\" or \"path/to/file.log\")", + "type": "string" + }, + "utc": { + "description": "use UTC time in the output instead of local time", + "type": "boolean" + } + } + }, + "settings.LoginMethods": { + "type": "object", + "properties": { + "noauth": { + "description": "if set to true, overrides all other auth methods and disables authentication", + "type": "boolean" + }, + "oidc": { + "$ref": "#/definitions/settings.OidcConfig" + }, + "password": { + "$ref": "#/definitions/settings.PasswordAuthConfig" + }, + "proxy": { + "$ref": "#/definitions/settings.ProxyAuthConfig" + } + } + }, + "settings.Media": { + "type": "object", + "properties": { + "convert": { + "description": "config for ffmpeg conversion settings", + "allOf": [ + { + "$ref": "#/definitions/settings.FfmpegConvert" + } + ] + }, + "debug": { + "description": "output ffmpeg stdout for media integration -- careful can produces lots of output!", + "type": "boolean" + }, + "extractEmbeddedSubtitles": { + "description": "extract embedded subtitles from media files", + "type": "boolean" + }, + "ffmpegPath": { + "description": "path to ffmpeg directory with ffmpeg and ffprobe (eg. /usr/local/bin)", + "type": "string" + } + } + }, + "settings.OidcConfig": { + "type": "object", + "properties": { + "adminGroup": { + "description": "if set, users in this group will be granted admin privileges.", + "type": "string" + }, + "clientId": { + "description": "secret: client id of the OIDC application", + "type": "string" + }, + "clientSecret": { + "description": "secret: client secret of the OIDC application", + "type": "string" + }, + "createUser": { + "description": "create user if not exists", + "type": "boolean" + }, + "disableVerifyTLS": { + "description": "disable TLS verification for the OIDC provider. This is insecure and should only be used for testing.", + "type": "boolean" + }, + "enabled": { + "description": "whether to enable OIDC authentication", + "type": "boolean" + }, + "groupsClaim": { + "description": "the JSON field name to read groups from. Default is \"groups\"", + "type": "string" + }, + "issuerUrl": { + "description": "authorization URL of the OIDC provider", + "type": "string" + }, + "logoutRedirectUrl": { + "description": "if provider logout url is provided, filebrowser will also redirect to logout url. Custom logout query params are respected.", + "type": "string" + }, + "scopes": { + "description": "scopes to request from the OIDC provider", + "type": "string" + }, + "userIdentifier": { + "description": "the field value to use as the username. Default is \"preferred_username\", can also be \"email\" or \"username\", or \"phone\"", + "type": "string" + } + } + }, + "settings.OnlyOffice": { + "type": "object", + "required": [ + "secret", + "url" + ], + "properties": { + "internalUrl": { + "description": "An optional internal address that the filebrowser server can use to communicate with the OnlyOffice Document Server, could be useful to bypass proxy.", + "type": "string" + }, + "secret": { + "description": "secret: authentication key for OnlyOffice integration", + "type": "string" + }, + "url": { + "description": "The URL to the OnlyOffice Document Server, needs to be accessible to the user.", + "type": "string" + }, + "viewOnly": { + "description": "view only mode for OnlyOffice", + "type": "boolean" + } + } + }, + "settings.PasswordAuthConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "enforcedOtp": { + "description": "if set to true, TOTP is enforced for all password users users. Otherwise, users can choose to enable TOTP.", + "type": "boolean" + }, + "minLength": { + "description": "minimum pasword length required, default is 5.", + "type": "integer" + }, + "recaptcha": { + "description": "recaptcha config, only used if signup is enabled", + "allOf": [ + { + "$ref": "#/definitions/settings.Recaptcha" + } + ] + }, + "signup": { + "description": "allow signups on login page if enabled -- not secure.", + "type": "boolean" + } + } + }, + "settings.ProxyAuthConfig": { + "type": "object", + "properties": { + "createUser": { + "description": "create user if not exists", + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "header": { + "description": "required header to use for authentication. Security Warning: FileBrowser blindly accepts the header value as username.", + "type": "string" + }, + "logoutRedirectUrl": { + "description": "if provider logout url is provided, filebrowser will also redirect to logout url. Custom logout query params are respected.", + "type": "string" + } + } + }, + "settings.Recaptcha": { + "type": "object", + "required": [ + "host", + "key", + "secret" + ], + "properties": { + "host": { + "type": "string" + }, + "key": { + "type": "string" + }, + "secret": { + "type": "string" + } + } + }, + "settings.Server": { + "type": "object", + "required": [ + "sources" + ], + "properties": { + "baseURL": { + "description": "base URL for the server, the subpath that the server is running on.", + "type": "string" + }, + "cacheDir": { + "description": "path to the cache directory, used for thumbnails and other cached files", + "type": "string" + }, + "database": { + "description": "path to the database file", + "type": "string" + }, + "disablePreviewResize": { + "description": "disable resizing of previews for faster loading over slow connections", + "type": "boolean" + }, + "disablePreviews": { + "description": "disable all previews thumbnails, simple icons will be used", + "type": "boolean" + }, + "disableTypeDetectionByHeader": { + "description": "disable type detection by header, useful if filesystem is slow.", + "type": "boolean" + }, + "disableUpdateCheck": { + "description": "disables backend update check service", + "type": "boolean" + }, + "externalUrl": { + "description": "used by share links if set (eg. http://mydomain.com)", + "type": "string" + }, + "filesystem": { + "description": "filesystem settings", + "allOf": [ + { + "$ref": "#/definitions/settings.Filesystem" + } + ] + }, + "internalUrl": { + "description": "used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080)", + "type": "string" + }, + "logging": { + "type": "array", + "items": { + "$ref": "#/definitions/settings.LogConfig" + } + }, + "maxArchiveSize": { + "description": "max pre-archive combined size of files/folder that are allowed to be archived (in GB)", + "type": "integer" + }, + "minSearchLength": { + "description": "minimum length of search query to begin searching (default: 3)", + "type": "integer" + }, + "numImageProcessors": { + "description": "number of concurrent image processing jobs used to create previews, default is number of cpu cores available.", + "type": "integer" + }, + "port": { + "description": "port to listen on", + "type": "integer" + }, + "socket": { + "description": "socket to listen on", + "type": "string" + }, + "sources": { + "type": "array", + "items": { + "$ref": "#/definitions/settings.Source" + } + }, + "tlsCert": { + "description": "path to TLS cert", + "type": "string" + }, + "tlsKey": { + "description": "path to TLS key", + "type": "string" + } + } + }, + "settings.Settings": { + "type": "object", + "properties": { + "auth": { + "$ref": "#/definitions/settings.Auth" + }, + "frontend": { + "$ref": "#/definitions/settings.Frontend" + }, + "integrations": { + "$ref": "#/definitions/settings.Integrations" + }, + "server": { + "$ref": "#/definitions/settings.Server" + }, + "userDefaults": { + "$ref": "#/definitions/settings.UserDefaults" + } + } + }, + "settings.Source": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "config": { + "$ref": "#/definitions/settings.SourceConfig" + }, + "name": { + "description": "display name", + "type": "string" + }, + "path": { + "description": "file system path. (Can be relative)", + "type": "string" + } + } + }, + "settings.SourceConfig": { + "type": "object", + "properties": { + "conditionals": { + "description": "conditional rules to apply when indexing to include/exclude certain items", + "allOf": [ + { + "$ref": "#/definitions/settings.ConditionalFilter" + } + ] + }, + "createUserDir": { + "description": "create a user directory for each user", + "type": "boolean" + }, + "defaultEnabled": { + "description": "should be added as a default source for new users?", + "type": "boolean" + }, + "defaultUserScope": { + "description": "default \"/\" should match folders under path", + "type": "string" + }, + "denyByDefault": { + "description": "deny access unless an \"allow\" access rule was specifically created.", + "type": "boolean" + }, + "disableIndexing": { + "description": "disable the indexing of this source", + "type": "boolean" + }, + "disabled": { + "description": "disable the source, this is useful so you don't need to remove it from the config file", + "type": "boolean" + }, + "indexingIntervalMinutes": { + "description": "optional manual overide interval in minutes to re-index the source", + "type": "integer" + }, + "private": { + "description": "designate as source as private -- currently just means no sharing permitted.", + "type": "boolean" + } + } + }, + "settings.StylingConfig": { + "type": "object", + "properties": { + "customCSS": { + "description": "if a valid path to a css file is provided, it will be applied for all users. (eg. \"reduce-rounded-corners.css\")", + "type": "string" + }, + "customThemes": { + "description": "A list of custom css files that each user can select to override the default styling. if \"default\" is key name then it will be the default option.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/settings.CustomTheme" + } + }, + "darkBackground": { + "description": "Specify a valid CSS color property value to use as the background color in dark mode", + "type": "string" + }, + "disableEventThemes": { + "description": "disable the event based themes,", + "type": "boolean" + }, + "lightBackground": { + "description": "specify a valid CSS color property value to use as the background color in light mode", + "type": "string" + } + } + }, + "settings.UserDefaults": { + "type": "object", + "properties": { + "customTheme": { + "description": "Name of theme to use chosen from custom themes config.", + "type": "string" + }, + "darkMode": { + "description": "should dark mode be enabled", + "type": "boolean" + }, + "dateFormat": { + "description": "when false, the date is relative, when true, the date is an exact timestamp", + "type": "boolean" + }, + "debugOffice": { + "description": "debug onlyoffice editor", + "type": "boolean" + }, + "defaultLandingPage": { + "description": "default landing page to use if no redirect is specified: eg. /files/mysource/mysubpath, /settings, etc.", + "type": "string" + }, + "deleteWithoutConfirming": { + "description": "delete files without confirmation", + "type": "boolean" + }, + "disableOfficePreviewExt": { + "description": "deprecated: use disablePreviewExt instead", + "type": "string" + }, + "disableOnlyOfficeExt": { + "description": "list of file extensions to disable onlyoffice editor for", + "type": "string" + }, + "disablePreviewExt": { + "description": "space separated list of file extensions to disable preview for", + "type": "string" + }, + "disableQuickToggles": { + "description": "disable the quick toggles in the sidebar", + "type": "boolean" + }, + "disableSearchOptions": { + "description": "disable the search options in the search bar", + "type": "boolean" + }, + "disableSettings": { + "description": "disable the user from viewing the settings page", + "type": "boolean" + }, + "disableUpdateNotifications": { + "description": "disable update notifications banner for admin users", + "type": "boolean" + }, + "disableViewingExt": { + "description": "space separated list of file extensions to disable viewing for", + "type": "string" + }, + "editorQuickSave": { + "description": "show quick save button in editor", + "type": "boolean" + }, + "fileLoading": { + "description": "upload and download settings", + "allOf": [ + { + "$ref": "#/definitions/users.FileLoading" + } + ] + }, + "gallerySize": { + "description": "0-9 - the size of the gallery thumbnails", + "type": "integer" + }, + "hideSidebarFileActions": { + "description": "hide the file actions in the sidebar", + "type": "boolean" + }, + "locale": { + "description": "language to use: eg. de, en, or fr", + "type": "string" + }, + "lockPassword": { + "description": "disable the user from changing their password", + "type": "boolean" + }, + "loginMethod": { + "description": "login method to use: eg. password, proxy, oidc", + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/users.Permissions" + }, + "preview": { + "$ref": "#/definitions/users.Preview" + }, + "quickDownload": { + "description": "show icon to download in one click", + "type": "boolean" + }, + "showHidden": { + "description": "show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files", + "type": "boolean" + }, + "showSelectMultiple": { + "description": "show select multiple files on desktop", + "type": "boolean" + }, + "singleClick": { + "description": "open directory on single click, also enables middle click to open in new tab", + "type": "boolean" + }, + "stickySidebar": { + "description": "keep sidebar open when navigating", + "type": "boolean" + }, + "themeColor": { + "description": "theme color to use: eg. #ff0000, or var(--red), var(--purple), etc", + "type": "string" + }, + "viewMode": { + "description": "view mode to use: eg. normal, list, grid, or compact", + "type": "string" + } + } + }, + "share.CreateBody": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "expires": { + "type": "string" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hash": { + "type": "string" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "password": { + "type": "string" + }, + "path": { + "type": "string" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "source": { + "description": "backend source is path to maintain between name changes", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, + "share.Link": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloads": { + "type": "integer" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "expire": { + "type": "integer" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hash": { + "type": "string" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "password_hash": { + "type": "string" + }, + "path": { + "type": "string" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "source": { + "description": "backend source is path to maintain between name changes", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "token": { + "description": "Token is a random value that will only be set when PasswordHash is set. It is\nURL-Safe and is used to download links in password-protected shares via a\nquery arg.", + "type": "string" + }, + "userID": { + "type": "integer" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, + "users.AuthToken": { + "type": "object", + "properties": { + "Permissions": { + "$ref": "#/definitions/users.Permissions" + }, + "belongsTo": { + "type": "integer" + }, + "createdAt": { + "type": "integer" + }, + "expiresAt": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "users.FileLoading": { + "type": "object", + "properties": { + "clearAll": { + "type": "boolean" + }, + "maxConcurrentUpload": { + "type": "integer" + }, + "uploadChunkSizeMb": { + "type": "integer" + } + } + }, + "users.LoginMethod": { + "type": "string", + "enum": [ + "password", + "proxy", + "oidc" + ], + "x-enum-varnames": [ + "LoginMethodPassword", + "LoginMethodProxy", + "LoginMethodOidc" + ] + }, + "users.Permissions": { + "type": "object", + "properties": { + "admin": { + "description": "allow admin access", + "type": "boolean" + }, + "api": { + "description": "allow api access", + "type": "boolean" + }, + "create": { + "description": "allow creating or uploading files", + "type": "boolean" + }, + "delete": { + "description": "allow deleting files", + "type": "boolean" + }, + "download": { + "description": "allow downloading files", + "type": "boolean" + }, + "modify": { + "description": "allow modifying files", + "type": "boolean" + }, + "realtime": { + "description": "allow realtime updates", + "type": "boolean" + }, + "share": { + "description": "allow sharing files", + "type": "boolean" + } + } + }, + "users.Preview": { + "type": "object", + "properties": { + "autoplayMedia": { + "description": "autoplay media files in preview", + "type": "boolean" + }, + "defaultMediaPlayer": { + "description": "disable html5 media player and use the default media player", + "type": "boolean" + }, + "disableHideSidebar": { + "description": "disable the hide sidebar preview for previews and editors", + "type": "boolean" + }, + "folder": { + "description": "show thumbnail preview image for folder files", + "type": "boolean" + }, + "highQuality": { + "description": "generate high quality thumbnail preview images", + "type": "boolean" + }, + "image": { + "description": "show thumbnail preview image for image files", + "type": "boolean" + }, + "motionVideoPreview": { + "description": "show multiple frames for videos in thumbnail preview when hovering", + "type": "boolean" + }, + "office": { + "description": "show thumbnail preview image for office files", + "type": "boolean" + }, + "popup": { + "description": "show larger popup preview when hovering over thumbnail", + "type": "boolean" + }, + "video": { + "description": "show thumbnail preview image for video files", + "type": "boolean" + } + } + }, + "users.SidebarLink": { + "type": "object", + "properties": { + "category": { + "description": "Category type: \"source\", \"tool\", or \"custom\"", + "type": "string" + }, + "icon": { + "description": "Material icon name", + "type": "string" + }, + "name": { + "description": "Display name of the link", + "type": "string" + }, + "target": { + "description": "Target path/URL for the link", + "type": "string" + } + } + }, + "users.Sorting": { + "type": "object", + "properties": { + "asc": { + "type": "boolean" + }, + "by": { + "type": "string" + } + } + }, + "users.SourceScope": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "scope": { + "type": "string" + } + } + }, + "users.User": { + "type": "object", + "properties": { + "apiKeys": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/users.AuthToken" + } + }, + "customTheme": { + "description": "Name of theme to use chosen from custom themes config.", + "type": "string" + }, + "darkMode": { + "description": "should dark mode be enabled", + "type": "boolean" + }, + "dateFormat": { + "description": "when false, the date is relative, when true, the date is an exact timestamp", + "type": "boolean" + }, + "debugOffice": { + "description": "debug onlyoffice editor", + "type": "boolean" + }, + "defaultLandingPage": { + "description": "default landing page to use: eg. /files/mysource/mysubpath, /settings, etc.", + "type": "string" + }, + "deleteWithoutConfirming": { + "description": "delete files without confirmation", + "type": "boolean" + }, + "disableOfficePreviewExt": { + "description": "deprecated", + "type": "string" + }, + "disableOnlyOfficeExt": { + "description": "deprecated", + "type": "string" + }, + "disablePreviewExt": { + "description": "space separated list of file extensions to disable preview for", + "type": "string" + }, + "disableQuickToggles": { + "description": "disable the quick toggles in the sidebar", + "type": "boolean" + }, + "disableSearchOptions": { + "description": "disable the search options in the search bar", + "type": "boolean" + }, + "disableSettings": { + "type": "boolean" + }, + "disableUpdateNotifications": { + "description": "disable update notifications", + "type": "boolean" + }, + "disableViewingExt": { + "description": "space separated list of file extensions to disable viewing for", + "type": "string" + }, + "editorQuickSave": { + "description": "show quick save button in editor", + "type": "boolean" + }, + "fileLoading": { + "description": "upload and download settings", + "allOf": [ + { + "$ref": "#/definitions/users.FileLoading" + } + ] + }, + "gallerySize": { + "description": "0-9 - the size of the gallery thumbnails", + "type": "integer" + }, + "hideSidebarFileActions": { + "description": "hide the file actions in the sidebar", + "type": "boolean" + }, + "id": { + "type": "integer" + }, + "locale": { + "description": "language to use: eg. de, en, or fr", + "type": "string" + }, + "lockPassword": { + "type": "boolean" + }, + "loginMethod": { + "$ref": "#/definitions/users.LoginMethod" + }, + "otpEnabled": { + "description": "true if TOTP is enabled, false otherwise", + "type": "boolean" + }, + "password": { + "type": "string" + }, + "perm": { + "description": "legacy for migration purposes... og filebrowser has perm attribute", + "allOf": [ + { + "$ref": "#/definitions/users.Permissions" + } + ] + }, + "permissions": { + "$ref": "#/definitions/users.Permissions" + }, + "preview": { + "$ref": "#/definitions/users.Preview" + }, + "quickDownload": { + "description": "show icon to download in one click", + "type": "boolean" + }, + "scope": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "$ref": "#/definitions/users.SourceScope" + } + }, + "showFirstLogin": { + "type": "boolean" + }, + "showHidden": { + "description": "show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files", + "type": "boolean" + }, + "showSelectMultiple": { + "description": "show select multiple files on desktop", + "type": "boolean" + }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, + "singleClick": { + "description": "open directory on single click, also enables middle click to open in new tab", + "type": "boolean" + }, + "sorting": { + "$ref": "#/definitions/users.Sorting" + }, + "stickySidebar": { + "description": "keep sidebar open when navigating", + "type": "boolean" + }, + "themeColor": { + "description": "theme color to use: eg. #ff0000, or var(--red), var(--purple), etc", + "type": "string" + }, + "totpNonce": { + "type": "string" + }, + "totpSecret": { + "type": "string" + }, + "username": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "viewMode": { + "description": "view mode to use: eg. normal, list, grid, or compact", + "type": "string" + } + } + } + } +}` + +// SwaggerInfo holds exported Swagger Info so clients can modify it +var SwaggerInfo = &swag.Spec{ + Version: "", + Host: "", + BasePath: "", + Schemes: []string{}, + Title: "", + Description: "", + InfoInstanceName: "swagger", + SwaggerTemplate: docTemplate, + LeftDelim: "{{", + RightDelim: "}}", +} + +func init() { + swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) +} diff --git a/backend/docs/swagger.json b/backend/docs/swagger.json new file mode 100644 index 0000000000..2c9d1bd445 --- /dev/null +++ b/backend/docs/swagger.json @@ -0,0 +1,4617 @@ +{ + "swagger": "2.0", + "info": { + "contact": {} + }, + "paths": { + "/api/access": { + "get": { + "description": "Lists access rules. Can be filtered by source, path, user, or group. Can also be grouped by user or group.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "List access rules", + "parameters": [ + { + "type": "string", + "description": "Source name (e.g. 'default')", + "name": "source", + "in": "query" + }, + { + "type": "string", + "description": "Index path (e.g. /secret)", + "name": "path", + "in": "query" + }, + { + "type": "string", + "description": "Username to filter rules for", + "name": "user", + "in": "query" + }, + { + "type": "string", + "description": "Group name to filter rules for", + "name": "group", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Varies based on query. Can be access.FrontendAccessRule (when source and path specified), []access.PrincipalRule, map[string][]access.PrincipalRule, or map[string]access.FrontendAccessRule", + "schema": { + "type": "object" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Add or update an access rule for a sourcePath and indexPath.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Add or update access rule", + "parameters": [ + { + "type": "string", + "description": "Source path prefix (e.g. mnt/storage)", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Index path (e.g. /secret)", + "name": "path", + "in": "query", + "required": true + }, + { + "description": "Rule details: allow (true/false), ruleCategory (user/group), value (username or groupname)", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "allow": { + "type": "boolean" + }, + "ruleCategory": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Rule added or updated", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Delete a user or group from an allow or deny list for a sourcePath and indexPath. When cascade=true, removes the user/group from the specified path and all subpaths.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Delete access rule entry", + "parameters": [ + { + "type": "string", + "description": "Source path prefix (e.g. mnt/storage)", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Index path (e.g. /secret)", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Rule type (allow or deny)", + "name": "ruleType", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Rule category (user or group)", + "name": "ruleCategory", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Username or groupname to remove", + "name": "value", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "Cascade delete to all subpaths (default: false)", + "name": "cascade", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Rule entry deleted", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "patch": { + "description": "Updates the path for a specific access rule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Update access rule path", + "parameters": [ + { + "description": "Source, old path, and new path", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "newPath": { + "type": "string" + }, + "oldPath": { + "type": "string" + }, + "source": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Rule path updated successfully", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request - missing or invalid parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/access/group": { + "post": { + "description": "Adds a user to a group.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Add a user to a group", + "parameters": [ + { + "type": "string", + "description": "Group name", + "name": "group", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "User name", + "name": "user", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "User added to group successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Removes a user from a group.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Remove a user from a group", + "parameters": [ + { + "type": "string", + "description": "Group name", + "name": "group", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "User name", + "name": "user", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "User removed from group successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/access/groups": { + "get": { + "description": "Returns a list of all groups or the groups for a specific user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Get all groups or groups for a user", + "parameters": [ + { + "type": "string", + "description": "User name", + "name": "user", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Object containing a list of groups", + "schema": { + "$ref": "#/definitions/http.GroupListResponse" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/login": { + "post": { + "description": "Authenticate a user with a username and password.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Auth" + ], + "summary": "User login", + "responses": { + "200": { + "description": "JWT token for authentication", + "schema": { + "type": "string" + } + }, + "403": { + "description": "Forbidden - authentication failed", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/logout": { + "post": { + "description": "Returns a logout URL for the frontend to redirect to.", + "produces": [ + "application/json" + ], + "tags": [ + "Auth" + ], + "summary": "User Logout", + "parameters": [ + { + "type": "string", + "description": "JWT token", + "name": "auth", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"logoutUrl\": \"http://...\"}", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/oidc/callback": { + "get": { + "description": "Handles OIDC login callback.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "OIDC" + ], + "summary": "OIDC callback", + "parameters": [ + { + "type": "string", + "description": "OIDC code", + "name": "code", + "in": "query" + }, + { + "type": "string", + "description": "OIDC state", + "name": "state", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OIDC callback result", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/oidc/login": { + "get": { + "description": "Initiates OIDC login flow.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "OIDC" + ], + "summary": "OIDC login", + "responses": { + "302": { + "description": "Redirect to OIDC provider", + "schema": { + "type": "string" + } + } + } + } + }, + "/api/auth/otp/generate": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Generates a new TOTP secret and QR code for the authenticated user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "OTP" + ], + "summary": "Generate OTP", + "responses": { + "200": { + "description": "OTP secret generated successfully.", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/otp/verify": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Verifies the provided TOTP code for the authenticated user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "OTP" + ], + "summary": "Verify OTP", + "parameters": [ + { + "type": "string", + "description": "TOTP code to verify", + "name": "code", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "OTP token is valid.", + "schema": { + "$ref": "#/definitions/http.HttpResponse" + } + }, + "401": { + "description": "Unauthorized - invalid TOTP token", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/signup": { + "post": { + "description": "Register a new user account with a username and password.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Auth" + ], + "summary": "User signup", + "responses": { + "201": { + "description": "User created successfully", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad request - invalid input", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "405": { + "description": "Method not allowed - signup is disabled", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "Conflict - user already exists", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/token": { + "put": { + "description": "Create an API key with specified name, duration, and permissions.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "API Keys" + ], + "summary": "Create API key", + "parameters": [ + { + "type": "string", + "description": "Name of the API key", + "name": "name", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Duration of the API key in days", + "name": "days", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Permissions for the API key (comma-separated)", + "name": "permissions", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Token created successfully, response contains json object with token key", + "schema": { + "$ref": "#/definitions/http.HttpResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "Conflict", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Delete an API key with specified name.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "API Keys" + ], + "summary": "Delete API key", + "parameters": [ + { + "type": "string", + "description": "Name of the API key to delete", + "name": "name", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "API key deleted successfully", + "schema": { + "$ref": "#/definitions/http.HttpResponse" + } + }, + "404": { + "description": "Not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/auth/tokens": { + "get": { + "description": "List all API keys or retrieve details for a specific key.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "API Keys" + ], + "summary": "List API keys", + "parameters": [ + { + "type": "string", + "description": "Name of the API to retrieve details", + "name": "name", + "in": "query" + } + ], + "responses": { + "200": { + "description": "List of API keys or specific key details", + "schema": { + "$ref": "#/definitions/http.AuthTokenMin" + } + }, + "404": { + "description": "Not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/jobs/{action}/{target}": { + "get": { + "description": "Returns job info for the user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Jobs" + ], + "summary": "Get jobs info", + "parameters": [ + { + "type": "string", + "description": "Job action", + "name": "action", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Job target", + "name": "target", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Job info", + "schema": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/indexing.ReducedIndex" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/media/subtitles": { + "get": { + "description": "Extracts embedded subtitle content from video files by stream index and returns raw WebVTT content", + "consumes": [ + "application/json" + ], + "produces": [ + "text/vtt" + ], + "tags": [ + "Subtitles" + ], + "summary": "Extract embedded subtitles", + "parameters": [ + { + "type": "string", + "description": "Index path to the video file", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "Stream index for embedded subtitle extraction, defaults to 0", + "name": "index", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Raw WebVTT subtitle content", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/preview": { + "get": { + "description": "Returns a preview image based on the requested path and size.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Get image preview", + "parameters": [ + { + "type": "string", + "description": "File path of the image to preview", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Preview size ('small' or 'large'). Default is based on server config.", + "name": "size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Preview image content", + "schema": { + "type": "file" + } + }, + "202": { + "description": "Download permissions required", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Invalid request path", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "File not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "415": { + "description": "Unsupported file type for preview", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Preview generation not implemented", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/raw": { + "get": { + "description": "Returns the raw content of a file, multiple files, or a directory. Supports downloading files as archives in various formats.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Get raw content of a file, multiple files, or directory", + "parameters": [ + { + "type": "string", + "description": "a list of files in the following format 'source::filename' and separated by '||' with additional items in the list. (required)", + "name": "files", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "If true, sets 'Content-Disposition' to 'inline'. Otherwise, defaults to 'attachment'.", + "name": "inline", + "in": "query" + }, + { + "type": "string", + "description": "Compression algorithm for archiving multiple files or directories. Options: 'zip' and 'tar.gz'. Default is 'zip'.", + "name": "algo", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Raw file or directory content, or archive for multiple files", + "schema": { + "type": "file" + } + }, + "202": { + "description": "Modify permissions required", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Invalid request path", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "File or directory not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/renew": { + "post": { + "description": "Refresh the authentication token for a logged-in user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Auth" + ], + "summary": "Renew authentication token", + "responses": { + "200": { + "description": "New JWT token generated", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized - invalid token", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/resources": { + "get": { + "description": "Returns metadata and optionally file contents for a specified resource path.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Get resource information", + "parameters": [ + { + "type": "string", + "description": "Path to the resource", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source, default is used if not provided", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Include file content if true", + "name": "content", + "in": "query" + }, + { + "type": "string", + "description": "Optional checksum validation", + "name": "checksum", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Resource metadata", + "schema": { + "$ref": "#/definitions/iteminfo.FileInfo" + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "put": { + "description": "Updates an existing file at the specified path.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Update a file resource", + "parameters": [ + { + "type": "string", + "description": "Destination path where to place the files inside the destination source", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source, default is used if not provided", + "name": "source", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Resource updated successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "405": { + "description": "Method not allowed", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Creates a new resource or uploads a file at the specified path. Supports file uploads and directory creation.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Create or upload a resource", + "parameters": [ + { + "type": "string", + "description": "url encoded destination path where to place the files inside the destination source, a directory must end in / to create a directory", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Name for the desired filebrowser destination source name, default is used if not provided", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "Override existing file if true", + "name": "override", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Resource created successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "Conflict - Resource already exists", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Deletes a resource located at the specified path.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Delete a resource", + "parameters": [ + { + "type": "string", + "description": "Path to the resource", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source, default is used if not provided", + "name": "source", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "patch": { + "description": "Moves or renames a resource to a new destination.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Resources" + ], + "summary": "Patch resource (move/rename)", + "parameters": [ + { + "type": "string", + "description": "Path from resource in \u003csource_name\u003e::\u003cindex_path\u003e format", + "name": "from", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Destination path for the resource", + "name": "destination", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Action to perform (copy, rename)", + "name": "action", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "Overwrite if destination exists", + "name": "overwrite", + "in": "query" + }, + { + "type": "boolean", + "description": "Rename if destination exists", + "name": "rename", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Resource moved/renamed successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Resource not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "Conflict - Destination exists", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/search": { + "get": { + "description": "Searches for files matching the provided query. Returns file paths and metadata based on the user's session and scope.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Search" + ], + "summary": "Search Files", + "parameters": [ + { + "type": "string", + "description": "Search query", + "name": "query", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the desired source", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "path within user scope to search, for example '/first/second' to search within the second directory only", + "name": "scope", + "in": "query" + }, + { + "type": "string", + "description": "User session ID, add unique value to prevent collisions", + "name": "SessionId", + "in": "header" + } + ], + "responses": { + "200": { + "description": "List of search results", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/indexing.SearchResult" + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/settings": { + "get": { + "description": "Returns the current configuration settings for signup, user directories, rules, frontend.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Settings" + ], + "summary": "Get system settings", + "parameters": [ + { + "type": "string", + "description": "Property to retrieve: `userDefaults`, `frontend`, `auth`, `server`, `sources`", + "name": "property", + "in": "query" + } + ], + "responses": { + "200": { + "description": "System settings data", + "schema": { + "$ref": "#/definitions/settings.Settings" + } + } + } + } + }, + "/api/settings/config": { + "get": { + "description": "Returns the current running configuration settings as YAML format with optional comments and filtering.", + "consumes": [ + "application/json" + ], + "produces": [ + "text/plain" + ], + "tags": [ + "Settings" + ], + "summary": "Get system settings as YAML", + "parameters": [ + { + "type": "boolean", + "description": "Show all values (true) or only non-default values (false, default)", + "name": "full", + "in": "query" + }, + { + "type": "boolean", + "description": "Include comments in YAML (true) or plain YAML (false, default)", + "name": "comments", + "in": "query" + } + ], + "responses": { + "200": { + "description": "System settings in YAML format", + "schema": { + "type": "string" + } + } + } + } + }, + "/api/share": { + "get": { + "description": "Retrieves all share links associated with a specific resource path for the current user.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Get share links by path", + "parameters": [ + { + "type": "string", + "description": "Resource path for which to retrieve share links", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for share links", + "name": "source", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "List of share links for the specified path", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/share.Link" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Creates a new share link with an optional expiration time and password protection.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Create a share link", + "parameters": [ + { + "description": "Share creation parameters", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/share.CreateBody" + } + } + ], + "responses": { + "200": { + "description": "Created share link", + "schema": { + "$ref": "#/definitions/share.Link" + } + }, + "400": { + "description": "Bad request - failed to decode body", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "patch": { + "description": "Updates the path for a specific share link identified by hash", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Update share link path", + "parameters": [ + { + "description": "Hash and new path", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Updated share link", + "schema": { + "$ref": "#/definitions/http.ShareResponse" + } + }, + "400": { + "description": "Bad request - missing or invalid parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/share/direct": { + "get": { + "description": "Creates a direct download link for a specific file with configurable duration, download count, and speed limits. If a share already exists with matching parameters, the existing share will be reused.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Create direct download link", + "parameters": [ + { + "type": "string", + "description": "File path to create download link for", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Source name for the file", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Duration in minutes for link validity (default: 60)", + "name": "duration", + "in": "query" + }, + { + "type": "string", + "description": "Maximum number of downloads allowed (default: unlimited)", + "name": "count", + "in": "query" + }, + { + "type": "string", + "description": "Download speed limit in kbps (default: unlimited)", + "name": "speed", + "in": "query" + } + ], + "responses": { + "201": { + "description": "Direct download link created", + "schema": { + "$ref": "#/definitions/http.DirectDownloadResponse" + } + }, + "400": { + "description": "Bad request - invalid parameters or path is not a file", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Forbidden - access denied", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/shares": { + "get": { + "description": "Returns a list of share links for the current user, or all links if the user is an admin.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "List share links", + "responses": { + "200": { + "description": "List of share links", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/share.Link" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Deletes a share link specified by its hash.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Delete a share link", + "parameters": [ + { + "type": "string", + "description": "Hash of the share link to delete", + "name": "hash", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Share link deleted successfully" + }, + "400": { + "description": "Bad request - missing or invalid hash", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/api/users": { + "get": { + "description": "Returns a user's details based on their ID, or all users if no id is provided.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Users" + ], + "summary": "Retrieve a user by ID", + "parameters": [ + { + "type": "string", + "description": "User ID or 'self'", + "name": "id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "User details or list of users", + "schema": { + "$ref": "#/definitions/users.User" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Not Found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "put": { + "description": "Updates the details of a user identified by ID.", + "consumes": [ + "application/json" + ], + "tags": [ + "Users" + ], + "summary": "Update a user's details", + "parameters": [ + { + "type": "string", + "description": "user ID to update", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "usename to update", + "name": "id", + "in": "query" + }, + { + "description": "User data to update", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/users.User" + } + } + ], + "responses": { + "204": { + "description": "No Content - User updated successfully" + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Adds a new user to the system.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Users" + ], + "summary": "Create a new user", + "parameters": [ + { + "description": "User data to create a new user", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/users.User" + } + } + ], + "responses": { + "201": { + "description": "Created user", + "schema": { + "$ref": "#/definitions/users.User" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "delete": { + "description": "Deletes a user identified by their ID.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Users" + ], + "summary": "Delete a user by ID", + "parameters": [ + { + "type": "string", + "description": "User ID", + "name": "id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "User deleted successfully" + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/health": { + "get": { + "description": "Returns the health status of the API.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Health" + ], + "summary": "Health Check", + "responses": { + "200": { + "description": "successful health check response", + "schema": { + "$ref": "#/definitions/http.HttpResponse" + } + } + } + } + }, + "/public/api/preview": { + "get": { + "description": "Returns a preview (thumbnail) for images or videos accessible via a public share. Preview generation can be disabled globally or per-share. Not available for upload-only shares.", + "consumes": [ + "application/json" + ], + "produces": [ + "image/jpeg" + ], + "tags": [ + "Public Shares" + ], + "summary": "Get image/video preview from a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "File path within the share to preview", + "name": "path", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Preview size: 'small' or 'large'. Default is based on server config.", + "name": "size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Preview image content (JPEG)", + "schema": { + "type": "file" + } + }, + "403": { + "description": "Share unavailable or access denied", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "File not found or preview not available", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Previews disabled globally, for this share, or for upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/public/api/raw": { + "get": { + "description": "Downloads raw content from a public share. Supports single files, multiple files, or directories as archives. Enforces download limits (global or per-user) and blocks anonymous users when per-user limits are enabled.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/octet-stream" + ], + "tags": [ + "Public Shares" + ], + "summary": "Download files from a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Files to download in format: 'source::path||source::path'. Example: '/file1||/folder/file2'", + "name": "files", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "If true, sets 'Content-Disposition' to 'inline'. Otherwise, defaults to 'attachment'.", + "name": "inline", + "in": "query" + }, + { + "type": "string", + "description": "Compression algorithm for archiving multiple files or directories. Options: 'zip' and 'tar.gz'. Default is 'zip'.", + "name": "algo", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Raw file or directory content, or archive for multiple files", + "schema": { + "type": "file" + } + }, + "400": { + "description": "Invalid request path or encoding", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Download limit reached, anonymous access blocked, or share unavailable", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found or file not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Downloads disabled for upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/public/api/resources": { + "put": { + "description": "Updates the content of a file in a public share.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Public Shares" + ], + "summary": "Update a file in a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Path to the file to update", + "name": "path", + "in": "query", + "required": true + }, + { + "description": "New content for the file", + "name": "content", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "File updated successfully", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Invalid request or parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Share unavailable or update not allowed", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found or file not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "post": { + "description": "Handles file and directory uploads to an upload-only public share. Supports chunked uploads, conflict resolution (override), and directory creation.", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Public Shares" + ], + "summary": "Upload files to a public upload share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Target path within the share to upload to. Must be relative to share root.", + "name": "targetPath", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "If true, overwrite existing files/folders. Defaults to false.", + "name": "override", + "in": "query" + }, + { + "type": "string", + "description": "Upload action: 'override' to replace files, 'rename' to auto-rename", + "name": "action", + "in": "query" + }, + { + "type": "file", + "description": "File to upload", + "name": "file", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "Upload successful", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Invalid request or parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "403": { + "description": "Share unavailable or upload not allowed", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "409": { + "description": "File or directory already exists (conflict)", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error during upload", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Uploading disabled for non-upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "/public/api/share": { + "get": { + "description": "Returns metadata for files or directories accessible via a public share link. Browsing is disabled for upload-only shares.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Public Shares" + ], + "summary": "Get file/directory information from a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Path within the share to retrieve information for. Defaults to share root.", + "name": "path", + "in": "query" + } + ], + "responses": { + "200": { + "description": "File or directory metadata", + "schema": { + "$ref": "#/definitions/iteminfo.FileInfo" + } + }, + "403": { + "description": "Share unavailable or access denied", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found or file not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Browsing disabled for upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + } + }, + "definitions": { + "http.AuthTokenMin": { + "type": "object", + "properties": { + "Permissions": { + "$ref": "#/definitions/users.Permissions" + }, + "created": { + "type": "integer" + }, + "expires": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "http.DirectDownloadResponse": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "status": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "http.GroupListResponse": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "http.HttpResponse": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "token": { + "type": "string" + } + } + }, + "http.ShareResponse": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloads": { + "type": "integer" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "expire": { + "type": "integer" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hash": { + "type": "string" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "password_hash": { + "type": "string" + }, + "path": { + "type": "string" + }, + "pathExists": { + "type": "boolean" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "source": { + "description": "Override embedded field to show source name", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "token": { + "description": "Token is a random value that will only be set when PasswordHash is set. It is\nURL-Safe and is used to download links in password-protected shares via a\nquery arg.", + "type": "string" + }, + "userID": { + "type": "integer" + }, + "username": { + "type": "string" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, + "indexing.IndexStatus": { + "type": "string", + "enum": [ + "ready", + "indexing", + "unavailable" + ], + "x-enum-varnames": [ + "READY", + "INDEXING", + "UNAVAILABLE" + ] + }, + "indexing.ReducedIndex": { + "type": "object", + "properties": { + "assessment": { + "type": "string" + }, + "fullScanDurationSeconds": { + "type": "integer" + }, + "lastIndexedUnixTime": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "numDeleted": { + "type": "integer" + }, + "numDirs": { + "type": "integer" + }, + "numFiles": { + "type": "integer" + }, + "quickScanDurationSeconds": { + "type": "integer" + }, + "scanners": { + "type": "array", + "items": { + "$ref": "#/definitions/indexing.ScannerInfo" + } + }, + "status": { + "$ref": "#/definitions/indexing.IndexStatus" + }, + "total": { + "type": "integer" + }, + "used": { + "type": "integer" + } + } + }, + "indexing.ScannerInfo": { + "type": "object", + "properties": { + "assessment": { + "type": "string" + }, + "currentSchedule": { + "type": "integer" + }, + "fullScanTime": { + "type": "integer" + }, + "isRoot": { + "type": "boolean" + }, + "lastScanned": { + "type": "string" + }, + "numDirs": { + "type": "integer" + }, + "numFiles": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "quickScanTime": { + "type": "integer" + } + } + }, + "indexing.SearchResult": { + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + } + } + }, + "iteminfo.ExtendedItemInfo": { + "type": "object", + "properties": { + "hasPreview": { + "description": "whether the file has a thumbnail preview", + "type": "boolean" + }, + "hidden": { + "description": "whether the file is hidden", + "type": "boolean" + }, + "metadata": { + "description": "optional media metadata (audio/video only)", + "allOf": [ + { + "$ref": "#/definitions/iteminfo.MediaMetadata" + } + ] + }, + "modified": { + "description": "modification time", + "type": "string" + }, + "name": { + "description": "name of the file", + "type": "string" + }, + "size": { + "description": "length in bytes for regular files", + "type": "integer" + }, + "type": { + "description": "type of the file, either \"directory\" or a file mimetype", + "type": "string" + } + } + }, + "iteminfo.FileInfo": { + "type": "object", + "properties": { + "files": { + "description": "files in the directory with optional metadata", + "type": "array", + "items": { + "$ref": "#/definitions/iteminfo.ExtendedItemInfo" + } + }, + "folders": { + "description": "folders in the directory", + "type": "array", + "items": { + "$ref": "#/definitions/iteminfo.ItemInfo" + } + }, + "hasPreview": { + "description": "whether the file has a thumbnail preview", + "type": "boolean" + }, + "hidden": { + "description": "whether the file is hidden", + "type": "boolean" + }, + "modified": { + "description": "modification time", + "type": "string" + }, + "name": { + "description": "name of the file", + "type": "string" + }, + "path": { + "description": "path scoped to the associated index", + "type": "string" + }, + "size": { + "description": "length in bytes for regular files", + "type": "integer" + }, + "type": { + "description": "type of the file, either \"directory\" or a file mimetype", + "type": "string" + } + } + }, + "iteminfo.ItemInfo": { + "type": "object", + "properties": { + "hasPreview": { + "description": "whether the file has a thumbnail preview", + "type": "boolean" + }, + "hidden": { + "description": "whether the file is hidden", + "type": "boolean" + }, + "modified": { + "description": "modification time", + "type": "string" + }, + "name": { + "description": "name of the file", + "type": "string" + }, + "size": { + "description": "length in bytes for regular files", + "type": "integer" + }, + "type": { + "description": "type of the file, either \"directory\" or a file mimetype", + "type": "string" + } + } + }, + "iteminfo.MediaMetadata": { + "type": "object", + "properties": { + "album": { + "description": "album name", + "type": "string" + }, + "albumArt": { + "description": "base64 encoded album art / video thumbnail", + "type": "string" + }, + "artist": { + "description": "track artist", + "type": "string" + }, + "duration": { + "description": "duration in seconds", + "type": "integer" + }, + "genre": { + "description": "music/video genre", + "type": "string" + }, + "title": { + "description": "track/video title", + "type": "string" + }, + "track": { + "description": "track number", + "type": "integer" + }, + "year": { + "description": "release year", + "type": "integer" + } + } + }, + "settings.Auth": { + "type": "object", + "properties": { + "adminPassword": { + "description": "secret: the password of the admin user. If not set, the default is \"admin\".", + "type": "string" + }, + "adminUsername": { + "description": "secret: the username of the admin user. If not set, the default is \"admin\".", + "type": "string" + }, + "key": { + "description": "secret: the key used to sign the JWT tokens. If not set, a random key will be generated.", + "type": "string" + }, + "methods": { + "$ref": "#/definitions/settings.LoginMethods" + }, + "tokenExpirationHours": { + "description": "time in hours each web UI session token is valid for. Default is 2 hours.", + "type": "integer" + }, + "totpSecret": { + "description": "secret: secret used to encrypt TOTP secrets", + "type": "string" + } + } + }, + "settings.ConditionalFilter": { + "type": "object", + "properties": { + "hidden": { + "description": "deprecated: use ignoreHidden instead to exclude hidden files and folders.", + "type": "boolean" + }, + "ignoreHidden": { + "description": "exclude hidden files and folders.", + "type": "boolean" + }, + "ignoreZeroSizeFolders": { + "description": "ignore folders with 0 size", + "type": "boolean" + }, + "rules": { + "description": "list of item rules to apply to specific paths", + "type": "array", + "items": { + "$ref": "#/definitions/settings.ConditionalIndexConfig" + } + } + } + }, + "settings.ConditionalIndexConfig": { + "type": "object", + "properties": { + "fileEndsWith": { + "description": "(global) exclude files that end with these suffixes. Eg. \".jpg\" or \".txt\"", + "type": "string" + }, + "fileName": { + "description": "(global) exclude files that match these names. Eg. \"file.txt\" or \"test.csv\"", + "type": "string" + }, + "fileNames": { + "description": "deprecated: exclude files that match these names. Eg. \"file.txt\" or \"test.csv\"", + "type": "string" + }, + "filePath": { + "description": "(global) exclude files that match this path. Eg. \"/path/to/file.txt\" or \"/path/to/file.txt/subfile.txt\"", + "type": "string" + }, + "fileStartsWith": { + "description": "(global) exclude files that start with these prefixes. Eg. \"archive-\" or \"backup-\"", + "type": "string" + }, + "folderEndsWith": { + "description": "(global) exclude folders that end with these suffixes. Eg. \".thumbnails\" or \".git\"", + "type": "string" + }, + "folderName": { + "description": "(global) exclude folders that match these names. Eg. \"folder\" or \"subfolder\"", + "type": "string" + }, + "folderNames": { + "description": "deprecated: exclude folders that match these names. Eg. \"folder\" or \"subfolder\"", + "type": "string" + }, + "folderPath": { + "description": "(global) exclude folders that match this path. Eg. \"/path/to/folder\" or \"/path/to/folder/subfolder\"", + "type": "string" + }, + "folderStartsWith": { + "description": "(global) exclude folders that start with these prefixes. Eg. \"archive-\" or \"backup-\"", + "type": "string" + }, + "includeRootItem": { + "description": "include only these items at root folder level", + "type": "string" + }, + "neverWatchPath": { + "description": "index the folder in the first pass to get included in search, but never re-indexed.", + "type": "string" + }, + "viewable": { + "description": "Enable viewing in UI but exclude from indexing", + "type": "boolean" + } + } + }, + "settings.CustomTheme": { + "type": "object", + "properties": { + "css": { + "description": "The css file path and filename to use for the theme.", + "type": "string" + }, + "description": { + "description": "The description of the theme to display in the UI.", + "type": "string" + } + } + }, + "settings.ExternalLink": { + "type": "object", + "required": [ + "text", + "url" + ], + "properties": { + "text": { + "description": "the text to display on the link", + "type": "string" + }, + "title": { + "description": "the title to display on hover", + "type": "string" + }, + "url": { + "description": "the url to link to", + "type": "string" + } + } + }, + "settings.FfmpegConvert": { + "type": "object", + "properties": { + "imagePreview": { + "description": "supported image preview formats. defaults to false for all types unless explicitly enabled.", + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "videoPreview": { + "description": "supported video preview formats. defaults to true for all types unless explicitly disabled.", + "type": "object", + "additionalProperties": { + "type": "boolean" + } + } + } + }, + "settings.Filesystem": { + "type": "object", + "required": [ + "createDirectoryPermission", + "createFilePermission" + ], + "properties": { + "createDirectoryPermission": { + "description": "Unix permissions like 755, 2755, 1777 (default: 755)", + "type": "string" + }, + "createFilePermission": { + "description": "Unix permissions like 644, 755, 2755 (default: 644)", + "type": "string" + } + } + }, + "settings.Frontend": { + "type": "object", + "properties": { + "description": { + "description": "description that shows up in html head meta description", + "type": "string" + }, + "disableDefaultLinks": { + "description": "disable default links in the sidebar", + "type": "boolean" + }, + "disableNavButtons": { + "description": "disable the nav buttons in the sidebar", + "type": "boolean" + }, + "disableUsedPercentage": { + "description": "disable used percentage for the sources in the sidebar", + "type": "boolean" + }, + "externalLinks": { + "type": "array", + "items": { + "$ref": "#/definitions/settings.ExternalLink" + } + }, + "favicon": { + "description": "path to a favicon to use for the frontend", + "type": "string" + }, + "loginIcon": { + "description": "path to an image file for the login page icon", + "type": "string" + }, + "name": { + "description": "display name", + "type": "string" + }, + "styling": { + "$ref": "#/definitions/settings.StylingConfig" + } + } + }, + "settings.Integrations": { + "type": "object", + "properties": { + "media": { + "$ref": "#/definitions/settings.Media" + }, + "office": { + "$ref": "#/definitions/settings.OnlyOffice" + } + } + }, + "settings.LogConfig": { + "type": "object", + "properties": { + "apiLevels": { + "description": "separated list of log levels to enable for the API. (eg. \"info|warning|error\")", + "type": "string" + }, + "json": { + "description": "output in json format", + "type": "boolean" + }, + "levels": { + "description": "separated list of log levels to enable. (eg. \"info|warning|error|debug\")", + "type": "string" + }, + "noColors": { + "description": "disable colors in the output", + "type": "boolean" + }, + "output": { + "description": "output location. (eg. \"stdout\" or \"path/to/file.log\")", + "type": "string" + }, + "utc": { + "description": "use UTC time in the output instead of local time", + "type": "boolean" + } + } + }, + "settings.LoginMethods": { + "type": "object", + "properties": { + "noauth": { + "description": "if set to true, overrides all other auth methods and disables authentication", + "type": "boolean" + }, + "oidc": { + "$ref": "#/definitions/settings.OidcConfig" + }, + "password": { + "$ref": "#/definitions/settings.PasswordAuthConfig" + }, + "proxy": { + "$ref": "#/definitions/settings.ProxyAuthConfig" + } + } + }, + "settings.Media": { + "type": "object", + "properties": { + "convert": { + "description": "config for ffmpeg conversion settings", + "allOf": [ + { + "$ref": "#/definitions/settings.FfmpegConvert" + } + ] + }, + "debug": { + "description": "output ffmpeg stdout for media integration -- careful can produces lots of output!", + "type": "boolean" + }, + "extractEmbeddedSubtitles": { + "description": "extract embedded subtitles from media files", + "type": "boolean" + }, + "ffmpegPath": { + "description": "path to ffmpeg directory with ffmpeg and ffprobe (eg. /usr/local/bin)", + "type": "string" + } + } + }, + "settings.OidcConfig": { + "type": "object", + "properties": { + "adminGroup": { + "description": "if set, users in this group will be granted admin privileges.", + "type": "string" + }, + "clientId": { + "description": "secret: client id of the OIDC application", + "type": "string" + }, + "clientSecret": { + "description": "secret: client secret of the OIDC application", + "type": "string" + }, + "createUser": { + "description": "create user if not exists", + "type": "boolean" + }, + "disableVerifyTLS": { + "description": "disable TLS verification for the OIDC provider. This is insecure and should only be used for testing.", + "type": "boolean" + }, + "enabled": { + "description": "whether to enable OIDC authentication", + "type": "boolean" + }, + "groupsClaim": { + "description": "the JSON field name to read groups from. Default is \"groups\"", + "type": "string" + }, + "issuerUrl": { + "description": "authorization URL of the OIDC provider", + "type": "string" + }, + "logoutRedirectUrl": { + "description": "if provider logout url is provided, filebrowser will also redirect to logout url. Custom logout query params are respected.", + "type": "string" + }, + "scopes": { + "description": "scopes to request from the OIDC provider", + "type": "string" + }, + "userIdentifier": { + "description": "the field value to use as the username. Default is \"preferred_username\", can also be \"email\" or \"username\", or \"phone\"", + "type": "string" + } + } + }, + "settings.OnlyOffice": { + "type": "object", + "required": [ + "secret", + "url" + ], + "properties": { + "internalUrl": { + "description": "An optional internal address that the filebrowser server can use to communicate with the OnlyOffice Document Server, could be useful to bypass proxy.", + "type": "string" + }, + "secret": { + "description": "secret: authentication key for OnlyOffice integration", + "type": "string" + }, + "url": { + "description": "The URL to the OnlyOffice Document Server, needs to be accessible to the user.", + "type": "string" + }, + "viewOnly": { + "description": "view only mode for OnlyOffice", + "type": "boolean" + } + } + }, + "settings.PasswordAuthConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "enforcedOtp": { + "description": "if set to true, TOTP is enforced for all password users users. Otherwise, users can choose to enable TOTP.", + "type": "boolean" + }, + "minLength": { + "description": "minimum pasword length required, default is 5.", + "type": "integer" + }, + "recaptcha": { + "description": "recaptcha config, only used if signup is enabled", + "allOf": [ + { + "$ref": "#/definitions/settings.Recaptcha" + } + ] + }, + "signup": { + "description": "allow signups on login page if enabled -- not secure.", + "type": "boolean" + } + } + }, + "settings.ProxyAuthConfig": { + "type": "object", + "properties": { + "createUser": { + "description": "create user if not exists", + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "header": { + "description": "required header to use for authentication. Security Warning: FileBrowser blindly accepts the header value as username.", + "type": "string" + }, + "logoutRedirectUrl": { + "description": "if provider logout url is provided, filebrowser will also redirect to logout url. Custom logout query params are respected.", + "type": "string" + } + } + }, + "settings.Recaptcha": { + "type": "object", + "required": [ + "host", + "key", + "secret" + ], + "properties": { + "host": { + "type": "string" + }, + "key": { + "type": "string" + }, + "secret": { + "type": "string" + } + } + }, + "settings.Server": { + "type": "object", + "required": [ + "sources" + ], + "properties": { + "baseURL": { + "description": "base URL for the server, the subpath that the server is running on.", + "type": "string" + }, + "cacheDir": { + "description": "path to the cache directory, used for thumbnails and other cached files", + "type": "string" + }, + "database": { + "description": "path to the database file", + "type": "string" + }, + "disablePreviewResize": { + "description": "disable resizing of previews for faster loading over slow connections", + "type": "boolean" + }, + "disablePreviews": { + "description": "disable all previews thumbnails, simple icons will be used", + "type": "boolean" + }, + "disableTypeDetectionByHeader": { + "description": "disable type detection by header, useful if filesystem is slow.", + "type": "boolean" + }, + "disableUpdateCheck": { + "description": "disables backend update check service", + "type": "boolean" + }, + "externalUrl": { + "description": "used by share links if set (eg. http://mydomain.com)", + "type": "string" + }, + "filesystem": { + "description": "filesystem settings", + "allOf": [ + { + "$ref": "#/definitions/settings.Filesystem" + } + ] + }, + "internalUrl": { + "description": "used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080)", + "type": "string" + }, + "logging": { + "type": "array", + "items": { + "$ref": "#/definitions/settings.LogConfig" + } + }, + "maxArchiveSize": { + "description": "max pre-archive combined size of files/folder that are allowed to be archived (in GB)", + "type": "integer" + }, + "minSearchLength": { + "description": "minimum length of search query to begin searching (default: 3)", + "type": "integer" + }, + "numImageProcessors": { + "description": "number of concurrent image processing jobs used to create previews, default is number of cpu cores available.", + "type": "integer" + }, + "port": { + "description": "port to listen on", + "type": "integer" + }, + "socket": { + "description": "socket to listen on", + "type": "string" + }, + "sources": { + "type": "array", + "items": { + "$ref": "#/definitions/settings.Source" + } + }, + "tlsCert": { + "description": "path to TLS cert", + "type": "string" + }, + "tlsKey": { + "description": "path to TLS key", + "type": "string" + } + } + }, + "settings.Settings": { + "type": "object", + "properties": { + "auth": { + "$ref": "#/definitions/settings.Auth" + }, + "frontend": { + "$ref": "#/definitions/settings.Frontend" + }, + "integrations": { + "$ref": "#/definitions/settings.Integrations" + }, + "server": { + "$ref": "#/definitions/settings.Server" + }, + "userDefaults": { + "$ref": "#/definitions/settings.UserDefaults" + } + } + }, + "settings.Source": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "config": { + "$ref": "#/definitions/settings.SourceConfig" + }, + "name": { + "description": "display name", + "type": "string" + }, + "path": { + "description": "file system path. (Can be relative)", + "type": "string" + } + } + }, + "settings.SourceConfig": { + "type": "object", + "properties": { + "conditionals": { + "description": "conditional rules to apply when indexing to include/exclude certain items", + "allOf": [ + { + "$ref": "#/definitions/settings.ConditionalFilter" + } + ] + }, + "createUserDir": { + "description": "create a user directory for each user", + "type": "boolean" + }, + "defaultEnabled": { + "description": "should be added as a default source for new users?", + "type": "boolean" + }, + "defaultUserScope": { + "description": "default \"/\" should match folders under path", + "type": "string" + }, + "denyByDefault": { + "description": "deny access unless an \"allow\" access rule was specifically created.", + "type": "boolean" + }, + "disableIndexing": { + "description": "disable the indexing of this source", + "type": "boolean" + }, + "disabled": { + "description": "disable the source, this is useful so you don't need to remove it from the config file", + "type": "boolean" + }, + "indexingIntervalMinutes": { + "description": "optional manual overide interval in minutes to re-index the source", + "type": "integer" + }, + "private": { + "description": "designate as source as private -- currently just means no sharing permitted.", + "type": "boolean" + } + } + }, + "settings.StylingConfig": { + "type": "object", + "properties": { + "customCSS": { + "description": "if a valid path to a css file is provided, it will be applied for all users. (eg. \"reduce-rounded-corners.css\")", + "type": "string" + }, + "customThemes": { + "description": "A list of custom css files that each user can select to override the default styling. if \"default\" is key name then it will be the default option.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/settings.CustomTheme" + } + }, + "darkBackground": { + "description": "Specify a valid CSS color property value to use as the background color in dark mode", + "type": "string" + }, + "disableEventThemes": { + "description": "disable the event based themes,", + "type": "boolean" + }, + "lightBackground": { + "description": "specify a valid CSS color property value to use as the background color in light mode", + "type": "string" + } + } + }, + "settings.UserDefaults": { + "type": "object", + "properties": { + "customTheme": { + "description": "Name of theme to use chosen from custom themes config.", + "type": "string" + }, + "darkMode": { + "description": "should dark mode be enabled", + "type": "boolean" + }, + "dateFormat": { + "description": "when false, the date is relative, when true, the date is an exact timestamp", + "type": "boolean" + }, + "debugOffice": { + "description": "debug onlyoffice editor", + "type": "boolean" + }, + "defaultLandingPage": { + "description": "default landing page to use if no redirect is specified: eg. /files/mysource/mysubpath, /settings, etc.", + "type": "string" + }, + "deleteWithoutConfirming": { + "description": "delete files without confirmation", + "type": "boolean" + }, + "disableOfficePreviewExt": { + "description": "deprecated: use disablePreviewExt instead", + "type": "string" + }, + "disableOnlyOfficeExt": { + "description": "list of file extensions to disable onlyoffice editor for", + "type": "string" + }, + "disablePreviewExt": { + "description": "space separated list of file extensions to disable preview for", + "type": "string" + }, + "disableQuickToggles": { + "description": "disable the quick toggles in the sidebar", + "type": "boolean" + }, + "disableSearchOptions": { + "description": "disable the search options in the search bar", + "type": "boolean" + }, + "disableSettings": { + "description": "disable the user from viewing the settings page", + "type": "boolean" + }, + "disableUpdateNotifications": { + "description": "disable update notifications banner for admin users", + "type": "boolean" + }, + "disableViewingExt": { + "description": "space separated list of file extensions to disable viewing for", + "type": "string" + }, + "editorQuickSave": { + "description": "show quick save button in editor", + "type": "boolean" + }, + "fileLoading": { + "description": "upload and download settings", + "allOf": [ + { + "$ref": "#/definitions/users.FileLoading" + } + ] + }, + "gallerySize": { + "description": "0-9 - the size of the gallery thumbnails", + "type": "integer" + }, + "hideSidebarFileActions": { + "description": "hide the file actions in the sidebar", + "type": "boolean" + }, + "locale": { + "description": "language to use: eg. de, en, or fr", + "type": "string" + }, + "lockPassword": { + "description": "disable the user from changing their password", + "type": "boolean" + }, + "loginMethod": { + "description": "login method to use: eg. password, proxy, oidc", + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/users.Permissions" + }, + "preview": { + "$ref": "#/definitions/users.Preview" + }, + "quickDownload": { + "description": "show icon to download in one click", + "type": "boolean" + }, + "showHidden": { + "description": "show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files", + "type": "boolean" + }, + "showSelectMultiple": { + "description": "show select multiple files on desktop", + "type": "boolean" + }, + "singleClick": { + "description": "open directory on single click, also enables middle click to open in new tab", + "type": "boolean" + }, + "stickySidebar": { + "description": "keep sidebar open when navigating", + "type": "boolean" + }, + "themeColor": { + "description": "theme color to use: eg. #ff0000, or var(--red), var(--purple), etc", + "type": "string" + }, + "viewMode": { + "description": "view mode to use: eg. normal, list, grid, or compact", + "type": "string" + } + } + }, + "share.CreateBody": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "expires": { + "type": "string" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hash": { + "type": "string" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "password": { + "type": "string" + }, + "path": { + "type": "string" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "source": { + "description": "backend source is path to maintain between name changes", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, + "share.Link": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloads": { + "type": "integer" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "expire": { + "type": "integer" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hash": { + "type": "string" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "password_hash": { + "type": "string" + }, + "path": { + "type": "string" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "source": { + "description": "backend source is path to maintain between name changes", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "token": { + "description": "Token is a random value that will only be set when PasswordHash is set. It is\nURL-Safe and is used to download links in password-protected shares via a\nquery arg.", + "type": "string" + }, + "userID": { + "type": "integer" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, + "users.AuthToken": { + "type": "object", + "properties": { + "Permissions": { + "$ref": "#/definitions/users.Permissions" + }, + "belongsTo": { + "type": "integer" + }, + "createdAt": { + "type": "integer" + }, + "expiresAt": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "users.FileLoading": { + "type": "object", + "properties": { + "clearAll": { + "type": "boolean" + }, + "maxConcurrentUpload": { + "type": "integer" + }, + "uploadChunkSizeMb": { + "type": "integer" + } + } + }, + "users.LoginMethod": { + "type": "string", + "enum": [ + "password", + "proxy", + "oidc" + ], + "x-enum-varnames": [ + "LoginMethodPassword", + "LoginMethodProxy", + "LoginMethodOidc" + ] + }, + "users.Permissions": { + "type": "object", + "properties": { + "admin": { + "description": "allow admin access", + "type": "boolean" + }, + "api": { + "description": "allow api access", + "type": "boolean" + }, + "create": { + "description": "allow creating or uploading files", + "type": "boolean" + }, + "delete": { + "description": "allow deleting files", + "type": "boolean" + }, + "download": { + "description": "allow downloading files", + "type": "boolean" + }, + "modify": { + "description": "allow modifying files", + "type": "boolean" + }, + "realtime": { + "description": "allow realtime updates", + "type": "boolean" + }, + "share": { + "description": "allow sharing files", + "type": "boolean" + } + } + }, + "users.Preview": { + "type": "object", + "properties": { + "autoplayMedia": { + "description": "autoplay media files in preview", + "type": "boolean" + }, + "defaultMediaPlayer": { + "description": "disable html5 media player and use the default media player", + "type": "boolean" + }, + "disableHideSidebar": { + "description": "disable the hide sidebar preview for previews and editors", + "type": "boolean" + }, + "folder": { + "description": "show thumbnail preview image for folder files", + "type": "boolean" + }, + "highQuality": { + "description": "generate high quality thumbnail preview images", + "type": "boolean" + }, + "image": { + "description": "show thumbnail preview image for image files", + "type": "boolean" + }, + "motionVideoPreview": { + "description": "show multiple frames for videos in thumbnail preview when hovering", + "type": "boolean" + }, + "office": { + "description": "show thumbnail preview image for office files", + "type": "boolean" + }, + "popup": { + "description": "show larger popup preview when hovering over thumbnail", + "type": "boolean" + }, + "video": { + "description": "show thumbnail preview image for video files", + "type": "boolean" + } + } + }, + "users.SidebarLink": { + "type": "object", + "properties": { + "category": { + "description": "Category type: \"source\", \"tool\", or \"custom\"", + "type": "string" + }, + "icon": { + "description": "Material icon name", + "type": "string" + }, + "name": { + "description": "Display name of the link", + "type": "string" + }, + "target": { + "description": "Target path/URL for the link", + "type": "string" + } + } + }, + "users.Sorting": { + "type": "object", + "properties": { + "asc": { + "type": "boolean" + }, + "by": { + "type": "string" + } + } + }, + "users.SourceScope": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "scope": { + "type": "string" + } + } + }, + "users.User": { + "type": "object", + "properties": { + "apiKeys": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/users.AuthToken" + } + }, + "customTheme": { + "description": "Name of theme to use chosen from custom themes config.", + "type": "string" + }, + "darkMode": { + "description": "should dark mode be enabled", + "type": "boolean" + }, + "dateFormat": { + "description": "when false, the date is relative, when true, the date is an exact timestamp", + "type": "boolean" + }, + "debugOffice": { + "description": "debug onlyoffice editor", + "type": "boolean" + }, + "defaultLandingPage": { + "description": "default landing page to use: eg. /files/mysource/mysubpath, /settings, etc.", + "type": "string" + }, + "deleteWithoutConfirming": { + "description": "delete files without confirmation", + "type": "boolean" + }, + "disableOfficePreviewExt": { + "description": "deprecated", + "type": "string" + }, + "disableOnlyOfficeExt": { + "description": "deprecated", + "type": "string" + }, + "disablePreviewExt": { + "description": "space separated list of file extensions to disable preview for", + "type": "string" + }, + "disableQuickToggles": { + "description": "disable the quick toggles in the sidebar", + "type": "boolean" + }, + "disableSearchOptions": { + "description": "disable the search options in the search bar", + "type": "boolean" + }, + "disableSettings": { + "type": "boolean" + }, + "disableUpdateNotifications": { + "description": "disable update notifications", + "type": "boolean" + }, + "disableViewingExt": { + "description": "space separated list of file extensions to disable viewing for", + "type": "string" + }, + "editorQuickSave": { + "description": "show quick save button in editor", + "type": "boolean" + }, + "fileLoading": { + "description": "upload and download settings", + "allOf": [ + { + "$ref": "#/definitions/users.FileLoading" + } + ] + }, + "gallerySize": { + "description": "0-9 - the size of the gallery thumbnails", + "type": "integer" + }, + "hideSidebarFileActions": { + "description": "hide the file actions in the sidebar", + "type": "boolean" + }, + "id": { + "type": "integer" + }, + "locale": { + "description": "language to use: eg. de, en, or fr", + "type": "string" + }, + "lockPassword": { + "type": "boolean" + }, + "loginMethod": { + "$ref": "#/definitions/users.LoginMethod" + }, + "otpEnabled": { + "description": "true if TOTP is enabled, false otherwise", + "type": "boolean" + }, + "password": { + "type": "string" + }, + "perm": { + "description": "legacy for migration purposes... og filebrowser has perm attribute", + "allOf": [ + { + "$ref": "#/definitions/users.Permissions" + } + ] + }, + "permissions": { + "$ref": "#/definitions/users.Permissions" + }, + "preview": { + "$ref": "#/definitions/users.Preview" + }, + "quickDownload": { + "description": "show icon to download in one click", + "type": "boolean" + }, + "scope": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "$ref": "#/definitions/users.SourceScope" + } + }, + "showFirstLogin": { + "type": "boolean" + }, + "showHidden": { + "description": "show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files", + "type": "boolean" + }, + "showSelectMultiple": { + "description": "show select multiple files on desktop", + "type": "boolean" + }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, + "singleClick": { + "description": "open directory on single click, also enables middle click to open in new tab", + "type": "boolean" + }, + "sorting": { + "$ref": "#/definitions/users.Sorting" + }, + "stickySidebar": { + "description": "keep sidebar open when navigating", + "type": "boolean" + }, + "themeColor": { + "description": "theme color to use: eg. #ff0000, or var(--red), var(--purple), etc", + "type": "string" + }, + "totpNonce": { + "type": "string" + }, + "totpSecret": { + "type": "string" + }, + "username": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "viewMode": { + "description": "view mode to use: eg. normal, list, grid, or compact", + "type": "string" + } + } + } + } +} \ No newline at end of file diff --git a/backend/docs/swagger.yaml b/backend/docs/swagger.yaml new file mode 100644 index 0000000000..1acf268562 --- /dev/null +++ b/backend/docs/swagger.yaml @@ -0,0 +1,3229 @@ +definitions: + http.AuthTokenMin: + properties: + Permissions: + $ref: '#/definitions/users.Permissions' + created: + type: integer + expires: + type: integer + key: + type: string + name: + type: string + type: object + http.DirectDownloadResponse: + properties: + hash: + type: string + status: + type: string + url: + type: string + type: object + http.GroupListResponse: + properties: + groups: + items: + type: string + type: array + type: object + http.HttpResponse: + properties: + message: + type: string + status: + type: integer + token: + type: string + type: object + http.ShareResponse: + properties: + allowCreate: + description: allow creating files + type: boolean + allowDelete: + type: boolean + allowModify: + description: allow modifying files + type: boolean + allowReplacements: + description: allow replacements of files + type: boolean + allowedUsernames: + items: + type: string + type: array + banner: + type: string + description: + type: string + disableAnonymous: + type: boolean + disableDownload: + description: don't allow downloading files + type: boolean + disableFileViewer: + description: don't allow viewing files + type: boolean + disableShareCard: + type: boolean + disableSidebar: + type: boolean + disableThumbnails: + type: boolean + downloadURL: + type: string + downloads: + type: integer + downloadsLimit: + type: integer + enableOnlyOffice: + type: boolean + enforceDarkLightMode: + description: '"dark" or "light"' + type: string + expire: + type: integer + extractEmbeddedSubtitles: + description: can be io intensive for large files and take 10-30 seconds. + type: boolean + favicon: + type: string + hash: + type: string + hideNavButtons: + type: boolean + keepAfterExpiration: + type: boolean + maxBandwidth: + type: integer + password_hash: + type: string + path: + type: string + pathExists: + type: boolean + perUserDownloadLimit: + type: boolean + quickDownload: + type: boolean + shareTheme: + type: string + shareType: + description: 'type of share: normal, upload, max' + type: string + source: + description: Override embedded field to show source name + type: string + themeColor: + type: string + title: + type: string + token: + description: |- + Token is a random value that will only be set when PasswordHash is set. It is + URL-Safe and is used to download links in password-protected shares via a + query arg. + type: string + userID: + type: integer + username: + type: string + viewMode: + description: 'default view mode for anonymous users: "list", "compact", "normal", + "gallery"' + type: string + type: object + indexing.IndexStatus: + enum: + - ready + - indexing + - unavailable + type: string + x-enum-varnames: + - READY + - INDEXING + - UNAVAILABLE + indexing.ReducedIndex: + properties: + assessment: + type: string + fullScanDurationSeconds: + type: integer + lastIndexedUnixTime: + type: integer + name: + type: string + numDeleted: + type: integer + numDirs: + type: integer + numFiles: + type: integer + quickScanDurationSeconds: + type: integer + scanners: + items: + $ref: '#/definitions/indexing.ScannerInfo' + type: array + status: + $ref: '#/definitions/indexing.IndexStatus' + total: + type: integer + used: + type: integer + type: object + indexing.ScannerInfo: + properties: + assessment: + type: string + currentSchedule: + type: integer + fullScanTime: + type: integer + isRoot: + type: boolean + lastScanned: + type: string + numDirs: + type: integer + numFiles: + type: integer + path: + type: string + quickScanTime: + type: integer + type: object + indexing.SearchResult: + properties: + path: + type: string + size: + type: integer + type: + type: string + type: object + iteminfo.ExtendedItemInfo: + properties: + hasPreview: + description: whether the file has a thumbnail preview + type: boolean + hidden: + description: whether the file is hidden + type: boolean + metadata: + allOf: + - $ref: '#/definitions/iteminfo.MediaMetadata' + description: optional media metadata (audio/video only) + modified: + description: modification time + type: string + name: + description: name of the file + type: string + size: + description: length in bytes for regular files + type: integer + type: + description: type of the file, either "directory" or a file mimetype + type: string + type: object + iteminfo.FileInfo: + properties: + files: + description: files in the directory with optional metadata + items: + $ref: '#/definitions/iteminfo.ExtendedItemInfo' + type: array + folders: + description: folders in the directory + items: + $ref: '#/definitions/iteminfo.ItemInfo' + type: array + hasPreview: + description: whether the file has a thumbnail preview + type: boolean + hidden: + description: whether the file is hidden + type: boolean + modified: + description: modification time + type: string + name: + description: name of the file + type: string + path: + description: path scoped to the associated index + type: string + size: + description: length in bytes for regular files + type: integer + type: + description: type of the file, either "directory" or a file mimetype + type: string + type: object + iteminfo.ItemInfo: + properties: + hasPreview: + description: whether the file has a thumbnail preview + type: boolean + hidden: + description: whether the file is hidden + type: boolean + modified: + description: modification time + type: string + name: + description: name of the file + type: string + size: + description: length in bytes for regular files + type: integer + type: + description: type of the file, either "directory" or a file mimetype + type: string + type: object + iteminfo.MediaMetadata: + properties: + album: + description: album name + type: string + albumArt: + description: base64 encoded album art / video thumbnail + type: string + artist: + description: track artist + type: string + duration: + description: duration in seconds + type: integer + genre: + description: music/video genre + type: string + title: + description: track/video title + type: string + track: + description: track number + type: integer + year: + description: release year + type: integer + type: object + settings.Auth: + properties: + adminPassword: + description: 'secret: the password of the admin user. If not set, the default + is "admin".' + type: string + adminUsername: + description: 'secret: the username of the admin user. If not set, the default + is "admin".' + type: string + key: + description: 'secret: the key used to sign the JWT tokens. If not set, a random + key will be generated.' + type: string + methods: + $ref: '#/definitions/settings.LoginMethods' + tokenExpirationHours: + description: time in hours each web UI session token is valid for. Default + is 2 hours. + type: integer + totpSecret: + description: 'secret: secret used to encrypt TOTP secrets' + type: string + type: object + settings.ConditionalFilter: + properties: + hidden: + description: 'deprecated: use ignoreHidden instead to exclude hidden files + and folders.' + type: boolean + ignoreHidden: + description: exclude hidden files and folders. + type: boolean + ignoreZeroSizeFolders: + description: ignore folders with 0 size + type: boolean + rules: + description: list of item rules to apply to specific paths + items: + $ref: '#/definitions/settings.ConditionalIndexConfig' + type: array + type: object + settings.ConditionalIndexConfig: + properties: + fileEndsWith: + description: (global) exclude files that end with these suffixes. Eg. ".jpg" + or ".txt" + type: string + fileName: + description: (global) exclude files that match these names. Eg. "file.txt" + or "test.csv" + type: string + fileNames: + description: 'deprecated: exclude files that match these names. Eg. "file.txt" + or "test.csv"' + type: string + filePath: + description: (global) exclude files that match this path. Eg. "/path/to/file.txt" + or "/path/to/file.txt/subfile.txt" + type: string + fileStartsWith: + description: (global) exclude files that start with these prefixes. Eg. "archive-" + or "backup-" + type: string + folderEndsWith: + description: (global) exclude folders that end with these suffixes. Eg. ".thumbnails" + or ".git" + type: string + folderName: + description: (global) exclude folders that match these names. Eg. "folder" + or "subfolder" + type: string + folderNames: + description: 'deprecated: exclude folders that match these names. Eg. "folder" + or "subfolder"' + type: string + folderPath: + description: (global) exclude folders that match this path. Eg. "/path/to/folder" + or "/path/to/folder/subfolder" + type: string + folderStartsWith: + description: (global) exclude folders that start with these prefixes. Eg. + "archive-" or "backup-" + type: string + includeRootItem: + description: include only these items at root folder level + type: string + neverWatchPath: + description: index the folder in the first pass to get included in search, + but never re-indexed. + type: string + viewable: + description: Enable viewing in UI but exclude from indexing + type: boolean + type: object + settings.CustomTheme: + properties: + css: + description: The css file path and filename to use for the theme. + type: string + description: + description: The description of the theme to display in the UI. + type: string + type: object + settings.ExternalLink: + properties: + text: + description: the text to display on the link + type: string + title: + description: the title to display on hover + type: string + url: + description: the url to link to + type: string + required: + - text + - url + type: object + settings.FfmpegConvert: + properties: + imagePreview: + additionalProperties: + type: boolean + description: supported image preview formats. defaults to false for all types + unless explicitly enabled. + type: object + videoPreview: + additionalProperties: + type: boolean + description: supported video preview formats. defaults to true for all types + unless explicitly disabled. + type: object + type: object + settings.Filesystem: + properties: + createDirectoryPermission: + description: 'Unix permissions like 755, 2755, 1777 (default: 755)' + type: string + createFilePermission: + description: 'Unix permissions like 644, 755, 2755 (default: 644)' + type: string + required: + - createDirectoryPermission + - createFilePermission + type: object + settings.Frontend: + properties: + description: + description: description that shows up in html head meta description + type: string + disableDefaultLinks: + description: disable default links in the sidebar + type: boolean + disableNavButtons: + description: disable the nav buttons in the sidebar + type: boolean + disableUsedPercentage: + description: disable used percentage for the sources in the sidebar + type: boolean + externalLinks: + items: + $ref: '#/definitions/settings.ExternalLink' + type: array + favicon: + description: path to a favicon to use for the frontend + type: string + loginIcon: + description: path to an image file for the login page icon + type: string + name: + description: display name + type: string + styling: + $ref: '#/definitions/settings.StylingConfig' + type: object + settings.Integrations: + properties: + media: + $ref: '#/definitions/settings.Media' + office: + $ref: '#/definitions/settings.OnlyOffice' + type: object + settings.LogConfig: + properties: + apiLevels: + description: separated list of log levels to enable for the API. (eg. "info|warning|error") + type: string + json: + description: output in json format + type: boolean + levels: + description: separated list of log levels to enable. (eg. "info|warning|error|debug") + type: string + noColors: + description: disable colors in the output + type: boolean + output: + description: output location. (eg. "stdout" or "path/to/file.log") + type: string + utc: + description: use UTC time in the output instead of local time + type: boolean + type: object + settings.LoginMethods: + properties: + noauth: + description: if set to true, overrides all other auth methods and disables + authentication + type: boolean + oidc: + $ref: '#/definitions/settings.OidcConfig' + password: + $ref: '#/definitions/settings.PasswordAuthConfig' + proxy: + $ref: '#/definitions/settings.ProxyAuthConfig' + type: object + settings.Media: + properties: + convert: + allOf: + - $ref: '#/definitions/settings.FfmpegConvert' + description: config for ffmpeg conversion settings + debug: + description: output ffmpeg stdout for media integration -- careful can produces + lots of output! + type: boolean + extractEmbeddedSubtitles: + description: extract embedded subtitles from media files + type: boolean + ffmpegPath: + description: path to ffmpeg directory with ffmpeg and ffprobe (eg. /usr/local/bin) + type: string + type: object + settings.OidcConfig: + properties: + adminGroup: + description: if set, users in this group will be granted admin privileges. + type: string + clientId: + description: 'secret: client id of the OIDC application' + type: string + clientSecret: + description: 'secret: client secret of the OIDC application' + type: string + createUser: + description: create user if not exists + type: boolean + disableVerifyTLS: + description: disable TLS verification for the OIDC provider. This is insecure + and should only be used for testing. + type: boolean + enabled: + description: whether to enable OIDC authentication + type: boolean + groupsClaim: + description: the JSON field name to read groups from. Default is "groups" + type: string + issuerUrl: + description: authorization URL of the OIDC provider + type: string + logoutRedirectUrl: + description: if provider logout url is provided, filebrowser will also redirect + to logout url. Custom logout query params are respected. + type: string + scopes: + description: scopes to request from the OIDC provider + type: string + userIdentifier: + description: the field value to use as the username. Default is "preferred_username", + can also be "email" or "username", or "phone" + type: string + type: object + settings.OnlyOffice: + properties: + internalUrl: + description: An optional internal address that the filebrowser server can + use to communicate with the OnlyOffice Document Server, could be useful + to bypass proxy. + type: string + secret: + description: 'secret: authentication key for OnlyOffice integration' + type: string + url: + description: The URL to the OnlyOffice Document Server, needs to be accessible + to the user. + type: string + viewOnly: + description: view only mode for OnlyOffice + type: boolean + required: + - secret + - url + type: object + settings.PasswordAuthConfig: + properties: + enabled: + type: boolean + enforcedOtp: + description: if set to true, TOTP is enforced for all password users users. + Otherwise, users can choose to enable TOTP. + type: boolean + minLength: + description: minimum pasword length required, default is 5. + type: integer + recaptcha: + allOf: + - $ref: '#/definitions/settings.Recaptcha' + description: recaptcha config, only used if signup is enabled + signup: + description: allow signups on login page if enabled -- not secure. + type: boolean + type: object + settings.ProxyAuthConfig: + properties: + createUser: + description: create user if not exists + type: boolean + enabled: + type: boolean + header: + description: 'required header to use for authentication. Security Warning: + FileBrowser blindly accepts the header value as username.' + type: string + logoutRedirectUrl: + description: if provider logout url is provided, filebrowser will also redirect + to logout url. Custom logout query params are respected. + type: string + type: object + settings.Recaptcha: + properties: + host: + type: string + key: + type: string + secret: + type: string + required: + - host + - key + - secret + type: object + settings.Server: + properties: + baseURL: + description: base URL for the server, the subpath that the server is running + on. + type: string + cacheDir: + description: path to the cache directory, used for thumbnails and other cached + files + type: string + database: + description: path to the database file + type: string + disablePreviewResize: + description: disable resizing of previews for faster loading over slow connections + type: boolean + disablePreviews: + description: disable all previews thumbnails, simple icons will be used + type: boolean + disableTypeDetectionByHeader: + description: disable type detection by header, useful if filesystem is slow. + type: boolean + disableUpdateCheck: + description: disables backend update check service + type: boolean + externalUrl: + description: used by share links if set (eg. http://mydomain.com) + type: string + filesystem: + allOf: + - $ref: '#/definitions/settings.Filesystem' + description: filesystem settings + internalUrl: + description: used by integrations if set, this is the base domain that an + integration service will use to communicate with filebrowser (eg. http://localhost:8080) + type: string + logging: + items: + $ref: '#/definitions/settings.LogConfig' + type: array + maxArchiveSize: + description: max pre-archive combined size of files/folder that are allowed + to be archived (in GB) + type: integer + minSearchLength: + description: 'minimum length of search query to begin searching (default: + 3)' + type: integer + numImageProcessors: + description: number of concurrent image processing jobs used to create previews, + default is number of cpu cores available. + type: integer + port: + description: port to listen on + type: integer + socket: + description: socket to listen on + type: string + sources: + items: + $ref: '#/definitions/settings.Source' + type: array + tlsCert: + description: path to TLS cert + type: string + tlsKey: + description: path to TLS key + type: string + required: + - sources + type: object + settings.Settings: + properties: + auth: + $ref: '#/definitions/settings.Auth' + frontend: + $ref: '#/definitions/settings.Frontend' + integrations: + $ref: '#/definitions/settings.Integrations' + server: + $ref: '#/definitions/settings.Server' + userDefaults: + $ref: '#/definitions/settings.UserDefaults' + type: object + settings.Source: + properties: + config: + $ref: '#/definitions/settings.SourceConfig' + name: + description: display name + type: string + path: + description: file system path. (Can be relative) + type: string + required: + - path + type: object + settings.SourceConfig: + properties: + conditionals: + allOf: + - $ref: '#/definitions/settings.ConditionalFilter' + description: conditional rules to apply when indexing to include/exclude certain + items + createUserDir: + description: create a user directory for each user + type: boolean + defaultEnabled: + description: should be added as a default source for new users? + type: boolean + defaultUserScope: + description: default "/" should match folders under path + type: string + denyByDefault: + description: deny access unless an "allow" access rule was specifically created. + type: boolean + disableIndexing: + description: disable the indexing of this source + type: boolean + disabled: + description: disable the source, this is useful so you don't need to remove + it from the config file + type: boolean + indexingIntervalMinutes: + description: optional manual overide interval in minutes to re-index the source + type: integer + private: + description: designate as source as private -- currently just means no sharing + permitted. + type: boolean + type: object + settings.StylingConfig: + properties: + customCSS: + description: if a valid path to a css file is provided, it will be applied + for all users. (eg. "reduce-rounded-corners.css") + type: string + customThemes: + additionalProperties: + $ref: '#/definitions/settings.CustomTheme' + description: A list of custom css files that each user can select to override + the default styling. if "default" is key name then it will be the default + option. + type: object + darkBackground: + description: Specify a valid CSS color property value to use as the background + color in dark mode + type: string + disableEventThemes: + description: disable the event based themes, + type: boolean + lightBackground: + description: specify a valid CSS color property value to use as the background + color in light mode + type: string + type: object + settings.UserDefaults: + properties: + customTheme: + description: Name of theme to use chosen from custom themes config. + type: string + darkMode: + description: should dark mode be enabled + type: boolean + dateFormat: + description: when false, the date is relative, when true, the date is an exact + timestamp + type: boolean + debugOffice: + description: debug onlyoffice editor + type: boolean + defaultLandingPage: + description: 'default landing page to use if no redirect is specified: eg. + /files/mysource/mysubpath, /settings, etc.' + type: string + deleteWithoutConfirming: + description: delete files without confirmation + type: boolean + disableOfficePreviewExt: + description: 'deprecated: use disablePreviewExt instead' + type: string + disableOnlyOfficeExt: + description: list of file extensions to disable onlyoffice editor for + type: string + disablePreviewExt: + description: space separated list of file extensions to disable preview for + type: string + disableQuickToggles: + description: disable the quick toggles in the sidebar + type: boolean + disableSearchOptions: + description: disable the search options in the search bar + type: boolean + disableSettings: + description: disable the user from viewing the settings page + type: boolean + disableUpdateNotifications: + description: disable update notifications banner for admin users + type: boolean + disableViewingExt: + description: space separated list of file extensions to disable viewing for + type: string + editorQuickSave: + description: show quick save button in editor + type: boolean + fileLoading: + allOf: + - $ref: '#/definitions/users.FileLoading' + description: upload and download settings + gallerySize: + description: 0-9 - the size of the gallery thumbnails + type: integer + hideSidebarFileActions: + description: hide the file actions in the sidebar + type: boolean + locale: + description: 'language to use: eg. de, en, or fr' + type: string + lockPassword: + description: disable the user from changing their password + type: boolean + loginMethod: + description: 'login method to use: eg. password, proxy, oidc' + type: string + permissions: + $ref: '#/definitions/users.Permissions' + preview: + $ref: '#/definitions/users.Preview' + quickDownload: + description: show icon to download in one click + type: boolean + showHidden: + description: show hidden files in the UI. On windows this includes files starting + with a dot and windows hidden files + type: boolean + showSelectMultiple: + description: show select multiple files on desktop + type: boolean + singleClick: + description: open directory on single click, also enables middle click to + open in new tab + type: boolean + stickySidebar: + description: keep sidebar open when navigating + type: boolean + themeColor: + description: 'theme color to use: eg. #ff0000, or var(--red), var(--purple), + etc' + type: string + viewMode: + description: 'view mode to use: eg. normal, list, grid, or compact' + type: string + type: object + share.CreateBody: + properties: + allowCreate: + description: allow creating files + type: boolean + allowDelete: + type: boolean + allowModify: + description: allow modifying files + type: boolean + allowReplacements: + description: allow replacements of files + type: boolean + allowedUsernames: + items: + type: string + type: array + banner: + type: string + description: + type: string + disableAnonymous: + type: boolean + disableDownload: + description: don't allow downloading files + type: boolean + disableFileViewer: + description: don't allow viewing files + type: boolean + disableShareCard: + type: boolean + disableSidebar: + type: boolean + disableThumbnails: + type: boolean + downloadURL: + type: string + downloadsLimit: + type: integer + enableOnlyOffice: + type: boolean + enforceDarkLightMode: + description: '"dark" or "light"' + type: string + expires: + type: string + extractEmbeddedSubtitles: + description: can be io intensive for large files and take 10-30 seconds. + type: boolean + favicon: + type: string + hash: + type: string + hideNavButtons: + type: boolean + keepAfterExpiration: + type: boolean + maxBandwidth: + type: integer + password: + type: string + path: + type: string + perUserDownloadLimit: + type: boolean + quickDownload: + type: boolean + shareTheme: + type: string + shareType: + description: 'type of share: normal, upload, max' + type: string + source: + description: backend source is path to maintain between name changes + type: string + themeColor: + type: string + title: + type: string + unit: + type: string + viewMode: + description: 'default view mode for anonymous users: "list", "compact", "normal", + "gallery"' + type: string + type: object + share.Link: + properties: + allowCreate: + description: allow creating files + type: boolean + allowDelete: + type: boolean + allowModify: + description: allow modifying files + type: boolean + allowReplacements: + description: allow replacements of files + type: boolean + allowedUsernames: + items: + type: string + type: array + banner: + type: string + description: + type: string + disableAnonymous: + type: boolean + disableDownload: + description: don't allow downloading files + type: boolean + disableFileViewer: + description: don't allow viewing files + type: boolean + disableShareCard: + type: boolean + disableSidebar: + type: boolean + disableThumbnails: + type: boolean + downloadURL: + type: string + downloads: + type: integer + downloadsLimit: + type: integer + enableOnlyOffice: + type: boolean + enforceDarkLightMode: + description: '"dark" or "light"' + type: string + expire: + type: integer + extractEmbeddedSubtitles: + description: can be io intensive for large files and take 10-30 seconds. + type: boolean + favicon: + type: string + hash: + type: string + hideNavButtons: + type: boolean + keepAfterExpiration: + type: boolean + maxBandwidth: + type: integer + password_hash: + type: string + path: + type: string + perUserDownloadLimit: + type: boolean + quickDownload: + type: boolean + shareTheme: + type: string + shareType: + description: 'type of share: normal, upload, max' + type: string + source: + description: backend source is path to maintain between name changes + type: string + themeColor: + type: string + title: + type: string + token: + description: |- + Token is a random value that will only be set when PasswordHash is set. It is + URL-Safe and is used to download links in password-protected shares via a + query arg. + type: string + userID: + type: integer + viewMode: + description: 'default view mode for anonymous users: "list", "compact", "normal", + "gallery"' + type: string + type: object + users.AuthToken: + properties: + Permissions: + $ref: '#/definitions/users.Permissions' + belongsTo: + type: integer + createdAt: + type: integer + expiresAt: + type: integer + key: + type: string + name: + type: string + type: object + users.FileLoading: + properties: + clearAll: + type: boolean + maxConcurrentUpload: + type: integer + uploadChunkSizeMb: + type: integer + type: object + users.LoginMethod: + enum: + - password + - proxy + - oidc + type: string + x-enum-varnames: + - LoginMethodPassword + - LoginMethodProxy + - LoginMethodOidc + users.Permissions: + properties: + admin: + description: allow admin access + type: boolean + api: + description: allow api access + type: boolean + create: + description: allow creating or uploading files + type: boolean + delete: + description: allow deleting files + type: boolean + download: + description: allow downloading files + type: boolean + modify: + description: allow modifying files + type: boolean + realtime: + description: allow realtime updates + type: boolean + share: + description: allow sharing files + type: boolean + type: object + users.Preview: + properties: + autoplayMedia: + description: autoplay media files in preview + type: boolean + defaultMediaPlayer: + description: disable html5 media player and use the default media player + type: boolean + disableHideSidebar: + description: disable the hide sidebar preview for previews and editors + type: boolean + folder: + description: show thumbnail preview image for folder files + type: boolean + highQuality: + description: generate high quality thumbnail preview images + type: boolean + image: + description: show thumbnail preview image for image files + type: boolean + motionVideoPreview: + description: show multiple frames for videos in thumbnail preview when hovering + type: boolean + office: + description: show thumbnail preview image for office files + type: boolean + popup: + description: show larger popup preview when hovering over thumbnail + type: boolean + video: + description: show thumbnail preview image for video files + type: boolean + type: object + users.SidebarLink: + properties: + category: + description: 'Category type: "source", "tool", or "custom"' + type: string + icon: + description: Material icon name + type: string + name: + description: Display name of the link + type: string + target: + description: Target path/URL for the link + type: string + type: object + users.Sorting: + properties: + asc: + type: boolean + by: + type: string + type: object + users.SourceScope: + properties: + name: + type: string + scope: + type: string + type: object + users.User: + properties: + apiKeys: + additionalProperties: + $ref: '#/definitions/users.AuthToken' + type: object + customTheme: + description: Name of theme to use chosen from custom themes config. + type: string + darkMode: + description: should dark mode be enabled + type: boolean + dateFormat: + description: when false, the date is relative, when true, the date is an exact + timestamp + type: boolean + debugOffice: + description: debug onlyoffice editor + type: boolean + defaultLandingPage: + description: 'default landing page to use: eg. /files/mysource/mysubpath, + /settings, etc.' + type: string + deleteWithoutConfirming: + description: delete files without confirmation + type: boolean + disableOfficePreviewExt: + description: deprecated + type: string + disableOnlyOfficeExt: + description: deprecated + type: string + disablePreviewExt: + description: space separated list of file extensions to disable preview for + type: string + disableQuickToggles: + description: disable the quick toggles in the sidebar + type: boolean + disableSearchOptions: + description: disable the search options in the search bar + type: boolean + disableSettings: + type: boolean + disableUpdateNotifications: + description: disable update notifications + type: boolean + disableViewingExt: + description: space separated list of file extensions to disable viewing for + type: string + editorQuickSave: + description: show quick save button in editor + type: boolean + fileLoading: + allOf: + - $ref: '#/definitions/users.FileLoading' + description: upload and download settings + gallerySize: + description: 0-9 - the size of the gallery thumbnails + type: integer + hideSidebarFileActions: + description: hide the file actions in the sidebar + type: boolean + id: + type: integer + locale: + description: 'language to use: eg. de, en, or fr' + type: string + lockPassword: + type: boolean + loginMethod: + $ref: '#/definitions/users.LoginMethod' + otpEnabled: + description: true if TOTP is enabled, false otherwise + type: boolean + password: + type: string + perm: + allOf: + - $ref: '#/definitions/users.Permissions' + description: legacy for migration purposes... og filebrowser has perm attribute + permissions: + $ref: '#/definitions/users.Permissions' + preview: + $ref: '#/definitions/users.Preview' + quickDownload: + description: show icon to download in one click + type: boolean + scope: + type: string + scopes: + items: + $ref: '#/definitions/users.SourceScope' + type: array + showFirstLogin: + type: boolean + showHidden: + description: show hidden files in the UI. On windows this includes files starting + with a dot and windows hidden files + type: boolean + showSelectMultiple: + description: show select multiple files on desktop + type: boolean + sidebarLinks: + description: customizable sidebar links + items: + $ref: '#/definitions/users.SidebarLink' + type: array + singleClick: + description: open directory on single click, also enables middle click to + open in new tab + type: boolean + sorting: + $ref: '#/definitions/users.Sorting' + stickySidebar: + description: keep sidebar open when navigating + type: boolean + themeColor: + description: 'theme color to use: eg. #ff0000, or var(--red), var(--purple), + etc' + type: string + totpNonce: + type: string + totpSecret: + type: string + username: + type: string + version: + type: integer + viewMode: + description: 'view mode to use: eg. normal, list, grid, or compact' + type: string + type: object +info: + contact: {} +paths: + /api/access: + delete: + consumes: + - application/json + description: Delete a user or group from an allow or deny list for a sourcePath + and indexPath. When cascade=true, removes the user/group from the specified + path and all subpaths. + parameters: + - description: Source path prefix (e.g. mnt/storage) + in: query + name: source + required: true + type: string + - description: Index path (e.g. /secret) + in: query + name: path + required: true + type: string + - description: Rule type (allow or deny) + in: query + name: ruleType + required: true + type: string + - description: Rule category (user or group) + in: query + name: ruleCategory + required: true + type: string + - description: Username or groupname to remove + in: query + name: value + required: true + type: string + - description: 'Cascade delete to all subpaths (default: false)' + in: query + name: cascade + type: boolean + produces: + - application/json + responses: + "200": + description: Rule entry deleted + schema: + additionalProperties: + type: string + type: object + "400": + description: Bad request + schema: + additionalProperties: + type: string + type: object + "404": + description: Not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Delete access rule entry + tags: + - Access + get: + consumes: + - application/json + description: Lists access rules. Can be filtered by source, path, user, or group. + Can also be grouped by user or group. + parameters: + - description: Source name (e.g. 'default') + in: query + name: source + type: string + - description: Index path (e.g. /secret) + in: query + name: path + type: string + - description: Username to filter rules for + in: query + name: user + type: string + - description: Group name to filter rules for + in: query + name: group + type: string + produces: + - application/json + responses: + "200": + description: Varies based on query. Can be access.FrontendAccessRule (when + source and path specified), []access.PrincipalRule, map[string][]access.PrincipalRule, + or map[string]access.FrontendAccessRule + schema: + type: object + "400": + description: Bad request + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: List access rules + tags: + - Access + patch: + consumes: + - application/json + description: Updates the path for a specific access rule + parameters: + - description: Source, old path, and new path + in: body + name: body + required: true + schema: + properties: + newPath: + type: string + oldPath: + type: string + source: + type: string + type: object + produces: + - application/json + responses: + "200": + description: Rule path updated successfully + schema: + additionalProperties: + type: string + type: object + "400": + description: Bad request - missing or invalid parameters + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Update access rule path + tags: + - Access + post: + consumes: + - application/json + description: Add or update an access rule for a sourcePath and indexPath. + parameters: + - description: Source path prefix (e.g. mnt/storage) + in: query + name: source + required: true + type: string + - description: Index path (e.g. /secret) + in: query + name: path + required: true + type: string + - description: 'Rule details: allow (true/false), ruleCategory (user/group), + value (username or groupname)' + in: body + name: body + required: true + schema: + properties: + allow: + type: boolean + ruleCategory: + type: string + value: + type: string + type: object + produces: + - application/json + responses: + "200": + description: Rule added or updated + schema: + additionalProperties: + type: string + type: object + "400": + description: Bad request + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Add or update access rule + tags: + - Access + /api/access/group: + delete: + consumes: + - application/json + description: Removes a user from a group. + parameters: + - description: Group name + in: query + name: group + required: true + type: string + - description: User name + in: query + name: user + required: true + type: string + produces: + - application/json + responses: + "200": + description: User removed from group successfully + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal Server Error + schema: + additionalProperties: + type: string + type: object + summary: Remove a user from a group + tags: + - Access + post: + consumes: + - application/json + description: Adds a user to a group. + parameters: + - description: Group name + in: query + name: group + required: true + type: string + - description: User name + in: query + name: user + required: true + type: string + produces: + - application/json + responses: + "200": + description: User added to group successfully + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal Server Error + schema: + additionalProperties: + type: string + type: object + summary: Add a user to a group + tags: + - Access + /api/access/groups: + get: + consumes: + - application/json + description: Returns a list of all groups or the groups for a specific user. + parameters: + - description: User name + in: query + name: user + type: string + produces: + - application/json + responses: + "200": + description: Object containing a list of groups + schema: + $ref: '#/definitions/http.GroupListResponse' + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + summary: Get all groups or groups for a user + tags: + - Access + /api/auth/login: + post: + consumes: + - application/json + description: Authenticate a user with a username and password. + produces: + - application/json + responses: + "200": + description: JWT token for authentication + schema: + type: string + "403": + description: Forbidden - authentication failed + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: User login + tags: + - Auth + /api/auth/logout: + post: + description: Returns a logout URL for the frontend to redirect to. + parameters: + - description: JWT token + in: query + name: auth + type: string + produces: + - application/json + responses: + "200": + description: '{"logoutUrl": "http://..."}' + schema: + additionalProperties: + type: string + type: object + summary: User Logout + tags: + - Auth + /api/auth/oidc/callback: + get: + consumes: + - application/json + description: Handles OIDC login callback. + parameters: + - description: OIDC code + in: query + name: code + type: string + - description: OIDC state + in: query + name: state + type: string + produces: + - application/json + responses: + "200": + description: OIDC callback result + schema: + additionalProperties: + type: string + type: object + "400": + description: Bad request + schema: + additionalProperties: + type: string + type: object + summary: OIDC callback + tags: + - OIDC + /api/auth/oidc/login: + get: + consumes: + - application/json + description: Initiates OIDC login flow. + produces: + - application/json + responses: + "302": + description: Redirect to OIDC provider + schema: + type: string + summary: OIDC login + tags: + - OIDC + /api/auth/otp/generate: + post: + consumes: + - application/json + description: Generates a new TOTP secret and QR code for the authenticated user. + produces: + - application/json + responses: + "200": + description: OTP secret generated successfully. + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: Generate OTP + tags: + - OTP + /api/auth/otp/verify: + post: + consumes: + - application/json + description: Verifies the provided TOTP code for the authenticated user. + parameters: + - description: TOTP code to verify + in: query + name: code + required: true + type: string + produces: + - application/json + responses: + "200": + description: OTP token is valid. + schema: + $ref: '#/definitions/http.HttpResponse' + "401": + description: Unauthorized - invalid TOTP token + schema: + additionalProperties: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: Verify OTP + tags: + - OTP + /api/auth/signup: + post: + consumes: + - application/json + description: Register a new user account with a username and password. + produces: + - application/json + responses: + "201": + description: User created successfully + schema: + type: string + "400": + description: Bad request - invalid input + schema: + additionalProperties: + type: string + type: object + "405": + description: Method not allowed - signup is disabled + schema: + additionalProperties: + type: string + type: object + "409": + description: Conflict - user already exists + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: User signup + tags: + - Auth + /api/auth/token: + delete: + consumes: + - application/json + description: Delete an API key with specified name. + parameters: + - description: Name of the API key to delete + in: query + name: name + required: true + type: string + produces: + - application/json + responses: + "200": + description: API key deleted successfully + schema: + $ref: '#/definitions/http.HttpResponse' + "404": + description: Not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Delete API key + tags: + - API Keys + put: + consumes: + - application/json + description: Create an API key with specified name, duration, and permissions. + parameters: + - description: Name of the API key + in: query + name: name + required: true + type: string + - description: Duration of the API key in days + in: query + name: days + required: true + type: string + - description: Permissions for the API key (comma-separated) + in: query + name: permissions + required: true + type: string + produces: + - application/json + responses: + "200": + description: Token created successfully, response contains json object with + token key + schema: + $ref: '#/definitions/http.HttpResponse' + "400": + description: Bad request + schema: + additionalProperties: + type: string + type: object + "404": + description: Not found + schema: + additionalProperties: + type: string + type: object + "409": + description: Conflict + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Create API key + tags: + - API Keys + /api/auth/tokens: + get: + consumes: + - application/json + description: List all API keys or retrieve details for a specific key. + parameters: + - description: Name of the API to retrieve details + in: query + name: name + type: string + produces: + - application/json + responses: + "200": + description: List of API keys or specific key details + schema: + $ref: '#/definitions/http.AuthTokenMin' + "404": + description: Not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: List API keys + tags: + - API Keys + /api/jobs/{action}/{target}: + get: + consumes: + - application/json + description: Returns job info for the user. + parameters: + - description: Job action + in: path + name: action + required: true + type: string + - description: Job target + in: path + name: target + required: true + type: string + produces: + - application/json + responses: + "200": + description: Job info + schema: + additionalProperties: + $ref: '#/definitions/indexing.ReducedIndex' + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Get jobs info + tags: + - Jobs + /api/media/subtitles: + get: + consumes: + - application/json + description: Extracts embedded subtitle content from video files by stream index + and returns raw WebVTT content + parameters: + - description: Index path to the video file + in: query + name: path + required: true + type: string + - description: Source name for the desired source + in: query + name: source + required: true + type: string + - description: Stream index for embedded subtitle extraction, defaults to 0 + in: query + name: index + type: integer + produces: + - text/vtt + responses: + "200": + description: Raw WebVTT subtitle content + schema: + type: string + "400": + description: Bad request + schema: + additionalProperties: + type: string + type: object + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "404": + description: Resource not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Extract embedded subtitles + tags: + - Subtitles + /api/preview: + get: + consumes: + - application/json + description: Returns a preview image based on the requested path and size. + parameters: + - description: File path of the image to preview + in: query + name: path + required: true + type: string + - description: Preview size ('small' or 'large'). Default is based on server + config. + in: query + name: size + type: string + produces: + - application/json + responses: + "200": + description: Preview image content + schema: + type: file + "202": + description: Download permissions required + schema: + additionalProperties: + type: string + type: object + "400": + description: Invalid request path + schema: + additionalProperties: + type: string + type: object + "404": + description: File not found + schema: + additionalProperties: + type: string + type: object + "415": + description: Unsupported file type for preview + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + "501": + description: Preview generation not implemented + schema: + additionalProperties: + type: string + type: object + summary: Get image preview + tags: + - Resources + /api/raw: + get: + consumes: + - application/json + description: Returns the raw content of a file, multiple files, or a directory. + Supports downloading files as archives in various formats. + parameters: + - description: a list of files in the following format 'source::filename' and + separated by '||' with additional items in the list. (required) + in: query + name: files + required: true + type: string + - description: If true, sets 'Content-Disposition' to 'inline'. Otherwise, defaults + to 'attachment'. + in: query + name: inline + type: boolean + - description: 'Compression algorithm for archiving multiple files or directories. + Options: ''zip'' and ''tar.gz''. Default is ''zip''.' + in: query + name: algo + type: string + produces: + - application/json + responses: + "200": + description: Raw file or directory content, or archive for multiple files + schema: + type: file + "202": + description: Modify permissions required + schema: + additionalProperties: + type: string + type: object + "400": + description: Invalid request path + schema: + additionalProperties: + type: string + type: object + "404": + description: File or directory not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Get raw content of a file, multiple files, or directory + tags: + - Resources + /api/renew: + post: + consumes: + - application/json + description: Refresh the authentication token for a logged-in user. + produces: + - application/json + responses: + "200": + description: New JWT token generated + schema: + type: string + "401": + description: Unauthorized - invalid token + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Renew authentication token + tags: + - Auth + /api/resources: + delete: + consumes: + - application/json + description: Deletes a resource located at the specified path. + parameters: + - description: Path to the resource + in: query + name: path + required: true + type: string + - description: Source name for the desired source, default is used if not provided + in: query + name: source + required: true + type: string + produces: + - application/json + responses: + "200": + description: Resource deleted successfully + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "404": + description: Resource not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Delete a resource + tags: + - Resources + get: + consumes: + - application/json + description: Returns metadata and optionally file contents for a specified resource + path. + parameters: + - description: Path to the resource + in: query + name: path + required: true + type: string + - description: Source name for the desired source, default is used if not provided + in: query + name: source + required: true + type: string + - description: Include file content if true + in: query + name: content + type: string + - description: Optional checksum validation + in: query + name: checksum + type: string + produces: + - application/json + responses: + "200": + description: Resource metadata + schema: + $ref: '#/definitions/iteminfo.FileInfo' + "404": + description: Resource not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Get resource information + tags: + - Resources + patch: + consumes: + - application/json + description: Moves or renames a resource to a new destination. + parameters: + - description: Path from resource in :: format + in: query + name: from + required: true + type: string + - description: Destination path for the resource + in: query + name: destination + required: true + type: string + - description: Action to perform (copy, rename) + in: query + name: action + required: true + type: string + - description: Overwrite if destination exists + in: query + name: overwrite + type: boolean + - description: Rename if destination exists + in: query + name: rename + type: boolean + produces: + - application/json + responses: + "200": + description: Resource moved/renamed successfully + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "404": + description: Resource not found + schema: + additionalProperties: + type: string + type: object + "409": + description: Conflict - Destination exists + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Patch resource (move/rename) + tags: + - Resources + post: + consumes: + - application/json + description: Creates a new resource or uploads a file at the specified path. + Supports file uploads and directory creation. + parameters: + - description: url encoded destination path where to place the files inside + the destination source, a directory must end in / to create a directory + in: query + name: path + required: true + type: string + - description: Name for the desired filebrowser destination source name, default + is used if not provided + in: query + name: source + required: true + type: string + - description: Override existing file if true + in: query + name: override + type: boolean + produces: + - application/json + responses: + "200": + description: Resource created successfully + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "404": + description: Resource not found + schema: + additionalProperties: + type: string + type: object + "409": + description: Conflict - Resource already exists + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Create or upload a resource + tags: + - Resources + put: + consumes: + - application/json + description: Updates an existing file at the specified path. + parameters: + - description: Destination path where to place the files inside the destination + source + in: query + name: path + required: true + type: string + - description: Source name for the desired source, default is used if not provided + in: query + name: source + required: true + type: string + produces: + - application/json + responses: + "200": + description: Resource updated successfully + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "404": + description: Resource not found + schema: + additionalProperties: + type: string + type: object + "405": + description: Method not allowed + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Update a file resource + tags: + - Resources + /api/search: + get: + consumes: + - application/json + description: Searches for files matching the provided query. Returns file paths + and metadata based on the user's session and scope. + parameters: + - description: Search query + in: query + name: query + required: true + type: string + - description: Source name for the desired source + in: query + name: source + required: true + type: string + - description: path within user scope to search, for example '/first/second' + to search within the second directory only + in: query + name: scope + type: string + - description: User session ID, add unique value to prevent collisions + in: header + name: SessionId + type: string + produces: + - application/json + responses: + "200": + description: List of search results + schema: + items: + $ref: '#/definitions/indexing.SearchResult' + type: array + "400": + description: Bad Request + schema: + additionalProperties: + type: string + type: object + summary: Search Files + tags: + - Search + /api/settings: + get: + consumes: + - application/json + description: Returns the current configuration settings for signup, user directories, + rules, frontend. + parameters: + - description: 'Property to retrieve: `userDefaults`, `frontend`, `auth`, `server`, + `sources`' + in: query + name: property + type: string + produces: + - application/json + responses: + "200": + description: System settings data + schema: + $ref: '#/definitions/settings.Settings' + summary: Get system settings + tags: + - Settings + /api/settings/config: + get: + consumes: + - application/json + description: Returns the current running configuration settings as YAML format + with optional comments and filtering. + parameters: + - description: Show all values (true) or only non-default values (false, default) + in: query + name: full + type: boolean + - description: Include comments in YAML (true) or plain YAML (false, default) + in: query + name: comments + type: boolean + produces: + - text/plain + responses: + "200": + description: System settings in YAML format + schema: + type: string + summary: Get system settings as YAML + tags: + - Settings + /api/share: + get: + consumes: + - application/json + description: Retrieves all share links associated with a specific resource path + for the current user. + parameters: + - description: Resource path for which to retrieve share links + in: query + name: path + required: true + type: string + - description: Source name for share links + in: query + name: source + required: true + type: string + produces: + - application/json + responses: + "200": + description: List of share links for the specified path + schema: + items: + $ref: '#/definitions/share.Link' + type: array + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Get share links by path + tags: + - Shares + patch: + consumes: + - application/json + description: Updates the path for a specific share link identified by hash + parameters: + - description: Hash and new path + in: body + name: body + required: true + schema: + properties: + hash: + type: string + path: + type: string + type: object + produces: + - application/json + responses: + "200": + description: Updated share link + schema: + $ref: '#/definitions/http.ShareResponse' + "400": + description: Bad request - missing or invalid parameters + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Update share link path + tags: + - Shares + post: + consumes: + - application/json + description: Creates a new share link with an optional expiration time and password + protection. + parameters: + - description: Share creation parameters + in: body + name: body + required: true + schema: + $ref: '#/definitions/share.CreateBody' + produces: + - application/json + responses: + "200": + description: Created share link + schema: + $ref: '#/definitions/share.Link' + "400": + description: Bad request - failed to decode body + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Create a share link + tags: + - Shares + /api/share/direct: + get: + consumes: + - application/json + description: Creates a direct download link for a specific file with configurable + duration, download count, and speed limits. If a share already exists with + matching parameters, the existing share will be reused. + parameters: + - description: File path to create download link for + in: query + name: path + required: true + type: string + - description: Source name for the file + in: query + name: source + required: true + type: string + - description: 'Duration in minutes for link validity (default: 60)' + in: query + name: duration + type: string + - description: 'Maximum number of downloads allowed (default: unlimited)' + in: query + name: count + type: string + - description: 'Download speed limit in kbps (default: unlimited)' + in: query + name: speed + type: string + produces: + - application/json + responses: + "201": + description: Direct download link created + schema: + $ref: '#/definitions/http.DirectDownloadResponse' + "400": + description: Bad request - invalid parameters or path is not a file + schema: + additionalProperties: + type: string + type: object + "403": + description: Forbidden - access denied + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Create direct download link + tags: + - Shares + /api/shares: + delete: + consumes: + - application/json + description: Deletes a share link specified by its hash. + parameters: + - description: Hash of the share link to delete + in: query + name: hash + required: true + type: string + produces: + - application/json + responses: + "200": + description: Share link deleted successfully + "400": + description: Bad request - missing or invalid hash + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Delete a share link + tags: + - Shares + get: + consumes: + - application/json + description: Returns a list of share links for the current user, or all links + if the user is an admin. + produces: + - application/json + responses: + "200": + description: List of share links + schema: + items: + $ref: '#/definitions/share.Link' + type: array + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: List share links + tags: + - Shares + /api/users: + delete: + consumes: + - application/json + description: Deletes a user identified by their ID. + parameters: + - description: User ID + in: query + name: id + required: true + type: string + produces: + - application/json + responses: + "200": + description: User deleted successfully + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal Server Error + schema: + additionalProperties: + type: string + type: object + summary: Delete a user by ID + tags: + - Users + get: + consumes: + - application/json + description: Returns a user's details based on their ID, or all users if no + id is provided. + parameters: + - description: User ID or 'self' + in: query + name: id + type: string + produces: + - application/json + responses: + "200": + description: User details or list of users + schema: + $ref: '#/definitions/users.User' + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "404": + description: Not Found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal Server Error + schema: + additionalProperties: + type: string + type: object + summary: Retrieve a user by ID + tags: + - Users + post: + consumes: + - application/json + description: Adds a new user to the system. + parameters: + - description: User data to create a new user + in: body + name: data + required: true + schema: + $ref: '#/definitions/users.User' + produces: + - application/json + responses: + "201": + description: Created user + schema: + $ref: '#/definitions/users.User' + "400": + description: Bad Request + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal Server Error + schema: + additionalProperties: + type: string + type: object + summary: Create a new user + tags: + - Users + put: + consumes: + - application/json + description: Updates the details of a user identified by ID. + parameters: + - description: user ID to update + in: query + name: id + type: string + - description: usename to update + in: query + name: id + type: string + - description: User data to update + in: body + name: data + required: true + schema: + $ref: '#/definitions/users.User' + responses: + "204": + description: No Content - User updated successfully + "400": + description: Bad Request + schema: + additionalProperties: + type: string + type: object + "403": + description: Forbidden + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal Server Error + schema: + additionalProperties: + type: string + type: object + summary: Update a user's details + tags: + - Users + /health: + get: + consumes: + - application/json + description: Returns the health status of the API. + produces: + - application/json + responses: + "200": + description: successful health check response + schema: + $ref: '#/definitions/http.HttpResponse' + summary: Health Check + tags: + - Health + /public/api/preview: + get: + consumes: + - application/json + description: Returns a preview (thumbnail) for images or videos accessible via + a public share. Preview generation can be disabled globally or per-share. + Not available for upload-only shares. + parameters: + - description: Share hash for authentication + in: query + name: hash + required: true + type: string + - description: File path within the share to preview + in: query + name: path + required: true + type: string + - description: 'Preview size: ''small'' or ''large''. Default is based on server + config.' + in: query + name: size + type: string + produces: + - image/jpeg + responses: + "200": + description: Preview image content (JPEG) + schema: + type: file + "403": + description: Share unavailable or access denied + schema: + additionalProperties: + type: string + type: object + "404": + description: File not found or preview not available + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + "501": + description: Previews disabled globally, for this share, or for upload shares + schema: + additionalProperties: + type: string + type: object + summary: Get image/video preview from a public share + tags: + - Public Shares + /public/api/raw: + get: + consumes: + - application/json + description: Downloads raw content from a public share. Supports single files, + multiple files, or directories as archives. Enforces download limits (global + or per-user) and blocks anonymous users when per-user limits are enabled. + parameters: + - description: Share hash for authentication + in: query + name: hash + required: true + type: string + - description: 'Files to download in format: ''source::path||source::path''. + Example: ''/file1||/folder/file2''' + in: query + name: files + required: true + type: string + - description: If true, sets 'Content-Disposition' to 'inline'. Otherwise, defaults + to 'attachment'. + in: query + name: inline + type: boolean + - description: 'Compression algorithm for archiving multiple files or directories. + Options: ''zip'' and ''tar.gz''. Default is ''zip''.' + in: query + name: algo + type: string + produces: + - application/octet-stream + responses: + "200": + description: Raw file or directory content, or archive for multiple files + schema: + type: file + "400": + description: Invalid request path or encoding + schema: + additionalProperties: + type: string + type: object + "403": + description: Download limit reached, anonymous access blocked, or share + unavailable + schema: + additionalProperties: + type: string + type: object + "404": + description: Share not found or file not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + "501": + description: Downloads disabled for upload shares + schema: + additionalProperties: + type: string + type: object + summary: Download files from a public share + tags: + - Public Shares + /public/api/resources: + post: + consumes: + - multipart/form-data + description: Handles file and directory uploads to an upload-only public share. + Supports chunked uploads, conflict resolution (override), and directory creation. + parameters: + - description: Share hash for authentication + in: query + name: hash + required: true + type: string + - description: Target path within the share to upload to. Must be relative to + share root. + in: query + name: targetPath + required: true + type: string + - description: If true, overwrite existing files/folders. Defaults to false. + in: query + name: override + type: boolean + - description: 'Upload action: ''override'' to replace files, ''rename'' to + auto-rename' + in: query + name: action + type: string + - description: File to upload + in: formData + name: file + required: true + type: file + produces: + - application/json + responses: + "200": + description: Upload successful + schema: + additionalProperties: + type: string + type: object + "400": + description: Invalid request or parameters + schema: + additionalProperties: + type: string + type: object + "403": + description: Share unavailable or upload not allowed + schema: + additionalProperties: + type: string + type: object + "404": + description: Share not found + schema: + additionalProperties: + type: string + type: object + "409": + description: File or directory already exists (conflict) + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error during upload + schema: + additionalProperties: + type: string + type: object + "501": + description: Uploading disabled for non-upload shares + schema: + additionalProperties: + type: string + type: object + summary: Upload files to a public upload share + tags: + - Public Shares + put: + consumes: + - application/json + description: Updates the content of a file in a public share. + parameters: + - description: Share hash for authentication + in: query + name: hash + required: true + type: string + - description: Path to the file to update + in: query + name: path + required: true + type: string + - description: New content for the file + in: body + name: content + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: File updated successfully + schema: + additionalProperties: + type: string + type: object + "400": + description: Invalid request or parameters + schema: + additionalProperties: + type: string + type: object + "403": + description: Share unavailable or update not allowed + schema: + additionalProperties: + type: string + type: object + "404": + description: Share not found or file not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Update a file in a public share + tags: + - Public Shares + /public/api/share: + get: + consumes: + - application/json + description: Returns metadata for files or directories accessible via a public + share link. Browsing is disabled for upload-only shares. + parameters: + - description: Share hash for authentication + in: query + name: hash + required: true + type: string + - description: Path within the share to retrieve information for. Defaults to + share root. + in: query + name: path + type: string + produces: + - application/json + responses: + "200": + description: File or directory metadata + schema: + $ref: '#/definitions/iteminfo.FileInfo' + "403": + description: Share unavailable or access denied + schema: + additionalProperties: + type: string + type: object + "404": + description: Share not found or file not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + "501": + description: Browsing disabled for upload shares + schema: + additionalProperties: + type: string + type: object + summary: Get file/directory information from a public share + tags: + - Public Shares +swagger: "2.0" diff --git a/backend/ffmpeg/cache.go b/backend/ffmpeg/cache.go new file mode 100644 index 0000000000..64edc88a27 --- /dev/null +++ b/backend/ffmpeg/cache.go @@ -0,0 +1,13 @@ +package ffmpeg + +import ( + "time" + + "github.com/gtsteffaniak/go-cache/cache" +) + +var ( + MediaCache = cache.NewCache[[]SubtitleTrack](24 * time.Hour) // subtitles get cached for 24 hours + SubtitleContentCache = cache.NewCache[string](24 * time.Hour) // subtitle content gets cached for 24 hours + MetadataCache = cache.NewCache[float64](24 * time.Hour) // media duration gets cached for 24 hours +) diff --git a/backend/ffmpeg/image.go b/backend/ffmpeg/image.go index 33002f7e49..33510a356a 100644 --- a/backend/ffmpeg/image.go +++ b/backend/ffmpeg/image.go @@ -13,41 +13,8 @@ import ( "github.com/gtsteffaniak/filebrowser/backend/adapters/fs/fileutils" ) -// ImageService handles image operations with ffmpeg -type ImageService struct { - ffmpegPath string - ffprobePath string - debug bool - cacheDir string - semaphore chan struct{} -} - -// NewImageService creates a new image service instance -func NewImageService(ffmpegPath, ffprobePath string, maxConcurrent int, debug bool, cacheDir string) *ImageService { - return &ImageService{ - ffmpegPath: ffmpegPath, - ffprobePath: ffprobePath, - debug: debug, - cacheDir: cacheDir, - semaphore: make(chan struct{}, maxConcurrent), - } -} - -func (s *ImageService) Acquire(ctx context.Context) error { - select { - case s.semaphore <- struct{}{}: - return nil - case <-ctx.Done(): - return ctx.Err() - } -} - -func (s *ImageService) Release() { - <-s.semaphore -} - // GetImageOrientation extracts the EXIF orientation from an image file using exiftool -func (s *ImageService) GetImageOrientation(imagePath string) (string, error) { +func (s *FFmpegService) GetImageOrientation(imagePath string) (string, error) { // Use exiftool to get orientation information cmd := exec.Command("exiftool", "-Orientation", "-s3", imagePath) var out bytes.Buffer @@ -67,7 +34,7 @@ func (s *ImageService) GetImageOrientation(imagePath string) (string, error) { } // GetOrientationFilter converts EXIF orientation to FFmpeg filter -func (s *ImageService) GetOrientationFilter(orientation string) string { +func (s *FFmpegService) GetOrientationFilter(orientation string) string { switch orientation { // Text-based EXIF orientation values (from exiftool) case "Rotate 90 CW", "Right-top": @@ -111,7 +78,7 @@ func (s *ImageService) GetOrientationFilter(orientation string) string { } // GetImageDimensions extracts the dimensions of an image file using ffprobe -func (s *ImageService) GetImageDimensions(imagePath string) (width, height int, err error) { +func (s *FFmpegService) GetImageDimensions(imagePath string) (width, height int, err error) { // Get HEIC dimensions (fallback to individual stream dimensions for nowe re probeCmd := exec.Command( @@ -161,7 +128,7 @@ func (s *ImageService) GetImageDimensions(imagePath string) (width, height int, } // ConvertHEICToJPEGDirect converts a HEIC file to JPEG using direct FFmpeg conversion (fast method) -func (s *ImageService) ConvertHEICToJPEGDirect(ctx context.Context, heicPath string, targetWidth, targetHeight int, quality string) ([]byte, error) { +func (s *FFmpegService) ConvertHEICToJPEGDirect(ctx context.Context, heicPath string, targetWidth, targetHeight int, quality string) ([]byte, error) { // Check if context is cancelled before starting if ctx.Err() != nil { return nil, ctx.Err() @@ -229,7 +196,7 @@ func (s *ImageService) ConvertHEICToJPEGDirect(ctx context.Context, heicPath str } // ConvertHEICToJPEG converts a HEIC file to JPEG with specified dimensions and quality using proper tile extraction -func (s *ImageService) ConvertHEICToJPEG(ctx context.Context, heicPath string, targetWidth, targetHeight int, quality string) ([]byte, error) { +func (s *FFmpegService) ConvertHEICToJPEG(ctx context.Context, heicPath string, targetWidth, targetHeight int, quality string) ([]byte, error) { // Check if context is cancelled before starting if ctx.Err() != nil { return nil, ctx.Err() diff --git a/backend/ffmpeg/image_test.go b/backend/ffmpeg/image_test.go index ee229993b1..cca8dde982 100644 --- a/backend/ffmpeg/image_test.go +++ b/backend/ffmpeg/image_test.go @@ -1,14 +1,13 @@ package ffmpeg import ( - "context" "os" "path/filepath" "testing" ) func TestGetOrientationFilter(t *testing.T) { - service := &ImageService{} + service := &FFmpegService{} tests := []struct { name string @@ -125,7 +124,7 @@ func TestGetImageOrientation(t *testing.T) { } defer os.RemoveAll(tempDir) - service := NewImageService("ffmpeg", "ffprobe", 2, false, tempDir) + service := NewFFmpegService(2, false, "/tmp/test_cache") t.Run("Non-existent file", func(t *testing.T) { nonExistentFile := filepath.Join(tempDir, "non_existent.heic") @@ -153,94 +152,9 @@ func TestGetImageOrientation(t *testing.T) { }) } -func TestNewImageService(t *testing.T) { - ffmpegPath := "/usr/bin/ffmpeg" - ffprobePath := "/usr/bin/ffprobe" - debug := true - cacheDir := "/tmp/test_cache" - - service := NewImageService(ffmpegPath, ffprobePath, 2, debug, cacheDir) - - if service.ffmpegPath != ffmpegPath { - t.Errorf("Expected ffmpegPath %q, got %q", ffmpegPath, service.ffmpegPath) - } - if service.ffprobePath != ffprobePath { - t.Errorf("Expected ffprobePath %q, got %q", ffprobePath, service.ffprobePath) - } - if service.debug != debug { - t.Errorf("Expected debug %v, got %v", debug, service.debug) - } - if service.cacheDir != cacheDir { - t.Errorf("Expected cacheDir %q, got %q", cacheDir, service.cacheDir) - } -} - -// Integration test for orientation handling in direct conversion -func TestConvertHEICToJPEGDirect_OrientationHandling(t *testing.T) { - // Skip this test if ffmpeg is not available - if testing.Short() { - t.Skip("Skipping integration test in short mode") - } - - // Create a temporary directory for testing - tempDir, err := os.MkdirTemp("", "ffmpeg_integration_test") - if err != nil { - t.Fatalf("Failed to create temp directory: %v", err) - } - defer os.RemoveAll(tempDir) - - service := NewImageService("ffmpeg", "ffprobe", 2, true, tempDir) - - t.Run("Direct conversion with orientation detection", func(t *testing.T) { - // This test requires actual HEIC files to work properly - // For CI/CD environments, we can mock this or skip if files don't exist - - heicTestFiles := []string{ - "/Users/steffag/Downloads/heic/IMG_6660.heic", - "/Users/steffag/Downloads/heic/IMG_2919.HEIC", - "/Users/steffag/Downloads/heic/shelf-christmas-decoration.heic", - } - - for _, testFile := range heicTestFiles { - // Check if test file exists - if _, err := os.Stat(testFile); os.IsNotExist(err) { - t.Logf("Skipping test for %s (file not found)", filepath.Base(testFile)) - continue - } - - t.Logf("Testing orientation handling for %s", filepath.Base(testFile)) - - // Test orientation detection - orientation, err := service.GetImageOrientation(testFile) - if err != nil { - t.Errorf("Failed to get orientation for %s: %v", filepath.Base(testFile), err) - continue - } - t.Logf("Detected orientation: %s", orientation) - - // Test filter generation - filter := service.GetOrientationFilter(orientation) - t.Logf("Generated filter: %s", filter) - - // Test actual conversion (small size for speed) - jpegBytes, err := service.ConvertHEICToJPEGDirect(context.Background(), testFile, 100, 100, "5") - if err != nil { - t.Errorf("Failed to convert %s: %v", filepath.Base(testFile), err) - continue - } - - if len(jpegBytes) < 400 { - t.Errorf("Converted image too small (%d bytes), likely conversion failed", len(jpegBytes)) - } - - t.Logf("Successfully converted %s to %d bytes", filepath.Base(testFile), len(jpegBytes)) - } - }) -} - // Benchmark the orientation filter generation func BenchmarkGetOrientationFilter(b *testing.B) { - service := &ImageService{} + service := &FFmpegService{} orientations := []string{ "Horizontal (normal)", "Rotate 90 CW", @@ -258,7 +172,7 @@ func BenchmarkGetOrientationFilter(b *testing.B) { // Test table for all EXIF orientation values func TestGetOrientationFilter_AllEXIFValues(t *testing.T) { - service := &ImageService{} + service := &FFmpegService{} // Test all possible EXIF orientation values according to EXIF spec exifTests := []struct { diff --git a/backend/ffmpeg/metadata.go b/backend/ffmpeg/metadata.go new file mode 100644 index 0000000000..d28df6569f --- /dev/null +++ b/backend/ffmpeg/metadata.go @@ -0,0 +1,68 @@ +package ffmpeg + +import ( + "context" + "fmt" + "os" + "os/exec" + "strconv" + "strings" +) + +// GetMediaDuration extracts the duration of a media file (audio or video) using ffprobe +// This method respects the concurrency limits, uses caching, and gracefully handles errors +// Cache key is based on file path + mod time for automatic cache invalidation on file changes +func (s *FFmpegService) GetMediaDuration(ctx context.Context, mediaPath string) (float64, error) { + // Get file info for cache key (path + mod time) + fileInfo, err := os.Stat(mediaPath) + if err != nil { + return 0, fmt.Errorf("failed to stat file: %w", err) + } + // Create cache key from path and modification time + cacheKey := fmt.Sprintf("%s:%d", mediaPath, fileInfo.ModTime().Unix()) + // Check cache first + if duration, found := MetadataCache.Get(cacheKey); found { + return duration, nil + } + // Acquire semaphore slot for concurrency control + if err = s.Acquire(ctx); err != nil { + return 0, err + } + defer s.Release() + + // Check if context is cancelled before starting + if ctx.Err() != nil { + return 0, ctx.Err() + } + + cmd := exec.CommandContext(ctx, + s.ffprobePath, + "-v", "error", + "-show_entries", "format=duration", + "-of", "default=noprint_wrappers=1:nokey=1", + mediaPath, + ) + + output, err := cmd.Output() + if err != nil { + MetadataCache.Set(cacheKey, 0) + return 0, fmt.Errorf("ffprobe failed: %w", err) + } + + durationStr := strings.TrimSpace(string(output)) + if durationStr == "" || durationStr == "N/A" { + MetadataCache.Set(cacheKey, 0) + return 0, fmt.Errorf("could not determine media duration") + } + + duration, err := strconv.ParseFloat(durationStr, 64) + if err != nil { + MetadataCache.Set(cacheKey, 0) + return 0, fmt.Errorf("invalid duration: %v", err) + } + + // Cache successful result + MetadataCache.Set(cacheKey, duration) + + return duration, nil +} diff --git a/backend/ffmpeg/service.go b/backend/ffmpeg/service.go new file mode 100644 index 0000000000..3a29488566 --- /dev/null +++ b/backend/ffmpeg/service.go @@ -0,0 +1,104 @@ +package ffmpeg + +import ( + "context" + "os/exec" + "path/filepath" + "runtime" + + "github.com/gtsteffaniak/filebrowser/backend/common/settings" + "github.com/gtsteffaniak/go-logger/logger" +) + +// VideoService handles video preview operations with ffmpeg +type FFmpegService struct { + ffmpegPath string + ffprobePath string + debug bool + semaphore chan struct{} + cacheDir string + maxConcurrent int // For logging purposes +} + +// NewVideoService creates a new video service instance +func NewFFmpegService(maxConcurrent int, debug bool, cacheDir string) *FFmpegService { + if settings.Env.FFmpegPath == "" || settings.Env.FFprobePath == "" { + return nil + } + return &FFmpegService{ + ffmpegPath: settings.Env.FFmpegPath, + ffprobePath: settings.Env.FFprobePath, + debug: debug, + semaphore: make(chan struct{}, maxConcurrent), + maxConcurrent: maxConcurrent, + cacheDir: cacheDir, + } +} + +func (s *FFmpegService) Acquire(ctx context.Context) error { + select { + case s.semaphore <- struct{}{}: + return nil + case <-ctx.Done(): + return ctx.Err() + } +} + +func (s *FFmpegService) Release() { + <-s.semaphore +} + +// CheckValidFFmpeg checks for a valid ffmpeg executable. +// If a path is provided, it looks there. Otherwise, it searches the system's PATH. +func CheckValidFFmpeg(path string) (string, error) { + return checkExecutable(path, "ffmpeg") +} + +// CheckValidFFprobe checks for a valid ffprobe executable. +// If a path is provided, it looks there. Otherwise, it searches the system's PATH. +func CheckValidFFprobe(path string) (string, error) { + return checkExecutable(path, "ffprobe") +} + +// checkExecutable is an internal helper function to find and validate an executable. +// It checks a specific path if provided, otherwise falls back to searching the system PATH. +func checkExecutable(providedPath, execName string) (string, error) { + // Add .exe extension for Windows systems + if runtime.GOOS == "windows" { + execName += ".exe" + } + + var finalPath string + var err error + + if providedPath != "" { + // A path was provided, so we'll use it. + finalPath = filepath.Join(providedPath, execName) + } else { + // No path was provided, so search the system's PATH for the executable. + finalPath, err = exec.LookPath(execName) + if err != nil { + // The executable was not found in the system's PATH. + return "", err + } + } + + // Verify the executable is valid by running the "-version" command. + cmd := exec.Command(finalPath, "-version") + err = cmd.Run() + + return finalPath, err +} + +func SetFFmpegPaths() { + ffmpegMainPath, err := CheckValidFFmpeg(settings.Env.FFmpegPath) + if err != nil && settings.Env.FFmpegPath != "" { + logger.Warningf("the configured ffmpeg path does not contain a valid ffmpeg binary %s, err: %v", settings.Env.FFmpegPath, err) + } + ffprobePath, errprobe := CheckValidFFprobe(settings.Env.FFprobePath) + if errprobe != nil && settings.Env.FFprobePath != "" { + logger.Warningf("the configured ffmpeg path is not a valid ffprobe binary %s, err: %v", settings.Env.FFprobePath, err) + } + settings.Env.FFmpegPath = ffmpegMainPath + settings.Env.FFprobePath = ffprobePath +} diff --git a/backend/ffmpeg/subtitles.go b/backend/ffmpeg/subtitles.go index 129f73d269..2c762cb73a 100644 --- a/backend/ffmpeg/subtitles.go +++ b/backend/ffmpeg/subtitles.go @@ -10,7 +10,6 @@ import ( "strings" "time" - "github.com/gtsteffaniak/go-cache/cache" "github.com/gtsteffaniak/go-logger/logger" ) @@ -25,11 +24,6 @@ type SubtitleTrack struct { IsFile bool `json:"isFile"` // true for external files, false for embedded streams } -var ( - MediaCache = cache.NewCache[[]SubtitleTrack](24 * time.Hour) // subtitles get cached for 24 hours - SubtitleContentCache = cache.NewCache[string](24 * time.Hour) // subtitle content gets cached for 24 hours -) - // FFProbeOutput represents the JSON output from ffprobe type FFProbeOutput struct { Streams []struct { diff --git a/backend/ffmpeg/video.go b/backend/ffmpeg/video.go index 06fa63b4e8..e66587855f 100644 --- a/backend/ffmpeg/video.go +++ b/backend/ffmpeg/video.go @@ -13,46 +13,13 @@ import ( "github.com/gtsteffaniak/go-logger/logger" ) -// VideoService handles video preview operations with ffmpeg -type VideoService struct { - ffmpegPath string - ffprobePath string - debug bool - semaphore chan struct{} - maxConcurrent int // For logging purposes -} - -// NewVideoService creates a new video service instance -func NewVideoService(ffmpegPath, ffprobePath string, maxConcurrent int, debug bool) *VideoService { - return &VideoService{ - ffmpegPath: ffmpegPath, - ffprobePath: ffprobePath, - debug: debug, - semaphore: make(chan struct{}, maxConcurrent), - maxConcurrent: maxConcurrent, - } -} - -func (s *VideoService) acquire(ctx context.Context) error { - select { - case s.semaphore <- struct{}{}: - return nil - case <-ctx.Done(): - return ctx.Err() - } -} - -func (s *VideoService) release() { - <-s.semaphore -} - // GenerateVideoPreviewStreaming generates a video preview and streams it directly to a writer // This is more memory efficient for large previews as it doesn't load the entire file into memory -func (s *VideoService) GenerateVideoPreviewStreaming(ctx context.Context, videoPath string, percentageSeek int, writer io.Writer) error { - if err := s.acquire(ctx); err != nil { +func (s *FFmpegService) GenerateVideoPreviewStreaming(ctx context.Context, videoPath string, percentageSeek int, writer io.Writer) error { + if err := s.Acquire(ctx); err != nil { return err } - defer s.release() + defer s.Release() // Check if context is cancelled before starting if ctx.Err() != nil { @@ -145,29 +112,3 @@ func (s *VideoService) GenerateVideoPreviewStreaming(ctx context.Context, videoP } return nil } - -// GetVideoDuration extracts the duration of a video file using ffprobe -func GetVideoDuration(ffprobePath string, videoPath string) (float64, error) { - cmd := exec.Command(ffprobePath, - "-v", "error", - "-show_entries", "format=duration", - "-of", "default=noprint_wrappers=1:nokey=1", - videoPath) - - output, err := cmd.Output() - if err != nil { - return 0, fmt.Errorf("ffprobe failed: %w", err) - } - - durationStr := strings.TrimSpace(string(output)) - if durationStr == "" || durationStr == "N/A" { - return 0, fmt.Errorf("could not determine video duration") - } - - duration, err := strconv.ParseFloat(durationStr, 64) - if err != nil { - return 0, fmt.Errorf("invalid duration: %v", err) - } - - return duration, nil -} diff --git a/backend/go.mod b/backend/go.mod index 6e8d1d9440..dddfa9d593 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -20,11 +20,11 @@ require ( github.com/stretchr/testify v1.11.1 github.com/swaggo/http-swagger v1.3.4 github.com/swaggo/swag v1.16.6 - golang.org/x/crypto v0.43.0 - golang.org/x/image v0.32.0 - golang.org/x/mod v0.29.0 - golang.org/x/oauth2 v0.32.0 - golang.org/x/sys v0.37.0 + golang.org/x/crypto v0.44.0 + golang.org/x/image v0.33.0 + golang.org/x/mod v0.30.0 + golang.org/x/oauth2 v0.33.0 + golang.org/x/sys v0.38.0 golang.org/x/time v0.14.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -49,7 +49,7 @@ require ( github.com/Masterminds/semver/v3 v3.4.0 // indirect github.com/MirrexOne/unqueryvet v1.2.1 // indirect github.com/OpenPeeDeeP/depguard/v2 v2.2.1 // indirect - github.com/air-verse/air v1.63.0 // indirect + github.com/air-verse/air v1.63.1 // indirect github.com/alecthomas/chroma/v2 v2.20.0 // indirect github.com/alecthomas/go-check-sumtype v0.3.1 // indirect github.com/alexkohler/nakedret/v2 v2.0.6 // indirect @@ -83,7 +83,6 @@ require ( github.com/charmbracelet/x/term v0.2.1 // indirect github.com/ckaznocha/intrange v0.3.1 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect - github.com/creack/pty v1.1.24 // indirect github.com/curioswitch/go-reassign v0.3.0 // indirect github.com/daixiang0/gci v0.13.7 // indirect github.com/dave/dst v0.27.3 // indirect @@ -92,7 +91,7 @@ require ( github.com/dlclark/regexp2 v1.11.5 // indirect github.com/dsoprea/go-logging v0.0.0-20200710184922-b02d349568dd // indirect github.com/dsoprea/go-utility/v2 v2.0.0-20221003172846-a3e1774ef349 // indirect - github.com/ebitengine/purego v0.9.0 // indirect + github.com/ebitengine/purego v0.9.1 // indirect github.com/ettle/strcase v0.2.0 // indirect github.com/fatih/color v1.18.0 // indirect github.com/fatih/structtag v1.2.0 // indirect @@ -101,19 +100,19 @@ require ( github.com/fzipp/gocyclo v0.6.0 // indirect github.com/gabriel-vasile/mimetype v1.4.11 // indirect github.com/ghostiam/protogetter v0.3.17 // indirect - github.com/go-critic/go-critic v0.14.0 // indirect + github.com/go-critic/go-critic v0.14.2 // indirect github.com/go-errors/errors v1.5.1 // indirect github.com/go-jose/go-jose/v4 v4.1.3 // indirect - github.com/go-openapi/jsonpointer v0.22.1 // indirect - github.com/go-openapi/jsonreference v0.21.2 // indirect - github.com/go-openapi/spec v0.22.0 // indirect - github.com/go-openapi/swag/conv v0.25.1 // indirect - github.com/go-openapi/swag/jsonname v0.25.1 // indirect - github.com/go-openapi/swag/jsonutils v0.25.1 // indirect - github.com/go-openapi/swag/loading v0.25.1 // indirect - github.com/go-openapi/swag/stringutils v0.25.1 // indirect - github.com/go-openapi/swag/typeutils v0.25.1 // indirect - github.com/go-openapi/swag/yamlutils v0.25.1 // indirect + github.com/go-openapi/jsonpointer v0.22.3 // indirect + github.com/go-openapi/jsonreference v0.21.3 // indirect + github.com/go-openapi/spec v0.22.1 // indirect + github.com/go-openapi/swag/conv v0.25.3 // indirect + github.com/go-openapi/swag/jsonname v0.25.3 // indirect + github.com/go-openapi/swag/jsonutils v0.25.3 // indirect + github.com/go-openapi/swag/loading v0.25.3 // indirect + github.com/go-openapi/swag/stringutils v0.25.3 // indirect + github.com/go-openapi/swag/typeutils v0.25.3 // indirect + github.com/go-openapi/swag/yamlutils v0.25.3 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-toolsmith/astcast v1.1.0 // indirect @@ -129,13 +128,13 @@ require ( github.com/godoc-lint/godoc-lint v0.10.1 // indirect github.com/gofrs/flock v0.13.0 // indirect github.com/gohugoio/hugo v0.149.1 // indirect - github.com/golang/geo v0.0.0-20251030142647-5906ab3d21fa // indirect + github.com/golang/geo v0.0.0-20251117194806-05dcfdd28b33 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/golangci/asciicheck v0.5.0 // indirect github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32 // indirect github.com/golangci/go-printf-func-name v0.1.1 // indirect github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d // indirect - github.com/golangci/golangci-lint/v2 v2.6.0 // indirect + github.com/golangci/golangci-lint/v2 v2.6.2 // indirect github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95 // indirect github.com/golangci/misspell v0.7.0 // indirect github.com/golangci/plugin-module-register v0.1.2 // indirect @@ -158,10 +157,10 @@ require ( github.com/jjti/go-spancheck v0.6.5 // indirect github.com/julz/importas v0.2.0 // indirect github.com/jupiterrider/ffi v0.5.1 // indirect - github.com/karamaru-alpha/copyloopvar v1.2.1 // indirect + github.com/karamaru-alpha/copyloopvar v1.2.2 // indirect github.com/kisielk/errcheck v1.9.0 // indirect github.com/kkHAIKE/contextcheck v1.1.6 // indirect - github.com/kovidgoyal/go-parallel v1.0.1 // indirect + github.com/kovidgoyal/go-parallel v1.1.1 // indirect github.com/kulti/thelper v0.7.1 // indirect github.com/kunwardeep/paralleltest v1.0.15 // indirect github.com/lasiar/canonicalheader v1.1.2 // indirect @@ -178,8 +177,8 @@ require ( github.com/mailru/easyjson v0.9.1 // indirect github.com/manuelarte/embeddedstructfieldcheck v0.4.0 // indirect github.com/manuelarte/funcorder v0.5.0 // indirect - github.com/maratori/testableexamples v1.0.0 // indirect - github.com/maratori/testpackage v1.1.1 // indirect + github.com/maratori/testableexamples v1.0.1 // indirect + github.com/maratori/testpackage v1.1.2 // indirect github.com/matoous/godox v1.1.0 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -202,7 +201,7 @@ require ( github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.32.1 // indirect github.com/prometheus/procfs v0.7.3 // indirect - github.com/quasilyte/go-ruleguard v0.4.4 // indirect + github.com/quasilyte/go-ruleguard v0.4.5 // indirect github.com/quasilyte/go-ruleguard/dsl v0.3.23 // indirect github.com/quasilyte/gogrep v0.5.0 // indirect github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect @@ -259,11 +258,11 @@ require ( go.uber.org/multierr v1.10.0 // indirect go.uber.org/zap v1.27.0 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect - golang.org/x/exp/typeparams v0.0.0-20251002181428-27f1f14c8bb9 // indirect - golang.org/x/net v0.46.0 // indirect - golang.org/x/sync v0.17.0 // indirect - golang.org/x/text v0.30.0 // indirect - golang.org/x/tools v0.38.0 // indirect + golang.org/x/exp/typeparams v0.0.0-20251023183803-a4bb9ffd2546 // indirect + golang.org/x/net v0.47.0 // indirect + golang.org/x/sync v0.18.0 // indirect + golang.org/x/text v0.31.0 // indirect + golang.org/x/tools v0.39.0 // indirect google.golang.org/protobuf v1.36.8 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/backend/go.sum b/backend/go.sum index 94908ccae0..57fedf14fb 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -77,8 +77,8 @@ github.com/OpenPeeDeeP/depguard/v2 v2.2.1 h1:vckeWVESWp6Qog7UZSARNqfu/cZqvki8zsu github.com/OpenPeeDeeP/depguard/v2 v2.2.1/go.mod h1:q4DKzC4UcVaAvcfd41CZh0PWpGgzrVxUYBlgKNGquUo= github.com/Sereal/Sereal v0.0.0-20190618215532-0b8ac451a863 h1:BRrxwOZBolJN4gIwvZMJY1tzqBvQgpaZiQRuIDD40jM= github.com/Sereal/Sereal v0.0.0-20190618215532-0b8ac451a863/go.mod h1:D0JMgToj/WdxCgd30Kc1UcA9E+WdZoJqeVOuYW7iTBM= -github.com/air-verse/air v1.63.0 h1:fwcdHpwaUe4/+q349PxptzAIn8gVE6Yke8TgW0LsDxQ= -github.com/air-verse/air v1.63.0/go.mod h1:RyCQVx2+3Zz2BzoqkukYiGmWkWXNKMf0x5ubIFcUB8Q= +github.com/air-verse/air v1.63.1 h1:N6kD5niKKVx0wF2mW0mgK6LNfJqP5/lCAqm3WWl9vlw= +github.com/air-verse/air v1.63.1/go.mod h1:Dnn4m4DlC9IQiNd3ir57SOdpvGJ3gnC1+OlIGMi2fJY= github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0= github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= github.com/alecthomas/chroma/v2 v2.20.0 h1:sfIHpxPyR07/Oylvmcai3X/exDlE8+FA820NTz+9sGw= @@ -200,8 +200,6 @@ github.com/coreos/go-oidc/v3 v3.16.0/go.mod h1:wqPbKFrVnE90vty060SB40FCJ8fTHTxSw github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo5vtkx0= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= -github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s= -github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE= github.com/curioswitch/go-reassign v0.3.0 h1:dh3kpQHuADL3cobV/sSGETA8DOv457dwl+fbBAhrQPs= github.com/curioswitch/go-reassign v0.3.0/go.mod h1:nApPCCTtqLJN/s8HfItCcKV0jIPwluBOvZP+dsJGA88= github.com/daixiang0/gci v0.13.7 h1:+0bG5eK9vlI08J+J/NWGbWPTNiXPG4WhNLJOkSxWITQ= @@ -238,8 +236,8 @@ github.com/dsoprea/go-utility/v2 v2.0.0-20221003142440-7a1927d49d9d/go.mod h1:LV github.com/dsoprea/go-utility/v2 v2.0.0-20221003160719-7bc88537c05e/go.mod h1:VZ7cB0pTjm1ADBWhJUOHESu4ZYy9JN+ZPqjfiW09EPU= github.com/dsoprea/go-utility/v2 v2.0.0-20221003172846-a3e1774ef349 h1:DilThiXje0z+3UQ5YjYiSRRzVdtamFpvBQXKwMglWqw= github.com/dsoprea/go-utility/v2 v2.0.0-20221003172846-a3e1774ef349/go.mod h1:4GC5sXji84i/p+irqghpPFZBF8tRN/Q7+700G0/DLe8= -github.com/ebitengine/purego v0.9.0 h1:mh0zpKBIXDceC63hpvPuGLiJ8ZAa3DfrFTudmfi8A4k= -github.com/ebitengine/purego v0.9.0/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= +github.com/ebitengine/purego v0.9.1 h1:a/k2f2HQU3Pi399RPW1MOaZyhKJL9w/xFpKAg4q1s0A= +github.com/ebitengine/purego v0.9.1/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= @@ -271,8 +269,8 @@ github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/ghostiam/protogetter v0.3.17 h1:sjGPErP9o7i2Ym+z3LsQzBdLCNaqbYy2iJQPxGXg04Q= github.com/ghostiam/protogetter v0.3.17/go.mod h1:AivIX1eKA/TcUmzZdzbl+Tb8tjIe8FcyG6JFyemQAH4= -github.com/go-critic/go-critic v0.14.0 h1:fzA7pGprRPwgA2LwoiaHuWzZzmUEM7dZjihfFpiZQpQ= -github.com/go-critic/go-critic v0.14.0/go.mod h1:/2QgW4QJIJ9aYCYTQ9RWKc+1KnMFouAJ/FmPylhzOoU= +github.com/go-critic/go-critic v0.14.2 h1:PMvP5f+LdR8p6B29npvChUXbD1vrNlKDf60NJtgMBOo= +github.com/go-critic/go-critic v0.14.2/go.mod h1:xwntfW6SYAd7h1OqDzmN6hBX/JxsEKl5up/Y2bsxgVQ= github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs= github.com/go-errors/errors v1.1.1/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs= @@ -292,29 +290,33 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -github.com/go-openapi/jsonpointer v0.22.1 h1:sHYI1He3b9NqJ4wXLoJDKmUmHkWy/L7rtEo92JUxBNk= -github.com/go-openapi/jsonpointer v0.22.1/go.mod h1:pQT9OsLkfz1yWoMgYFy4x3U5GY5nUlsOn1qSBH5MkCM= -github.com/go-openapi/jsonreference v0.21.2 h1:Wxjda4M/BBQllegefXrY/9aq1fxBA8sI5M/lFU6tSWU= -github.com/go-openapi/jsonreference v0.21.2/go.mod h1:pp3PEjIsJ9CZDGCNOyXIQxsNuroxm8FAJ/+quA0yKzQ= -github.com/go-openapi/spec v0.22.0 h1:xT/EsX4frL3U09QviRIZXvkh80yibxQmtoEvyqug0Tw= -github.com/go-openapi/spec v0.22.0/go.mod h1:K0FhKxkez8YNS94XzF8YKEMULbFrRw4m15i2YUht4L0= +github.com/go-openapi/jsonpointer v0.22.3 h1:dKMwfV4fmt6Ah90zloTbUKWMD+0he+12XYAsPotrkn8= +github.com/go-openapi/jsonpointer v0.22.3/go.mod h1:0lBbqeRsQ5lIanv3LHZBrmRGHLHcQoOXQnf88fHlGWo= +github.com/go-openapi/jsonreference v0.21.3 h1:96Dn+MRPa0nYAR8DR1E03SblB5FJvh7W6krPI0Z7qMc= +github.com/go-openapi/jsonreference v0.21.3/go.mod h1:RqkUP0MrLf37HqxZxrIAtTWW4ZJIK1VzduhXYBEeGc4= +github.com/go-openapi/spec v0.22.1 h1:beZMa5AVQzRspNjvhe5aG1/XyBSMeX1eEOs7dMoXh/k= +github.com/go-openapi/spec v0.22.1/go.mod h1:c7aeIQT175dVowfp7FeCvXXnjN/MrpaONStibD2WtDA= github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= -github.com/go-openapi/swag/conv v0.25.1 h1:+9o8YUg6QuqqBM5X6rYL/p1dpWeZRhoIt9x7CCP+he0= -github.com/go-openapi/swag/conv v0.25.1/go.mod h1:Z1mFEGPfyIKPu0806khI3zF+/EUXde+fdeksUl2NiDs= -github.com/go-openapi/swag/jsonname v0.25.1 h1:Sgx+qbwa4ej6AomWC6pEfXrA6uP2RkaNjA9BR8a1RJU= -github.com/go-openapi/swag/jsonname v0.25.1/go.mod h1:71Tekow6UOLBD3wS7XhdT98g5J5GR13NOTQ9/6Q11Zo= -github.com/go-openapi/swag/jsonutils v0.25.1 h1:AihLHaD0brrkJoMqEZOBNzTLnk81Kg9cWr+SPtxtgl8= -github.com/go-openapi/swag/jsonutils v0.25.1/go.mod h1:JpEkAjxQXpiaHmRO04N1zE4qbUEg3b7Udll7AMGTNOo= -github.com/go-openapi/swag/jsonutils/fixtures_test v0.25.1 h1:DSQGcdB6G0N9c/KhtpYc71PzzGEIc/fZ1no35x4/XBY= -github.com/go-openapi/swag/jsonutils/fixtures_test v0.25.1/go.mod h1:kjmweouyPwRUEYMSrbAidoLMGeJ5p6zdHi9BgZiqmsg= -github.com/go-openapi/swag/loading v0.25.1 h1:6OruqzjWoJyanZOim58iG2vj934TysYVptyaoXS24kw= -github.com/go-openapi/swag/loading v0.25.1/go.mod h1:xoIe2EG32NOYYbqxvXgPzne989bWvSNoWoyQVWEZicc= -github.com/go-openapi/swag/stringutils v0.25.1 h1:Xasqgjvk30eUe8VKdmyzKtjkVjeiXx1Iz0zDfMNpPbw= -github.com/go-openapi/swag/stringutils v0.25.1/go.mod h1:JLdSAq5169HaiDUbTvArA2yQxmgn4D6h4A+4HqVvAYg= -github.com/go-openapi/swag/typeutils v0.25.1 h1:rD/9HsEQieewNt6/k+JBwkxuAHktFtH3I3ysiFZqukA= -github.com/go-openapi/swag/typeutils v0.25.1/go.mod h1:9McMC/oCdS4BKwk2shEB7x17P6HmMmA6dQRtAkSnNb8= -github.com/go-openapi/swag/yamlutils v0.25.1 h1:mry5ez8joJwzvMbaTGLhw8pXUnhDK91oSJLDPF1bmGk= -github.com/go-openapi/swag/yamlutils v0.25.1/go.mod h1:cm9ywbzncy3y6uPm/97ysW8+wZ09qsks+9RS8fLWKqg= +github.com/go-openapi/swag/conv v0.25.3 h1:PcB18wwfba7MN5BVlBIV+VxvUUeC2kEuCEyJ2/t2X7E= +github.com/go-openapi/swag/conv v0.25.3/go.mod h1:n4Ibfwhn8NJnPXNRhBO5Cqb9ez7alBR40JS4rbASUPU= +github.com/go-openapi/swag/jsonname v0.25.3 h1:U20VKDS74HiPaLV7UZkztpyVOw3JNVsit+w+gTXRj0A= +github.com/go-openapi/swag/jsonname v0.25.3/go.mod h1:GPVEk9CWVhNvWhZgrnvRA6utbAltopbKwDu8mXNUMag= +github.com/go-openapi/swag/jsonutils v0.25.3 h1:kV7wer79KXUM4Ea4tBdAVTU842Rg6tWstX3QbM4fGdw= +github.com/go-openapi/swag/jsonutils v0.25.3/go.mod h1:ILcKqe4HC1VEZmJx51cVuZQ6MF8QvdfXsQfiaCs0z9o= +github.com/go-openapi/swag/jsonutils/fixtures_test v0.25.3 h1:/i3E9hBujtXfHy91rjtwJ7Fgv5TuDHgnSrYjhFxwxOw= +github.com/go-openapi/swag/jsonutils/fixtures_test v0.25.3/go.mod h1:8kYfCR2rHyOj25HVvxL5Nm8wkfzggddgjZm6RgjT8Ao= +github.com/go-openapi/swag/loading v0.25.3 h1:Nn65Zlzf4854MY6Ft0JdNrtnHh2bdcS/tXckpSnOb2Y= +github.com/go-openapi/swag/loading v0.25.3/go.mod h1:xajJ5P4Ang+cwM5gKFrHBgkEDWfLcsAKepIuzTmOb/c= +github.com/go-openapi/swag/stringutils v0.25.3 h1:nAmWq1fUTWl/XiaEPwALjp/8BPZJun70iDHRNq/sH6w= +github.com/go-openapi/swag/stringutils v0.25.3/go.mod h1:GTsRvhJW5xM5gkgiFe0fV3PUlFm0dr8vki6/VSRaZK0= +github.com/go-openapi/swag/typeutils v0.25.3 h1:2w4mEEo7DQt3V4veWMZw0yTPQibiL3ri2fdDV4t2TQc= +github.com/go-openapi/swag/typeutils v0.25.3/go.mod h1:Ou7g//Wx8tTLS9vG0UmzfCsjZjKhpjxayRKTHXf2pTE= +github.com/go-openapi/swag/yamlutils v0.25.3 h1:LKTJjCn/W1ZfMec0XDL4Vxh8kyAnv1orH5F2OREDUrg= +github.com/go-openapi/swag/yamlutils v0.25.3/go.mod h1:Y7QN6Wc5DOBXK14/xeo1cQlq0EA0wvLoSv13gDQoCao= +github.com/go-openapi/testify/enable/yaml/v2 v2.0.2 h1:0+Y41Pz1NkbTHz8NngxTuAXxEodtNSI1WG1c/m5Akw4= +github.com/go-openapi/testify/enable/yaml/v2 v2.0.2/go.mod h1:kme83333GCtJQHXQ8UKX3IBZu6z8T5Dvy5+CW3NLUUg= +github.com/go-openapi/testify/v2 v2.0.2 h1:X999g3jeLcoY8qctY/c/Z8iBHTbwLz7R2WXd6Ub6wls= +github.com/go-openapi/testify/v2 v2.0.2/go.mod h1:HCPmvFFnheKK2BuwSA0TbbdxJ3I16pjwMkYkP4Ywn54= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= @@ -383,8 +385,8 @@ github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI= github.com/golang/geo v0.0.0-20200319012246-673a6f80352d/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI= github.com/golang/geo v0.0.0-20210211234256-740aa86cb551/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI= -github.com/golang/geo v0.0.0-20251030142647-5906ab3d21fa h1:Q0YqGWxrOZZCHHlFc3KZBjnl6FKqFCpd2qxnbf7duXY= -github.com/golang/geo v0.0.0-20251030142647-5906ab3d21fa/go.mod h1:Mymr9kRGDc64JPr03TSZmuIBODZ3KyswLzm1xL0HFA8= +github.com/golang/geo v0.0.0-20251117194806-05dcfdd28b33 h1:1iCpF+lKihFpyN/Ujqvy9cWVlB516bGZItvb3l9HOSo= +github.com/golang/geo v0.0.0-20251117194806-05dcfdd28b33/go.mod h1:Mymr9kRGDc64JPr03TSZmuIBODZ3KyswLzm1xL0HFA8= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -424,8 +426,8 @@ github.com/golangci/go-printf-func-name v0.1.1 h1:hIYTFJqAGp1iwoIfsNTpoq1xZAarog github.com/golangci/go-printf-func-name v0.1.1/go.mod h1:Es64MpWEZbh0UBtTAICOZiB+miW53w/K9Or/4QogJss= github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d h1:viFft9sS/dxoYY0aiOTsLKO2aZQAPT4nlQCsimGcSGE= github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d/go.mod h1:ivJ9QDg0XucIkmwhzCDsqcnxxlDStoTl89jDMIoNxKY= -github.com/golangci/golangci-lint/v2 v2.6.0 h1:hgjuaMTwbWrBf1kvMrmWmyCRKq9wU7Cvi84O0METZHc= -github.com/golangci/golangci-lint/v2 v2.6.0/go.mod h1:qKA7VpZt6X2uo+ylnFYaNpdmJnm4tBSzdZiD0xDOIJE= +github.com/golangci/golangci-lint/v2 v2.6.2 h1:jkMSVv36JmyTENcEertckvimvjPcD5qxNM7W7qhECvI= +github.com/golangci/golangci-lint/v2 v2.6.2/go.mod h1:fSIMDiBt9kzdpnvvV7GO6iWzyv5uaeZ+iPor+2uRczE= github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95 h1:AkK+w9FZBXlU/xUmBtSJN1+tAI4FIvy5WtnUnY8e4p8= github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95/go.mod h1:k9mmcyWKSTMcPPvQUCfRWWQ9VHJ1U9Dc0R7kaXAgtnQ= github.com/golangci/misspell v0.7.0 h1:4GOHr/T1lTW0hhR4tgaaV1WS/lJ+ncvYCoFKmqJsj0c= @@ -533,8 +535,8 @@ github.com/julz/importas v0.2.0 h1:y+MJN/UdL63QbFJHws9BVC5RpA2iq0kpjrFajTGivjQ= github.com/julz/importas v0.2.0/go.mod h1:pThlt589EnCYtMnmhmRYY/qn9lCf/frPOK+WMx3xiJY= github.com/jupiterrider/ffi v0.5.1 h1:l7ANXU+Ex33LilVa283HNaf/sTzCrrht7D05k6T6nlc= github.com/jupiterrider/ffi v0.5.1/go.mod h1:x7xdNKo8h0AmLuXfswDUBxUsd2OqUP4ekC8sCnsmbvo= -github.com/karamaru-alpha/copyloopvar v1.2.1 h1:wmZaZYIjnJ0b5UoKDjUHrikcV0zuPyyxI4SVplLd2CI= -github.com/karamaru-alpha/copyloopvar v1.2.1/go.mod h1:nFmMlFNlClC2BPvNaHMdkirmTJxVCY0lhxBtlfOypMM= +github.com/karamaru-alpha/copyloopvar v1.2.2 h1:yfNQvP9YaGQR7VaWLYcfZUlRP2eo2vhExWKxD/fP6q0= +github.com/karamaru-alpha/copyloopvar v1.2.2/go.mod h1:oY4rGZqZ879JkJMtX3RRkcXRkmUvH0x35ykgaKgsgJY= github.com/kisielk/errcheck v1.9.0 h1:9xt1zI9EBfcYBvdU1nVrzMzzUPUtPKs9bVSIM3TAb3M= github.com/kisielk/errcheck v1.9.0/go.mod h1:kQxWMMVZgIkDq7U8xtG/n2juOjbLgZtedi0D+/VL/i8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= @@ -542,10 +544,14 @@ github.com/kkHAIKE/contextcheck v1.1.6 h1:7HIyRcnyzxL9Lz06NGhiKvenXq7Zw6Q0UQu/tt github.com/kkHAIKE/contextcheck v1.1.6/go.mod h1:3dDbMRNBFaq8HFXWC1JyvDSPm43CmE6IuHam8Wr0rkg= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kovidgoyal/go-parallel v1.0.1 h1:nYUjN+EdpbmQjTg3N5eTUInuXTB3/1oD2vHdaMfuHoI= -github.com/kovidgoyal/go-parallel v1.0.1/go.mod h1:BJNIbe6+hxyFWv7n6oEDPj3PA5qSw5OCtf0hcVxWJiw= +github.com/kovidgoyal/go-parallel v1.1.1 h1:1OzpNjtrUkBPq3UaqrnvOoB2F9RttSt811uiUXyI7ok= +github.com/kovidgoyal/go-parallel v1.1.1/go.mod h1:BJNIbe6+hxyFWv7n6oEDPj3PA5qSw5OCtf0hcVxWJiw= +github.com/kovidgoyal/go-shm v1.0.0 h1:HJEel9D1F9YhULvClEHJLawoRSj/1u/EDV7MJbBPgQo= +github.com/kovidgoyal/go-shm v1.0.0/go.mod h1:Yzb80Xf9L3kaoB2RGok9hHwMIt7Oif61kT6t3+VnZds= github.com/kovidgoyal/imaging v1.7.2 h1:mmT6k6Az3mC6dbqdZ6Q9KQCdZFWTAQ+q97NyGZgJ/2c= github.com/kovidgoyal/imaging v1.7.2/go.mod h1:GdkCORjfZMMGFY0Pb7TDmRhj7PDhxF/QShKukSCj0VU= +github.com/kovidgoyal/imaging v1.8.15 h1:FwKRGvmbQ04OFYF5WIalcvUontcnj1chBeHmR5I7UYg= +github.com/kovidgoyal/imaging v1.8.15/go.mod h1:aXZHGm/gKcaXpxn1NnQiVtuz3Z2BCnXWyjF0ZGrmJ1g= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -590,10 +596,10 @@ github.com/manuelarte/embeddedstructfieldcheck v0.4.0 h1:3mAIyaGRtjK6EO9E73JlXLt github.com/manuelarte/embeddedstructfieldcheck v0.4.0/go.mod h1:z8dFSyXqp+fC6NLDSljRJeNQJJDWnY7RoWFzV3PC6UM= github.com/manuelarte/funcorder v0.5.0 h1:llMuHXXbg7tD0i/LNw8vGnkDTHFpTnWqKPI85Rknc+8= github.com/manuelarte/funcorder v0.5.0/go.mod h1:Yt3CiUQthSBMBxjShjdXMexmzpP8YGvGLjrxJNkO2hA= -github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= -github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= -github.com/maratori/testpackage v1.1.1 h1:S58XVV5AD7HADMmD0fNnziNHqKvSdDuEKdPD1rNTU04= -github.com/maratori/testpackage v1.1.1/go.mod h1:s4gRK/ym6AMrqpOa/kEbQTV4Q4jb7WeLZzVhVVVOQMc= +github.com/maratori/testableexamples v1.0.1 h1:HfOQXs+XgfeRBJ+Wz0XfH+FHnoY9TVqL6Fcevpzy4q8= +github.com/maratori/testableexamples v1.0.1/go.mod h1:XE2F/nQs7B9N08JgyRmdGjYVGqxWwClLPCGSQhXQSrQ= +github.com/maratori/testpackage v1.1.2 h1:ffDSh+AgqluCLMXhM19f/cpvQAKygKAJXFl9aUjmbqs= +github.com/maratori/testpackage v1.1.2/go.mod h1:8F24GdVDFW5Ew43Et02jamrVMNXLUNaOynhDssITGfc= github.com/marekm4/color-extractor v1.2.1 h1:3Zb2tQsn6bITZ8MBVhc33Qn1k5/SEuZ18mrXGUqIwn0= github.com/marekm4/color-extractor v1.2.1/go.mod h1:90VjmiHI6M8ez9eYUaXLdcKnS+BAOp7w+NpwBdkJmpA= github.com/matoous/godox v1.1.0 h1:W5mqwbyWrwZv6OQ5Z1a/DHGMOvXYCBP3+Ht7KMoJhq4= @@ -704,8 +710,8 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/quasilyte/go-ruleguard v0.4.4 h1:53DncefIeLX3qEpjzlS1lyUmQoUEeOWPFWqaTJq9eAQ= -github.com/quasilyte/go-ruleguard v0.4.4/go.mod h1:Vl05zJ538vcEEwu16V/Hdu7IYZWyKSwIy4c88Ro1kRE= +github.com/quasilyte/go-ruleguard v0.4.5 h1:AGY0tiOT5hJX9BTdx/xBdoCubQUAE2grkqY2lSwvZcA= +github.com/quasilyte/go-ruleguard v0.4.5/go.mod h1:Vl05zJ538vcEEwu16V/Hdu7IYZWyKSwIy4c88Ro1kRE= github.com/quasilyte/go-ruleguard/dsl v0.3.23 h1:lxjt5B6ZCiBeeNO8/oQsegE6fLeCzuMRoVWSkXC4uvY= github.com/quasilyte/go-ruleguard/dsl v0.3.23/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/gogrep v0.5.0 h1:eTKODPXbI8ffJMN+W2aE0+oL0z/nh8/5eNdiO34SOAo= @@ -889,8 +895,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= -golang.org/x/crypto v0.43.0 h1:dduJYIi3A3KOfdGOHX8AVZ/jGiyPa3IbBozJ5kNuE04= -golang.org/x/crypto v0.43.0/go.mod h1:BFbav4mRNlXJL4wNeejLpWxB7wMbc79PdRGhWKncxR0= +golang.org/x/crypto v0.44.0 h1:A97SsFvM3AIwEEmTBiaxPPTYpDC47w720rdiiUvgoAU= +golang.org/x/crypto v0.44.0/go.mod h1:013i+Nw79BMiQiMsOPcVCB5ZIJbYkerPrGnOa00tvmc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -905,12 +911,12 @@ golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b h1:DXr+pvt3nC887026GRP39Ej11 golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b/go.mod h1:4QTo5u+SEIbbKW1RacMZq1YEfOBqeXa19JeshGi+zc4= golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/exp/typeparams v0.0.0-20251002181428-27f1f14c8bb9 h1:EvjuVHWMoRaAxH402KMgrQpGUjoBy/OWvZjLOqQnwNk= -golang.org/x/exp/typeparams v0.0.0-20251002181428-27f1f14c8bb9/go.mod h1:4Mzdyp/6jzw9auFDJ3OMF5qksa7UvPnzKqTVGcb04ms= +golang.org/x/exp/typeparams v0.0.0-20251023183803-a4bb9ffd2546 h1:HDjDiATsGqvuqvkDvgJjD1IgPrVekcSXVVE21JwvzGE= +golang.org/x/exp/typeparams v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:4Mzdyp/6jzw9auFDJ3OMF5qksa7UvPnzKqTVGcb04ms= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/image v0.32.0 h1:6lZQWq75h7L5IWNk0r+SCpUJ6tUVd3v4ZHnbRKLkUDQ= -golang.org/x/image v0.32.0/go.mod h1:/R37rrQmKXtO6tYXAjtDLwQgFLHmhW+V6ayXlxzP2Pc= +golang.org/x/image v0.33.0 h1:LXRZRnv1+zGd5XBUVRFmYEphyyKJjQjCRiOuAP3sZfQ= +golang.org/x/image v0.33.0/go.mod h1:DD3OsTYT9chzuzTQt+zMcOlBHgfoKQb1gry8p76Y1sc= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -936,8 +942,8 @@ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91 golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= -golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w= +golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk= +golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -980,16 +986,16 @@ golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/net v0.46.0 h1:giFlY12I07fugqwPuWJi68oOnpfqFnJIJzaIIm2JVV4= -golang.org/x/net v0.46.0/go.mod h1:Q9BGdFy1y4nkUwiLvT5qtyhAnEHgnQ/zd8PfU6nc210= +golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= +golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.32.0 h1:jsCblLleRMDrxMN29H3z/k1KliIvpLgCkE6R8FXXNgY= -golang.org/x/oauth2 v0.32.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= +golang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo= +golang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1005,8 +1011,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= -golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug= -golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= +golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1060,8 +1066,8 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ= -golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= @@ -1078,8 +1084,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k= -golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1135,8 +1141,8 @@ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= -golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ= -golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs= +golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ= +golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ= golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM= golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM= diff --git a/backend/http/access.go b/backend/http/access.go index 3782a20180..f998fdfe5d 100644 --- a/backend/http/access.go +++ b/backend/http/access.go @@ -133,7 +133,7 @@ func accessPostHandler(w http.ResponseWriter, r *http.Request, d *requestContext // accessDeleteHandler deletes a single user or group from a rule. // @Summary Delete access rule entry -// @Description Delete a user or group from an allow or deny list for a sourcePath and indexPath. +// @Description Delete a user or group from an allow or deny list for a sourcePath and indexPath. When cascade=true, removes the user/group from the specified path and all subpaths. // @Tags Access // @Accept json // @Produce json @@ -142,6 +142,7 @@ func accessPostHandler(w http.ResponseWriter, r *http.Request, d *requestContext // @Param ruleType query string true "Rule type (allow or deny)" // @Param ruleCategory query string true "Rule category (user or group)" // @Param value query string true "Username or groupname to remove" +// @Param cascade query boolean false "Cascade delete to all subpaths (default: false)" // @Success 200 {object} map[string]string "Rule entry deleted" // @Failure 404 {object} map[string]string "Not found" // @Failure 400 {object} map[string]string "Bad request" @@ -158,12 +159,47 @@ func accessDeleteHandler(w http.ResponseWriter, r *http.Request, d *requestConte ruleType := r.URL.Query().Get("ruleType") ruleCategory := r.URL.Query().Get("ruleCategory") value := r.URL.Query().Get("value") + cascade := r.URL.Query().Get("cascade") == "true" allow := ruleType == "allow" if indexPath == "" || ruleCategory == "" || (ruleCategory != "all" && value == "") { return http.StatusBadRequest, fmt.Errorf("path, ruleCategory, and value are required, unless ruleCategory is 'all'") } + // Handle cascade delete + if cascade { + if ruleCategory == "all" { + return http.StatusBadRequest, fmt.Errorf("cascade delete is not supported for 'all' rule category") + } + + var count int + var err error + + switch ruleCategory { + case "user": + count, err = store.Access.RemoveUserCascade(index.Path, indexPath, value, allow) + case "group": + count, err = store.Access.RemoveGroupCascade(index.Path, indexPath, value, allow) + default: + return http.StatusBadRequest, fmt.Errorf("invalid ruleCategory for cascade delete: must be 'user' or 'group'") + } + + if err != nil { + logger.Errorf("failed to cascade delete rule entry: %v", err) + return http.StatusInternalServerError, fmt.Errorf("failed to cascade delete rule entry: %w", err) + } + + if count == 0 { + return http.StatusNotFound, fmt.Errorf("no entries found in rule hierarchy") + } + + return renderJSON(w, r, map[string]interface{}{ + "message": "rule entries deleted", + "count": count, + }) + } + + // Handle non-cascade delete (original behavior) var found bool var err error if allow { @@ -265,3 +301,46 @@ func groupDeleteHandler(w http.ResponseWriter, r *http.Request, d *requestContex } return http.StatusOK, nil } + +// accessPatchHandler updates an access rule's path. +// @Summary Update access rule path +// @Description Updates the path for a specific access rule +// @Tags Access +// @Accept json +// @Produce json +// @Param body body object{source=string,oldPath=string,newPath=string} true "Source, old path, and new path" +// @Success 200 {object} map[string]string "Rule path updated successfully" +// @Failure 400 {object} map[string]string "Bad request - missing or invalid parameters" +// @Failure 500 {object} map[string]string "Internal server error" +// @Router /api/access [patch] +func accessPatchHandler(w http.ResponseWriter, r *http.Request, d *requestContext) (int, error) { + var body struct { + Source string `json:"source"` + OldPath string `json:"oldPath"` + NewPath string `json:"newPath"` + } + + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + return http.StatusBadRequest, fmt.Errorf("failed to decode body: %w", err) + } + defer r.Body.Close() + + if body.Source == "" || body.OldPath == "" || body.NewPath == "" { + return http.StatusBadRequest, fmt.Errorf("source, oldPath, and newPath are required") + } + + // Get the index for the source + index := indexing.GetIndex(body.Source) + if index == nil { + return http.StatusBadRequest, fmt.Errorf("source not found: %s", body.Source) + } + + // Update the access rule path + err := store.Access.UpdateRulePath(index.Path, body.OldPath, body.NewPath) + if err != nil { + logger.Errorf("failed to update rule path: %v", err) + return http.StatusInternalServerError, fmt.Errorf("failed to update rule path: %w", err) + } + + return renderJSON(w, r, map[string]string{"message": "rule path updated"}) +} diff --git a/backend/http/auth.go b/backend/http/auth.go index 283b92da79..cb9202fb69 100644 --- a/backend/http/auth.go +++ b/backend/http/auth.go @@ -223,7 +223,7 @@ func signupHandler(w http.ResponseWriter, r *http.Request, d *requestContext) (i }, LoginMethod: users.LoginMethodPassword, } - err := storage.CreateUser(user, settings.Config.UserDefaults.Permissions) + err := storage.CreateUser(user, settings.ConvertPermissionsToUsers(settings.Config.UserDefaults.Permissions)) if err != nil { logger.Debug(err.Error()) // Return the actual error message instead of a generic one diff --git a/backend/http/duplicates.go b/backend/http/duplicates.go new file mode 100644 index 0000000000..7d731c81fc --- /dev/null +++ b/backend/http/duplicates.go @@ -0,0 +1,557 @@ +package http + +import ( + "crypto/md5" + "fmt" + "io" + "net/http" + "net/url" + "os" + "path/filepath" + "strings" + "sync" + "time" + "unicode" + + "github.com/gtsteffaniak/filebrowser/backend/common/settings" + "github.com/gtsteffaniak/filebrowser/backend/indexing" + "github.com/gtsteffaniak/go-cache/cache" +) + +// duplicateSearchMutex serializes duplicate searches to run one at a time +// This is separate from the index's scanMutex to avoid conflicts with indexing +var duplicateSearchMutex sync.Mutex + +// duplicateResultsCache caches duplicate search results for 15 seconds +var duplicateResultsCache = cache.NewCache[[]duplicateGroup](15 * time.Second) + +// fileLocation is a minimal reference to a file in the index +// Used during duplicate detection to avoid allocating full SearchResult objects +type fileLocation struct { + dirPath string // path to directory in index + fileIdx int // index in directory's Files slice +} + +type duplicateGroup struct { + Size int64 `json:"size"` + Count int `json:"count"` + Files []*indexing.SearchResult `json:"files"` +} + +type duplicatesOptions struct { + source string + searchScope string + combinedPath string + minSize int64 + useChecksum bool +} + +// duplicatesHandler handles requests to find duplicate files +// +// This endpoint finds files with the same size and uses fuzzy filename matching +// to verify potential duplicates. +// +// It's optimized to handle large directories efficiently by: +// 1. Filtering by minimum size first +// 2. Grouping by size +// 3. Verifying matches with fuzzy filename similarity +// +// @Summary Find Duplicate Files +// @Description Finds duplicate files based on size and fuzzy filename matching +// @Tags Duplicates +// @Accept json +// @Produce json +// @Param source query string true "Source name for the desired source" +// @Param scope query string false "path within user scope to search" +// @Param minSizeMb query int false "Minimum file size in megabytes (default: 1)" +// @Success 200 {array} duplicateGroup "List of duplicate file groups" +// @Failure 400 {object} map[string]string "Bad Request" +// @Router /api/duplicates [get] +func duplicatesHandler(w http.ResponseWriter, r *http.Request, d *requestContext) (int, error) { + opts, err := prepDuplicatesOptions(r, d) + if err != nil { + return http.StatusBadRequest, err + } + + index := indexing.GetIndex(opts.source) + if index == nil { + return http.StatusBadRequest, fmt.Errorf("index not found for source %s", opts.source) + } + + // Generate cache key from all input parameters that affect results + cacheKey := fmt.Sprintf("%s:%s:%d:%t", index.Path, opts.combinedPath, opts.minSize, opts.useChecksum) + + // Check cache first (before acquiring mutex) + if cachedResults, ok := duplicateResultsCache.Get(cacheKey); ok { + return renderJSON(w, r, cachedResults) + } + + // Reject concurrent requests + if !duplicateSearchMutex.TryLock() { + return http.StatusServiceUnavailable, fmt.Errorf("another duplicate search is currently running, please try again in a moment") + } + defer duplicateSearchMutex.Unlock() + + // Check cache again after acquiring lock (another request might have just completed) + if cachedResults, ok := duplicateResultsCache.Get(cacheKey); ok { + return renderJSON(w, r, cachedResults) + } + + // Find duplicates using index-native approach to minimize memory allocation + // This avoids creating SearchResult objects until we know the final limited set + duplicateGroups := findDuplicatesInIndex(index, opts) + + // Cache the results before returning + duplicateResultsCache.Set(cacheKey, duplicateGroups) + + return renderJSON(w, r, duplicateGroups) +} + +// findDuplicatesInIndex finds duplicates by working directly with index structures +// This minimizes memory allocation by only creating SearchResult objects for final results +func findDuplicatesInIndex(index *indexing.Index, opts *duplicatesOptions) []duplicateGroup { + const maxTotalFiles = 1000 // Limit total files across all groups + + // Step 1: Group files by size, working directly with index structures + // Key: size, Value: list of (dirPath, fileIndex) minimal references + sizeGroups := make(map[int64][]fileLocation) + + index.ReadOnlyOperation(func() { + for dirPath, dir := range index.GetDirectories() { + // Skip directories not in scope + if opts.combinedPath != "" && !strings.HasPrefix(dirPath, opts.combinedPath) { + continue + } + + for i := range dir.Files { + file := &dir.Files[i] + if file.Size >= opts.minSize { + sizeGroups[file.Size] = append(sizeGroups[file.Size], fileLocation{dirPath, i}) + } + } + } + }) + + // Step 2: Process each size group to find duplicates + duplicateGroups := []duplicateGroup{} + totalFiles := 0 + + for size, locations := range sizeGroups { + if len(locations) < 2 { + continue // Skip files with no potential duplicates + } + + var groups [][]fileLocation + if opts.useChecksum { + groups = groupLocationsByChecksum(locations, index, size) + } else { + groups = groupLocationsByFilename(locations, index, size) + } + + // Step 3: Only now create SearchResult objects for actual duplicates + for _, locGroup := range groups { + if len(locGroup) < 2 { + continue + } + + // Check if adding this group would exceed the limit + if totalFiles+len(locGroup) > maxTotalFiles { + break + } + + // Create SearchResult objects only for these confirmed duplicates + resultGroup := make([]*indexing.SearchResult, 0, len(locGroup)) + index.ReadOnlyOperation(func() { + dirs := index.GetDirectories() + for _, loc := range locGroup { + dir := dirs[loc.dirPath] + if dir == nil { + continue + } + if loc.fileIdx >= len(dir.Files) { + continue + } + file := &dir.Files[loc.fileIdx] + + // CRITICAL: Verify size matches the expected size for this group + // Index could have changed between initial grouping and now + if file.Size != size { + continue + } + + // Construct full path + fullPath := filepath.Join(loc.dirPath, file.Name) + + // Remove the user scope from path + adjustedPath := strings.TrimPrefix(fullPath, opts.combinedPath) + if adjustedPath == "" { + adjustedPath = "/" + } + + resultGroup = append(resultGroup, &indexing.SearchResult{ + Path: adjustedPath, + Type: file.Type, + Size: file.Size, + Modified: file.ModTime.Format(time.RFC3339), + HasPreview: file.HasPreview, + }) + } + }) + + if len(resultGroup) >= 2 { + duplicateGroups = append(duplicateGroups, duplicateGroup{ + Size: size, + Count: len(resultGroup), + Files: resultGroup, + }) + totalFiles += len(resultGroup) + } + } + + // Stop processing more size groups if we've hit the limit + if totalFiles >= maxTotalFiles { + break + } + } + + return duplicateGroups +} + +func prepDuplicatesOptions(r *http.Request, d *requestContext) (*duplicatesOptions, error) { + source := r.URL.Query().Get("source") + scope := r.URL.Query().Get("scope") + minSizeMbStr := r.URL.Query().Get("minSizeMb") + // Checksum feature disabled due to performance issues with large file systems + // Always use fuzzy filename matching instead + useChecksum := false // r.URL.Query().Get("useChecksum") == "true" + + // Default minimum size: 1MB + minSizeMb := int64(1) + if minSizeMbStr != "" { + if _, err := fmt.Sscanf(minSizeMbStr, "%d", &minSizeMb); err != nil { + return nil, fmt.Errorf("invalid minSizeMb parameter: %w", err) + } + } + // Convert MB to bytes + minSize := minSizeMb * 1024 * 1024 + + unencodedScope, err := url.PathUnescape(scope) + if err != nil { + return nil, fmt.Errorf("invalid path encoding: %v", err) + } + + searchScope := strings.TrimPrefix(unencodedScope, ".") + + index := indexing.GetIndex(source) + if index == nil { + return nil, fmt.Errorf("index not found for source %s", source) + } + + userscope, err := settings.GetScopeFromSourceName(d.user.Scopes, source) + if err != nil { + return nil, err + } + + combinedPath := index.MakeIndexPath(filepath.Join(userscope, searchScope)) + + return &duplicatesOptions{ + source: source, + searchScope: searchScope, + combinedPath: combinedPath, + minSize: minSize, + useChecksum: useChecksum, + }, nil +} + +// groupLocationsByChecksum groups file locations by partial checksum +// Works with minimal fileLocation references instead of full SearchResult objects +func groupLocationsByChecksum(locations []fileLocation, index *indexing.Index, fileSize int64) [][]fileLocation { + checksumMap := make(map[string][]fileLocation) + + // Build checksum groups + for _, loc := range locations { + // Construct filesystem path for checksum computation + // index.Path is the absolute filesystem root, loc.dirPath is index-relative + fullPath := filepath.Join(index.Path, loc.dirPath) + + // Get the filename from the index and verify size still matches + var fileName string + var sizeMatches bool + index.ReadOnlyOperation(func() { + if dir := index.GetDirectories()[loc.dirPath]; dir != nil { + if loc.fileIdx < len(dir.Files) { + file := &dir.Files[loc.fileIdx] + // CRITICAL: Verify size matches expected size for this group + if file.Size == fileSize { + fileName = file.Name + sizeMatches = true + } + } + } + }) + + if fileName == "" || !sizeMatches { + continue + } + + filePath := filepath.Join(fullPath, fileName) + checksum, err := computePartialChecksum(filePath, fileSize) + if err != nil { + continue + } + checksumMap[checksum] = append(checksumMap[checksum], loc) + } + + // Convert map to slice of groups + groups := make([][]fileLocation, 0, len(checksumMap)) + for _, group := range checksumMap { + if len(group) >= 2 { + groups = append(groups, group) + } + } + + return groups +} + +// computePartialChecksum calculates MD5 hash by sampling key portions of a file +// This is 10-100x faster than full file checksums while maintaining high accuracy +// Strategy: +// - Always read first 8KB (header/metadata) +// - For files > 24KB: sample middle 8KB and last 8KB +// - Total read: ~24KB max per file regardless of file size +func computePartialChecksum(path string, size int64) (string, error) { + file, err := os.Open(path) + if err != nil { + return "", err + } + defer file.Close() + + hash := md5.New() + buf := make([]byte, 8192) // 8KB buffer + + // Always read first 8KB (or entire file if smaller) + n, err := io.ReadFull(file, buf) + if err != nil && err != io.EOF && err != io.ErrUnexpectedEOF { + return "", err + } + hash.Write(buf[:n]) + + // For larger files, sample middle and end portions + if size > 24576 { // 24KB + // Sample middle 8KB + middleOffset := size / 2 + if _, err := file.Seek(middleOffset, 0); err == nil { + n, err := io.ReadFull(file, buf) + if err != nil && err != io.EOF && err != io.ErrUnexpectedEOF { + return "", err + } + hash.Write(buf[:n]) + } + + // Sample last 8KB + endOffset := size - 8192 + if endOffset > 8192 { // Don't re-read start + if _, err := file.Seek(endOffset, 0); err == nil { + n, err := io.ReadFull(file, buf) + if err != nil && err != io.EOF && err != io.ErrUnexpectedEOF { + return "", err + } + hash.Write(buf[:n]) + } + } + } + + return fmt.Sprintf("%x", hash.Sum(nil)), nil +} + +// groupLocationsByFilename groups file locations by fuzzy filename matching +// Works with minimal fileLocation references instead of full SearchResult objects +func groupLocationsByFilename(locations []fileLocation, index *indexing.Index, expectedSize int64) [][]fileLocation { + if len(locations) == 0 { + return nil + } + + // First, fetch all file metadata we need for comparison in a single lock + type fileMetadata struct { + name string + size int64 + } + metadata := make([]fileMetadata, len(locations)) + + index.ReadOnlyOperation(func() { + dirs := index.GetDirectories() + for i, loc := range locations { + if dir := dirs[loc.dirPath]; dir != nil { + if loc.fileIdx < len(dir.Files) { + file := &dir.Files[loc.fileIdx] + // CRITICAL: Only include files that match the expected size + // Index could have changed since locations were collected + if file.Size == expectedSize { + metadata[i] = fileMetadata{ + name: file.Name, + size: file.Size, + } + } + } + } + } + }) + + // Now group by fuzzy filename matching without holding the lock + groups := [][]fileLocation{} + used := make(map[int]bool) + + for i := 0; i < len(locations); i++ { + if used[i] || metadata[i].name == "" { + continue + } + + group := []fileLocation{locations[i]} + used[i] = true + baseSize := metadata[i].size + + baseName1 := metadata[i].name + ext1 := strings.ToLower(filepath.Ext(baseName1)) + filename1 := normalizeFilename(baseName1) + + for j := i + 1; j < len(locations); j++ { + if used[j] || metadata[j].name == "" { + continue + } + + // CRITICAL: Ensure exact size match + if metadata[j].size != baseSize { + continue + } + + baseName2 := metadata[j].name + ext2 := strings.ToLower(filepath.Ext(baseName2)) + + // CRITICAL: Extensions must match exactly (case-insensitive) + if ext1 != ext2 { + continue + } + + filename2 := normalizeFilename(baseName2) + + // Check if filenames are similar enough + if filenamesSimilar(filename1, filename2) { + group = append(group, locations[j]) + used[j] = true + } + } + + if len(group) >= 2 { + groups = append(groups, group) + } + } + + return groups +} + +// normalizeFilename converts filename to lowercase and removes special characters +// to make fuzzy matching more effective +func normalizeFilename(filename string) string { + // Convert to lowercase + filename = strings.ToLower(filename) + + // Remove file extension for comparison + if idx := strings.LastIndex(filename, "."); idx > 0 { + filename = filename[:idx] + } + + // Remove non-alphanumeric characters except spaces and hyphens + var result strings.Builder + for _, r := range filename { + if unicode.IsLetter(r) || unicode.IsDigit(r) || r == ' ' || r == '-' { + result.WriteRune(r) + } + } + + return strings.TrimSpace(result.String()) +} + +// filenamesSimilar checks if two normalized filenames are similar enough to be considered duplicates +func filenamesSimilar(name1, name2 string) bool { + // Exact match + if name1 == name2 { + return true + } + + // Empty names don't match + if len(name1) == 0 || len(name2) == 0 { + return false + } + + // Calculate Levenshtein distance + distance := levenshteinDistance(name1, name2) + maxLen := max(len(name1), len(name2)) + + // Require at least 70% similarity + similarity := 1.0 - float64(distance)/float64(maxLen) + return similarity >= 0.7 +} + +// levenshteinDistance calculates the edit distance between two strings +func levenshteinDistance(s1, s2 string) int { + if len(s1) == 0 { + return len(s2) + } + if len(s2) == 0 { + return len(s1) + } + + // Create matrix + matrix := make([][]int, len(s1)+1) + for i := range matrix { + matrix[i] = make([]int, len(s2)+1) + } + + // Initialize first row and column + for i := 0; i <= len(s1); i++ { + matrix[i][0] = i + } + for j := 0; j <= len(s2); j++ { + matrix[0][j] = j + } + + // Fill matrix + for i := 1; i <= len(s1); i++ { + for j := 1; j <= len(s2); j++ { + cost := 0 + if s1[i-1] != s2[j-1] { + cost = 1 + } + + matrix[i][j] = min( + matrix[i-1][j]+1, // deletion + matrix[i][j-1]+1, // insertion + matrix[i-1][j-1]+cost, // substitution + ) + } + } + + return matrix[len(s1)][len(s2)] +} + +// min returns the minimum of three integers +func min(a, b, c int) int { + if a < b { + if a < c { + return a + } + return c + } + if b < c { + return b + } + return c +} + +// max returns the maximum of two integers +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/backend/http/httpRouter.go b/backend/http/httpRouter.go index 2fa5f2f15e..fc7230161a 100644 --- a/backend/http/httpRouter.go +++ b/backend/http/httpRouter.go @@ -35,10 +35,9 @@ func (d dirFS) Open(name string) (fs.File, error) { } var ( - store *bolt.BoltStore - config *settings.Settings - assetFs fs.FS - assetPathPrefix string // "img/icons/" for dev, "public/img/icons/" for embedded + store *bolt.BoltStore + config *settings.Settings + assetFs fs.FS ) func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete chan struct{}) { @@ -46,23 +45,19 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch config = &settings.Config var err error // Determine filesystem mode and set asset paths - if settings.Config.Env.EmbeddedFs { + if settings.Env.EmbeddedFs { // Embedded mode: Serve files from the embedded assets assetFs, err = fs.Sub(assets, "embed") if err != nil { - logger.Fatal("Could not embed frontend. Does dist exist?") + logger.Fatalf("fs.Sub failed: %v", err) } - assetPathPrefix = "public/img/icons/" - if config.Frontend.LoginIcon == "" { - config.Frontend.LoginIcon = "embed/public/img/icons/favicon.svg" + entries, err := fs.ReadDir(assetFs, ".") + if err != nil || len(entries) == 0 { + logger.Fatalf("Could not embed frontend. Does dist exist? %v", err) } } else { // Dev mode: Serve files from http/dist directory assetFs = dirFS{Dir: http.Dir("http/dist")} - assetPathPrefix = "img/icons/" - if config.Frontend.LoginIcon == "" { - config.Frontend.LoginIcon = "http/dist/img/icons/favicon.svg" - } } // In development mode, we want to reload the templates on each request. @@ -73,12 +68,12 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch return string(a), err }, }) - if !config.Env.IsDevMode { + if !settings.Env.IsDevMode { templates = template.Must(templates.ParseFS(assetFs, "public/index.html")) } templateRenderer = &TemplateRenderer{ templates: templates, - devMode: config.Env.IsDevMode, + devMode: settings.Env.IsDevMode, } router := http.NewServeMux() @@ -123,6 +118,7 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch // Access routes api.HandleFunc("GET /access", withAdmin(accessGetHandler)) api.HandleFunc("POST /access", withAdmin(accessPostHandler)) + api.HandleFunc("PATCH /access", withAdmin(accessPatchHandler)) api.HandleFunc("DELETE /access", withAdmin(accessDeleteHandler)) api.HandleFunc("GET /access/groups", withAdmin(groupGetHandler)) api.HandleFunc("POST /access/group", withAdmin(groupPostHandler)) @@ -133,6 +129,7 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch api.HandleFunc("GET /share/direct", withPermShare(shareDirectDownloadHandler)) api.HandleFunc("GET /share", withPermShare(shareGetHandler)) api.HandleFunc("POST /share", withPermShare(sharePostHandler)) + api.HandleFunc("PATCH /share", withPermShare(sharePatchHandler)) api.HandleFunc("DELETE /share", withPermShare(shareDeleteHandler)) // Create API sub-router for public API endpoints @@ -150,6 +147,7 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch publicAPI.HandleFunc("PUT /resources", withHashFile(publicPutHandler)) publicAPI.HandleFunc("DELETE /resources", withHashFile(publicDeleteHandler)) publicAPI.HandleFunc("PATCH /resources", withHashFile(publicPatchHandler)) + publicAPI.HandleFunc("GET /shareinfo", withOrWithoutUser(shareInfoHandler)) // Settings routes api.HandleFunc("GET /settings", withAdmin(settingsGetHandler)) @@ -168,6 +166,7 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch api.HandleFunc("GET /onlyoffice/callback", withUser(onlyofficeCallbackHandler)) api.HandleFunc("GET /search", withUser(searchHandler)) + api.HandleFunc("GET /duplicates", withUser(duplicatesHandler)) // Mount the public API sub-router publicRoutes.Handle("/api/", http.StripPrefix("/api", publicAPI)) @@ -178,6 +177,7 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch router.Handle(publicPath+"/", http.StripPrefix(publicPath, publicRoutes)) // Frontend share route redirect (DEPRECATED - maintain for backwards compatibility) + // Playwright tests need updating to remove this redirect. router.HandleFunc(fmt.Sprintf("GET %vshare/", config.Server.BaseURL), withOrWithoutUser(redirectToShare)) // New frontend share route handler - handle share page and any subpaths @@ -185,14 +185,13 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch // Static and index file handlers staticPrefix := config.Server.BaseURL + "static/" - router.Handle(staticPrefix, http.StripPrefix(staticPrefix, http.HandlerFunc(staticFilesHandler))) - publicRoutes.Handle("GET /static/", http.StripPrefix("/static/", http.HandlerFunc(staticFilesHandler))) - publicRoutes.HandleFunc("GET /static/loginIcon", http.HandlerFunc(loginIconHandler)) + router.Handle(staticPrefix, http.HandlerFunc(staticAssetHandler)) + publicRoutes.Handle("GET /static/", http.HandlerFunc(staticAssetHandler)) // Standard browser favicon and manifest routes - router.HandleFunc("GET /favicon.ico", http.HandlerFunc(faviconHandler)) - router.HandleFunc("GET /site.webmanifest", http.HandlerFunc(manifestHandler)) - router.HandleFunc("GET /manifest.json", http.HandlerFunc(manifestHandler)) + router.HandleFunc("GET /favicon.ico", http.HandlerFunc(staticAssetHandler)) + router.HandleFunc("GET /site.webmanifest", http.HandlerFunc(staticAssetHandler)) + router.HandleFunc("GET /manifest.json", http.HandlerFunc(staticAssetHandler)) router.HandleFunc(config.Server.BaseURL, withOrWithoutUser(indexHandler)) router.HandleFunc(fmt.Sprintf("GET %vhealth", config.Server.BaseURL), healthHandler) @@ -208,9 +207,13 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch var scheme string port := "" srv := &http.Server{ - Addr: fmt.Sprintf(":%v", config.Server.Port), + Addr: fmt.Sprintf("%v:%v", config.Server.ListenAddress, config.Server.Port), Handler: muxWithMiddleware(router), } + listenAddress := config.Server.ListenAddress + if listenAddress == "0.0.0.0" { + listenAddress = "localhost" + } go func() { // Determine whether to use HTTPS (TLS) or HTTP if config.Server.TLSCert != "" && config.Server.TLSKey != "" { @@ -233,7 +236,7 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch } // Build the full URL with host and port - fullURL := fmt.Sprintf("%s://localhost%s%s", scheme, port, config.Server.BaseURL) + fullURL := fmt.Sprintf("%s://%s%s%s", scheme, listenAddress, port, config.Server.BaseURL) logger.Infof("Running at : %s", fullURL) // Create a TLS listener and serve @@ -252,7 +255,7 @@ func StartHttp(ctx context.Context, storage *bolt.BoltStore, shutdownComplete ch } // Build the full URL with host and port - fullURL := fmt.Sprintf("%s://localhost%s%s", scheme, port, config.Server.BaseURL) + fullURL := fmt.Sprintf("%s://%s%s%s", scheme, listenAddress, port, config.Server.BaseURL) logger.Infof("Running at : %s", fullURL) // Start HTTP server diff --git a/backend/http/oidc.go b/backend/http/oidc.go index 71a9eba1c8..37080ff64b 100644 --- a/backend/http/oidc.go +++ b/backend/http/oidc.go @@ -20,18 +20,14 @@ import ( "golang.org/x/oauth2" ) -// userInfo struct to hold user claims from either UserInfo or ID token +// userInfo holds all claims dynamically, plus pre-parsed Groups. type userInfo struct { - Name string `json:"name"` - PreferredUsername string `json:"preferred_username"` - Username string `json:"username"` - Email string `json:"email"` - Sub string `json:"sub"` - Phone string `json:"phone_number"` - Groups []string `json:"-"` // Handled manually by userInfoUnmarshaller + Claims map[string]interface{} + Groups []string } -// userInfoUnmarshaller is a custom unmarshaller that handles configurable groups claim +// userInfoUnmarshaller handles unmarshalling all claims dynamically, +// while optionally parsing a configurable groups claim. type userInfoUnmarshaller struct { userInfo *userInfo groupsClaim string @@ -39,41 +35,36 @@ type userInfoUnmarshaller struct { // UnmarshalJSON implements the json.Unmarshaler interface func (u *userInfoUnmarshaller) UnmarshalJSON(data []byte) error { - // First, unmarshal the basic userInfo fields - if err := json.Unmarshal(data, u.userInfo); err != nil { + var raw map[string]interface{} + if err := json.Unmarshal(data, &raw); err != nil { return err } - // Parse the JSON to access the groups claim field - var rawData map[string]interface{} - if err := json.Unmarshal(data, &rawData); err != nil { - return err - } - - // Look for the groups claim using the configured field name - if groupsValue, exists := rawData[u.groupsClaim]; exists { - switch v := groupsValue.(type) { - case []interface{}: - // It's already an array, convert to []string - groups := make([]string, len(v)) - for i, group := range v { - if str, ok := group.(string); ok { - groups[i] = str + // Extract groups if configured + if u.groupsClaim != "" { + if v, ok := raw[u.groupsClaim]; ok { + switch val := v.(type) { + case []interface{}: + groups := make([]string, len(val)) + for i, g := range val { + if s, ok := g.(string); ok { + groups[i] = strings.TrimSpace(s) + } } - } - u.userInfo.Groups = groups - case string: - // It's a string, split by commas - if v != "" { - u.userInfo.Groups = strings.Split(v, ",") - // Trim whitespace from each group - for i, group := range u.userInfo.Groups { - u.userInfo.Groups[i] = strings.TrimSpace(group) + u.userInfo.Groups = groups + case string: + if val != "" { + parts := strings.Split(val, ",") + for i := range parts { + parts[i] = strings.TrimSpace(parts[i]) + } + u.userInfo.Groups = parts } } } } + u.userInfo.Claims = raw return nil } @@ -100,7 +91,7 @@ func oidcLoginHandler(w http.ResponseWriter, r *http.Request, d *requestContext) ClientSecret: oidcCfg.ClientSecret, Endpoint: oidcCfg.Provider.Endpoint(), RedirectURL: fmt.Sprintf("%s%sapi/auth/oidc/callback", origin, config.Server.BaseURL), - Scopes: strings.Split(oidcCfg.Scopes, " "), + Scopes: strings.Fields(oidcCfg.Scopes), } nonce := utils.InsecureRandomIdentifier(16) @@ -157,7 +148,7 @@ func oidcCallbackHandler(w http.ResponseWriter, r *http.Request, d *requestConte ClientSecret: oidcCfg.ClientSecret, Endpoint: oidcCfg.Provider.Endpoint(), // Use endpoint from discovered provider RedirectURL: redirectURL, // Use the dynamically determined redirect URL - Scopes: strings.Split(oidcCfg.Scopes, " "), + Scopes: strings.Fields(oidcCfg.Scopes), } // Exchange the authorization code for tokens @@ -186,10 +177,10 @@ func oidcCallbackHandler(w http.ResponseWriter, r *http.Request, d *requestConte // Verify the ID token // This uses the verifier initialized with the provider's JWKS endpoint and client ID - idToken, err := oidcCfg.Verifier.Verify(ctx, rawIDToken) - if err != nil { + idToken, verify_err := oidcCfg.Verifier.Verify(ctx, rawIDToken) + if verify_err != nil { // this might not be necessary for certain providers like authentik - logger.Debugf("failed to verify ID token: %v. This might be expected, falling back to UserInfo endpoint.", err) + logger.Debugf("failed to verify ID token: %v. This might be expected, falling back to UserInfo endpoint.", verify_err) // Verification failed, claimsFromIDToken remains false } else { // Decode the ID token claims using custom unmarshaller @@ -203,30 +194,13 @@ func oidcCallbackHandler(w http.ResponseWriter, r *http.Request, d *requestConte // Decide if we rely on ID token claims or still need UserInfo // Even if parsing succeeded, if essential claims are missing, use UserInfo - switch oidcCfg.UserIdentifier { - case "email": - if userdata.Email != "" { - claimsFromIDToken = true - loginUsername = userdata.Email - } - case "username": - if userdata.Username != "" { - claimsFromIDToken = true - loginUsername = userdata.Username - } - case "preferred_username": - if userdata.PreferredUsername != "" { - claimsFromIDToken = true - loginUsername = userdata.PreferredUsername - } - case "phone": - if userdata.Phone != "" { - claimsFromIDToken = true - loginUsername = userdata.Phone - } + if _, ok := userdata.Claims[oidcCfg.UserIdentifier]; ok { + claimsFromIDToken = true } } + logger.Debugf("Failed to verify ID token: %v", verify_err) } + } else { logger.Debug("No ID token found in token response or it was empty. Falling back to UserInfo endpoint.") // claimsFromIDToken remains false @@ -247,22 +221,17 @@ func oidcCallbackHandler(w http.ResponseWriter, r *http.Request, d *requestConte logger.Errorf("failed to decode user info from endpoint: %v", err) return http.StatusInternalServerError, fmt.Errorf("failed to decode user info from endpoint: %v", err) } - // Decide if we rely on ID token claims or still need UserInfo - // Even if parsing succeeded, if essential claims are missing, use UserInfo - switch oidcCfg.UserIdentifier { - case "email": - loginUsername = userdata.Email - case "username": - loginUsername = userdata.Username - case "preferred_username": - loginUsername = userdata.PreferredUsername - case "phone": - loginUsername = userdata.Phone + } + + // --- Determine login username dynamically --- + if val, ok := userdata.Claims[oidcCfg.UserIdentifier]; ok { + if v, ok := val.(string); ok { + loginUsername = v } } if loginUsername == "" { - logger.Errorf("No valid username found for identifier '%v' in ID token or UserInfo response.", oidcCfg.UserIdentifier) - return http.StatusInternalServerError, fmt.Errorf("no valid username found in ID token or UserInfo response from claims") + logger.Errorf("No valid username found for identifier '%v' in claims.", oidcCfg.UserIdentifier) + return http.StatusInternalServerError, fmt.Errorf("no valid username found for identifier '%v'", oidcCfg.UserIdentifier) } // Proceed to log the user in with the OIDC data diff --git a/backend/http/oidc_test.go b/backend/http/oidc_test.go index 5ad2fd0a07..51286ac328 100644 --- a/backend/http/oidc_test.go +++ b/backend/http/oidc_test.go @@ -18,8 +18,11 @@ func TestUserInfoUnmarshaller(t *testing.T) { jsonData: `{"name":"John","email":"john@example.com","groups":["admin","users"]}`, groupsClaim: "groups", expected: userInfo{ - Name: "John", - Email: "john@example.com", + Claims: map[string]interface{}{ + "name": "John", + "email": "john@example.com", + "groups": []interface{}{"admin","users"}, + }, Groups: []string{"admin", "users"}, }, }, @@ -28,8 +31,11 @@ func TestUserInfoUnmarshaller(t *testing.T) { jsonData: `{"name":"Jane","email":"jane@example.com","roles":["admin","users"]}`, groupsClaim: "roles", expected: userInfo{ - Name: "Jane", - Email: "jane@example.com", + Claims: map[string]interface{}{ + "name": "Jane", + "email": "jane@example.com", + "roles": []interface{}{"admin","users"}, + }, Groups: []string{"admin", "users"}, }, }, @@ -38,8 +44,11 @@ func TestUserInfoUnmarshaller(t *testing.T) { jsonData: `{"name":"Bob","email":"bob@example.com","groups":"admin, users, guests"}`, groupsClaim: "groups", expected: userInfo{ - Name: "Bob", - Email: "bob@example.com", + Claims: map[string]interface{}{ + "name": "Bob", + "email": "bob@example.com", + "groups": "admin, users, guests", + }, Groups: []string{"admin", "users", "guests"}, }, }, @@ -48,8 +57,10 @@ func TestUserInfoUnmarshaller(t *testing.T) { jsonData: `{"name":"Alice","email":"alice@example.com"}`, groupsClaim: "groups", expected: userInfo{ - Name: "Alice", - Email: "alice@example.com", + Claims: map[string]interface{}{ + "name": "Alice", + "email": "alice@example.com", + }, Groups: nil, }, }, @@ -58,8 +69,11 @@ func TestUserInfoUnmarshaller(t *testing.T) { jsonData: `{"name":"Charlie","email":"charlie@example.com","groups":[]}`, groupsClaim: "groups", expected: userInfo{ - Name: "Charlie", - Email: "charlie@example.com", + Claims: map[string]interface{}{ + "name": "Charlie", + "email": "charlie@example.com", + "groups": []interface{}{}, + }, Groups: []string{}, }, }, diff --git a/backend/http/preview.go b/backend/http/preview.go index afd323282a..b694850a68 100644 --- a/backend/http/preview.go +++ b/backend/http/preview.go @@ -79,7 +79,7 @@ func previewHandler(w http.ResponseWriter, r *http.Request, d *requestContext) ( Username: d.user.Username, Path: utils.JoinPathAsUnix(userscope, path), Source: source, - Metadata: true, + AlbumArt: true, // Extract album art for audio previews }, store.Access) if err != nil { return errToStatus(err), err @@ -116,7 +116,7 @@ func getDirectoryPreview(r *http.Request, d *requestContext, accessStore *access for _, item := range d.fileInfo.Files { // Only use files that should bubble up to folder previews (images, videos, audio) // Exclude text files, office documents, and PDFs - if !item.HasPreview || !iteminfo.ShouldBubbleUpToFolderPreview(item) { + if !item.HasPreview || !iteminfo.ShouldBubbleUpToFolderPreview(item.ItemInfo) { continue } @@ -138,7 +138,7 @@ func getDirectoryPreview(r *http.Request, d *requestContext, accessStore *access Username: d.user.Username, Path: path, Source: source, - Metadata: true, + AlbumArt: true, // Extract album art for audio previews }, accessStore) if err != nil { lastErr = err @@ -151,9 +151,16 @@ func getDirectoryPreview(r *http.Request, d *requestContext, accessStore *access cancel() if previewErr != nil { - // File might be corrupted, try next one - logger.Debugf("Skipping corrupted preview file in directory '%s': %s (error: %v)", - d.fileInfo.Name, item.Name, previewErr) + // Skip context errors (timeout or cancellation) - they're not corruption issues + if !errors.Is(previewErr, context.Canceled) && !errors.Is(previewErr, context.DeadlineExceeded) { + // File might be corrupted, try next one + logger.Debugf("Skipping preview file in directory '%s': %s (error: %v)", + d.fileInfo.Name, item.Name, previewErr) + } else { + // if it is a context error, return the error + // don't keep trying + return nil, previewErr + } lastErr = previewErr continue } diff --git a/backend/http/public.go b/backend/http/public.go index 5f4ab3d6fe..748ef76045 100644 --- a/backend/http/public.go +++ b/backend/http/public.go @@ -134,7 +134,7 @@ func publicRawHandler(w http.ResponseWriter, r *http.Request, d *requestContext) // @Failure 404 {object} map[string]string "Share not found or file not found" // @Failure 500 {object} map[string]string "Internal server error" // @Failure 501 {object} map[string]string "Browsing disabled for upload shares" -// @Router /public/api/share [get] +// @Router /public/api/resources [get] func publicGetResourceHandler(w http.ResponseWriter, r *http.Request, d *requestContext) (int, error) { if d.share.ShareType == "upload" { return http.StatusNotImplemented, fmt.Errorf("browsing is disabled for upload shares") @@ -326,7 +326,7 @@ func publicDeleteHandler(w http.ResponseWriter, r *http.Request, d *requestConte // delete thumbnails preview.DelThumbs(r.Context(), *fileInfo) - err = files.DeleteFiles(source, fileInfo.RealPath, filepath.Dir(fileInfo.RealPath)) + err = files.DeleteFiles(source, fileInfo.RealPath, filepath.Dir(fileInfo.RealPath), fileInfo.Type == "directory") if err != nil { return http.StatusInternalServerError, fmt.Errorf("an error occured while deleting the resource") } diff --git a/backend/http/resource.go b/backend/http/resource.go index 7dd5176327..e2ae55363b 100644 --- a/backend/http/resource.go +++ b/backend/http/resource.go @@ -93,6 +93,7 @@ func resourceGetHandler(w http.ResponseWriter, r *http.Request, d *requestContex Source: source, Expand: true, Content: getContent, + Metadata: true, ExtractEmbeddedSubtitles: settings.Config.Integrations.Media.ExtractEmbeddedSubtitles, }, store.Access) if err != nil { @@ -183,7 +184,7 @@ func resourceDeleteHandler(w http.ResponseWriter, r *http.Request, d *requestCon // delete thumbnails preview.DelThumbs(r.Context(), *fileInfo) - err = files.DeleteFiles(source, fileInfo.RealPath, filepath.Dir(fileInfo.RealPath)) + err = files.DeleteFiles(source, fileInfo.RealPath, filepath.Dir(fileInfo.RealPath), fileInfo.Type == "directory") if err != nil { return errToStatus(err), err } @@ -200,6 +201,7 @@ func resourceDeleteHandler(w http.ResponseWriter, r *http.Request, d *requestCon // @Param path query string true "url encoded destination path where to place the files inside the destination source, a directory must end in / to create a directory" // @Param source query string true "Name for the desired filebrowser destination source name, default is used if not provided" // @Param override query bool false "Override existing file if true" +// @Param isDir query bool false "Explicitly specify if the resource is a directory" // @Success 200 "Resource created successfully" // @Failure 403 {object} map[string]string "Forbidden" // @Failure 404 {object} map[string]string "Resource not found" @@ -242,7 +244,9 @@ func resourcePostHandler(w http.ResponseWriter, r *http.Request, d *requestConte path = utils.JoinPathAsUnix(userscope, unescapedPath) } - isDir := strings.HasSuffix(unescapedPath, "/") + // Determine if this is a directory based on isDir query param or trailing slash (for backwards compatibility) + isDirParam := r.URL.Query().Get("isDir") + isDir := isDirParam == "true" || strings.HasSuffix(unescapedPath, "/") fileOpts := utils.FileOptions{ Username: d.user.Username, Path: path, @@ -617,7 +621,7 @@ func patchAction(ctx context.Context, params patchActionParams) error { // delete thumbnails preview.DelThumbs(ctx, *fileInfo) - return files.MoveResource(params.isSrcDir, params.srcIndex, params.dstIndex, params.src, params.dst, store.Share) + return files.MoveResource(params.isSrcDir, params.srcIndex, params.dstIndex, params.src, params.dst, store.Share, store.Access) default: return fmt.Errorf("unsupported action %s: %w", params.action, errors.ErrInvalidRequestParams) } diff --git a/backend/http/search.go b/backend/http/search.go index 93c8e3a9ba..5d534c67e3 100644 --- a/backend/http/search.go +++ b/backend/http/search.go @@ -11,6 +11,15 @@ import ( "github.com/gtsteffaniak/filebrowser/backend/indexing" ) +type searchOptions struct { + query string + source string + searchScope string + combinedPath string + sessionId string + largest bool +} + // searchHandler handles search requests for files based on the provided query. // // This endpoint processes a search query, retrieves relevant file paths, and @@ -57,39 +66,57 @@ import ( // @Failure 400 {object} map[string]string "Bad Request" // @Router /api/search [get] func searchHandler(w http.ResponseWriter, r *http.Request, d *requestContext) (int, error) { + searchOptions, err := prepSearchOptions(r, d) + if err != nil { + return http.StatusBadRequest, err + } + index := indexing.GetIndex(searchOptions.source) + if index == nil { + return http.StatusBadRequest, fmt.Errorf("index not found for source %s", searchOptions.source) + } + + // Perform the search using the provided query and user scope + response := index.Search(searchOptions.query, searchOptions.combinedPath, searchOptions.sessionId, searchOptions.largest, indexing.DefaultSearchResults) + // Remove the user scope from the path (modifying in place is safe - these are fresh allocations) + for _, result := range response { + result.Path = strings.TrimPrefix(result.Path, searchOptions.combinedPath) + if result.Path == "" { + result.Path = "/" + } + } + return renderJSON(w, r, response) +} + +func prepSearchOptions(r *http.Request, d *requestContext) (*searchOptions, error) { query := r.URL.Query().Get("query") source := r.URL.Query().Get("source") scope := r.URL.Query().Get("scope") + largest := r.URL.Query().Get("largest") == "true" unencodedScope, err := url.PathUnescape(scope) if err != nil { - return http.StatusBadRequest, fmt.Errorf("invalid path encoding: %v", err) + return nil, fmt.Errorf("invalid path encoding: %v", err) } - if len(query) < settings.Config.Server.MinSearchLength { - return http.StatusBadRequest, fmt.Errorf("query is too short, minimum length is %d", settings.Config.Server.MinSearchLength) + if len(query) < settings.Config.Server.MinSearchLength && !largest { + return nil, fmt.Errorf("query is too short, minimum length is %d", settings.Config.Server.MinSearchLength) } searchScope := strings.TrimPrefix(unencodedScope, ".") // Retrieve the User-Agent and X-Auth headers from the request sessionId := r.Header.Get("SessionId") index := indexing.GetIndex(source) if index == nil { - return http.StatusBadRequest, fmt.Errorf("index not found for source %s", source) + return nil, fmt.Errorf("index not found for source %s", source) } userscope, err := settings.GetScopeFromSourceName(d.user.Scopes, source) if err != nil { - return http.StatusForbidden, err + return nil, err } combinedPath := index.MakeIndexPath(filepath.Join(userscope, searchScope)) - // Perform the search using the provided query and user scope - response := index.Search(query, combinedPath, sessionId) - for i := range response { - // Remove the user scope from the path - response[i].Path = strings.TrimPrefix(response[i].Path, combinedPath) - if response[i].Path == "" { - response[i].Path = "/" - } - } - // trim user scope from each result path - // Set the Content-Type header to application/json - w.Header().Set("Content-Type", "application/json") - return renderJSON(w, r, response) + return &searchOptions{ + query: query, + source: source, + searchScope: searchScope, + combinedPath: combinedPath, + sessionId: sessionId, + largest: largest, + }, nil } diff --git a/backend/http/settings.go b/backend/http/settings.go index d6b33922fa..a27c7c0ffb 100644 --- a/backend/http/settings.go +++ b/backend/http/settings.go @@ -64,7 +64,7 @@ func settingsConfigHandler(w http.ResponseWriter, r *http.Request, d *requestCon var embeddedYaml []byte var readErr error - if config.Env.EmbeddedFs { + if settings.Env.EmbeddedFs { embeddedYaml, readErr = assets.ReadFile("embed/config.generated.yaml") } else { embeddedYaml, readErr = os.ReadFile("http/dist/config.generated.yaml") diff --git a/backend/http/share.go b/backend/http/share.go index ecfdb2f4ca..b1da9d9507 100644 --- a/backend/http/share.go +++ b/backend/http/share.go @@ -7,6 +7,7 @@ import ( "fmt" "net/http" "net/url" + "path/filepath" "strconv" "strings" "time" @@ -19,29 +20,58 @@ import ( "github.com/gtsteffaniak/filebrowser/backend/database/share" "github.com/gtsteffaniak/filebrowser/backend/database/users" "github.com/gtsteffaniak/filebrowser/backend/indexing" + "github.com/gtsteffaniak/go-logger/logger" ) // ShareResponse represents a share with computed username field and download URL type ShareResponse struct { *share.Link + Source string `json:"source"` // Override embedded field to show source name Username string `json:"username,omitempty"` DownloadURL string `json:"downloadURL,omitempty"` + PathExists bool `json:"pathExists"` } -// convertToShareResponse converts shares to response format with usernames -func convertToShareResponse(r *http.Request, shares []*share.Link) ([]*ShareResponse, error) { - responses := make([]*ShareResponse, len(shares)) - for i, s := range shares { +// convertToFrontendShareResponse converts shares to response format with usernames +func convertToFrontendShareResponse(r *http.Request, shares []*share.Link) ([]*ShareResponse, error) { + responses := make([]*ShareResponse, 0, len(shares)) + for _, s := range shares { user, err := store.Users.Get(s.UserID) username := "" if err == nil { username = user.Username } - responses[i] = &ShareResponse{ + + // Get source info to convert path to name for frontend + sourceInfo, ok := config.Server.SourceMap[s.Source] + if !ok { + // Source not found - likely corrupted data. Try to find by name as fallback + sourceInfo, ok = config.Server.NameToSource[s.Source] + if !ok { + // Still not found - this share is invalid, skip it and delete it + logger.Error("Invalid share - deleting", "hash", s.Hash, "source", s.Source) + _ = store.Share.Delete(s.Hash) // Best effort delete + continue + } + // Found by name - this is corrupted data, fix it + logger.Warning("Share has corrupted source - fixing", "hash", s.Hash, "from", s.Source, "to", sourceInfo.Path) + s.Source = sourceInfo.Path + _ = store.Share.Save(s) // Best effort fix + } + + // Check if the path exists on the filesystem + pathExists := utils.CheckPathExists(filepath.Join(sourceInfo.Path, s.Path)) + + s.CommonShare.HasPassword = s.HasPassword() + + // Create response with source name (overrides the embedded Link's source field) + responses = append(responses, &ShareResponse{ Link: s, + Source: sourceInfo.Name, // Override to show source name instead of backend path Username: username, DownloadURL: getDownloadURL(r, s.Hash), - } + PathExists: pathExists, + }) } return responses, nil } @@ -67,7 +97,7 @@ func shareListHandler(w http.ResponseWriter, r *http.Request, d *requestContext) return http.StatusInternalServerError, err } shares = utils.NonNilSlice(shares) - sharesWithUsernames, err := convertToShareResponse(r, shares) + sharesWithUsernames, err := convertToFrontendShareResponse(r, shares) if err != nil { return http.StatusInternalServerError, err } @@ -102,15 +132,17 @@ func shareGetHandler(w http.ResponseWriter, r *http.Request, d *requestContext) return http.StatusForbidden, err } scopePath := utils.JoinPathAsUnix(userscope, path) + scopePath = utils.AddTrailingSlashIfNotExists(scopePath) s, err := store.Share.Gets(scopePath, sourceInfo.Path, d.user.ID) if err == errors.ErrNotExist || len(s) == 0 { return renderJSON(w, r, []*ShareResponse{}) } - // DownloadURL will be set in convertToShareResponse + // DownloadURL will be set in convertToFrontendShareResponse + if err != nil { return http.StatusInternalServerError, fmt.Errorf("error getting share info from server") } - sharesWithUsernames, err := convertToShareResponse(r, s) + sharesWithUsernames, err := convertToFrontendShareResponse(r, s) if err != nil { return http.StatusInternalServerError, err } @@ -143,6 +175,53 @@ func shareDeleteHandler(w http.ResponseWriter, r *http.Request, d *requestContex return errToStatus(err), err } +// sharePatchHandler updates a share link's path. +// @Summary Update share link path +// @Description Updates the path for a specific share link identified by hash +// @Tags Shares +// @Accept json +// @Produce json +// @Param body body object{hash=string,path=string} true "Hash and new path" +// @Success 200 {object} ShareResponse "Updated share link" +// @Failure 400 {object} map[string]string "Bad request - missing or invalid parameters" +// @Failure 500 {object} map[string]string "Internal server error" +// @Router /api/share [patch] +func sharePatchHandler(w http.ResponseWriter, r *http.Request, d *requestContext) (int, error) { + var body struct { + Hash string `json:"hash"` + Path string `json:"path"` + } + + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + return http.StatusBadRequest, fmt.Errorf("failed to decode body: %w", err) + } + defer r.Body.Close() + + if body.Hash == "" || body.Path == "" { + return http.StatusBadRequest, fmt.Errorf("hash and path are required") + } + + // Update the share path + err := store.Share.UpdateSharePath(body.Hash, body.Path) + if err != nil { + return http.StatusInternalServerError, err + } + + // Get the updated share + updatedShare, err := store.Share.GetByHash(body.Hash) + if err != nil { + return http.StatusInternalServerError, err + } + + // Convert to response format + sharesWithUsernames, err := convertToFrontendShareResponse(r, []*share.Link{updatedShare}) + if err != nil { + return http.StatusInternalServerError, err + } + + return renderJSON(w, r, sharesWithUsernames[0]) +} + // sharePostHandler creates a new share link. // @Summary Create a share link // @Description Creates a new share link with an optional expiration time and password protection. @@ -274,6 +353,7 @@ func sharePostHandler(w http.ResponseWriter, r *http.Request, d *requestContext) return http.StatusForbidden, err } scopePath := utils.JoinPathAsUnix(userscope, body.Path) + scopePath = utils.AddTrailingSlashIfNotExists(scopePath) body.Path = scopePath // validate path exists as file or folder _, exists := idx.GetReducedMetadata(body.Path, true) // true to check if it exists @@ -295,11 +375,12 @@ func sharePostHandler(w http.ResponseWriter, r *http.Request, d *requestContext) PasswordHash: stringHash, Token: token, CommonShare: body.CommonShare, + Version: 1, // Set version for new shares } if err = store.Share.Save(s); err != nil { return http.StatusInternalServerError, err } - sharesWithUsernames, err := convertToShareResponse(r, []*share.Link{s}) + sharesWithUsernames, err := convertToFrontendShareResponse(r, []*share.Link{s}) if err != nil { return http.StatusInternalServerError, err } @@ -437,9 +518,10 @@ func shareDirectDownloadHandler(w http.ResponseWriter, r *http.Request, d *reque // No matching existing share found, create a new one shareLink := &share.Link{ - Expire: expire, - UserID: d.user.ID, - Hash: secureHash, + Expire: expire, + UserID: d.user.ID, + Hash: secureHash, + Version: 1, // Set version for new shares CommonShare: share.CommonShare{ Path: scopePath, Source: idx.Path, @@ -491,6 +573,26 @@ func getDownloadURL(r *http.Request, hash string) string { return downloadURL } +// shareInfoHandler retrieves share information by hash. +// @Summary Get share information by hash +// @Description Returns information about a share link based on its hash. This endpoint is publicly accessible and can be used with or without authentication. +// @Tags Shares +// @Accept json +// @Produce json +// @Param hash query string true "Hash of the share link" +// @Success 200 {object} share.CommonShare "Share information" +// @Failure 404 {object} map[string]string "Share hash not found" +// @Router /public/api/shareinfo [get] +func shareInfoHandler(w http.ResponseWriter, r *http.Request, d *requestContext) (int, error) { + hash := r.URL.Query().Get("hash") + // Get the file link by hash + commonShare, err := store.Share.GetCommonShareByHash(hash) + if err != nil { + return http.StatusNotFound, fmt.Errorf("share hash not found") + } + return renderJSON(w, r, commonShare) +} + func getSharePasswordHash(body share.CreateBody) (data []byte, statuscode int, err error) { if body.Password == "" { return nil, 0, nil diff --git a/backend/http/static.go b/backend/http/static.go index afe0cfbd8f..221f950975 100644 --- a/backend/http/static.go +++ b/backend/http/static.go @@ -5,6 +5,7 @@ import ( "fmt" "io/fs" "net/http" + "path/filepath" "strings" "text/template" @@ -45,7 +46,7 @@ func handleWithStaticData(w http.ResponseWriter, r *http.Request, d *requestCont versionString := "" commitSHAString := "" externalLinks := config.Frontend.ExternalLinks - if config.Env.IsPlaywright { + if settings.Env.IsPlaywright { versionString = version.Version commitSHAString = version.CommitSHA } @@ -56,7 +57,7 @@ func handleWithStaticData(w http.ResponseWriter, r *http.Request, d *requestCont } versionString = version.Version commitSHAString = version.CommitSHA - } else if !config.Env.IsPlaywright { + } else if !settings.Env.IsPlaywright { newExternalLinks := []settings.ExternalLink{} // remove version and commit SHA from external links for _, link := range externalLinks { @@ -74,115 +75,38 @@ func handleWithStaticData(w http.ResponseWriter, r *http.Request, d *requestCont title := config.Frontend.Name // Use custom favicon if configured and validated, otherwise fall back to default - var favicon string - if config.Frontend.Favicon != "" { - favicon = staticURL + "/favicon" - } else { - // Default favicon - favicon = staticURL + "/img/icons/favicon-256x256.png" - } + favicon := staticURL + "/favicon" data := make(map[string]interface{}) - shareProps := map[string]interface{}{ - "isShare": false, - "isValid": false, - "banner": "", - "title": "", - "quickDownload": false, - "description": "", - "themeColor": "", - "disableThumbnails": false, - "viewMode": "list", - "disableFileViewer": false, - "disableShareCard": false, - "disableSidebar": false, - "isPasswordProtected": false, - "hash": "", - } disableNavButtons := settings.Config.Frontend.DisableNavButtons - if d.share != nil { - shareProps["isShare"] = true - shareProps["isValid"] = d.shareValid - shareProps["hash"] = d.share.Hash - - if d.shareValid { - shareProps["singleFileShare"] = d.share.IsSingleFileShare() - disableNavButtons = disableNavButtons || d.share.HideNavButtons - shareProps["viewMode"] = d.share.ViewMode - shareProps["banner"] = d.share.Banner - shareProps["title"] = d.share.Title - shareProps["description"] = d.share.Description - shareProps["themeColor"] = d.share.ThemeColor - shareProps["quickDownload"] = d.share.QuickDownload - shareProps["disableThumbnails"] = d.share.DisableThumbnails - shareProps["disableFileViewer"] = d.share.DisableFileViewer - shareProps["disableShareCard"] = d.share.DisableShareCard - shareProps["disableSidebar"] = d.share.DisableSidebar - shareProps["isPasswordProtected"] = d.share.HasPassword() - shareProps["downloadURL"] = getDownloadURL(r, d.share.Hash) - shareProps["enforceDarkLightMode"] = d.share.EnforceDarkLightMode - shareProps["viewMode"] = d.share.ViewMode - shareProps["enableOnlyOffice"] = d.share.EnableOnlyOffice - shareProps["shareType"] = utils.Ternary(d.share.ShareType == "", "normal", d.share.ShareType) - shareProps["perUserDownloadLimit"] = d.share.PerUserDownloadLimit - shareProps["extractEmbeddedSubtitles"] = d.share.ExtractEmbeddedSubtitles - shareProps["disableDownload"] = d.share.DisableDownload - shareProps["allowCreate"] = d.share.AllowCreate - shareProps["allowModify"] = d.share.AllowModify - shareProps["allowDelete"] = d.share.AllowDelete - shareProps["allowReplacements"] = d.share.AllowReplacements - shareProps["downloadsLimit"] = d.share.DownloadsLimit - shareProps["shareTheme"] = d.share.ShareTheme - shareProps["disableAnonymous"] = d.share.DisableAnonymous - shareProps["maxBandwidth"] = d.share.MaxBandwidth - shareProps["keepAfterExpiration"] = d.share.KeepAfterExpiration - shareProps["allowedUsernames"] = d.share.AllowedUsernames - shareProps["hideNavButtons"] = d.share.HideNavButtons - - // Additional computed properties from extended.go - shareProps["isPermanent"] = d.share.IsPermanent() - shareProps["fileExtension"] = d.share.GetFileExtension() - shareProps["fileName"] = d.share.GetFileName() - if d.share.Favicon != "" { - if strings.HasPrefix(d.share.Favicon, "http") { - data["favicon"] = d.share.Favicon - } else { - data["favicon"] = staticURL + "/" + d.share.Favicon - } - } - if d.share.Description != "" { - description = d.share.Description - } - if d.share.Title != "" { - title = d.share.Title - } - if d.share.ShareTheme != "" { - theme, ok := config.Frontend.Styling.CustomThemeOptions[d.share.ShareTheme] - if ok { - userSelectedTheme = theme.CssRaw - } - } - if d.share.ShareTheme != "" { - theme, ok := config.Frontend.Styling.CustomThemeOptions[d.share.ShareTheme] - if ok { - userSelectedTheme = theme.CssRaw - } + if d.share != nil && d.shareValid { + if d.share.Favicon != "" { + if strings.HasPrefix(d.share.Favicon, "http") { + favicon = d.share.Favicon + } else { + favicon = staticURL + "/" + d.share.Favicon } } - - // base url could be different for routes behind proxy - data["staticURL"] = staticURL - // Use custom favicon for shares too if configured - if config.Frontend.Favicon != "" { - data["favicon"] = staticURL + "/favicon" - } else { - data["favicon"] = staticURL + "/img/icons/favicon-256x256.png" + if d.share.Description != "" { + description = d.share.Description + } + if d.share.Title != "" { + title = d.share.Title + } + if d.share.ShareTheme != "" { + theme, ok := config.Frontend.Styling.CustomThemeOptions[d.share.ShareTheme] + if ok { + userSelectedTheme = theme.CssRaw + } + } + if d.share.ShareTheme != "" { + theme, ok := config.Frontend.Styling.CustomThemeOptions[d.share.ShareTheme] + if ok { + userSelectedTheme = theme.CssRaw + } } - data["winIcon"] = staticURL + "/img/icons/mstile-144x144.png" - data["appIcon"] = staticURL + "/img/icons/android-chrome-256x256.png" } // Set login icon URL loginIcon := staticURL + "/loginIcon" - data["htmlVars"] = map[string]interface{}{ "title": title, "customCSS": config.Frontend.Styling.CustomCSSRaw, @@ -213,16 +137,15 @@ func handleWithStaticData(w http.ResponseWriter, r *http.Request, d *requestCont "externalLinks": externalLinks, "externalUrl": strings.TrimSuffix(config.Server.ExternalUrl, "/"), "onlyOfficeUrl": settings.Config.Integrations.OnlyOffice.Url, - "sourceCount": len(config.Server.SourceMap), "oidcAvailable": config.Auth.Methods.OidcAuth.Enabled, "proxyAvailable": config.Auth.Methods.ProxyAuth.Enabled, "passwordAvailable": config.Auth.Methods.PasswordAuth.Enabled, - "mediaAvailable": config.Integrations.Media.FfmpegPath != "", - "muPdfAvailable": config.Env.MuPdfAvailable, + "mediaAvailable": settings.MediaEnabled(), + "muPdfAvailable": settings.Env.MuPdfAvailable, "updateAvailable": utils.GetUpdateAvailableUrl(), "disableNavButtons": disableNavButtons, "userSelectableThemes": config.Frontend.Styling.CustomThemeOptions, - "enableHeicConversion": config.Integrations.Media.Convert.ImagePreview[settings.HEICImagePreview], + "enableHeicConversion": config.Integrations.Media.Convert.ImagePreview[settings.HEICImagePreview] && settings.MediaEnabled(), "eventBasedThemes": !config.Frontend.Styling.DisableEventBasedThemes, "loginIcon": loginIcon, } @@ -232,14 +155,9 @@ func handleWithStaticData(w http.ResponseWriter, r *http.Request, d *requestCont if err != nil { return http.StatusInternalServerError, fmt.Errorf("error marshaling globalVars: %w", err) } - shareVarsJSON, err := json.Marshal(shareProps) - if err != nil { - return http.StatusInternalServerError, fmt.Errorf("error marshaling shareVars: %w", err) - } // Replace with JSON strings for direct template usage data["globalVars"] = string(globalVarsJSON) - data["shareVars"] = string(shareVarsJSON) // Render the template with global variables if err := templateRenderer.Render(w, file, data); err != nil { @@ -248,149 +166,106 @@ func handleWithStaticData(w http.ResponseWriter, r *http.Request, d *requestCont return http.StatusOK, nil } -func loginIconHandler(w http.ResponseWriter, r *http.Request) { +// setContentType sets the appropriate Content-Type header based on file extension +func setContentType(w http.ResponseWriter, path string) { + ext := strings.ToLower(filepath.Ext(path)) + switch ext { + case ".js": + w.Header().Set("Content-Type", "application/javascript; charset=utf-8") + case ".css": + w.Header().Set("Content-Type", "text/css; charset=utf-8") + case ".svg": + w.Header().Set("Content-Type", "image/svg+xml") + case ".png": + w.Header().Set("Content-Type", "image/png") + case ".jpg", ".jpeg": + w.Header().Set("Content-Type", "image/jpeg") + case ".gif": + w.Header().Set("Content-Type", "image/gif") + case ".webp": + w.Header().Set("Content-Type", "image/webp") + case ".ico": + w.Header().Set("Content-Type", "image/x-icon") + case ".woff2": + w.Header().Set("Content-Type", "font/woff2") + case ".webmanifest": + w.Header().Set("Content-Type", "application/manifest+json") + case ".json": + w.Header().Set("Content-Type", "application/json") + } +} + +// staticAssetHandler serves static assets exactly as the frontend build produces them +func staticAssetHandler(w http.ResponseWriter, r *http.Request) { const maxAge = 86400 // 1 day w.Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%v", maxAge)) + w.Header().Set("Content-Security-Policy", `default-src 'self'; style-src 'unsafe-inline';`) - // Handle custom login icon if configured - if config.Frontend.LoginIcon != "" { - // Check if it's a file path (not embedded) - if _, err := fs.Stat(assetFs, config.Frontend.LoginIcon); err == nil { - // Serve from embedded/dist filesystem - fileContents, err := fs.ReadFile(assetFs, config.Frontend.LoginIcon) - if err == nil { - // Set content type based on file extension - lowerPath := strings.ToLower(config.Frontend.LoginIcon) - if strings.HasSuffix(lowerPath, ".svg") { - w.Header().Set("Content-Type", "image/svg+xml") - } else if strings.HasSuffix(lowerPath, ".png") { - w.Header().Set("Content-Type", "image/png") - } else if strings.HasSuffix(lowerPath, ".jpg") || strings.HasSuffix(lowerPath, ".jpeg") { - w.Header().Set("Content-Type", "image/jpeg") - } else if strings.HasSuffix(lowerPath, ".gif") { - w.Header().Set("Content-Type", "image/gif") - } else if strings.HasSuffix(lowerPath, ".webp") { - w.Header().Set("Content-Type", "image/webp") - } else if strings.HasSuffix(lowerPath, ".ico") { - w.Header().Set("Content-Type", "image/x-icon") - } - _, err = w.Write(fileContents) - if err != nil { - http.NotFound(w, r) - } - return - } + // Strip baseURL and /static/ prefix to get clean asset path + path := r.URL.Path + path = strings.TrimPrefix(path, config.Server.BaseURL) // Remove /testing/ or other baseURL + path = strings.TrimPrefix(path, "/") // Remove leading slash FIRST + path = strings.TrimPrefix(path, "static/") // Then remove static/ prefix + + // Handle special routes that need path mapping + var assetPath string + switch path { + case "favicon.ico", "favicon": + // Handle custom favicon from filesystem + if settings.Env.FaviconIsCustom { + http.ServeFile(w, r, settings.Env.FaviconPath) + return } + // Use embedded default + assetPath = settings.Env.FaviconEmbeddedPath + case "manifest.json": + assetPath = "img/icons/manifest.json" + case "site.webmanifest": + assetPath = "img/icons/site.webmanifest" + case "loginIcon": + // Handle custom login icon from filesystem + if settings.Env.LoginIconIsCustom { + http.ServeFile(w, r, settings.Env.LoginIconPath) + return + } + // Use embedded default + assetPath = settings.Env.LoginIconEmbeddedPath + default: + assetPath = path } - // Fallback to default favicon icon if custom login icon not found - // Try both paths to support embedded and dev modes - defaultIconPaths := []string{ - "img/icons/favicon-256x256.png", // Dev mode path - "public/img/icons/favicon-256x256.png", // Embedded mode path - } + // Try gzipped version first for files that may be compressed + var fileContents []byte + var err error - for _, defaultIconPath := range defaultIconPaths { - fileContents, err := fs.ReadFile(assetFs, defaultIconPath) + // Check if gzipped version exists + if strings.HasSuffix(assetPath, ".js") || strings.HasSuffix(assetPath, ".woff2") { + gzPath := assetPath + ".gz" + fileContents, err = fs.ReadFile(assetFs, gzPath) if err == nil { - w.Header().Set("Content-Type", "image/png") + // Gzipped version exists, serve it + setContentType(w, assetPath) + w.Header().Set("Content-Encoding", "gzip") _, err = w.Write(fileContents) if err != nil { - http.NotFound(w, r) + http.Error(w, err.Error(), http.StatusInternalServerError) } return } } - // If even default icon fails, return 404 - http.NotFound(w, r) -} - -func faviconHandler(w http.ResponseWriter, r *http.Request) { - const maxAge = 86400 // 1 day - w.Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%v", maxAge)) - - // Try to serve custom favicon if configured - if config.Frontend.Favicon != "" { - http.ServeFile(w, r, config.Frontend.Favicon) - return - } - - // Serve default favicon.ico using path set at startup - iconPath := assetPathPrefix + "favicon.ico" - fileContents, err := fs.ReadFile(assetFs, iconPath) - if err == nil { - w.Header().Set("Content-Type", "image/x-icon") - _, err = w.Write(fileContents) - if err != nil { - http.NotFound(w, r) - } - return - } - - http.NotFound(w, r) -} - -func manifestHandler(w http.ResponseWriter, r *http.Request) { - const maxAge = 86400 // 1 day - w.Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%v", maxAge)) - w.Header().Set("Content-Type", "application/manifest+json") - - // Read manifest using path set at startup - manifestPath := assetPathPrefix + "site.webmanifest" - fileContents, err := fs.ReadFile(assetFs, manifestPath) + // Serve uncompressed version + fileContents, err = fs.ReadFile(assetFs, assetPath) if err != nil { http.NotFound(w, r) return } - - // Replace relative paths with baseURL-aware paths - manifestStr := string(fileContents) - baseURL := config.Server.BaseURL - staticURL := baseURL + "public/static/" - - // Update the manifest to use the correct baseURL - manifestStr = strings.ReplaceAll(manifestStr, `"start_url": "/"`, fmt.Sprintf(`"start_url": "%s"`, baseURL)) - manifestStr = strings.ReplaceAll(manifestStr, `"src": "img/icons/`, fmt.Sprintf(`"src": "%simg/icons/`, staticURL)) - - _, err = w.Write([]byte(manifestStr)) + setContentType(w, assetPath) + _, err = w.Write(fileContents) if err != nil { - http.NotFound(w, r) - } -} - -func staticFilesHandler(w http.ResponseWriter, r *http.Request) { - const maxAge = 86400 // 1 day - w.Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%v", maxAge)) - w.Header().Set("Content-Security-Policy", `default-src 'self'; style-src 'unsafe-inline';`) - - // Handle custom favicon if configured and requested - if r.URL.Path == "favicon" && config.Frontend.Favicon != "" { - http.ServeFile(w, r, config.Frontend.Favicon) + http.Error(w, err.Error(), http.StatusInternalServerError) return } - - // Handle site.webmanifest with proper content type - if strings.HasSuffix(r.URL.Path, "site.webmanifest") || strings.HasSuffix(r.URL.Path, "manifest.json") { - w.Header().Set("Content-Type", "application/manifest+json") - } - - adjustedCompressed := r.URL.Path + ".gz" - if strings.HasSuffix(r.URL.Path, ".js") { - w.Header().Set("Content-Type", "application/javascript; charset=utf-8") // Set the correct MIME type for JavaScript files - } - // Check if the gzipped version of the file exists - fileContents, err := fs.ReadFile(assetFs, adjustedCompressed) - if err == nil { - w.Header().Set("Content-Encoding", "gzip") // Let the browser know the file is compressed - status, err := w.Write(fileContents) // Write the gzipped file content to the response - if err != nil { - http.Error(w, http.StatusText(status), status) - } - } else { - // Otherwise, serve the regular file - http.FileServer(http.FS(assetFs)).ServeHTTP(w, r) - } } func indexHandler(w http.ResponseWriter, r *http.Request, d *requestContext) (int, error) { diff --git a/backend/http/users.go b/backend/http/users.go index 0eabbbf8f0..ec48da655d 100644 --- a/backend/http/users.go +++ b/backend/http/users.go @@ -91,6 +91,7 @@ func prepForFrontend(u *users.User) { u.TOTPSecret = "" u.TOTPNonce = "" u.Scopes = settings.ConvertToFrontendScopes(u.Scopes) + u.SidebarLinks = settings.ConvertToFrontendSidebarLinks(u.SidebarLinks) } // userDeleteHandler deletes a user by ID. @@ -178,11 +179,10 @@ func usersPostHandler(w http.ResponseWriter, r *http.Request, d *requestContext) // @Description Updates the details of a user identified by ID. // @Tags Users // @Accept json -// @Produce json // @Param id query string false "user ID to update" // @Param id query string false "usename to update" // @Param data body users.User true "User data to update" -// @Success 200 {object} users.User "Updated user details" +// @Success 204 "No Content - User updated successfully" // @Failure 400 {object} map[string]string "Bad Request" // @Failure 403 {object} map[string]string "Forbidden" // @Failure 500 {object} map[string]string "Internal Server Error" @@ -234,7 +234,5 @@ func userPutHandler(w http.ResponseWriter, r *http.Request, d *requestContext) ( return http.StatusBadRequest, err } - // Return the updated user (with the password hidden) as JSON response - req.User.Password = "" - return renderJSON(w, r, req.User) + return http.StatusNoContent, nil } diff --git a/backend/indexing/deletion_test.go b/backend/indexing/deletion_test.go new file mode 100644 index 0000000000..ef6370083e --- /dev/null +++ b/backend/indexing/deletion_test.go @@ -0,0 +1,179 @@ +package indexing + +import ( + "testing" + + "github.com/gtsteffaniak/filebrowser/backend/common/settings" + "github.com/gtsteffaniak/filebrowser/backend/indexing/iteminfo" +) + +// setupTestIndexForDeletion creates a test index with mock data for deletion testing +func setupTestIndexForDeletion(t *testing.T) *Index { + t.Helper() + + // Create index with mock data + idx := &Index{ + Source: settings.Source{ + Name: "test_delete", + Path: "/mock/path", + Config: settings.SourceConfig{ + DisableIndexing: false, + }, + }, + Directories: make(map[string]*iteminfo.FileInfo), + DirectoriesLedger: make(map[string]struct{}), + FoundHardLinks: make(map[string]uint64), + processedInodes: make(map[uint64]struct{}), + mock: true, // Enable mock mode + } + + // Create mock directory structure with predictable sizes + idx.Directories["/"] = &iteminfo.FileInfo{ + Path: "/", + ItemInfo: iteminfo.ItemInfo{ + Name: "/", + Type: "directory", + Size: 1000, // Total: 100 + 200 + 700 (subdir) + }, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "file1.txt", Size: 100}}, + {ItemInfo: iteminfo.ItemInfo{Name: "file2.txt", Size: 200}}, + }, + Folders: []iteminfo.ItemInfo{ + {Name: "subdir", Type: "directory", Size: 700}, + }, + } + + idx.Directories["/subdir/"] = &iteminfo.FileInfo{ + Path: "/subdir/", + ItemInfo: iteminfo.ItemInfo{ + Name: "subdir", + Type: "directory", + Size: 700, // 300 + 400 (deepdir) + }, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "file3.txt", Size: 300}}, + }, + Folders: []iteminfo.ItemInfo{ + {Name: "deepdir", Type: "directory", Size: 400}, + }, + } + + idx.Directories["/subdir/deepdir/"] = &iteminfo.FileInfo{ + Path: "/subdir/deepdir/", + ItemInfo: iteminfo.ItemInfo{ + Name: "deepdir", + Type: "directory", + Size: 400, + }, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "file4.txt", Size: 400}}, + }, + } + + idx.DirectoriesLedger["/"] = struct{}{} + idx.DirectoriesLedger["/subdir/"] = struct{}{} + idx.DirectoriesLedger["/subdir/deepdir/"] = struct{}{} + + return idx +} + +func TestDeleteMetadata_RecursiveDirectoryCleanup(t *testing.T) { + idx := setupTestIndexForDeletion(t) + + // Delete a directory recursively + idx.DeleteMetadata("/subdir/deepdir/", true, true) + + // Verify it was removed from Directories + if _, exists := idx.Directories["/subdir/deepdir/"]; exists { + t.Error("Directory '/subdir/deepdir/' should have been removed from Directories") + } + + // Verify it was removed from DirectoriesLedger + if _, exists := idx.DirectoriesLedger["/subdir/deepdir/"]; exists { + t.Error("Directory '/subdir/deepdir/' should have been removed from DirectoriesLedger") + } + + // Verify parent still exists + if _, exists := idx.Directories["/subdir/"]; !exists { + t.Error("Parent directory '/subdir/' should still exist") + } +} + +func TestDeleteMetadata_RecursiveWithSubdirectories(t *testing.T) { + idx := setupTestIndexForDeletion(t) + + // Add a deeper subdirectory + idx.Directories["/subdir/deepdir/verydeep/"] = &iteminfo.FileInfo{ + Path: "/subdir/deepdir/verydeep/", + ItemInfo: iteminfo.ItemInfo{ + Name: "verydeep", + Type: "directory", + Size: 50, + }, + } + idx.DirectoriesLedger["/subdir/deepdir/verydeep/"] = struct{}{} + + // Delete the parent recursively + idx.DeleteMetadata("/subdir/deepdir/", true, true) + + // Verify all subdirectories were removed + if _, exists := idx.Directories["/subdir/deepdir/"]; exists { + t.Error("Directory '/subdir/deepdir/' should have been removed") + } + if _, exists := idx.Directories["/subdir/deepdir/verydeep/"]; exists { + t.Error("Subdirectory '/subdir/deepdir/verydeep/' should have been removed") + } + + // Verify ledger was cleaned + if _, exists := idx.DirectoriesLedger["/subdir/deepdir/"]; exists { + t.Error("Directory '/subdir/deepdir/' should have been removed from ledger") + } + if _, exists := idx.DirectoriesLedger["/subdir/deepdir/verydeep/"]; exists { + t.Error("Subdirectory '/subdir/deepdir/verydeep/' should have been removed from ledger") + } +} + +func TestDeleteMetadata_FileRemoval(t *testing.T) { + idx := setupTestIndexForDeletion(t) + + // Delete a file + idx.DeleteMetadata("/subdir/file3.txt", false, false) + + // Verify file was removed from parent's Files slice + parentInfo, exists := idx.Directories["/subdir/"] + if !exists { + t.Fatal("Parent directory not found") + } + + for _, file := range parentInfo.Files { + if file.Name == "file3.txt" { + t.Error("File 'file3.txt' should have been removed from parent's Files slice") + } + } +} + +func TestDeleteMetadata_DirectoryFromParentFolder(t *testing.T) { + idx := setupTestIndexForDeletion(t) + + // Delete a directory (non-recursive) + idx.DeleteMetadata("/subdir/deepdir/", true, false) + + // Verify directory was removed from Directories + if _, exists := idx.Directories["/subdir/deepdir/"]; exists { + t.Error("Directory '/subdir/deepdir/' should have been removed") + } + + // Verify it was removed from parent's Folders slice + parentInfo, exists := idx.Directories["/subdir/"] + if !exists { + t.Fatal("Parent directory not found") + } + + for _, folder := range parentInfo.Folders { + if folder.Name == "deepdir" { + t.Error("Folder 'deepdir' should have been removed from parent's Folders slice") + } + } +} + diff --git a/backend/indexing/indexingFiles.go b/backend/indexing/indexingFiles.go index 3076a82af8..c3cb83a5b6 100644 --- a/backend/indexing/indexingFiles.go +++ b/backend/indexing/indexingFiles.go @@ -30,36 +30,59 @@ type actionConfig struct { IsRoutineScan bool // whether this is a routine/scheduled scan (vs initial indexing) } +// ScannerInfo is the exposed scanner information for the client +type ScannerInfo struct { + Path string `json:"path"` + IsRoot bool `json:"isRoot"` + LastScanned time.Time `json:"lastScanned"` + Complexity uint `json:"complexity"` // 0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex + CurrentSchedule int `json:"currentSchedule"` + QuickScanTime int `json:"quickScanTime"` + FullScanTime int `json:"fullScanTime"` + NumDirs uint64 `json:"numDirs"` + NumFiles uint64 `json:"numFiles"` +} + // reduced index is json exposed to the client type ReducedIndex struct { - IdxName string `json:"name"` - DiskUsed uint64 `json:"used"` - DiskTotal uint64 `json:"total"` - Status IndexStatus `json:"status"` - NumDirs uint64 `json:"numDirs"` - NumFiles uint64 `json:"numFiles"` - NumDeleted uint64 `json:"numDeleted"` - LastIndexed time.Time `json:"-"` - LastIndexedUnix int64 `json:"lastIndexedUnixTime"` - QuickScanTime int `json:"quickScanDurationSeconds"` - FullScanTime int `json:"fullScanDurationSeconds"` - Assessment string `json:"assessment"` + IdxName string `json:"name"` + DiskUsed uint64 `json:"used"` + DiskTotal uint64 `json:"total"` + Status IndexStatus `json:"status"` + NumDirs uint64 `json:"numDirs"` + NumFiles uint64 `json:"numFiles"` + NumDeleted uint64 `json:"numDeleted"` + LastIndexed time.Time `json:"-"` + LastIndexedUnix int64 `json:"lastIndexedUnixTime"` + QuickScanTime int `json:"quickScanDurationSeconds"` + FullScanTime int `json:"fullScanDurationSeconds"` + Complexity uint `json:"complexity"` // 0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex + Scanners []*ScannerInfo `json:"scanners,omitempty"` } type Index struct { ReducedIndex - CurrentSchedule int `json:"-"` - settings.Source `json:"-"` - Directories map[string]*iteminfo.FileInfo `json:"-"` - DirectoriesLedger map[string]struct{} `json:"-"` - runningScannerCount int `json:"-"` - SmartModifier time.Duration `json:"-"` - FilesChangedDuringIndexing bool `json:"-"` - mock bool - mu sync.RWMutex - wasIndexed bool - FoundHardLinks map[string]uint64 `json:"-"` // hardlink path -> size - processedInodes map[uint64]struct{} `json:"-"` - totalSize uint64 `json:"-"` + settings.Source `json:"-"` + + // Shared state (protected by mu) + Directories map[string]*iteminfo.FileInfo `json:"-"` + DirectoriesLedger map[string]struct{} `json:"-"` + FoundHardLinks map[string]uint64 `json:"-"` // hardlink path -> size + processedInodes map[uint64]struct{} `json:"-"` + totalSize uint64 `json:"-"` + + // Scanner management (new multi-scanner system) + scanners map[string]*Scanner `json:"-"` // path -> scanner + scanMutex sync.Mutex `json:"-"` // Global scan mutex - only one scanner runs at a time + activeScannerPath string `json:"-"` // Which scanner is currently running (for logging/status) + runningScannerCount int `json:"-"` // Tracks active scanners + lastRootScanTime time.Time `json:"-"` // Last time root scanner completed - child scanners wait for this + initialScanStartTime time.Time `json:"-"` // When initial multi-scanner indexing started + hasLoggedInitialScan bool `json:"-"` // Whether we've logged the first complete round + + // Control + mock bool + mu sync.RWMutex + wasIndexed bool } var ( @@ -99,14 +122,13 @@ func Initialize(source *settings.Source, mock bool) { newIndex.ReducedIndex = ReducedIndex{ Status: "indexing", IdxName: source.Name, - Assessment: "unknown", + Complexity: 0, // 0 = unknown until first scan completes } indexes[newIndex.Name] = &newIndex indexesMutex.Unlock() if !newIndex.Config.DisableIndexing { - time.Sleep(time.Second) logger.Infof("initializing index: [%v]", newIndex.Name) - newIndex.RunIndexing("/", false) + // Start multi-scanner system (each scanner will do its own initial scan) go newIndex.setupIndexingScanners() } else { newIndex.Status = "ready" @@ -121,10 +143,8 @@ func (idx *Index) indexDirectoryWithOptions(adjustedPath string, config actionCo // Define a function to recursively index files and directories func (idx *Index) indexDirectory(adjustedPath string, config actionConfig) error { - // Normalize path to always have trailing slash (except for root which is just "/") - if adjustedPath != "/" { - adjustedPath = strings.TrimSuffix(adjustedPath, "/") + "/" - } + // Normalize path to always have trailing slash + adjustedPath = utils.AddTrailingSlashIfNotExists(adjustedPath) realPath := strings.TrimRight(idx.Path, "/") + adjustedPath // Open the directory dir, err := os.Open(realPath) @@ -169,9 +189,8 @@ func (idx *Index) indexDirectory(adjustedPath string, config actionConfig) error // recursively check cached dirs for mod time changes as well if config.Recursive { if modChange { - idx.mu.Lock() - idx.FilesChangedDuringIndexing = true - idx.mu.Unlock() + // Mark files as changed in the active scanner + idx.markFilesChanged() } else if config.Quick { for _, item := range cacheDirItems { subConfig := actionConfig{ @@ -231,9 +250,7 @@ func (idx *Index) GetFsDirInfo(adjustedPath string) (*iteminfo.FileInfo, error) } // Normalize directory path to always have trailing slash - if adjustedPath != "/" { - adjustedPath = strings.TrimSuffix(adjustedPath, "/") + "/" - } + adjustedPath = utils.AddTrailingSlashIfNotExists(adjustedPath) // adjustedPath is already normalized with trailing slash combinedPath := adjustedPath var response *iteminfo.FileInfo @@ -255,7 +272,7 @@ func (idx *Index) GetFsDirInfo(adjustedPath string) (*iteminfo.FileInfo, error) filePath := strings.TrimSuffix(adjustedPath, "/") + "/" + item.Name response = &iteminfo.FileInfo{ Path: filePath, - ItemInfo: item, + ItemInfo: item.ItemInfo, } found = true continue @@ -279,7 +296,7 @@ func (idx *Index) GetDirInfo(dirInfo *os.File, stat os.FileInfo, realPath, adjus return nil, err } var totalSize int64 - fileInfos := []iteminfo.ItemInfo{} + fileInfos := []iteminfo.ExtendedItemInfo{} dirInfos := []iteminfo.ItemInfo{} hasPreview := false if !config.Recursive { @@ -353,41 +370,52 @@ func (idx *Index) GetDirInfo(dirInfo *os.File, stat os.FileInfo, realPath, adjus totalSize += itemInfo.Size itemInfo.Type = "directory" dirInfos = append(dirInfos, *itemInfo) - if config.Recursive { + if config.IsRoutineScan { idx.NumDirs++ + // Also update the active scanner's counter + idx.incrementScannerDirs() } } else { size, shouldCountSize := idx.handleFile(file, fullCombined) itemInfo.DetectType(realPath+"/"+file.Name(), false) // Set HasPreview flags - use cached metadata optimization only when indexing is enabled + usedCachedPreview := false if !idx.Config.DisableIndexing && config.Recursive { // Optimization: For audio files during indexing, check if we can use cached album art info simpleType := strings.Split(itemInfo.Type, "/")[0] if simpleType == "audio" { previousInfo, exists := idx.GetReducedMetadata(fullCombined, false) if exists && time.Time.Equal(previousInfo.ModTime, file.ModTime()) { - // File unchanged - use cached album art info + // File unchanged - use cached album art info (whether true or false) itemInfo.HasPreview = previousInfo.HasPreview + usedCachedPreview = true } } } // When indexing is disabled or CheckViewable mode, always check directly - setFilePreviewFlags(itemInfo, realPath+"/"+file.Name()) - + // Skip if we already used cached preview data (avoids redundant HasAlbumArt checks) + if !usedCachedPreview { + setFilePreviewFlags(itemInfo, realPath+"/"+file.Name()) + } itemInfo.Size = int64(size) - // Update parent folder preview status for images, videos, and audio with album art // Use shared function to determine if this file type should bubble up to folder preview if itemInfo.HasPreview && iteminfo.ShouldBubbleUpToFolderPreview(*itemInfo) { hasPreview = true } - fileInfos = append(fileInfos, *itemInfo) + // Wrap ItemInfo in ExtendedItemInfo for files array + extItemInfo := iteminfo.ExtendedItemInfo{ + ItemInfo: *itemInfo, + } + fileInfos = append(fileInfos, extItemInfo) if shouldCountSize { totalSize += itemInfo.Size } - if config.Recursive { + if config.IsRoutineScan { idx.NumFiles++ + // Also update the active scanner's counter + idx.incrementScannerFiles() } } } @@ -421,7 +449,9 @@ func (idx *Index) GetDirInfo(dirInfo *os.File, stat os.FileInfo, realPath, adjus return dirFileInfo, nil } -func (idx *Index) recursiveUpdateDirSizes(childInfo *iteminfo.FileInfo, previousSize int64) { +// RecursiveUpdateDirSizes updates parent directory sizes recursively up the tree +// childInfo should have the NEW size, previousSize should be the OLD size +func (idx *Index) RecursiveUpdateDirSizes(childInfo *iteminfo.FileInfo, previousSize int64) { parentDir := utils.GetParentDirectoryPath(childInfo.Path) parentInfo, exists := idx.GetMetadataInfo(parentDir, true) @@ -437,7 +467,7 @@ func (idx *Index) recursiveUpdateDirSizes(childInfo *iteminfo.FileInfo, previous idx.UpdateMetadata(parentInfo) // Recursively update grandparents - idx.recursiveUpdateDirSizes(parentInfo, previousParentSize) + idx.RecursiveUpdateDirSizes(parentInfo, previousParentSize) } func (idx *Index) GetRealPath(relativePath ...string) (string, bool, error) { @@ -494,7 +524,7 @@ func (idx *Index) RefreshFileInfo(opts utils.FileOptions) error { // If size changed, propagate to parents if previousSize != newInfo.Size { - idx.recursiveUpdateDirSizes(newInfo, previousSize) + idx.RecursiveUpdateDirSizes(newInfo, previousSize) } return nil @@ -518,38 +548,34 @@ func isHidden(file os.FileInfo, srcPath string) bool { // This consolidates the logic used in both GetFsDirInfo and GetDirInfo func setFilePreviewFlags(fileInfo *iteminfo.ItemInfo, realPath string) { simpleType := strings.Split(fileInfo.Type, "/")[0] - ext := strings.ToLower(filepath.Ext(fileInfo.Name)) - extWithoutPeriod := strings.TrimPrefix(ext, ".") - - // Check if it's an image - if simpleType == "image" { - fileInfo.HasPreview = true - } - // Check for HEIC/HEIF - switch extWithoutPeriod { - case "heic", "heif": - if settings.CanConvertImage(extWithoutPeriod) { - fileInfo.HasPreview = true - } + switch fileInfo.Type { + case "image/heic", "image/heif": + fileInfo.HasPreview = settings.CanConvertImage("heic") + return } - - // Check if it's a video - if simpleType == "video" && settings.CanConvertVideo(extWithoutPeriod) { + switch simpleType { + case "image": fileInfo.HasPreview = true + return + case "video": + ext := strings.TrimPrefix(strings.ToLower(filepath.Ext(fileInfo.Name)), ".") + fileInfo.HasPreview = settings.CanConvertVideo(ext) + return + case "audio": + ext := strings.ToLower(filepath.Ext(fileInfo.Name)) + hasArt := iteminfo.HasAlbumArt(realPath, ext) + fileInfo.HasPreview = hasArt + return } - - // Check for audio with album art (always check, don't rely on cache) - if simpleType == "audio" { - fileInfo.HasPreview = iteminfo.HasAlbumArt(realPath, ext) - } - // Check for office docs and PDFs if settings.Config.Integrations.OnlyOffice.Secret != "" && iteminfo.IsOnlyOffice(fileInfo.Name) { fileInfo.HasPreview = true + return } if iteminfo.HasDocConvertableExtension(fileInfo.Name, fileInfo.Type) { fileInfo.HasPreview = true + return } } @@ -776,7 +802,7 @@ func (idx *Index) MakeIndexPath(path string) string { } path = strings.TrimPrefix(path, idx.Path) path = idx.MakeIndexPathPlatform(path) - path = strings.TrimSuffix(path, "/") + "/" + path = utils.AddTrailingSlashIfNotExists(path) return path } diff --git a/backend/indexing/indexingFiles_test.go b/backend/indexing/indexingFiles_test.go index 0b5b17e2df..e6da1a3cfc 100644 --- a/backend/indexing/indexingFiles_test.go +++ b/backend/indexing/indexingFiles_test.go @@ -37,9 +37,9 @@ func setupTestIndex(t *testing.T) (*Index, string, func()) { Type: "directory", Size: 1000, // Total logical size: 100 + 200 + 300 + 400 }, - Files: []iteminfo.ItemInfo{ - {Name: "file1.txt", Size: 100}, - {Name: "file2.txt", Size: 200}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "file1.txt", Size: 100}}, + {ItemInfo: iteminfo.ItemInfo{Name: "file2.txt", Size: 200}}, }, Folders: []iteminfo.ItemInfo{ {Name: "subdir", Type: "directory", Size: 700}, // 300 + 400 @@ -53,8 +53,8 @@ func setupTestIndex(t *testing.T) (*Index, string, func()) { Type: "directory", Size: 700, // 300 + 400 }, - Files: []iteminfo.ItemInfo{ - {Name: "file3.txt", Size: 300}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "file3.txt", Size: 300}}, }, Folders: []iteminfo.ItemInfo{ {Name: "deepdir", Type: "directory", Size: 400}, @@ -68,8 +68,8 @@ func setupTestIndex(t *testing.T) (*Index, string, func()) { Type: "directory", Size: 400, }, - Files: []iteminfo.ItemInfo{ - {Name: "file4.txt", Size: 400}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "file4.txt", Size: 400}}, }, } @@ -151,9 +151,11 @@ func TestRecursiveSizeUpdate(t *testing.T) { // Simulate adding a new file to deepdir by updating the mock data // Add file5.txt (500 bytes) to deepdir deepdirInfo := idx.Directories["/subdir/deepdir/"] - deepdirInfo.Files = append(deepdirInfo.Files, iteminfo.ItemInfo{ - Name: "file5.txt", - Size: 500, + deepdirInfo.Files = append(deepdirInfo.Files, iteminfo.ExtendedItemInfo{ + ItemInfo: iteminfo.ItemInfo{ + Name: "file5.txt", + Size: 500, + }, }) // Update deepdir size @@ -161,7 +163,7 @@ func TestRecursiveSizeUpdate(t *testing.T) { deepdirInfo.Size = 900 // 400 + 500 // Simulate the recursive size update by calling the method directly - idx.recursiveUpdateDirSizes(deepdirInfo, oldDeepdirSize) + idx.RecursiveUpdateDirSizes(deepdirInfo, oldDeepdirSize) // Check that deepdir size updated deepdirInfo, exists = idx.GetMetadataInfo("/subdir/deepdir/", true) @@ -208,9 +210,11 @@ func TestNonRecursiveMetadataUpdate(t *testing.T) { initialRootSize := rootInfo.Size // Simulate adding a new file directly to root by updating mock data - rootInfo.Files = append(rootInfo.Files, iteminfo.ItemInfo{ - Name: "file3.txt", - Size: 150, + rootInfo.Files = append(rootInfo.Files, iteminfo.ExtendedItemInfo{ + ItemInfo: iteminfo.ItemInfo{ + Name: "file3.txt", + Size: 150, + }, }) // Update root size (non-recursive - only direct files) @@ -260,7 +264,7 @@ func TestRecursiveUpdateDirSizes(t *testing.T) { deepdirInfo.Size = 900 // Call recursiveUpdateDirSizes - idx.recursiveUpdateDirSizes(deepdirInfo, previousSize) + idx.RecursiveUpdateDirSizes(deepdirInfo, previousSize) // Check that subdir size updated subdirInfo := idx.Directories["/subdir/"] @@ -309,7 +313,7 @@ func TestSizeDecreasePropagate(t *testing.T) { deepdirInfo.Size = 100 // Call recursiveUpdateDirSizes - idx.recursiveUpdateDirSizes(deepdirInfo, previousSize) + idx.RecursiveUpdateDirSizes(deepdirInfo, previousSize) // Check that subdir size decreased subdirInfo := idx.Directories["/subdir/"] @@ -332,10 +336,12 @@ func TestPreviewDoesNotPropagateFromSubdirectories(t *testing.T) { // Add an image file to subdir in mock data (should have preview) subdirInfo := idx.Directories["/subdir/"] - subdirInfo.Files = append(subdirInfo.Files, iteminfo.ItemInfo{ - Name: "image.jpg", - Size: 100, - HasPreview: true, // Image files have preview + subdirInfo.Files = append(subdirInfo.Files, iteminfo.ExtendedItemInfo{ + ItemInfo: iteminfo.ItemInfo{ + Name: "image.jpg", + Size: 100, + HasPreview: true, // Image files have preview + }, }) subdirInfo.HasPreview = true // Subdir now has preview @@ -367,10 +373,12 @@ func TestPreviewPropagatesFromFiles(t *testing.T) { // Add an image file to root in mock data (should propagate preview to root) rootInfo := idx.Directories["/"] - rootInfo.Files = append(rootInfo.Files, iteminfo.ItemInfo{ - Name: "image.png", - Size: 100, - HasPreview: true, // Image files have preview + rootInfo.Files = append(rootInfo.Files, iteminfo.ExtendedItemInfo{ + ItemInfo: iteminfo.ItemInfo{ + Name: "image.png", + Size: 100, + HasPreview: true, // Image files have preview + }, }) rootInfo.HasPreview = true // Root now has preview diff --git a/backend/indexing/indexingScanner.go b/backend/indexing/indexingScanner.go new file mode 100644 index 0000000000..79dc3aa8bd --- /dev/null +++ b/backend/indexing/indexingScanner.go @@ -0,0 +1,453 @@ +package indexing + +import ( + "os" + "strings" + "time" + + "github.com/gtsteffaniak/go-logger/logger" +) + +// Scanner represents an independent scanner for a specific directory path +// Each scanner has its own schedule and stats, but only one can run at a time (protected by Index.scanMutex) +type Scanner struct { + // Identity + scanPath string // "/" for root scanner, "/Documents/" for child scanners + + // Per-scanner scheduling (not shared between scanners) + currentSchedule int + smartModifier time.Duration + complexity uint // 0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex + fullScanCounter int // every 5th scan is a full scan + + // Per-scanner stats (not shared) + filesChanged bool + lastScanned time.Time + quickScanTime int + fullScanTime int + numDirs uint64 // Local count for this path + numFiles uint64 // Local count for this path + + // Reference back to parent index + idx *Index + + // Control + stopChan chan struct{} +} + +// calculateTimeScore returns a 1-10 score based on full scan time +func (s *Scanner) calculateTimeScore() uint { + if s.fullScanTime == 0 { + return 1 // No data yet, assume simple + } + // Time-based thresholds (in seconds) + switch { + case s.fullScanTime < 2: + return 1 + case s.fullScanTime < 5: + return 2 + case s.fullScanTime < 10: + return 3 + case s.fullScanTime < 15: + return 4 + case s.fullScanTime < 30: + return 5 + case s.fullScanTime < 60: + return 6 + case s.fullScanTime < 90: + return 7 + case s.fullScanTime < 120: + return 8 + case s.fullScanTime < 180: + return 9 + default: + return 10 + } +} + +// calculateDirScore returns a 1-10 score based on directory count +func (s *Scanner) calculateDirScore() uint { + // Directory-based thresholds + switch { + case s.numDirs < 2500: + return 1 + case s.numDirs < 5000: + return 2 + case s.numDirs < 10000: + return 3 + case s.numDirs < 25000: + return 4 + case s.numDirs < 50000: + return 5 + case s.numDirs < 100000: + return 6 + case s.numDirs < 250000: + return 7 + case s.numDirs < 500000: + return 8 + case s.numDirs < 1000000: + return 9 + default: + return 10 + } +} + +// start begins the scanner's main loop +func (s *Scanner) start() { + // Do initial scan for all scanners + // Wait a bit to stagger child scanner initial scans (root goes first) + if s.scanPath != "/" { + time.Sleep(500 * time.Millisecond) + } + s.tryAcquireAndScan() + + for { + // Check if directory still exists (for non-root scanners) + if s.scanPath != "/" && !s.directoryExists() { + logger.Debugf("Scanner [%s] stopping: directory no longer exists", s.scanPath) + s.removeSelf() + return + } + + // Calculate sleep based on this scanner's schedule + sleepTime := s.calculateSleepTime() + + select { + case <-s.stopChan: + logger.Debugf("Scanner [%s] received stop signal", s.scanPath) + return + + case <-time.After(sleepTime): + // Time to scan! But must acquire mutex first + s.tryAcquireAndScan() + } + } +} + +// tryAcquireAndScan attempts to acquire the global scan mutex and run a scan +func (s *Scanner) tryAcquireAndScan() { + // Child scanners must wait for root scanner to go first each round + if s.scanPath != "/" { + s.idx.mu.RLock() + lastRootScan := s.idx.lastRootScanTime + myLastScan := s.lastScanned + s.idx.mu.RUnlock() + + // If we've scanned more recently than the root, skip this cycle + if !myLastScan.IsZero() && myLastScan.After(lastRootScan) { + return + } + } + + s.idx.scanMutex.Lock() + + // Mark which scanner is active (for status/logging) + s.idx.mu.Lock() + s.idx.activeScannerPath = s.scanPath + s.idx.mu.Unlock() + + // Determine if quick or full scan + // First scan (fullScanCounter=0) is always full + // Scans 1-4 are quick, scan 5 is full, then repeat + quick := s.fullScanCounter > 0 && s.fullScanCounter < 5 + s.fullScanCounter++ + if s.fullScanCounter >= 5 { + s.fullScanCounter = 0 + } + s.runIndexing(quick) + + // Update this scanner's schedule based on results + s.updateSchedule() + + // If this is the root scanner, update the last root scan time + if s.scanPath == "/" { + s.idx.mu.Lock() + s.idx.lastRootScanTime = time.Now() + s.idx.mu.Unlock() + } + + // Clear active scanner + s.idx.mu.Lock() + s.idx.activeScannerPath = "" + s.idx.mu.Unlock() + + s.idx.scanMutex.Unlock() + + // Aggregate stats to Index level and update status (after releasing active scanner) + s.idx.aggregateStatsFromScanners() +} + +// runIndexing performs the actual indexing work +func (s *Scanner) runIndexing(quick bool) { + if s.scanPath == "/" { + // ROOT SCANNER: Non-recursive, just scan root directory itself + s.runRootScan(quick) + } else { + // CHILD SCANNER: Recursive scan of assigned directory + s.runChildScan(quick) + } + + s.lastScanned = time.Now() +} + +// runRootScan scans only the root directory (non-recursive) and checks for new child directories +func (s *Scanner) runRootScan(quick bool) { + config := actionConfig{ + Quick: quick, + Recursive: false, + IsRoutineScan: true, + } + + // Reset counters for full scan + if !quick { + s.numDirs = 0 + s.numFiles = 0 + } + + s.filesChanged = false + startTime := time.Now() + + err := s.idx.indexDirectory("/", config) + if err != nil { + logger.Errorf("Root scanner error: %v", err) + } + + scanDuration := int(time.Since(startTime).Seconds()) + if quick { + s.quickScanTime = scanDuration + } else { + s.fullScanTime = scanDuration + s.updateComplexity() + } + + // Check for new top-level directories and create scanners for them + s.checkForNewChildDirectories() +} + +// runChildScan scans a specific directory recursively +func (s *Scanner) runChildScan(quick bool) { + config := actionConfig{ + Quick: quick, + Recursive: true, + IsRoutineScan: true, + } + + // Reset counters for full scan + if !quick { + s.numDirs = 0 + s.numFiles = 0 + } + + s.filesChanged = false + startTime := time.Now() + + err := s.idx.indexDirectory(s.scanPath, config) + if err != nil { + logger.Errorf("Scanner [%s] error: %v", s.scanPath, err) + } + + scanDuration := int(time.Since(startTime).Seconds()) + if quick { + s.quickScanTime = scanDuration + } else { + s.fullScanTime = scanDuration + s.updateComplexity() + } +} + +// checkForNewChildDirectories detects new top-level directories and creates scanners for them +// Also detects deleted directories and signals their scanners to stop +func (s *Scanner) checkForNewChildDirectories() { + if s.scanPath != "/" { + return + } + + // Get current top-level directories from filesystem (already filtered by exclusion rules) + currentDirs := s.getTopLevelDirs() + currentDirsMap := make(map[string]bool) + for _, dir := range currentDirs { + currentDirsMap[dir] = true + } + + // Check which scanners already exist + s.idx.mu.RLock() + existingScanners := make(map[string]*Scanner) + for path, scanner := range s.idx.scanners { + if path != "/" { // Don't check root scanner + existingScanners[path] = scanner + } + } + s.idx.mu.RUnlock() + + // Check for deleted directories and stop their scanners + for path, scanner := range existingScanners { + if !currentDirsMap[path] { + logger.Debugf("Directory [%s] no longer exists, stopping scanner", path) + scanner.stop() + } + } + + // Create scanner for any new directories (getTopLevelDirs already filtered excluded dirs) + for _, dirPath := range currentDirs { + _, exists := existingScanners[dirPath] + if !exists && dirPath != "/" { + logger.Debugf("Detected new directory, creating scanner: [%s]", dirPath) + newScanner := s.idx.createChildScanner(dirPath) + + s.idx.mu.Lock() + s.idx.scanners[dirPath] = newScanner + s.idx.mu.Unlock() + + go newScanner.start() + } + } +} + +// getTopLevelDirs returns a list of top-level directory paths in the root +func (s *Scanner) getTopLevelDirs() []string { + dirs := []string{} + realPath := strings.TrimRight(s.idx.Path, "/") + "/" + + dir, err := os.Open(realPath) + if err != nil { + logger.Errorf("Failed to open root directory: %v", err) + return dirs + } + defer dir.Close() + + files, err := dir.Readdir(-1) + if err != nil { + logger.Errorf("Failed to read root directory: %v", err) + return dirs + } + + for _, file := range files { + baseName := file.Name() + + // Skip files - only create scanners for directories + if !file.IsDir() { + // Note: includeRootItems may contain files, but we only create scanners for directories + continue + } + + dirPath := "/" + baseName + "/" + + // Skip directories in omit list + if omitList[baseName] { + logger.Debugf("Skipping scanner creation for omitted directory: %s", dirPath) + continue + } + + // Check if we should include this directory (respects includeRootItems filter) + // When includeRootItems is set, ONLY those items (that are directories) get scanners + if !s.idx.shouldInclude(baseName) { + logger.Debugf("Skipping scanner creation for non-included directory: %s", dirPath) + continue + } + + // Check if this directory should be excluded from indexing (respects exclusion rules) + hidden := isHidden(file, s.idx.Path+dirPath) + if s.idx.shouldSkip(true, hidden, dirPath, baseName, actionConfig{}) { + logger.Debugf("Skipping scanner creation for excluded directory: %s", dirPath) + continue + } + + dirs = append(dirs, dirPath) + } + + return dirs +} + +// calculateSleepTime determines how long to wait before the next scan +func (s *Scanner) calculateSleepTime() time.Duration { + // Get base schedule time and apply complexity modifier + sleepTime := scanSchedule[s.currentSchedule] + s.smartModifier + + // Allow manual override via config + if s.idx.Config.IndexingInterval > 0 { + sleepTime = time.Duration(s.idx.Config.IndexingInterval) * time.Minute + } + + return sleepTime +} + +// updateSchedule adjusts the scanner's schedule based on whether files changed +func (s *Scanner) updateSchedule() { + // Adjust schedule based on file changes + if s.filesChanged { + logger.Debugf("Scanner [%s] detected changes, adjusting schedule", s.scanPath) + // Move to at least the full-scan anchor or reduce interval + if s.currentSchedule > fullScanAnchor { + s.currentSchedule = fullScanAnchor + } else if s.currentSchedule > 0 { + s.currentSchedule-- + } + } else { + // Increment toward the longest interval if no changes + if s.currentSchedule < len(scanSchedule)-1 { + s.currentSchedule++ + } + } + + // Cap simple complexity (1) at schedule 4 + // Don't apply this cap if complexity is still unknown (0) + if s.complexity == 1 && s.currentSchedule > 4 { + s.currentSchedule = 4 + } + + // Ensure currentSchedule stays within bounds + if s.currentSchedule < 0 { + s.currentSchedule = 0 + } else if s.currentSchedule >= len(scanSchedule) { + s.currentSchedule = len(scanSchedule) - 1 + } +} + +// updateComplexity calculates the complexity level (1-10) for this scanner's directory +// 0: unknown, 1: simple, 2-6: normal, 7-9: complex, 10: highlyComplex +func (s *Scanner) updateComplexity() { + // Calculate complexity based on both scan time and directory count + timeScore := s.calculateTimeScore() + dirScore := s.calculateDirScore() + + // Use the higher score (more conservative approach) + complexity := timeScore + if dirScore > timeScore { + complexity = dirScore + } + + s.complexity = complexity + + // Set smartModifier based on complexity level + if modifier, ok := complexityModifier[s.complexity]; ok { + s.smartModifier = modifier + } else { + s.smartModifier = 0 + } +} + +// directoryExists checks if the scanner's directory still exists +func (s *Scanner) directoryExists() bool { + realPath := strings.TrimRight(s.idx.Path, "/") + s.scanPath + realPath = strings.TrimSuffix(realPath, "/") + + _, err := os.Stat(realPath) + return err == nil +} + +// removeSelf removes this scanner from the index's scanner map +func (s *Scanner) removeSelf() { + s.idx.mu.Lock() + defer s.idx.mu.Unlock() + + delete(s.idx.scanners, s.scanPath) + logger.Infof("Removed scanner [%s] from active scanners", s.scanPath) + + // Trigger stats aggregation to update overall index + go s.idx.aggregateStatsFromScanners() +} + +// stop gracefully stops the scanner +func (s *Scanner) stop() { + close(s.stopChan) +} diff --git a/backend/indexing/indexingSchedule.go b/backend/indexing/indexingSchedule.go index 8480ae8ebf..c83a30268b 100644 --- a/backend/indexing/indexingSchedule.go +++ b/backend/indexing/indexingSchedule.go @@ -22,30 +22,60 @@ var scanSchedule = map[int]time.Duration{ 9: 12 * time.Hour, } +// complexityModifier defines time adjustments based on complexity level (0-10) +// 0: unknown (not yet scanned), 1: simple, 2-6: normal, 7-9: complex, 10: highlyComplex +// Each level gets progressively more aggressive with scan timing adjustments +var complexityModifier = map[uint]time.Duration{ + 0: 0 * time.Minute, // unknown: no modifier + 1: -4 * time.Minute, // simple: scan more frequently + 2: -2 * time.Minute, // normal (lightest) + 3: -1 * time.Minute, + 4: 0 * time.Minute, // baseline normal + 5: 1 * time.Minute, + 6: 2 * time.Minute, // normal (heaviest) + 7: 4 * time.Minute, // complex (lightest) + 8: 8 * time.Minute, + 9: 12 * time.Minute, + 10: 16 * time.Minute, // highlyComplex: scan less frequently +} + var fullScanAnchor = 3 // index of the schedule for a full scan -func (idx *Index) newScanner(origin string) { - fullScanCounter := 0 // every 5th scan is a full scan - for { - // Determine sleep time with modifiers - fullScanCounter++ - sleepTime := scanSchedule[idx.CurrentSchedule] + idx.SmartModifier - if idx.Assessment == "simple" { - sleepTime = scanSchedule[idx.CurrentSchedule] - idx.SmartModifier - } - if idx.Config.IndexingInterval > 0 { - sleepTime = time.Duration(idx.Config.IndexingInterval) * time.Minute - } - // Log and sleep before indexing - logger.Debugf("Next scan in %v", sleepTime) - time.Sleep(sleepTime) - if fullScanCounter == 5 { - idx.RunIndexing(origin, false) // Full scan - fullScanCounter = 0 - } else { - idx.RunIndexing(origin, true) // Quick scan - } - idx.UpdateSchedule() +// Removed: Old single-scanner implementation - replaced by multi-scanner system in indexingScanner.go + +// markFilesChanged marks that files have changed in the currently active scanner +func (idx *Index) markFilesChanged() { + idx.mu.RLock() + activePath := idx.activeScannerPath + scanner, exists := idx.scanners[activePath] + idx.mu.RUnlock() + + if exists { + scanner.filesChanged = true + } +} + +// incrementScannerDirs increments the directory counter for the active scanner +func (idx *Index) incrementScannerDirs() { + idx.mu.RLock() + activePath := idx.activeScannerPath + scanner, exists := idx.scanners[activePath] + idx.mu.RUnlock() + + if exists { + scanner.numDirs++ + } +} + +// incrementScannerFiles increments the file counter for the active scanner +func (idx *Index) incrementScannerFiles() { + idx.mu.RLock() + activePath := idx.activeScannerPath + scanner, exists := idx.scanners[activePath] + idx.mu.RUnlock() + + if exists { + scanner.numFiles++ } } @@ -78,32 +108,7 @@ func (idx *Index) garbageCollection() { idx.DirectoriesLedger = make(map[string]struct{}) } -func (idx *Index) UpdateSchedule() { - // Adjust schedule based on file changes - if idx.FilesChangedDuringIndexing { - logger.Debugf("Files changed during indexing [%v], adjusting schedule.", idx.Name) - // Move to at least the full-scan anchor or reduce interval - if idx.CurrentSchedule > fullScanAnchor { - idx.CurrentSchedule = fullScanAnchor - } else if idx.CurrentSchedule > 0 { - idx.CurrentSchedule-- - } - } else { - // Increment toward the longest interval if no changes - if idx.CurrentSchedule < len(scanSchedule)-1 { - idx.CurrentSchedule++ - } - } - if idx.Assessment == "simple" && idx.CurrentSchedule > 3 { - idx.CurrentSchedule = 3 - } - // Ensure `currentSchedule` stays within bounds - if idx.CurrentSchedule < 0 { - idx.CurrentSchedule = 0 - } else if idx.CurrentSchedule >= len(scanSchedule) { - idx.CurrentSchedule = len(scanSchedule) - 1 - } -} +// Removed: UpdateSchedule - now handled per-scanner in Scanner.updateSchedule() func (idx *Index) SendSourceUpdateEvent() error { if idx.mock { @@ -125,80 +130,188 @@ func (idx *Index) SendSourceUpdateEvent() error { return nil } -func (idx *Index) RunIndexing(origin string, quick bool) { - if idx.runningScannerCount > 0 { - logger.Debugf("Indexing already in progress for [%v]", idx.Name) - return - } - err := idx.PreScan() - if err != nil { - logger.Errorf("Error during indexing: %v", err) - return - } +// Removed: RunIndexing - replaced by multi-scanner system where each scanner handles its own indexing + +// setupMultiScanner creates and starts the multi-scanner system +// Creates a root scanner (non-recursive) and child scanners for each top-level directory +func (idx *Index) setupMultiScanner() { + logger.Infof("Setting up multi-scanner system for [%v]", idx.Name) + + idx.mu.Lock() + idx.scanners = make(map[string]*Scanner) + idx.initialScanStartTime = time.Now() + idx.hasLoggedInitialScan = false + idx.mu.Unlock() + + // Create and start root scanner + rootScanner := idx.createRootScanner() + idx.mu.Lock() + idx.scanners["/"] = rootScanner + idx.mu.Unlock() + go rootScanner.start() + + // Discover existing top-level directories (root scanner will create scanners for new ones dynamically) + topLevelDirs := rootScanner.getTopLevelDirs() + + // Create child scanner for each top-level directory + for _, dirPath := range topLevelDirs { + childScanner := idx.createChildScanner(dirPath) - prevNumDirs := idx.NumDirs - prevNumFiles := idx.NumFiles - if quick { - logger.Debugf("Starting quick scan for [%v]", idx.Name) - } else { - logger.Debugf("Starting full scan for [%v]", idx.Name) idx.mu.Lock() - idx.NumDirs = 0 - idx.NumFiles = 0 - idx.processedInodes = make(map[uint64]struct{}) - idx.FoundHardLinks = make(map[string]uint64) + idx.scanners[dirPath] = childScanner idx.mu.Unlock() - } - startTime := time.Now() - idx.FilesChangedDuringIndexing = false - // Perform the indexing operation - config := actionConfig{ - Quick: quick, - Recursive: true, - IsRoutineScan: idx.wasIndexed, // This is a routine scan if we already have an index - } - err = idx.indexDirectory("/", config) - if err != nil { - logger.Errorf("Error during indexing: %v", err) - } - firstRun := time.Time.Equal(idx.LastIndexed, time.Time{}) - // Update the LastIndexed time - idx.LastIndexed = time.Now() - idx.LastIndexedUnix = idx.LastIndexed.Unix() - if quick { - idx.QuickScanTime = int(time.Since(startTime).Seconds()) - logger.Debugf("Time spent indexing [%v]: %v seconds", idx.Name, idx.QuickScanTime) - } else { - idx.FullScanTime = int(time.Since(startTime).Seconds()) - // update smart indexing - if idx.FullScanTime < 3 || idx.NumDirs < 10000 { - idx.Assessment = "simple" - idx.SmartModifier = 4 * time.Minute - } else if idx.FullScanTime > 120 || idx.NumDirs > 500000 { - idx.Assessment = "complex" - modifier := idx.FullScanTime / 10 // seconds - idx.SmartModifier = time.Duration(modifier) * time.Minute - } else { - idx.Assessment = "normal" - } - if firstRun { - logger.Infof("Index assessment : [%v] complexity=%v directories=%v files=%v", idx.Name, idx.Assessment, idx.NumDirs, idx.NumFiles) - } else { - logger.Debugf("Index assessment : [%v] complexity=%v directories=%v files=%v", idx.Name, idx.Assessment, idx.NumDirs, idx.NumFiles) - } - if idx.NumDirs != prevNumDirs || idx.NumFiles != prevNumFiles { - idx.FilesChangedDuringIndexing = true - } - logger.Debugf("Time spent indexing [%v]: %v seconds", idx.Name, idx.FullScanTime) + + go childScanner.start() } - err = idx.PostScan() - if err != nil { - logger.Errorf("Error during post scan indexing: %v", err) + logger.Debugf("Created %d scanners for [%v] (1 root + %d children)", len(topLevelDirs)+1, idx.Name, len(topLevelDirs)) +} + +// createRootScanner creates a scanner for the root directory (non-recursive) +func (idx *Index) createRootScanner() *Scanner { + return &Scanner{ + scanPath: "/", + idx: idx, + stopChan: make(chan struct{}), + currentSchedule: 0, + fullScanCounter: 0, + complexity: 0, // 0 = unknown until first full scan completes + } +} + +// createChildScanner creates a scanner for a specific child directory (recursive) +func (idx *Index) createChildScanner(dirPath string) *Scanner { + return &Scanner{ + scanPath: dirPath, + idx: idx, + stopChan: make(chan struct{}), + currentSchedule: 0, + fullScanCounter: 0, + complexity: 0, // 0 = unknown until first full scan completes + } +} + +// Legacy function kept for backwards compatibility - now deprecated +func (idx *Index) setupIndexingScanners() { + // Use new multi-scanner system + idx.setupMultiScanner() +} + +// aggregateStatsFromScanners aggregates stats from all scanners to Index-level stats +func (idx *Index) aggregateStatsFromScanners() { + idx.mu.Lock() + defer idx.mu.Unlock() + + if len(idx.scanners) == 0 { return } + + // Aggregate stats from all scanners + var totalDirs uint64 = 0 + var totalFiles uint64 = 0 + var totalQuickScanTime = 0 + var totalFullScanTime = 0 + var mostRecentScan time.Time + var maxComplexity uint = 0 // Start at 0 (unknown) + allScannedAtLeastOnce := true + + for _, scanner := range idx.scanners { + totalDirs += scanner.numDirs + totalFiles += scanner.numFiles + totalQuickScanTime += scanner.quickScanTime + totalFullScanTime += scanner.fullScanTime + + // Track most recent scan + if scanner.lastScanned.After(mostRecentScan) { + mostRecentScan = scanner.lastScanned + } + + // Check if all scanners have scanned at least once + if scanner.lastScanned.IsZero() { + allScannedAtLeastOnce = false + } + if !allScannedAtLeastOnce { + continue + } + + // Track highest complexity (most conservative assessment) + // Only consider scanners that have been assessed (complexity > 0) + if scanner.complexity > 0 && scanner.complexity > maxComplexity { + maxComplexity = scanner.complexity + } + } + if allScannedAtLeastOnce && idx.FullScanTime == 0 { + maxComplexity = 1 // assess as simple because it took 0 seconds total + } + + // Update Index-level stats + idx.NumDirs = totalDirs + idx.NumFiles = totalFiles + idx.QuickScanTime = totalQuickScanTime + idx.FullScanTime = totalFullScanTime + idx.Complexity = maxComplexity + + // Update last indexed time + if !mostRecentScan.IsZero() { + idx.LastIndexed = mostRecentScan + idx.LastIndexedUnix = mostRecentScan.Unix() + idx.wasIndexed = true + } + + // Log first complete scan round (once) + if allScannedAtLeastOnce && !idx.hasLoggedInitialScan { + totalDuration := time.Since(idx.initialScanStartTime) + truncatedToSecond := totalDuration.Truncate(time.Second) + logger.Debugf("Time spent indexing [%v]: %v seconds", idx.Name, truncatedToSecond) + idx.hasLoggedInitialScan = true + } + + // Update status: if all scanners have completed at least one scan, mark as READY + if allScannedAtLeastOnce && idx.activeScannerPath == "" { + idx.Status = READY + // Send update event to notify clients + idx.mu.Unlock() + err := idx.SendSourceUpdateEvent() + idx.mu.Lock() + if err != nil { + logger.Errorf("Error sending source update event: %v", err) + } + } else if idx.activeScannerPath != "" { + idx.Status = INDEXING + } + } -func (idx *Index) setupIndexingScanners() { - go idx.newScanner("/") +// GetScannerStatus returns detailed information about all active scanners +func (idx *Index) GetScannerStatus() map[string]interface{} { + idx.mu.RLock() + defer idx.mu.RUnlock() + + status := make(map[string]interface{}) + + // Current active scanner (if any is running) + status["activeScanner"] = idx.activeScannerPath + status["isScanning"] = idx.activeScannerPath != "" + + // Individual scanner stats + scannerStats := make([]map[string]interface{}, 0, len(idx.scanners)) + for path, scanner := range idx.scanners { + scannerInfo := map[string]interface{}{ + "path": path, + "lastScanned": scanner.lastScanned.Format(time.RFC3339), + "complexity": scanner.complexity, + "currentSchedule": scanner.currentSchedule, + "quickScanTime": scanner.quickScanTime, + "fullScanTime": scanner.fullScanTime, + "numDirs": scanner.numDirs, + "numFiles": scanner.numFiles, + "filesChanged": scanner.filesChanged, + "smartModifier": scanner.smartModifier.String(), + } + scannerStats = append(scannerStats, scannerInfo) + } + status["scanners"] = scannerStats + status["totalScanners"] = len(idx.scanners) + + return status } diff --git a/backend/indexing/indexing_test.go b/backend/indexing/indexing_test.go index 8c2d9b5461..667fb73ee4 100644 --- a/backend/indexing/indexing_test.go +++ b/backend/indexing/indexing_test.go @@ -6,6 +6,7 @@ import ( "testing" "github.com/gtsteffaniak/filebrowser/backend/common/settings" + "github.com/gtsteffaniak/filebrowser/backend/indexing/iteminfo" ) func BenchmarkFillIndex(b *testing.B) { @@ -52,6 +53,80 @@ func TestGetIndex(t *testing.T) { } } +// TestMultiScannerMutex verifies that only one scanner can run at a time +func TestMultiScannerMutex(t *testing.T) { + // Create a mock index with multi-scanner support + idx := &Index{ + Source: settings.Source{ + Name: "test-multiscanner", + Path: "/tmp/test", + Config: settings.SourceConfig{ + DisableIndexing: false, + }, + }, + mock: true, + Directories: make(map[string]*iteminfo.FileInfo), + DirectoriesLedger: make(map[string]struct{}), + processedInodes: make(map[uint64]struct{}), + FoundHardLinks: make(map[string]uint64), + scanners: make(map[string]*Scanner), + } + + // Create multiple scanners + scanner1 := idx.createRootScanner() + scanner2 := idx.createChildScanner("/test1/") + scanner3 := idx.createChildScanner("/test2/") + + idx.scanners["/"] = scanner1 + idx.scanners["/test1/"] = scanner2 + idx.scanners["/test2/"] = scanner3 + + // Verify scanners were created + if len(idx.scanners) != 3 { + t.Errorf("Expected 3 scanners, got %d", len(idx.scanners)) + } + + // Verify scanner properties + if scanner1.scanPath != "/" { + t.Error("Scanner 1 should be root scanner") + } + if scanner2.scanPath == "/" || scanner3.scanPath == "/" { + t.Error("Child scanners should not be root") + } + + // Test that GetScannerStatus works + status := idx.GetScannerStatus() + if status["totalScanners"] != 3 { + t.Errorf("Expected totalScanners=3, got %v", status["totalScanners"]) + } + if status["activeScanner"] != "" { + t.Errorf("Expected no active scanner, got %v", status["activeScanner"]) + } + if status["isScanning"] != false { + t.Error("Expected isScanning=false") + } + + // Verify scanner counters can be updated + idx.activeScannerPath = "/test1/" + idx.incrementScannerDirs() + idx.incrementScannerFiles() + + if scanner2.numDirs != 1 { + t.Errorf("Expected scanner2 numDirs=1, got %d", scanner2.numDirs) + } + if scanner2.numFiles != 1 { + t.Errorf("Expected scanner2 numFiles=1, got %d", scanner2.numFiles) + } + + // Verify markFilesChanged works + idx.markFilesChanged() + if !scanner2.filesChanged { + t.Error("Expected scanner2.filesChanged=true") + } + + t.Log("Multi-scanner mutex test passed") +} + func TestMakeIndexPath(t *testing.T) { tests := []struct { name string diff --git a/backend/indexing/iteminfo/conditions.go b/backend/indexing/iteminfo/conditions.go index dd8850e7d4..16d5c8b014 100644 --- a/backend/indexing/iteminfo/conditions.go +++ b/backend/indexing/iteminfo/conditions.go @@ -52,6 +52,8 @@ var ResizableImageTypes = map[string]bool{ ".png": true, ".gif": true, ".bmp": true, + ".tiff": true, + ".tif": true, ".heic": true, ".heif": true, ".other": false, @@ -308,6 +310,35 @@ func IsMatchingType(extension string, matchType string) bool { return false } +// IsMatchingDetectedType checks if the detected MIME type matches the search type. +// This uses the actual detected type rather than just the extension, which is more accurate +// for ambiguous extensions like .ts (TypeScript vs MPEG Transport Stream) +func IsMatchingDetectedType(detectedType string, extension string, matchType string) bool { + // Check if the detected MIME type starts with the match type (e.g., "video/", "image/", "audio/") + // No need to strip charset since HasPrefix works with it + if strings.HasPrefix(detectedType, matchType+"/") { + return true + } + + // For special categories that don't map directly to MIME type prefixes, + // use extension-based checking + switch matchType { + case "doc": + // Check if detected type is application/document or use extension check + if strings.HasPrefix(detectedType, "application/document") { + return true + } + return IsDoc(extension) + case "text": + // Already checked with HasPrefix above + return false + case "archive": + return IsArchive(extension) + } + + return false +} + // DetectType detects the MIME type of a file and updates the ItemInfo struct. func (i *ItemInfo) DetectType(realPath string, saveContent bool) { name := i.Name @@ -350,7 +381,7 @@ func hasBundleExtension(name string) bool { } func HasDocConvertableExtension(name, mimetype string) bool { - if !settings.Config.Env.MuPdfAvailable { + if !settings.Env.MuPdfAvailable { return false } if strings.HasPrefix(mimetype, "text") { diff --git a/backend/indexing/iteminfo/fileinfo.go b/backend/indexing/iteminfo/fileinfo.go index c86fa90bc6..b7020abccd 100644 --- a/backend/indexing/iteminfo/fileinfo.go +++ b/backend/indexing/iteminfo/fileinfo.go @@ -15,25 +15,32 @@ type ItemInfo struct { HasPreview bool `json:"hasPreview"` // whether the file has a thumbnail preview } +// ExtendedItemInfo extends ItemInfo with optional metadata that's only populated on-demand +// This avoids adding memory overhead to indexed items +type ExtendedItemInfo struct { + ItemInfo + Metadata *MediaMetadata `json:"metadata,omitempty"` // optional media metadata (audio/video only) +} + // FileInfo describes a file. // reduced item is non-recursive reduced "Items", used to pass flat items array type FileInfo struct { ItemInfo - Files []ItemInfo `json:"files"` // files in the directory - Folders []ItemInfo `json:"folders"` // folders in the directory - Path string `json:"path"` // path scoped to the associated index + Files []ExtendedItemInfo `json:"files,omitempty"` // files in the directory with optional metadata + Folders []ItemInfo `json:"folders,omitempty"` // folders in the directory + Path string `json:"path,omitempty"` // path scoped to the associated index } -// AudioMetadata contains metadata extracted from audio files -type AudioMetadata struct { - Title string `json:"title,omitempty"` // track title +// MediaMetadata contains metadata extracted from audio and video files +type MediaMetadata struct { + Title string `json:"title,omitempty"` // track/video title Artist string `json:"artist,omitempty"` // track artist Album string `json:"album,omitempty"` // album name Year int `json:"year,omitempty"` // release year - Genre string `json:"genre,omitempty"` // music genre + Genre string `json:"genre,omitempty"` // music/video genre Track int `json:"track,omitempty"` // track number Duration int `json:"duration,omitempty"` // duration in seconds - AlbumArt string `json:"albumArt,omitempty"` // base64 encoded album art + AlbumArt string `json:"albumArt,omitempty"` // base64 encoded album art / video thumbnail } // for efficiency, a response will be a pointer to the data @@ -42,7 +49,7 @@ type ExtendedFileInfo struct { FileInfo Content string `json:"content,omitempty"` // text content of a file, if requested Subtitles []ffmpeg.SubtitleTrack `json:"subtitles,omitempty"` // subtitles for video files - AudioMeta *AudioMetadata `json:"audioMeta,omitempty"` // audio metadata for audio files + Metadata *MediaMetadata `json:"metadata,omitempty"` // media metadata for audio/video files (includes duration) Checksums map[string]string `json:"checksums,omitempty"` // checksums for the file Token string `json:"token,omitempty"` // token for the file -- used for sharing OnlyOfficeId string `json:"onlyOfficeId,omitempty"` // id for onlyoffice files diff --git a/backend/indexing/iteminfo/mediaMeta.go b/backend/indexing/iteminfo/mediaMeta.go index 2f9863083f..29657223ee 100644 --- a/backend/indexing/iteminfo/mediaMeta.go +++ b/backend/indexing/iteminfo/mediaMeta.go @@ -338,9 +338,9 @@ func (fi ItemInfo) ContainsSearchTerm(searchTerm string, options SearchOptions) var fileSize int64 extension := filepath.Ext(lowerFileName) - // Collect file types + // Collect file types using the actual detected MIME type, not just extension for _, k := range AllFiletypeOptions { - if IsMatchingType(extension, k) { + if IsMatchingDetectedType(fi.Type, extension, k) { fileTypes[k] = true } } diff --git a/backend/indexing/mock.go b/backend/indexing/mock.go index ee258d77a8..762741fc89 100644 --- a/backend/indexing/mock.go +++ b/backend/indexing/mock.go @@ -11,15 +11,17 @@ import ( func (idx *Index) CreateMockData(numDirs, numFilesPerDir int) { for i := 0; i < numDirs; i++ { dirPath := utils.GenerateRandomPath(rand.Intn(3) + 1) - files := []iteminfo.ItemInfo{} // Slice of FileInfo + files := []iteminfo.ExtendedItemInfo{} - // Simulating files and directories with FileInfo + // Simulating files and directories with ExtendedItemInfo for j := 0; j < numFilesPerDir; j++ { - newFile := iteminfo.ItemInfo{ - Name: "file-" + utils.GetRandomTerm() + utils.GetRandomExtension(), - Size: rand.Int63n(1000), // Random size - ModTime: time.Now().Add(-time.Duration(rand.Intn(100)) * time.Hour), // Random mod time - Type: "blob", + newFile := iteminfo.ExtendedItemInfo{ + ItemInfo: iteminfo.ItemInfo{ + Name: "file-" + utils.GetRandomTerm() + utils.GetRandomExtension(), + Size: rand.Int63n(1000), + ModTime: time.Now().Add(-time.Duration(rand.Intn(100)) * time.Hour), + Type: "blob", + }, } files = append(files, newFile) } @@ -44,13 +46,15 @@ func CreateMockData(numDirs, numFilesPerDir int) iteminfo.FileInfo { } dir.Folders = append(dir.Folders, newFile) } - // Simulating files and directories with FileInfo + // Simulating files and directories with ExtendedItemInfo for j := 0; j < numFilesPerDir; j++ { - newFile := iteminfo.ItemInfo{ - Name: "file-" + utils.GetRandomTerm() + utils.GetRandomExtension(), - Size: rand.Int63n(1000), // Random size - ModTime: time.Now().Add(-time.Duration(rand.Intn(100)) * time.Hour), // Random mod time - Type: "blob", + newFile := iteminfo.ExtendedItemInfo{ + ItemInfo: iteminfo.ItemInfo{ + Name: "file-" + utils.GetRandomTerm() + utils.GetRandomExtension(), + Size: rand.Int63n(1000), + ModTime: time.Now().Add(-time.Duration(rand.Intn(100)) * time.Hour), + Type: "blob", + }, } dir.Files = append(dir.Files, newFile) } diff --git a/backend/indexing/mutate.go b/backend/indexing/mutate.go index 022ae88188..7e400f2a39 100644 --- a/backend/indexing/mutate.go +++ b/backend/indexing/mutate.go @@ -21,17 +21,22 @@ func (idx *Index) UpdateMetadata(info *iteminfo.FileInfo) bool { // DeleteMetadata removes the specified path from the index. // If recursive is true and the path is a directory, it will also remove all subdirectories. +// NOTE: path should already be an index path (with trailing slash for directories) func (idx *Index) DeleteMetadata(path string, isDir bool, recursive bool) bool { idx.mu.Lock() defer idx.mu.Unlock() - indexPath := idx.MakeIndexPath(path) + // Normalize the path - ensure trailing slash for directories + indexPath := path + if isDir { + indexPath = utils.AddTrailingSlashIfNotExists(path) + } if !isDir { // For files, remove from parent directory's Files slice - parentPath := idx.MakeIndexPath(filepath.Dir(path)) + parentPath := utils.AddTrailingSlashIfNotExists(filepath.Dir(strings.TrimSuffix(path, "/"))) if parentDir, exists := idx.Directories[parentPath]; exists { - fileName := filepath.Base(path) + fileName := filepath.Base(strings.TrimSuffix(path, "/")) for i, file := range parentDir.Files { if file.Name == fileName { // Remove file from slice @@ -48,25 +53,26 @@ func (idx *Index) DeleteMetadata(path string, isDir bool, recursive bool) bool { // Remove all subdirectories that start with this path toDelete := []string{} for dirPath := range idx.Directories { - if dirPath == indexPath || (len(dirPath) > len(indexPath) && - dirPath[:len(indexPath)] == indexPath && - (indexPath == "/" || dirPath[len(indexPath)] == '/')) { + // Match exact path or any subdirectory + if dirPath == indexPath || strings.HasPrefix(dirPath, indexPath) { toDelete = append(toDelete, dirPath) } } for _, dirPath := range toDelete { delete(idx.Directories, dirPath) + delete(idx.DirectoriesLedger, dirPath) } } else { // Just remove this specific directory delete(idx.Directories, indexPath) + delete(idx.DirectoriesLedger, indexPath) } // Remove from parent directory's Folders slice if indexPath != "/" { - parentPath := idx.MakeIndexPath(filepath.Dir(path)) + parentPath := utils.AddTrailingSlashIfNotExists(filepath.Dir(strings.TrimSuffix(indexPath, "/"))) if parentDir, exists := idx.Directories[parentPath]; exists { - dirName := filepath.Base(path) + dirName := filepath.Base(strings.TrimSuffix(indexPath, "/")) for i, folder := range parentDir.Folders { if folder.Name == dirName { // Remove folder from slice @@ -113,7 +119,7 @@ func (idx *Index) GetReducedMetadata(target string, isDir bool) (*iteminfo.FileI } return &iteminfo.FileInfo{ Path: fp, - ItemInfo: item, + ItemInfo: item.ItemInfo, }, true } } @@ -153,11 +159,24 @@ func GetIndex(name string) *Index { logger.Errorf("index %s not found", name) return nil } - } return index } +// ReadOnlyOperation executes a function with read-only access to the index +// This provides a safe way to access index data without exposing internal structures +func (idx *Index) ReadOnlyOperation(fn func()) { + idx.mu.RLock() + defer idx.mu.RUnlock() + fn() +} + +// GetDirectories returns the directories map for read-only access +// Should only be called within ReadOnlyOperation +func (idx *Index) GetDirectories() map[string]*iteminfo.FileInfo { + return idx.Directories +} + func GetIndexInfo(sourceName string) (ReducedIndex, error) { idx, ok := indexes[sourceName] if !ok { @@ -178,5 +197,25 @@ func GetIndexInfo(sourceName string) (ReducedIndex, error) { idx.SetUsage(totalBytes) utils.DiskUsageCache.Set(cacheKey, true) } - return idx.ReducedIndex, nil + + // Build scanner info for client + idx.mu.RLock() + scannerInfos := make([]*ScannerInfo, 0, len(idx.scanners)) + for _, scanner := range idx.scanners { + scannerInfos = append(scannerInfos, &ScannerInfo{ + Path: scanner.scanPath, + LastScanned: scanner.lastScanned, + Complexity: scanner.complexity, + CurrentSchedule: scanner.currentSchedule, + QuickScanTime: scanner.quickScanTime, + FullScanTime: scanner.fullScanTime, + NumDirs: scanner.numDirs, + NumFiles: scanner.numFiles, + }) + } + idx.mu.RUnlock() + + reducedIdx := idx.ReducedIndex + reducedIdx.Scanners = scannerInfos + return reducedIdx, nil } diff --git a/backend/indexing/mutate_test.go b/backend/indexing/mutate_test.go index ed6109bef6..1fed17629e 100644 --- a/backend/indexing/mutate_test.go +++ b/backend/indexing/mutate_test.go @@ -122,9 +122,9 @@ func TestGetFileMetadata(t *testing.T) { func TestUpdateFileMetadata(t *testing.T) { info := &iteminfo.FileInfo{ Path: "/testpath/", - Files: []iteminfo.ItemInfo{ - {Name: "testfile.txt"}, - {Name: "anotherfile.txt"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "testfile.txt"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "anotherfile.txt"}}, }, } @@ -169,9 +169,9 @@ func TestSetDirectoryInfo(t *testing.T) { Name: "testpath", Type: "directory", }, - Files: []iteminfo.ItemInfo{ - {Name: "testfile.txt"}, - {Name: "anotherfile.txt"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "testfile.txt"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "anotherfile.txt"}}, }, }, }, @@ -182,8 +182,8 @@ func TestSetDirectoryInfo(t *testing.T) { Name: "newPath", Type: "directory", }, - Files: []iteminfo.ItemInfo{ - {Name: "testfile.txt"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "testfile.txt"}}, }, } index.UpdateMetadata(dir) @@ -211,9 +211,9 @@ func init() { Name: "testpath", Type: "directory", }, - Files: []iteminfo.ItemInfo{ - {Name: "testfile.txt", Size: 100}, - {Name: "anotherfile.txt", Size: 100}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "testfile.txt", Size: 100}}, + {ItemInfo: iteminfo.ItemInfo{Name: "anotherfile.txt", Size: 100}}, }, }, "/anotherpath/": { @@ -222,8 +222,8 @@ func init() { Name: "anotherpath", Type: "directory", }, - Files: []iteminfo.ItemInfo{ - {Name: "afile.txt", Size: 100}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "afile.txt", Size: 100}}, }, Folders: []iteminfo.ItemInfo{ {Name: "directory", Type: "directory", Size: 100}, diff --git a/backend/indexing/search.go b/backend/indexing/search.go index 2aa2e24b09..1dcbf9a6fc 100644 --- a/backend/indexing/search.go +++ b/backend/indexing/search.go @@ -15,28 +15,31 @@ import ( var SearchResultsCache = cache.NewCache[[]string](15 * time.Second) var ( - sessionInProgress sync.Map - maxSearchResults = 100 + sessionInProgress sync.Map + DefaultSearchResults = 100 ) type SearchResult struct { - Path string `json:"path"` - Type string `json:"type"` - Size int64 `json:"size"` + Path string `json:"path"` + Type string `json:"type"` + Size int64 `json:"size"` + Modified string `json:"modified,omitempty"` + HasPreview bool `json:"hasPreview"` } -func (idx *Index) Search(search string, scope string, sourceSession string) []SearchResult { +func (idx *Index) Search(search string, scope string, sourceSession string, largest bool, limit int) []*SearchResult { // Ensure scope has consistent trailing slash for directory matching if scope != "" && !strings.HasSuffix(scope, "/") { scope = scope + "/" } + originalScope := scope // Preserve original scope for largest mode exclusion check if search == "" { scope = "" } runningHash := utils.InsecureRandomIdentifier(4) sessionInProgress.Store(sourceSession, runningHash) // Store the value in the sync.Map searchOptions := iteminfo.ParseSearch(search) - results := make(map[string]SearchResult, 0) + results := make(map[string]*SearchResult, 0) count := 0 var directories []string cachedDirs, ok := SearchResultsCache.Get(idx.Path + scope) @@ -46,11 +49,15 @@ func (idx *Index) Search(search string, scope string, sourceSession string) []Se directories = idx.getDirsInScope(scope) SearchResultsCache.Set(idx.Path+scope, directories) } + // When largest=true and no search terms, ensure we run at least once + if largest && len(searchOptions.Terms) == 0 { + searchOptions.Terms = []string{""} + } for _, searchTerm := range searchOptions.Terms { - if searchTerm == "" { + if searchTerm == "" && !largest { continue } - if count > maxSearchResults { + if limit > 0 && count >= limit { break } idx.mu.Lock() @@ -59,18 +66,38 @@ func (idx *Index) Search(search string, scope string, sourceSession string) []Se if !found { continue } - if count > maxSearchResults { + if limit > 0 && count >= limit { break } - reducedDir := iteminfo.ItemInfo{ - Name: filepath.Base(dirName), - Type: "directory", - Size: dir.Size, - } - matches := reducedDir.ContainsSearchTerm(searchTerm, searchOptions) - if matches { - results[dirName] = SearchResult{Path: dirName, Type: "directory", Size: dir.Size} - count++ + // Skip the scope directory itself when largest=true (only search sub-items) + if !(largest && dirName == originalScope) { + reducedDir := iteminfo.ItemInfo{ + Name: filepath.Base(dirName), + Type: "directory", + Size: dir.Size, + } + var matches bool + if largest { + // When largest=true, check size and type conditions, skip name matching + largerThan := int64(searchOptions.LargerThan) * 1024 * 1024 + sizeMatches := largerThan == 0 || reducedDir.Size > largerThan + // Check if directories should be excluded (when type:file is specified) + dirCondition, hasDirCondition := searchOptions.Conditions["dir"] + typeMatches := !hasDirCondition || (hasDirCondition && dirCondition) + matches = sizeMatches && typeMatches + } else { + matches = reducedDir.ContainsSearchTerm(searchTerm, searchOptions) + } + if matches { + results[dirName] = &SearchResult{ + Path: dirName, + Type: "directory", + Size: dir.Size, + Modified: dir.ModTime.Format(time.RFC3339), + HasPreview: dir.HasPreview, + } + count++ + } } // search files first for _, item := range dir.Files { @@ -78,14 +105,32 @@ func (idx *Index) Search(search string, scope string, sourceSession string) []Se value, found := sessionInProgress.Load(sourceSession) if !found || value != runningHash { idx.mu.Unlock() - return []SearchResult{} + return []*SearchResult{} } - if count > maxSearchResults { + if limit > 0 && count >= limit { break } - matches := item.ContainsSearchTerm(searchTerm, searchOptions) + var matches bool + if largest { + // When largest=true, check size and type conditions, skip name matching + largerThan := int64(searchOptions.LargerThan) * 1024 * 1024 + sizeMatches := largerThan == 0 || item.Size > largerThan + // Check if only files should be included (when type:file is specified) + dirCondition, hasDirCondition := searchOptions.Conditions["dir"] + // For files: include if no dir condition, or if dir condition is false (type:file) + typeMatches := !hasDirCondition || (hasDirCondition && !dirCondition) + matches = sizeMatches && typeMatches + } else { + matches = item.ContainsSearchTerm(searchTerm, searchOptions) + } if matches { - results[fullPath] = SearchResult{Path: fullPath, Type: item.Type, Size: item.Size} + results[fullPath] = &SearchResult{ + Path: fullPath, + Type: item.Type, + Size: item.Size, + Modified: item.ModTime.Format(time.RFC3339), + HasPreview: item.HasPreview, + } count++ } } @@ -94,7 +139,7 @@ func (idx *Index) Search(search string, scope string, sourceSession string) []Se } // Sort keys based on the number of elements in the path after splitting by "/" - sortedKeys := make([]SearchResult, 0, len(results)) + sortedKeys := make([]*SearchResult, 0, len(results)) for _, v := range results { sortedKeys = append(sortedKeys, v) } diff --git a/backend/indexing/search_test.go b/backend/indexing/search_test.go index fee3f12ae3..5a98345076 100644 --- a/backend/indexing/search_test.go +++ b/backend/indexing/search_test.go @@ -24,7 +24,7 @@ func BenchmarkSearchAllIndexes(b *testing.B) { for i := 0; i < b.N; i++ { // Execute the SearchAllIndexes function for _, term := range searchTerms { - idx.Search(term, "/", "test") + idx.Search(term, "/", "test", false, DefaultSearchResults) } } } @@ -84,7 +84,7 @@ func TestSearchWhileIndexing(t *testing.T) { for i := 0; i < 5; i++ { go idx.CreateMockData(100, 100) // Creating mock data concurrently for _, term := range searchTerms { - go idx.Search(term, "/", "test") // Search concurrently + go idx.Search(term, "/", "test", false, DefaultSearchResults) // Search concurrently } } } @@ -92,41 +92,41 @@ func TestSearchWhileIndexing(t *testing.T) { func TestSearchIndexes(t *testing.T) { index := Index{ Directories: map[string]*iteminfo.FileInfo{ - "/": {Files: []iteminfo.ItemInfo{{Name: "audio-one.wav", Type: "audio"}}}, - "/test/": {Files: []iteminfo.ItemInfo{{Name: "audio-one.wav", Type: "audio"}}}, - "/test/path/": {Files: []iteminfo.ItemInfo{{Name: "file.txt", Type: "text"}}}, - "/new/test/": {Files: []iteminfo.ItemInfo{ - {Name: "audio.wav", Type: "audio"}, - {Name: "video.mp4", Type: "video"}, - {Name: "video.MP4", Type: "video"}, + "/": {Files: []iteminfo.ExtendedItemInfo{{ItemInfo: iteminfo.ItemInfo{Name: "audio-one.wav", Type: "audio"}}}}, + "/test/": {Files: []iteminfo.ExtendedItemInfo{{ItemInfo: iteminfo.ItemInfo{Name: "audio-one.wav", Type: "audio"}}}}, + "/test/path/": {Files: []iteminfo.ExtendedItemInfo{{ItemInfo: iteminfo.ItemInfo{Name: "file.txt", Type: "text"}}}}, + "/new/test/": {Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "audio.wav", Type: "audio"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "video.mp4", Type: "video"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "video.MP4", Type: "video"}}, }}, "/first Dir/": { - Files: []iteminfo.ItemInfo{ - {Name: "space jam.zip", Size: 100, Type: "archive"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "space jam.zip", Size: 100, Type: "archive"}}, }, }, - "/new/test/path/": {Files: []iteminfo.ItemInfo{{Name: "archive.zip", Type: "archive"}}}, + "/new/test/path/": {Files: []iteminfo.ExtendedItemInfo{{ItemInfo: iteminfo.ItemInfo{Name: "archive.zip", Type: "archive"}}}}, "/firstDir/": { - Files: []iteminfo.ItemInfo{ - {Name: "archive.zip", Size: 100, Type: "archive"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "archive.zip", Size: 100, Type: "archive"}}, }, Folders: []iteminfo.ItemInfo{ {Name: "thisIsDir", Type: "directory", Size: 2 * 1024 * 1024}, }, }, "/firstDir/thisIsDir/": { - Files: []iteminfo.ItemInfo{ - {Name: "hi.txt", Type: "text"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "hi.txt", Type: "text"}}, }, ItemInfo: iteminfo.ItemInfo{ Size: 2 * 1024 * 1024, }, }, "/new+folder/Pictures/": { - Files: []iteminfo.ItemInfo{ - {Name: "consoletest.mp4", Size: 196091904, Type: "video/mp4"}, - {Name: "playwright.gif", Size: 2416640, Type: "image/gif"}, - {Name: "toggle.gif", Size: 65536, Type: "image/gif"}, + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "consoletest.mp4", Size: 196091904, Type: "video/mp4"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "playwright.gif", Size: 2416640, Type: "image/gif"}}, + {ItemInfo: iteminfo.ItemInfo{Name: "toggle.gif", Size: 65536, Type: "image/gif"}}, }, }, }, @@ -135,12 +135,12 @@ func TestSearchIndexes(t *testing.T) { tests := []struct { search string scope string - expectedResult []SearchResult + expectedResult []*SearchResult }{ { search: "audio", scope: "/new/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/new/test/audio.wav", Type: "audio", @@ -151,7 +151,7 @@ func TestSearchIndexes(t *testing.T) { { search: "test", scope: "/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/test/", Type: "directory", @@ -172,7 +172,7 @@ func TestSearchIndexes(t *testing.T) { { search: "archive", scope: "/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/firstDir/archive.zip", Type: "archive", @@ -188,7 +188,7 @@ func TestSearchIndexes(t *testing.T) { { search: "arch", scope: "/firstDir/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/firstDir/archive.zip", Type: "archive", @@ -199,7 +199,7 @@ func TestSearchIndexes(t *testing.T) { { search: "space jam", scope: "/first Dir/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/first Dir/space jam.zip", Type: "archive", @@ -210,7 +210,7 @@ func TestSearchIndexes(t *testing.T) { { search: "isdir", scope: "/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/firstDir/thisIsDir/", Type: "directory", @@ -221,7 +221,7 @@ func TestSearchIndexes(t *testing.T) { { search: "IsDir type:largerThan=1", scope: "/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/firstDir/thisIsDir/", Type: "directory", @@ -232,7 +232,7 @@ func TestSearchIndexes(t *testing.T) { { search: "video", scope: "/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/new/test/video.MP4", Type: "video", @@ -248,7 +248,7 @@ func TestSearchIndexes(t *testing.T) { { search: "audio", scope: "/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/audio-one.wav", Type: "audio", @@ -269,7 +269,7 @@ func TestSearchIndexes(t *testing.T) { { search: "cons", scope: "/new+folder/Pictures/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/new+folder/Pictures/consoletest.mp4", Type: "video/mp4", @@ -280,7 +280,7 @@ func TestSearchIndexes(t *testing.T) { { search: "toggle", scope: "/new+folder/Pictures/", - expectedResult: []SearchResult{ + expectedResult: []*SearchResult{ { Path: "/new+folder/Pictures/toggle.gif", Type: "image/gif", @@ -292,8 +292,119 @@ func TestSearchIndexes(t *testing.T) { for _, tt := range tests { t.Run(tt.search, func(t *testing.T) { - result := index.Search(tt.search, tt.scope, "") - assert.ElementsMatch(t, tt.expectedResult, result) + result := index.Search(tt.search, tt.scope, "", false, DefaultSearchResults) + // Convert results to comparable format (without Modified field) + expected := make([]SearchResult, len(tt.expectedResult)) + for i, r := range tt.expectedResult { + expected[i] = SearchResult{Path: r.Path, Type: r.Type, Size: r.Size} + } + actual := make([]SearchResult, len(result)) + for i, r := range result { + actual[i] = SearchResult{Path: r.Path, Type: r.Type, Size: r.Size} + } + assert.ElementsMatch(t, expected, actual) }) } } + +func TestSearchLargestModeExcludesRoot(t *testing.T) { + index := Index{ + Directories: map[string]*iteminfo.FileInfo{ + "/": { + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "root-file.txt", Type: "text", Size: 100}}, + }, + ItemInfo: iteminfo.ItemInfo{ + Size: 3209322496, // Large root directory size + }, + }, + "/subdir/": { + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "sub-file.txt", Type: "text", Size: 200}}, + }, + ItemInfo: iteminfo.ItemInfo{ + Size: 5 * 1024 * 1024, // 5MB subdirectory + }, + }, + "/another-dir/": { + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "large-file.bin", Type: "binary", Size: 10 * 1024 * 1024}}, // 10MB file + }, + ItemInfo: iteminfo.ItemInfo{ + Size: 10 * 1024 * 1024, + }, + }, + }, + } + + // Test that when largest=true and scope="/", the root directory "/" is NOT included + result := index.Search("", "/", "test-session", true, DefaultSearchResults) + + // Verify that "/" is NOT in the results + rootFound := false + for _, r := range result { + if r.Path == "/" { + rootFound = true + t.Errorf("Root directory '/' should not be included in results when largest=true, but found: %+v", r) + } + } + + if rootFound { + t.Error("Root directory was incorrectly included in results") + } + + // The test passes if root is excluded + // (subdirectories and files may or may not be included depending on size filtering logic) +} + +func TestSearchLargestModeExcludesScopeDirectory(t *testing.T) { + index := Index{ + Directories: map[string]*iteminfo.FileInfo{ + "/": { + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "root-file.txt", Type: "text", Size: 50}}, + }, + ItemInfo: iteminfo.ItemInfo{ + Size: 100, + }, + }, + "/test/": { + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "file1.txt", Type: "text", Size: 100}}, + }, + ItemInfo: iteminfo.ItemInfo{ + Size: 2 * 1024 * 1024, // 2MB directory + }, + }, + "/test/subdir/": { + Files: []iteminfo.ExtendedItemInfo{ + {ItemInfo: iteminfo.ItemInfo{Name: "file2.txt", Type: "text", Size: 200}}, + }, + ItemInfo: iteminfo.ItemInfo{ + Size: 3 * 1024 * 1024, // 3MB subdirectory + }, + }, + }, + } + + // Test that when largest=true and scope="/test/", the scope directory "/test/" is NOT included + result := index.Search("", "/test/", "test-session", true, DefaultSearchResults) + + // Verify that "/test/" is NOT in the results + scopeDirFound := false + for _, r := range result { + if r.Path == "/test/" { + scopeDirFound = true + t.Errorf("Scope directory '/test/' should not be included in results when largest=true, but found: %+v", r) + } + } + + if scopeDirFound { + t.Error("Scope directory was incorrectly included in results") + } + + // The main assertion: scope directory should be excluded + // Note: When search is empty, scope gets cleared, so we search all directories + // but still exclude the original scope directory "/test/" from results + // Files and subdirectories may or may not be included depending on size/type filtering +} diff --git a/backend/indexing/unix.go b/backend/indexing/unix.go index 9c27be3b80..f3d3b6ae78 100644 --- a/backend/indexing/unix.go +++ b/backend/indexing/unix.go @@ -26,8 +26,9 @@ func getPartitionSize(path string) (uint64, error) { func getFileDetails(sys any) (uint64, uint64, uint64, bool) { if stat, ok := sys.(*syscall.Stat_t); ok { - // Use allocated size for `du`-like behavior - realSize := uint64(stat.Blocks * 512) + // Use actual file size, not allocated blocks + // This matches what ls -l shows and what FileInfoFaster returns + realSize := uint64(stat.Size) return realSize, uint64(stat.Nlink), stat.Ino, true } return 0, 1, 0, false diff --git a/backend/preview/image_enum.go b/backend/preview/image_enum.go index 6a91570686..0e6fbccc67 100644 --- a/backend/preview/image_enum.go +++ b/backend/preview/image_enum.go @@ -21,17 +21,32 @@ const ( FormatBmp // FormatHeic is a Format of type Heic FormatHeic + // FormatWebp is a Format of type Webp + FormatWebp + // FormatPbm is a Format of type Pbm + FormatPbm + // FormatPgm is a Format of type Pgm + FormatPgm + // FormatPpm is a Format of type Ppm + FormatPpm + // FormatPam is a Format of type Pam + FormatPam ) -const _FormatName = "jpegpnggiftiffbmpheic" +const _FormatName = "jpegpnggiftiffbmpheicwebppbmpgmppmpam" var _FormatMap = map[Format]string{ - 0: _FormatName[0:4], // jpeg - 1: _FormatName[4:7], // png - 2: _FormatName[7:10], // gif - 3: _FormatName[10:14], // tiff - 4: _FormatName[14:17], // bmp - 5: _FormatName[17:21], // heic + 0: _FormatName[0:4], // jpeg + 1: _FormatName[4:7], // png + 2: _FormatName[7:10], // gif + 3: _FormatName[10:14], // tiff + 4: _FormatName[14:17], // bmp + 5: _FormatName[17:21], // heic + 6: _FormatName[21:25], // webp + 7: _FormatName[25:28], // pbm + 8: _FormatName[28:31], // pgm + 9: _FormatName[31:34], // ppm + 10: _FormatName[34:37], // pam } // String implements the Stringer interface. @@ -43,12 +58,17 @@ func (x Format) String() string { } var _FormatValue = map[string]Format{ - _FormatName[0:4]: 0, // jpeg - _FormatName[4:7]: 1, // png - _FormatName[7:10]: 2, // gif - _FormatName[10:14]: 3, // tiff - _FormatName[14:17]: 4, // bmp - _FormatName[17:21]: 5, // heic + _FormatName[0:4]: 0, // jpeg + _FormatName[4:7]: 1, // png + _FormatName[7:10]: 2, // gif + _FormatName[10:14]: 3, // tiff + _FormatName[14:17]: 4, // bmp + _FormatName[17:21]: 5, // heic + _FormatName[21:25]: 6, // webp + _FormatName[25:28]: 7, // pbm + _FormatName[28:31]: 8, // pgm + _FormatName[31:34]: 9, // ppm + _FormatName[34:37]: 10, // pam } // ParseFormat attempts to convert a string to a Format diff --git a/backend/preview/image_test.go b/backend/preview/image_test.go index 25fe2b1f6a..d648e1044e 100644 --- a/backend/preview/image_test.go +++ b/backend/preview/image_test.go @@ -276,7 +276,7 @@ func TestService_Resize(t *testing.T) { for name, test := range testCases { t.Run(name, func(t *testing.T) { - svc := NewPreviewGenerator(1, "", "") + svc := NewPreviewGenerator(1, "") source := test.source(t) defer source.Close() @@ -434,7 +434,7 @@ func TestService_FormatFromExtension(t *testing.T) { for name, test := range testCases { t.Run(name, func(t *testing.T) { - svc := NewPreviewGenerator(1, "", "") + svc := NewPreviewGenerator(1, "") got, err := svc.FormatFromExtension(test.ext) require.Truef(t, errors.Is(err, test.wantErr), "error = %v, wantErr %v", err, test.wantErr) if err != nil { diff --git a/backend/preview/preview.go b/backend/preview/preview.go index 79fe011142..55800c1b57 100644 --- a/backend/preview/preview.go +++ b/backend/preview/preview.go @@ -9,9 +9,7 @@ import ( "errors" "fmt" "os" - "os/exec" "path/filepath" - "runtime" "strings" "sync" "time" @@ -31,18 +29,16 @@ var ( ) type Service struct { - ffmpegPath string - ffprobePath string fileCache diskcache.Interface debug bool docGenMutex sync.Mutex // Mutex to serialize access to doc generation docSemaphore chan struct{} // Semaphore for document generation officeSem chan struct{} // Semaphore for office document processing - videoService *ffmpeg.VideoService - imageService *ffmpeg.ImageService + videoService *ffmpeg.FFmpegService + imageService *ffmpeg.FFmpegService } -func NewPreviewGenerator(concurrencyLimit int, ffmpegPath string, cacheDir string) *Service { +func NewPreviewGenerator(concurrencyLimit int, cacheDir string) *Service { if concurrencyLimit < 1 { concurrencyLimit = 1 } @@ -50,21 +46,14 @@ func NewPreviewGenerator(concurrencyLimit int, ffmpegPath string, cacheDir strin ffmpegConcurrencyLimit := (concurrencyLimit + 1) / 2 var fileCache diskcache.Interface // Use file cache if cacheDir is specified - if cacheDir != "" { - var err error - fileCache, err = diskcache.NewFileCache(cacheDir) - if err != nil { - if cacheDir == "tmp" { - logger.Error("The cache dir could not be created. Make sure the user that you executed the program with has access to create directories in the local path. filebrowser is trying to use the default `server.cacheDir: tmp` , but you can change this location if you need to. Please see configuration wiki for more information about this error. https://github.com/gtsteffaniak/filebrowser/wiki/Configuration") - } - logger.Fatalf("failed to create file cache path, which is now require to run the server: %v", err) - } - } else { - // No-op cache if no cacheDir is specified - fileCache = diskcache.NewNoOp() + var err error + fileCache, err = diskcache.NewFileCache(cacheDir) + if err != nil { + logger.Error("The cache dir could not be created. Make sure the user that you executed the program with has access to create directories in the local path. See ") + logger.Fatalf("failed to create file cache path, which is now require to run the server: %v", err) } // Create directories recursively - err := os.MkdirAll(filepath.Join(settings.Config.Server.CacheDir, "thumbnails", "docs"), fileutils.PermDir) + err = os.MkdirAll(filepath.Join(settings.Config.Server.CacheDir, "thumbnails", "docs"), fileutils.PermDir) if err != nil { logger.Error(err) } @@ -76,38 +65,17 @@ func NewPreviewGenerator(concurrencyLimit int, ffmpegPath string, cacheDir strin if err != nil { logger.Error(err) } - ffmpegMainPath, err := CheckValidFFmpeg(ffmpegPath) - if err != nil && ffmpegPath != "" { - logger.Fatalf("the configured ffmpeg path does not contain a valid ffmpeg binary %s, err: %v", ffmpegPath, err) - } - ffprobePath, errprobe := CheckValidFFprobe(ffmpegPath) - if errprobe != nil && ffmpegPath != "" { - logger.Fatalf("the configured ffmpeg path is not a valid ffprobe binary %s, err: %v", ffmpegPath, err) - } - if errprobe == nil && err == nil { - settings.Config.Integrations.Media.FfmpegPath = filepath.Base(ffmpegMainPath) - } - logger.Debugf("Media Enabled : %v", ffmpegMainPath != "" && ffprobePath != "") - logger.Debugf("FFmpeg Concurrency Limit : %d", ffmpegConcurrencyLimit) - settings.Config.Env.MuPdfAvailable = docEnabled() - logger.Debugf("MuPDF Enabled : %v", settings.Config.Env.MuPdfAvailable) - // Create shared ffmpeg services - var videoService *ffmpeg.VideoService - var imageService *ffmpeg.ImageService - - if ffmpegMainPath != "" && ffprobePath != "" { - videoService = ffmpeg.NewVideoService(ffmpegMainPath, ffprobePath, ffmpegConcurrencyLimit, settings.Config.Integrations.Media.Debug) - imageService = ffmpeg.NewImageService(ffmpegMainPath, ffprobePath, concurrencyLimit, settings.Config.Integrations.Media.Debug, filepath.Join(settings.Config.Server.CacheDir, "heic")) - } + videoService := ffmpeg.NewFFmpegService(ffmpegConcurrencyLimit, settings.Config.Integrations.Media.Debug, "") + imageService := ffmpeg.NewFFmpegService(concurrencyLimit, settings.Config.Integrations.Media.Debug, filepath.Join(settings.Config.Server.CacheDir, "heic")) + settings.Env.MuPdfAvailable = docEnabled() + logger.Debugf("MuPDF Enabled : %v", settings.Env.MuPdfAvailable) + logger.Debugf("Media Enabled : %v", settings.MediaEnabled()) return &Service{ - ffmpegPath: ffmpegMainPath, - ffprobePath: ffprobePath, - fileCache: fileCache, - debug: settings.Config.Integrations.Media.Debug, - // CGo library (go-fitz) is NOT thread-safe - only 1 concurrent operation allowed - docSemaphore: make(chan struct{}, 1), + fileCache: fileCache, + debug: settings.Config.Integrations.Media.Debug, + docSemaphore: make(chan struct{}, 1), // must be 1 because cgo thread limit officeSem: make(chan struct{}, concurrencyLimit), videoService: videoService, imageService: imageService, @@ -142,11 +110,11 @@ func (s *Service) releaseOffice() { <-s.officeSem } -func StartPreviewGenerator(concurrencyLimit int, ffmpegPath, cacheDir string) error { +func StartPreviewGenerator(concurrencyLimit int, cacheDir string) error { if service != nil { logger.Errorf("WARNING: StartPreviewGenerator called multiple times! This will create multiple semaphores!") } - service = NewPreviewGenerator(concurrencyLimit, ffmpegPath, cacheDir) + service = NewPreviewGenerator(concurrencyLimit, cacheDir) return nil } @@ -162,10 +130,10 @@ func GetPreviewForFile(ctx context.Context, file iteminfo.ExtendedFileInfo, prev // Generate fast cache key based on file metadata var cacheHash string - if file.AudioMeta != nil && file.AudioMeta.AlbumArt != "" { + if file.Metadata != nil && file.Metadata.AlbumArt != "" { // For audio with album art, hash the album art content hasher := md5.New() - _, _ = hasher.Write([]byte(file.AudioMeta.AlbumArt)) + _, _ = hasher.Write([]byte(file.Metadata.AlbumArt)) cacheHash = hex.EncodeToString(hasher.Sum(nil)) } else { // For all other files, use fast metadata-based hash @@ -255,8 +223,8 @@ func GeneratePreviewWithMD5(ctx context.Context, file iteminfo.ExtendedFileInfo, } } else if strings.HasPrefix(file.Type, "audio") { // Extract album artwork from audio files - if file.AudioMeta != nil && file.AudioMeta.AlbumArt != "" { - imageBytes, err = base64.StdEncoding.DecodeString(file.AudioMeta.AlbumArt) + if file.Metadata != nil && file.Metadata.AlbumArt != "" { + imageBytes, err = base64.StdEncoding.DecodeString(file.Metadata.AlbumArt) if err != nil { return nil, fmt.Errorf("failed to decode album artwork: %w", err) } @@ -358,45 +326,3 @@ func DelThumbs(ctx context.Context, file iteminfo.ExtendedFileInfo) { } } } - -// CheckValidFFmpeg checks for a valid ffmpeg executable. -// If a path is provided, it looks there. Otherwise, it searches the system's PATH. -func CheckValidFFmpeg(path string) (string, error) { - return checkExecutable(path, "ffmpeg") -} - -// CheckValidFFprobe checks for a valid ffprobe executable. -// If a path is provided, it looks there. Otherwise, it searches the system's PATH. -func CheckValidFFprobe(path string) (string, error) { - return checkExecutable(path, "ffprobe") -} - -// checkExecutable is an internal helper function to find and validate an executable. -// It checks a specific path if provided, otherwise falls back to searching the system PATH. -func checkExecutable(providedPath, execName string) (string, error) { - // Add .exe extension for Windows systems - if runtime.GOOS == "windows" { - execName += ".exe" - } - - var finalPath string - var err error - - if providedPath != "" { - // A path was provided, so we'll use it. - finalPath = filepath.Join(providedPath, execName) - } else { - // No path was provided, so search the system's PATH for the executable. - finalPath, err = exec.LookPath(execName) - if err != nil { - // The executable was not found in the system's PATH. - return "", err - } - } - - // Verify the executable is valid by running the "-version" command. - cmd := exec.Command(finalPath, "-version") - err = cmd.Run() - - return finalPath, err -} diff --git a/backend/reduce-rounded-corners.css b/backend/reduce-rounded-corners.css index facdc1eb7c..8ad2545edf 100644 --- a/backend/reduce-rounded-corners.css +++ b/backend/reduce-rounded-corners.css @@ -3,7 +3,6 @@ #listingView.normal .item, .button, button, -.button-action, .input, input, #listingView.gallery .item img, diff --git a/backend/swagger/docs/docs.go b/backend/swagger/docs/docs.go index 9a4d2caabb..0de97e38cc 100644 --- a/backend/swagger/docs/docs.go +++ b/backend/swagger/docs/docs.go @@ -160,7 +160,7 @@ const docTemplate = `{ } }, "delete": { - "description": "Delete a user or group from an allow or deny list for a sourcePath and indexPath.", + "description": "Delete a user or group from an allow or deny list for a sourcePath and indexPath. When cascade=true, removes the user/group from the specified path and all subpaths.", "consumes": [ "application/json" ], @@ -206,6 +206,12 @@ const docTemplate = `{ "name": "value", "in": "query", "required": true + }, + { + "type": "boolean", + "description": "Cascade delete to all subpaths (default: false)", + "name": "cascade", + "in": "query" } ], "responses": { @@ -246,6 +252,70 @@ const docTemplate = `{ } } } + }, + "patch": { + "description": "Updates the path for a specific access rule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Update access rule path", + "parameters": [ + { + "description": "Source, old path, and new path", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "newPath": { + "type": "string" + }, + "oldPath": { + "type": "string" + }, + "source": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Rule path updated successfully", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request - missing or invalid parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } } }, "/api/access/group": { @@ -862,6 +932,62 @@ const docTemplate = `{ } } }, + "/api/duplicates": { + "get": { + "description": "Finds duplicate files based on size and fuzzy filename matching", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Duplicates" + ], + "summary": "Find Duplicate Files", + "parameters": [ + { + "type": "string", + "description": "Source name for the desired source", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "path within user scope to search", + "name": "scope", + "in": "query" + }, + { + "type": "integer", + "description": "Minimum file size in megabytes (default: 1)", + "name": "minSizeMb", + "in": "query" + } + ], + "responses": { + "200": { + "description": "List of duplicate file groups", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/http.duplicateGroup" + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, "/api/jobs/{action}/{target}": { "get": { "description": "Returns job info for the user.", @@ -1377,6 +1503,12 @@ const docTemplate = `{ "description": "Override existing file if true", "name": "override", "in": "query" + }, + { + "type": "boolean", + "description": "Explicitly specify if the resource is a directory", + "name": "isDir", + "in": "query" } ], "responses": { @@ -1802,6 +1934,64 @@ const docTemplate = `{ } } } + }, + "patch": { + "description": "Updates the path for a specific share link identified by hash", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Update share link path", + "parameters": [ + { + "description": "Hash and new path", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Updated share link", + "schema": { + "$ref": "#/definitions/http.ShareResponse" + } + }, + "400": { + "description": "Bad request - missing or invalid parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } } }, "/api/share/direct": { @@ -2030,9 +2220,6 @@ const docTemplate = `{ "consumes": [ "application/json" ], - "produces": [ - "application/json" - ], "tags": [ "Users" ], @@ -2061,11 +2248,8 @@ const docTemplate = `{ } ], "responses": { - "200": { - "description": "Updated user details", - "schema": { - "$ref": "#/definitions/users.User" - } + "204": { + "description": "No Content - User updated successfully" }, "400": { "description": "Bad Request", @@ -2393,6 +2577,78 @@ const docTemplate = `{ } }, "/public/api/resources": { + "get": { + "description": "Returns metadata for files or directories accessible via a public share link. Browsing is disabled for upload-only shares.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Public Shares" + ], + "summary": "Get file/directory information from a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Path within the share to retrieve information for. Defaults to share root.", + "name": "path", + "in": "query" + } + ], + "responses": { + "200": { + "description": "File or directory metadata", + "schema": { + "$ref": "#/definitions/iteminfo.FileInfo" + } + }, + "403": { + "description": "Share unavailable or access denied", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found or file not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Browsing disabled for upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, "put": { "description": "Updates the content of a file in a public share.", "consumes": [ @@ -2592,9 +2848,9 @@ const docTemplate = `{ } } }, - "/public/api/share": { + "/public/api/shareinfo": { "get": { - "description": "Returns metadata for files or directories accessible via a public share link. Browsing is disabled for upload-only shares.", + "description": "Returns information about a share link based on its hash. This endpoint is publicly accessible and can be used with or without authentication.", "consumes": [ "application/json" ], @@ -2602,60 +2858,27 @@ const docTemplate = `{ "application/json" ], "tags": [ - "Public Shares" + "Shares" ], - "summary": "Get file/directory information from a public share", + "summary": "Get share information by hash", "parameters": [ { "type": "string", - "description": "Share hash for authentication", + "description": "Hash of the share link", "name": "hash", "in": "query", "required": true - }, - { - "type": "string", - "description": "Path within the share to retrieve information for. Defaults to share root.", - "name": "path", - "in": "query" } ], "responses": { "200": { - "description": "File or directory metadata", + "description": "Share information", "schema": { - "$ref": "#/definitions/iteminfo.FileInfo" - } - }, - "403": { - "description": "Share unavailable or access denied", - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/definitions/share.CommonShare" } }, "404": { - "description": "Share not found or file not found", - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "500": { - "description": "Internal server error", - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "501": { - "description": "Browsing disabled for upload shares", + "description": "Share hash not found", "schema": { "type": "object", "additionalProperties": { @@ -2727,6 +2950,179 @@ const docTemplate = `{ } } }, + "http.ShareResponse": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloads": { + "type": "integer" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "expire": { + "type": "integer" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hasPassword": { + "type": "boolean" + }, + "hash": { + "type": "string" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "password_hash": { + "type": "string" + }, + "path": { + "type": "string" + }, + "pathExists": { + "type": "boolean" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, + "source": { + "description": "Override embedded field to show source name", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "token": { + "description": "Token is a random value that will only be set when PasswordHash is set. It is\nURL-Safe and is used to download links in password-protected shares via a\nquery arg.", + "type": "string" + }, + "userDownloads": { + "description": "Track downloads per username", + "type": "object", + "additionalProperties": { + "type": "integer" + } + }, + "userID": { + "type": "integer" + }, + "username": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, + "http.duplicateGroup": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "files": { + "type": "array", + "items": { + "$ref": "#/definitions/indexing.SearchResult" + } + }, + "size": { + "type": "integer" + } + } + }, "indexing.IndexStatus": { "type": "string", "enum": [ @@ -2743,8 +3139,9 @@ const docTemplate = `{ "indexing.ReducedIndex": { "type": "object", "properties": { - "assessment": { - "type": "string" + "complexity": { + "description": "0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex", + "type": "integer" }, "fullScanDurationSeconds": { "type": "integer" @@ -2767,6 +3164,12 @@ const docTemplate = `{ "quickScanDurationSeconds": { "type": "integer" }, + "scanners": { + "type": "array", + "items": { + "$ref": "#/definitions/indexing.ScannerInfo" + } + }, "status": { "$ref": "#/definitions/indexing.IndexStatus" }, @@ -2778,9 +3181,48 @@ const docTemplate = `{ } } }, + "indexing.ScannerInfo": { + "type": "object", + "properties": { + "complexity": { + "description": "0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex", + "type": "integer" + }, + "currentSchedule": { + "type": "integer" + }, + "fullScanTime": { + "type": "integer" + }, + "isRoot": { + "type": "boolean" + }, + "lastScanned": { + "type": "string" + }, + "numDirs": { + "type": "integer" + }, + "numFiles": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "quickScanTime": { + "type": "integer" + } + } + }, "indexing.SearchResult": { "type": "object", "properties": { + "hasPreview": { + "type": "boolean" + }, + "modified": { + "type": "string" + }, "path": { "type": "string" }, @@ -2792,14 +3234,51 @@ const docTemplate = `{ } } }, + "iteminfo.ExtendedItemInfo": { + "type": "object", + "properties": { + "hasPreview": { + "description": "whether the file has a thumbnail preview", + "type": "boolean" + }, + "hidden": { + "description": "whether the file is hidden", + "type": "boolean" + }, + "metadata": { + "description": "optional media metadata (audio/video only)", + "allOf": [ + { + "$ref": "#/definitions/iteminfo.MediaMetadata" + } + ] + }, + "modified": { + "description": "modification time", + "type": "string" + }, + "name": { + "description": "name of the file", + "type": "string" + }, + "size": { + "description": "length in bytes for regular files", + "type": "integer" + }, + "type": { + "description": "type of the file, either \"directory\" or a file mimetype", + "type": "string" + } + } + }, "iteminfo.FileInfo": { "type": "object", "properties": { "files": { - "description": "files in the directory", + "description": "files in the directory with optional metadata", "type": "array", "items": { - "$ref": "#/definitions/iteminfo.ItemInfo" + "$ref": "#/definitions/iteminfo.ExtendedItemInfo" } }, "folders": { @@ -2868,6 +3347,43 @@ const docTemplate = `{ } } }, + "iteminfo.MediaMetadata": { + "type": "object", + "properties": { + "album": { + "description": "album name", + "type": "string" + }, + "albumArt": { + "description": "base64 encoded album art / video thumbnail", + "type": "string" + }, + "artist": { + "description": "track artist", + "type": "string" + }, + "duration": { + "description": "duration in seconds", + "type": "integer" + }, + "genre": { + "description": "music/video genre", + "type": "string" + }, + "title": { + "description": "track/video title", + "type": "string" + }, + "track": { + "description": "track number", + "type": "integer" + }, + "year": { + "description": "release year", + "type": "integer" + } + } + }, "settings.Auth": { "type": "object", "properties": { @@ -3327,6 +3843,10 @@ const docTemplate = `{ "description": "path to the cache directory, used for thumbnails and other cached files", "type": "string" }, + "cacheDirCleanup": { + "description": "whether to automatically cleanup the cache directory (default: true)", + "type": "boolean" + }, "database": { "description": "path to the database file", "type": "string" @@ -3363,6 +3883,10 @@ const docTemplate = `{ "description": "used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080)", "type": "string" }, + "listen": { + "description": "address to listen on (default: 0.0.0.0)", + "type": "string" + }, "logging": { "type": "array", "items": { @@ -3456,7 +3980,7 @@ const docTemplate = `{ ] }, "createUserDir": { - "description": "create a user directory for each user", + "description": "create a user directory for each user under defaultUserScope + username", "type": "boolean" }, "defaultEnabled": { @@ -3464,7 +3988,7 @@ const docTemplate = `{ "type": "boolean" }, "defaultUserScope": { - "description": "default \"/\" should match folders under path", + "description": "defaults to root of index \"/\" should match folders under path", "type": "string" }, "denyByDefault": { @@ -3472,7 +3996,7 @@ const docTemplate = `{ "type": "boolean" }, "disableIndexing": { - "description": "disable the indexing of this source", + "description": "(optional) not recommended: disable the indexing of this source", "type": "boolean" }, "disabled": { @@ -3480,7 +4004,7 @@ const docTemplate = `{ "type": "boolean" }, "indexingIntervalMinutes": { - "description": "optional manual overide interval in minutes to re-index the source", + "description": "(optional) not recommended: manual overide interval in minutes to re-index the source", "type": "integer" }, "private": { @@ -3537,7 +4061,7 @@ const docTemplate = `{ "type": "boolean" }, "defaultLandingPage": { - "description": "default landing page to use if no redirect is specified: eg. /files/mysource/mysubpath, /settings, etc.", + "description": "deprecated: determined by sidebar link order since 1.1.0", "type": "string" }, "deleteWithoutConfirming": { @@ -3609,10 +4133,10 @@ const docTemplate = `{ "type": "string" }, "permissions": { - "$ref": "#/definitions/users.Permissions" + "$ref": "#/definitions/settings.UserDefaultsPermissions" }, "preview": { - "$ref": "#/definitions/users.Preview" + "$ref": "#/definitions/settings.UserDefaultsPreview" }, "quickDownload": { "description": "show icon to download in one click", @@ -3644,6 +4168,209 @@ const docTemplate = `{ } } }, + "settings.UserDefaultsPermissions": { + "type": "object", + "properties": { + "admin": { + "description": "allow admin access", + "type": "boolean" + }, + "api": { + "description": "allow api access", + "type": "boolean" + }, + "create": { + "description": "allow creating or uploading files", + "type": "boolean" + }, + "delete": { + "description": "allow deleting files", + "type": "boolean" + }, + "download": { + "description": "allow downloading files", + "type": "boolean" + }, + "modify": { + "description": "allow modifying files", + "type": "boolean" + }, + "realtime": { + "description": "allow realtime updates", + "type": "boolean" + }, + "share": { + "description": "allow sharing files", + "type": "boolean" + } + } + }, + "settings.UserDefaultsPreview": { + "type": "object", + "properties": { + "autoplayMedia": { + "description": "autoplay media files in preview", + "type": "boolean" + }, + "defaultMediaPlayer": { + "description": "disable the styled feature-rich media player for browser default", + "type": "boolean" + }, + "disableHideSidebar": { + "description": "keep sidebar open when previewing files", + "type": "boolean" + }, + "folder": { + "description": "show thumbnails for folders that have previewable contents", + "type": "boolean" + }, + "highQuality": { + "description": "use high quality thumbnails", + "type": "boolean" + }, + "image": { + "description": "show thumbnails for image files", + "type": "boolean" + }, + "motionVideoPreview": { + "description": "show multiple frames for videos in thumbnail preview when hovering", + "type": "boolean" + }, + "office": { + "description": "show thumbnails for office files", + "type": "boolean" + }, + "popup": { + "description": "show larger popup preview when hovering over thumbnail", + "type": "boolean" + }, + "video": { + "description": "show thumbnails for video files", + "type": "boolean" + } + } + }, + "share.CommonShare": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hasPassword": { + "type": "boolean" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, + "source": { + "description": "backend source is path to maintain between name changes", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, "share.CreateBody": { "type": "object", "properties": { @@ -3717,6 +4444,9 @@ const docTemplate = `{ "favicon": { "type": "string" }, + "hasPassword": { + "type": "boolean" + }, "hash": { "type": "string" }, @@ -3748,6 +4478,13 @@ const docTemplate = `{ "description": "type of share: normal, upload, max", "type": "string" }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, "source": { "description": "backend source is path to maintain between name changes", "type": "string" @@ -3843,6 +4580,9 @@ const docTemplate = `{ "favicon": { "type": "string" }, + "hasPassword": { + "type": "boolean" + }, "hash": { "type": "string" }, @@ -3874,6 +4614,13 @@ const docTemplate = `{ "description": "type of share: normal, upload, max", "type": "string" }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, "source": { "description": "backend source is path to maintain between name changes", "type": "string" @@ -3888,9 +4635,19 @@ const docTemplate = `{ "description": "Token is a random value that will only be set when PasswordHash is set. It is\nURL-Safe and is used to download links in password-protected shares via a\nquery arg.", "type": "string" }, + "userDownloads": { + "description": "Track downloads per username", + "type": "object", + "additionalProperties": { + "type": "integer" + } + }, "userID": { "type": "integer" }, + "version": { + "type": "integer" + }, "viewMode": { "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", "type": "string" @@ -4029,6 +4786,31 @@ const docTemplate = `{ } } }, + "users.SidebarLink": { + "type": "object", + "properties": { + "category": { + "description": "Category type: \"source\", \"share\", \"tool\", \"custom\", etc.", + "type": "string" + }, + "icon": { + "description": "Material icon name", + "type": "string" + }, + "name": { + "description": "Display name of the link", + "type": "string" + }, + "sourceName": { + "description": "Source identifier for source-type links", + "type": "string" + }, + "target": { + "description": "Target path/URL for the link (relative for source/share)", + "type": "string" + } + } + }, "users.Sorting": { "type": "object", "properties": { @@ -4077,7 +4859,7 @@ const docTemplate = `{ "type": "boolean" }, "defaultLandingPage": { - "description": "default landing page to use: eg. /files/mysource/mysubpath, /settings, etc.", + "description": "deprecated: determined by sidebar link order instead", "type": "string" }, "deleteWithoutConfirming": { @@ -4193,6 +4975,13 @@ const docTemplate = `{ "description": "show select multiple files on desktop", "type": "boolean" }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, "singleClick": { "description": "open directory on single click, also enables middle click to open in new tab", "type": "boolean" diff --git a/backend/swagger/docs/swagger.json b/backend/swagger/docs/swagger.json index 62100d29d8..a5da183c87 100644 --- a/backend/swagger/docs/swagger.json +++ b/backend/swagger/docs/swagger.json @@ -149,7 +149,7 @@ } }, "delete": { - "description": "Delete a user or group from an allow or deny list for a sourcePath and indexPath.", + "description": "Delete a user or group from an allow or deny list for a sourcePath and indexPath. When cascade=true, removes the user/group from the specified path and all subpaths.", "consumes": [ "application/json" ], @@ -195,6 +195,12 @@ "name": "value", "in": "query", "required": true + }, + { + "type": "boolean", + "description": "Cascade delete to all subpaths (default: false)", + "name": "cascade", + "in": "query" } ], "responses": { @@ -235,6 +241,70 @@ } } } + }, + "patch": { + "description": "Updates the path for a specific access rule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Access" + ], + "summary": "Update access rule path", + "parameters": [ + { + "description": "Source, old path, and new path", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "newPath": { + "type": "string" + }, + "oldPath": { + "type": "string" + }, + "source": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Rule path updated successfully", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "400": { + "description": "Bad request - missing or invalid parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } } }, "/api/access/group": { @@ -851,6 +921,62 @@ } } }, + "/api/duplicates": { + "get": { + "description": "Finds duplicate files based on size and fuzzy filename matching", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Duplicates" + ], + "summary": "Find Duplicate Files", + "parameters": [ + { + "type": "string", + "description": "Source name for the desired source", + "name": "source", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "path within user scope to search", + "name": "scope", + "in": "query" + }, + { + "type": "integer", + "description": "Minimum file size in megabytes (default: 1)", + "name": "minSizeMb", + "in": "query" + } + ], + "responses": { + "200": { + "description": "List of duplicate file groups", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/http.duplicateGroup" + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, "/api/jobs/{action}/{target}": { "get": { "description": "Returns job info for the user.", @@ -1366,6 +1492,12 @@ "description": "Override existing file if true", "name": "override", "in": "query" + }, + { + "type": "boolean", + "description": "Explicitly specify if the resource is a directory", + "name": "isDir", + "in": "query" } ], "responses": { @@ -1791,6 +1923,64 @@ } } } + }, + "patch": { + "description": "Updates the path for a specific share link identified by hash", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Shares" + ], + "summary": "Update share link path", + "parameters": [ + { + "description": "Hash and new path", + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + } + ], + "responses": { + "200": { + "description": "Updated share link", + "schema": { + "$ref": "#/definitions/http.ShareResponse" + } + }, + "400": { + "description": "Bad request - missing or invalid parameters", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } } }, "/api/share/direct": { @@ -2019,9 +2209,6 @@ "consumes": [ "application/json" ], - "produces": [ - "application/json" - ], "tags": [ "Users" ], @@ -2050,11 +2237,8 @@ } ], "responses": { - "200": { - "description": "Updated user details", - "schema": { - "$ref": "#/definitions/users.User" - } + "204": { + "description": "No Content - User updated successfully" }, "400": { "description": "Bad Request", @@ -2382,6 +2566,78 @@ } }, "/public/api/resources": { + "get": { + "description": "Returns metadata for files or directories accessible via a public share link. Browsing is disabled for upload-only shares.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Public Shares" + ], + "summary": "Get file/directory information from a public share", + "parameters": [ + { + "type": "string", + "description": "Share hash for authentication", + "name": "hash", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Path within the share to retrieve information for. Defaults to share root.", + "name": "path", + "in": "query" + } + ], + "responses": { + "200": { + "description": "File or directory metadata", + "schema": { + "$ref": "#/definitions/iteminfo.FileInfo" + } + }, + "403": { + "description": "Share unavailable or access denied", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "404": { + "description": "Share not found or file not found", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "500": { + "description": "Internal server error", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "501": { + "description": "Browsing disabled for upload shares", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, "put": { "description": "Updates the content of a file in a public share.", "consumes": [ @@ -2581,9 +2837,9 @@ } } }, - "/public/api/share": { + "/public/api/shareinfo": { "get": { - "description": "Returns metadata for files or directories accessible via a public share link. Browsing is disabled for upload-only shares.", + "description": "Returns information about a share link based on its hash. This endpoint is publicly accessible and can be used with or without authentication.", "consumes": [ "application/json" ], @@ -2591,60 +2847,27 @@ "application/json" ], "tags": [ - "Public Shares" + "Shares" ], - "summary": "Get file/directory information from a public share", + "summary": "Get share information by hash", "parameters": [ { "type": "string", - "description": "Share hash for authentication", + "description": "Hash of the share link", "name": "hash", "in": "query", "required": true - }, - { - "type": "string", - "description": "Path within the share to retrieve information for. Defaults to share root.", - "name": "path", - "in": "query" } ], "responses": { "200": { - "description": "File or directory metadata", + "description": "Share information", "schema": { - "$ref": "#/definitions/iteminfo.FileInfo" - } - }, - "403": { - "description": "Share unavailable or access denied", - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/definitions/share.CommonShare" } }, "404": { - "description": "Share not found or file not found", - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "500": { - "description": "Internal server error", - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "501": { - "description": "Browsing disabled for upload shares", + "description": "Share hash not found", "schema": { "type": "object", "additionalProperties": { @@ -2716,6 +2939,179 @@ } } }, + "http.ShareResponse": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloads": { + "type": "integer" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "expire": { + "type": "integer" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hasPassword": { + "type": "boolean" + }, + "hash": { + "type": "string" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "password_hash": { + "type": "string" + }, + "path": { + "type": "string" + }, + "pathExists": { + "type": "boolean" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, + "source": { + "description": "Override embedded field to show source name", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "token": { + "description": "Token is a random value that will only be set when PasswordHash is set. It is\nURL-Safe and is used to download links in password-protected shares via a\nquery arg.", + "type": "string" + }, + "userDownloads": { + "description": "Track downloads per username", + "type": "object", + "additionalProperties": { + "type": "integer" + } + }, + "userID": { + "type": "integer" + }, + "username": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, + "http.duplicateGroup": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "files": { + "type": "array", + "items": { + "$ref": "#/definitions/indexing.SearchResult" + } + }, + "size": { + "type": "integer" + } + } + }, "indexing.IndexStatus": { "type": "string", "enum": [ @@ -2732,8 +3128,9 @@ "indexing.ReducedIndex": { "type": "object", "properties": { - "assessment": { - "type": "string" + "complexity": { + "description": "0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex", + "type": "integer" }, "fullScanDurationSeconds": { "type": "integer" @@ -2756,6 +3153,12 @@ "quickScanDurationSeconds": { "type": "integer" }, + "scanners": { + "type": "array", + "items": { + "$ref": "#/definitions/indexing.ScannerInfo" + } + }, "status": { "$ref": "#/definitions/indexing.IndexStatus" }, @@ -2767,9 +3170,48 @@ } } }, + "indexing.ScannerInfo": { + "type": "object", + "properties": { + "complexity": { + "description": "0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex", + "type": "integer" + }, + "currentSchedule": { + "type": "integer" + }, + "fullScanTime": { + "type": "integer" + }, + "isRoot": { + "type": "boolean" + }, + "lastScanned": { + "type": "string" + }, + "numDirs": { + "type": "integer" + }, + "numFiles": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "quickScanTime": { + "type": "integer" + } + } + }, "indexing.SearchResult": { "type": "object", "properties": { + "hasPreview": { + "type": "boolean" + }, + "modified": { + "type": "string" + }, "path": { "type": "string" }, @@ -2781,14 +3223,51 @@ } } }, + "iteminfo.ExtendedItemInfo": { + "type": "object", + "properties": { + "hasPreview": { + "description": "whether the file has a thumbnail preview", + "type": "boolean" + }, + "hidden": { + "description": "whether the file is hidden", + "type": "boolean" + }, + "metadata": { + "description": "optional media metadata (audio/video only)", + "allOf": [ + { + "$ref": "#/definitions/iteminfo.MediaMetadata" + } + ] + }, + "modified": { + "description": "modification time", + "type": "string" + }, + "name": { + "description": "name of the file", + "type": "string" + }, + "size": { + "description": "length in bytes for regular files", + "type": "integer" + }, + "type": { + "description": "type of the file, either \"directory\" or a file mimetype", + "type": "string" + } + } + }, "iteminfo.FileInfo": { "type": "object", "properties": { "files": { - "description": "files in the directory", + "description": "files in the directory with optional metadata", "type": "array", "items": { - "$ref": "#/definitions/iteminfo.ItemInfo" + "$ref": "#/definitions/iteminfo.ExtendedItemInfo" } }, "folders": { @@ -2857,6 +3336,43 @@ } } }, + "iteminfo.MediaMetadata": { + "type": "object", + "properties": { + "album": { + "description": "album name", + "type": "string" + }, + "albumArt": { + "description": "base64 encoded album art / video thumbnail", + "type": "string" + }, + "artist": { + "description": "track artist", + "type": "string" + }, + "duration": { + "description": "duration in seconds", + "type": "integer" + }, + "genre": { + "description": "music/video genre", + "type": "string" + }, + "title": { + "description": "track/video title", + "type": "string" + }, + "track": { + "description": "track number", + "type": "integer" + }, + "year": { + "description": "release year", + "type": "integer" + } + } + }, "settings.Auth": { "type": "object", "properties": { @@ -3316,6 +3832,10 @@ "description": "path to the cache directory, used for thumbnails and other cached files", "type": "string" }, + "cacheDirCleanup": { + "description": "whether to automatically cleanup the cache directory (default: true)", + "type": "boolean" + }, "database": { "description": "path to the database file", "type": "string" @@ -3352,6 +3872,10 @@ "description": "used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080)", "type": "string" }, + "listen": { + "description": "address to listen on (default: 0.0.0.0)", + "type": "string" + }, "logging": { "type": "array", "items": { @@ -3445,7 +3969,7 @@ ] }, "createUserDir": { - "description": "create a user directory for each user", + "description": "create a user directory for each user under defaultUserScope + username", "type": "boolean" }, "defaultEnabled": { @@ -3453,7 +3977,7 @@ "type": "boolean" }, "defaultUserScope": { - "description": "default \"/\" should match folders under path", + "description": "defaults to root of index \"/\" should match folders under path", "type": "string" }, "denyByDefault": { @@ -3461,7 +3985,7 @@ "type": "boolean" }, "disableIndexing": { - "description": "disable the indexing of this source", + "description": "(optional) not recommended: disable the indexing of this source", "type": "boolean" }, "disabled": { @@ -3469,7 +3993,7 @@ "type": "boolean" }, "indexingIntervalMinutes": { - "description": "optional manual overide interval in minutes to re-index the source", + "description": "(optional) not recommended: manual overide interval in minutes to re-index the source", "type": "integer" }, "private": { @@ -3526,7 +4050,7 @@ "type": "boolean" }, "defaultLandingPage": { - "description": "default landing page to use if no redirect is specified: eg. /files/mysource/mysubpath, /settings, etc.", + "description": "deprecated: determined by sidebar link order since 1.1.0", "type": "string" }, "deleteWithoutConfirming": { @@ -3598,10 +4122,10 @@ "type": "string" }, "permissions": { - "$ref": "#/definitions/users.Permissions" + "$ref": "#/definitions/settings.UserDefaultsPermissions" }, "preview": { - "$ref": "#/definitions/users.Preview" + "$ref": "#/definitions/settings.UserDefaultsPreview" }, "quickDownload": { "description": "show icon to download in one click", @@ -3633,6 +4157,209 @@ } } }, + "settings.UserDefaultsPermissions": { + "type": "object", + "properties": { + "admin": { + "description": "allow admin access", + "type": "boolean" + }, + "api": { + "description": "allow api access", + "type": "boolean" + }, + "create": { + "description": "allow creating or uploading files", + "type": "boolean" + }, + "delete": { + "description": "allow deleting files", + "type": "boolean" + }, + "download": { + "description": "allow downloading files", + "type": "boolean" + }, + "modify": { + "description": "allow modifying files", + "type": "boolean" + }, + "realtime": { + "description": "allow realtime updates", + "type": "boolean" + }, + "share": { + "description": "allow sharing files", + "type": "boolean" + } + } + }, + "settings.UserDefaultsPreview": { + "type": "object", + "properties": { + "autoplayMedia": { + "description": "autoplay media files in preview", + "type": "boolean" + }, + "defaultMediaPlayer": { + "description": "disable the styled feature-rich media player for browser default", + "type": "boolean" + }, + "disableHideSidebar": { + "description": "keep sidebar open when previewing files", + "type": "boolean" + }, + "folder": { + "description": "show thumbnails for folders that have previewable contents", + "type": "boolean" + }, + "highQuality": { + "description": "use high quality thumbnails", + "type": "boolean" + }, + "image": { + "description": "show thumbnails for image files", + "type": "boolean" + }, + "motionVideoPreview": { + "description": "show multiple frames for videos in thumbnail preview when hovering", + "type": "boolean" + }, + "office": { + "description": "show thumbnails for office files", + "type": "boolean" + }, + "popup": { + "description": "show larger popup preview when hovering over thumbnail", + "type": "boolean" + }, + "video": { + "description": "show thumbnails for video files", + "type": "boolean" + } + } + }, + "share.CommonShare": { + "type": "object", + "properties": { + "allowCreate": { + "description": "allow creating files", + "type": "boolean" + }, + "allowDelete": { + "type": "boolean" + }, + "allowModify": { + "description": "allow modifying files", + "type": "boolean" + }, + "allowReplacements": { + "description": "allow replacements of files", + "type": "boolean" + }, + "allowedUsernames": { + "type": "array", + "items": { + "type": "string" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disableAnonymous": { + "type": "boolean" + }, + "disableDownload": { + "description": "don't allow downloading files", + "type": "boolean" + }, + "disableFileViewer": { + "description": "don't allow viewing files", + "type": "boolean" + }, + "disableShareCard": { + "type": "boolean" + }, + "disableSidebar": { + "type": "boolean" + }, + "disableThumbnails": { + "type": "boolean" + }, + "downloadURL": { + "type": "string" + }, + "downloadsLimit": { + "type": "integer" + }, + "enableOnlyOffice": { + "type": "boolean" + }, + "enforceDarkLightMode": { + "description": "\"dark\" or \"light\"", + "type": "string" + }, + "extractEmbeddedSubtitles": { + "description": "can be io intensive for large files and take 10-30 seconds.", + "type": "boolean" + }, + "favicon": { + "type": "string" + }, + "hasPassword": { + "type": "boolean" + }, + "hideNavButtons": { + "type": "boolean" + }, + "keepAfterExpiration": { + "type": "boolean" + }, + "maxBandwidth": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "perUserDownloadLimit": { + "type": "boolean" + }, + "quickDownload": { + "type": "boolean" + }, + "shareTheme": { + "type": "string" + }, + "shareType": { + "description": "type of share: normal, upload, max", + "type": "string" + }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, + "source": { + "description": "backend source is path to maintain between name changes", + "type": "string" + }, + "themeColor": { + "type": "string" + }, + "title": { + "type": "string" + }, + "viewMode": { + "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", + "type": "string" + } + } + }, "share.CreateBody": { "type": "object", "properties": { @@ -3706,6 +4433,9 @@ "favicon": { "type": "string" }, + "hasPassword": { + "type": "boolean" + }, "hash": { "type": "string" }, @@ -3737,6 +4467,13 @@ "description": "type of share: normal, upload, max", "type": "string" }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, "source": { "description": "backend source is path to maintain between name changes", "type": "string" @@ -3832,6 +4569,9 @@ "favicon": { "type": "string" }, + "hasPassword": { + "type": "boolean" + }, "hash": { "type": "string" }, @@ -3863,6 +4603,13 @@ "description": "type of share: normal, upload, max", "type": "string" }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, "source": { "description": "backend source is path to maintain between name changes", "type": "string" @@ -3877,9 +4624,19 @@ "description": "Token is a random value that will only be set when PasswordHash is set. It is\nURL-Safe and is used to download links in password-protected shares via a\nquery arg.", "type": "string" }, + "userDownloads": { + "description": "Track downloads per username", + "type": "object", + "additionalProperties": { + "type": "integer" + } + }, "userID": { "type": "integer" }, + "version": { + "type": "integer" + }, "viewMode": { "description": "default view mode for anonymous users: \"list\", \"compact\", \"normal\", \"gallery\"", "type": "string" @@ -4018,6 +4775,31 @@ } } }, + "users.SidebarLink": { + "type": "object", + "properties": { + "category": { + "description": "Category type: \"source\", \"share\", \"tool\", \"custom\", etc.", + "type": "string" + }, + "icon": { + "description": "Material icon name", + "type": "string" + }, + "name": { + "description": "Display name of the link", + "type": "string" + }, + "sourceName": { + "description": "Source identifier for source-type links", + "type": "string" + }, + "target": { + "description": "Target path/URL for the link (relative for source/share)", + "type": "string" + } + } + }, "users.Sorting": { "type": "object", "properties": { @@ -4066,7 +4848,7 @@ "type": "boolean" }, "defaultLandingPage": { - "description": "default landing page to use: eg. /files/mysource/mysubpath, /settings, etc.", + "description": "deprecated: determined by sidebar link order instead", "type": "string" }, "deleteWithoutConfirming": { @@ -4182,6 +4964,13 @@ "description": "show select multiple files on desktop", "type": "boolean" }, + "sidebarLinks": { + "description": "customizable sidebar links", + "type": "array", + "items": { + "$ref": "#/definitions/users.SidebarLink" + } + }, "singleClick": { "description": "open directory on single click, also enables middle click to open in new tab", "type": "boolean" diff --git a/backend/swagger/docs/swagger.yaml b/backend/swagger/docs/swagger.yaml index 0c451090f5..ed531499fc 100644 --- a/backend/swagger/docs/swagger.yaml +++ b/backend/swagger/docs/swagger.yaml @@ -37,6 +37,129 @@ definitions: token: type: string type: object + http.ShareResponse: + properties: + allowCreate: + description: allow creating files + type: boolean + allowDelete: + type: boolean + allowModify: + description: allow modifying files + type: boolean + allowReplacements: + description: allow replacements of files + type: boolean + allowedUsernames: + items: + type: string + type: array + banner: + type: string + description: + type: string + disableAnonymous: + type: boolean + disableDownload: + description: don't allow downloading files + type: boolean + disableFileViewer: + description: don't allow viewing files + type: boolean + disableShareCard: + type: boolean + disableSidebar: + type: boolean + disableThumbnails: + type: boolean + downloadURL: + type: string + downloads: + type: integer + downloadsLimit: + type: integer + enableOnlyOffice: + type: boolean + enforceDarkLightMode: + description: '"dark" or "light"' + type: string + expire: + type: integer + extractEmbeddedSubtitles: + description: can be io intensive for large files and take 10-30 seconds. + type: boolean + favicon: + type: string + hasPassword: + type: boolean + hash: + type: string + hideNavButtons: + type: boolean + keepAfterExpiration: + type: boolean + maxBandwidth: + type: integer + password_hash: + type: string + path: + type: string + pathExists: + type: boolean + perUserDownloadLimit: + type: boolean + quickDownload: + type: boolean + shareTheme: + type: string + shareType: + description: 'type of share: normal, upload, max' + type: string + sidebarLinks: + description: customizable sidebar links + items: + $ref: '#/definitions/users.SidebarLink' + type: array + source: + description: Override embedded field to show source name + type: string + themeColor: + type: string + title: + type: string + token: + description: |- + Token is a random value that will only be set when PasswordHash is set. It is + URL-Safe and is used to download links in password-protected shares via a + query arg. + type: string + userDownloads: + additionalProperties: + type: integer + description: Track downloads per username + type: object + userID: + type: integer + username: + type: string + version: + type: integer + viewMode: + description: 'default view mode for anonymous users: "list", "compact", "normal", + "gallery"' + type: string + type: object + http.duplicateGroup: + properties: + count: + type: integer + files: + items: + $ref: '#/definitions/indexing.SearchResult' + type: array + size: + type: integer + type: object indexing.IndexStatus: enum: - ready @@ -49,8 +172,9 @@ definitions: - UNAVAILABLE indexing.ReducedIndex: properties: - assessment: - type: string + complexity: + description: '0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex' + type: integer fullScanDurationSeconds: type: integer lastIndexedUnixTime: @@ -65,6 +189,10 @@ definitions: type: integer quickScanDurationSeconds: type: integer + scanners: + items: + $ref: '#/definitions/indexing.ScannerInfo' + type: array status: $ref: '#/definitions/indexing.IndexStatus' total: @@ -72,8 +200,34 @@ definitions: used: type: integer type: object + indexing.ScannerInfo: + properties: + complexity: + description: '0-10 scale: 0=unknown, 1=simple, 2-6=normal, 7-9=complex, 10=highlyComplex' + type: integer + currentSchedule: + type: integer + fullScanTime: + type: integer + isRoot: + type: boolean + lastScanned: + type: string + numDirs: + type: integer + numFiles: + type: integer + path: + type: string + quickScanTime: + type: integer + type: object indexing.SearchResult: properties: + hasPreview: + type: boolean + modified: + type: string path: type: string size: @@ -81,12 +235,37 @@ definitions: type: type: string type: object + iteminfo.ExtendedItemInfo: + properties: + hasPreview: + description: whether the file has a thumbnail preview + type: boolean + hidden: + description: whether the file is hidden + type: boolean + metadata: + allOf: + - $ref: '#/definitions/iteminfo.MediaMetadata' + description: optional media metadata (audio/video only) + modified: + description: modification time + type: string + name: + description: name of the file + type: string + size: + description: length in bytes for regular files + type: integer + type: + description: type of the file, either "directory" or a file mimetype + type: string + type: object iteminfo.FileInfo: properties: files: - description: files in the directory + description: files in the directory with optional metadata items: - $ref: '#/definitions/iteminfo.ItemInfo' + $ref: '#/definitions/iteminfo.ExtendedItemInfo' type: array folders: description: folders in the directory @@ -136,6 +315,33 @@ definitions: description: type of the file, either "directory" or a file mimetype type: string type: object + iteminfo.MediaMetadata: + properties: + album: + description: album name + type: string + albumArt: + description: base64 encoded album art / video thumbnail + type: string + artist: + description: track artist + type: string + duration: + description: duration in seconds + type: integer + genre: + description: music/video genre + type: string + title: + description: track/video title + type: string + track: + description: track number + type: integer + year: + description: release year + type: integer + type: object settings.Auth: properties: adminPassword: @@ -488,6 +694,10 @@ definitions: description: path to the cache directory, used for thumbnails and other cached files type: string + cacheDirCleanup: + description: 'whether to automatically cleanup the cache directory (default: + true)' + type: boolean database: description: path to the database file type: string @@ -514,6 +724,9 @@ definitions: description: used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080) type: string + listen: + description: 'address to listen on (default: 0.0.0.0)' + type: string logging: items: $ref: '#/definitions/settings.LogConfig' @@ -583,26 +796,28 @@ definitions: description: conditional rules to apply when indexing to include/exclude certain items createUserDir: - description: create a user directory for each user + description: create a user directory for each user under defaultUserScope + + username type: boolean defaultEnabled: description: should be added as a default source for new users? type: boolean defaultUserScope: - description: default "/" should match folders under path + description: defaults to root of index "/" should match folders under path type: string denyByDefault: description: deny access unless an "allow" access rule was specifically created. type: boolean disableIndexing: - description: disable the indexing of this source + description: '(optional) not recommended: disable the indexing of this source' type: boolean disabled: description: disable the source, this is useful so you don't need to remove it from the config file type: boolean indexingIntervalMinutes: - description: optional manual overide interval in minutes to re-index the source + description: '(optional) not recommended: manual overide interval in minutes + to re-index the source' type: integer private: description: designate as source as private -- currently just means no sharing @@ -650,8 +865,7 @@ definitions: description: debug onlyoffice editor type: boolean defaultLandingPage: - description: 'default landing page to use if no redirect is specified: eg. - /files/mysource/mysubpath, /settings, etc.' + description: 'deprecated: determined by sidebar link order since 1.1.0' type: string deleteWithoutConfirming: description: delete files without confirmation @@ -703,9 +917,9 @@ definitions: description: 'login method to use: eg. password, proxy, oidc' type: string permissions: - $ref: '#/definitions/users.Permissions' + $ref: '#/definitions/settings.UserDefaultsPermissions' preview: - $ref: '#/definitions/users.Preview' + $ref: '#/definitions/settings.UserDefaultsPreview' quickDownload: description: show icon to download in one click type: boolean @@ -731,6 +945,151 @@ definitions: description: 'view mode to use: eg. normal, list, grid, or compact' type: string type: object + settings.UserDefaultsPermissions: + properties: + admin: + description: allow admin access + type: boolean + api: + description: allow api access + type: boolean + create: + description: allow creating or uploading files + type: boolean + delete: + description: allow deleting files + type: boolean + download: + description: allow downloading files + type: boolean + modify: + description: allow modifying files + type: boolean + realtime: + description: allow realtime updates + type: boolean + share: + description: allow sharing files + type: boolean + type: object + settings.UserDefaultsPreview: + properties: + autoplayMedia: + description: autoplay media files in preview + type: boolean + defaultMediaPlayer: + description: disable the styled feature-rich media player for browser default + type: boolean + disableHideSidebar: + description: keep sidebar open when previewing files + type: boolean + folder: + description: show thumbnails for folders that have previewable contents + type: boolean + highQuality: + description: use high quality thumbnails + type: boolean + image: + description: show thumbnails for image files + type: boolean + motionVideoPreview: + description: show multiple frames for videos in thumbnail preview when hovering + type: boolean + office: + description: show thumbnails for office files + type: boolean + popup: + description: show larger popup preview when hovering over thumbnail + type: boolean + video: + description: show thumbnails for video files + type: boolean + type: object + share.CommonShare: + properties: + allowCreate: + description: allow creating files + type: boolean + allowDelete: + type: boolean + allowModify: + description: allow modifying files + type: boolean + allowReplacements: + description: allow replacements of files + type: boolean + allowedUsernames: + items: + type: string + type: array + banner: + type: string + description: + type: string + disableAnonymous: + type: boolean + disableDownload: + description: don't allow downloading files + type: boolean + disableFileViewer: + description: don't allow viewing files + type: boolean + disableShareCard: + type: boolean + disableSidebar: + type: boolean + disableThumbnails: + type: boolean + downloadURL: + type: string + downloadsLimit: + type: integer + enableOnlyOffice: + type: boolean + enforceDarkLightMode: + description: '"dark" or "light"' + type: string + extractEmbeddedSubtitles: + description: can be io intensive for large files and take 10-30 seconds. + type: boolean + favicon: + type: string + hasPassword: + type: boolean + hideNavButtons: + type: boolean + keepAfterExpiration: + type: boolean + maxBandwidth: + type: integer + path: + type: string + perUserDownloadLimit: + type: boolean + quickDownload: + type: boolean + shareTheme: + type: string + shareType: + description: 'type of share: normal, upload, max' + type: string + sidebarLinks: + description: customizable sidebar links + items: + $ref: '#/definitions/users.SidebarLink' + type: array + source: + description: backend source is path to maintain between name changes + type: string + themeColor: + type: string + title: + type: string + viewMode: + description: 'default view mode for anonymous users: "list", "compact", "normal", + "gallery"' + type: string + type: object share.CreateBody: properties: allowCreate: @@ -782,6 +1141,8 @@ definitions: type: boolean favicon: type: string + hasPassword: + type: boolean hash: type: string hideNavButtons: @@ -803,6 +1164,11 @@ definitions: shareType: description: 'type of share: normal, upload, max' type: string + sidebarLinks: + description: customizable sidebar links + items: + $ref: '#/definitions/users.SidebarLink' + type: array source: description: backend source is path to maintain between name changes type: string @@ -870,6 +1236,8 @@ definitions: type: boolean favicon: type: string + hasPassword: + type: boolean hash: type: string hideNavButtons: @@ -891,6 +1259,11 @@ definitions: shareType: description: 'type of share: normal, upload, max' type: string + sidebarLinks: + description: customizable sidebar links + items: + $ref: '#/definitions/users.SidebarLink' + type: array source: description: backend source is path to maintain between name changes type: string @@ -904,8 +1277,15 @@ definitions: URL-Safe and is used to download links in password-protected shares via a query arg. type: string + userDownloads: + additionalProperties: + type: integer + description: Track downloads per username + type: object userID: type: integer + version: + type: integer viewMode: description: 'default view mode for anonymous users: "list", "compact", "normal", "gallery"' @@ -1005,6 +1385,24 @@ definitions: description: show thumbnail preview image for video files type: boolean type: object + users.SidebarLink: + properties: + category: + description: 'Category type: "source", "share", "tool", "custom", etc.' + type: string + icon: + description: Material icon name + type: string + name: + description: Display name of the link + type: string + sourceName: + description: Source identifier for source-type links + type: string + target: + description: Target path/URL for the link (relative for source/share) + type: string + type: object users.Sorting: properties: asc: @@ -1039,8 +1437,7 @@ definitions: description: debug onlyoffice editor type: boolean defaultLandingPage: - description: 'default landing page to use: eg. /files/mysource/mysubpath, - /settings, etc.' + description: 'deprecated: determined by sidebar link order instead' type: string deleteWithoutConfirming: description: delete files without confirmation @@ -1121,6 +1518,11 @@ definitions: showSelectMultiple: description: show select multiple files on desktop type: boolean + sidebarLinks: + description: customizable sidebar links + items: + $ref: '#/definitions/users.SidebarLink' + type: array singleClick: description: open directory on single click, also enables middle click to open in new tab @@ -1154,7 +1556,8 @@ paths: consumes: - application/json description: Delete a user or group from an allow or deny list for a sourcePath - and indexPath. + and indexPath. When cascade=true, removes the user/group from the specified + path and all subpaths. parameters: - description: Source path prefix (e.g. mnt/storage) in: query @@ -1181,6 +1584,10 @@ paths: name: value required: true type: string + - description: 'Cascade delete to all subpaths (default: false)' + in: query + name: cascade + type: boolean produces: - application/json responses: @@ -1257,6 +1664,48 @@ paths: summary: List access rules tags: - Access + patch: + consumes: + - application/json + description: Updates the path for a specific access rule + parameters: + - description: Source, old path, and new path + in: body + name: body + required: true + schema: + properties: + newPath: + type: string + oldPath: + type: string + source: + type: string + type: object + produces: + - application/json + responses: + "200": + description: Rule path updated successfully + schema: + additionalProperties: + type: string + type: object + "400": + description: Bad request - missing or invalid parameters + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Update access rule path + tags: + - Access post: consumes: - application/json @@ -1714,6 +2163,43 @@ paths: summary: List API keys tags: - API Keys + /api/duplicates: + get: + consumes: + - application/json + description: Finds duplicate files based on size and fuzzy filename matching + parameters: + - description: Source name for the desired source + in: query + name: source + required: true + type: string + - description: path within user scope to search + in: query + name: scope + type: string + - description: 'Minimum file size in megabytes (default: 1)' + in: query + name: minSizeMb + type: integer + produces: + - application/json + responses: + "200": + description: List of duplicate file groups + schema: + items: + $ref: '#/definitions/http.duplicateGroup' + type: array + "400": + description: Bad Request + schema: + additionalProperties: + type: string + type: object + summary: Find Duplicate Files + tags: + - Duplicates /api/jobs/{action}/{target}: get: consumes: @@ -2119,6 +2605,10 @@ paths: in: query name: override type: boolean + - description: Explicitly specify if the resource is a directory + in: query + name: isDir + type: boolean produces: - application/json responses: @@ -2325,6 +2815,44 @@ paths: summary: Get share links by path tags: - Shares + patch: + consumes: + - application/json + description: Updates the path for a specific share link identified by hash + parameters: + - description: Hash and new path + in: body + name: body + required: true + schema: + properties: + hash: + type: string + path: + type: string + type: object + produces: + - application/json + responses: + "200": + description: Updated share link + schema: + $ref: '#/definitions/http.ShareResponse' + "400": + description: Bad request - missing or invalid parameters + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + summary: Update share link path + tags: + - Shares post: consumes: - application/json @@ -2592,13 +3120,9 @@ paths: required: true schema: $ref: '#/definitions/users.User' - produces: - - application/json responses: - "200": - description: Updated user details - schema: - $ref: '#/definitions/users.User' + "204": + description: No Content - User updated successfully "400": description: Bad Request schema: @@ -2763,6 +3287,56 @@ paths: tags: - Public Shares /public/api/resources: + get: + consumes: + - application/json + description: Returns metadata for files or directories accessible via a public + share link. Browsing is disabled for upload-only shares. + parameters: + - description: Share hash for authentication + in: query + name: hash + required: true + type: string + - description: Path within the share to retrieve information for. Defaults to + share root. + in: query + name: path + type: string + produces: + - application/json + responses: + "200": + description: File or directory metadata + schema: + $ref: '#/definitions/iteminfo.FileInfo' + "403": + description: Share unavailable or access denied + schema: + additionalProperties: + type: string + type: object + "404": + description: Share not found or file not found + schema: + additionalProperties: + type: string + type: object + "500": + description: Internal server error + schema: + additionalProperties: + type: string + type: object + "501": + description: Browsing disabled for upload shares + schema: + additionalProperties: + type: string + type: object + summary: Get file/directory information from a public share + tags: + - Public Shares post: consumes: - multipart/form-data @@ -2899,55 +3473,32 @@ paths: summary: Update a file in a public share tags: - Public Shares - /public/api/share: + /public/api/shareinfo: get: consumes: - application/json - description: Returns metadata for files or directories accessible via a public - share link. Browsing is disabled for upload-only shares. + description: Returns information about a share link based on its hash. This + endpoint is publicly accessible and can be used with or without authentication. parameters: - - description: Share hash for authentication + - description: Hash of the share link in: query name: hash required: true type: string - - description: Path within the share to retrieve information for. Defaults to - share root. - in: query - name: path - type: string produces: - application/json responses: "200": - description: File or directory metadata + description: Share information schema: - $ref: '#/definitions/iteminfo.FileInfo' - "403": - description: Share unavailable or access denied - schema: - additionalProperties: - type: string - type: object + $ref: '#/definitions/share.CommonShare' "404": - description: Share not found or file not found + description: Share hash not found schema: additionalProperties: type: string type: object - "500": - description: Internal server error - schema: - additionalProperties: - type: string - type: object - "501": - description: Browsing disabled for upload shares - schema: - additionalProperties: - type: string - type: object - summary: Get file/directory information from a public share + summary: Get share information by hash tags: - - Public Shares + - Shares swagger: "2.0" diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json index 9043bc6e8f..56110bb90d 100644 --- a/frontend/.eslintrc.json +++ b/frontend/.eslintrc.json @@ -11,34 +11,24 @@ ], "settings": { "vue-i18n": { - // Path to your locale message directory or a glob pattern. - // The plugin will use these files to determine available keys. - // Make sure 'en.json' is present here. - "localeDir": "./src/i18n/*.json" - - // If your i18n instance is initialized with a fallbackLocale, - // the linter might use that. Ensure 'en' is effectively the master. - // fallbackLocale: 'en', // This might be part of your i18n setup, not ESLint settings + "localeDir": "./src/i18n/en.json", + "messageSyntaxVersion": "^9.0.0" } }, "rules": { "no-unreachable": "off", // vue-i18n rules: // This rule will check if the key used in $t() exists in your locale messages. - // By default, it checks against all locales. We want it to primarily use 'en.json' - // as the source of truth. The plugin often infers this from your i18n setup, - // but we want to be explicit or ensure our sync script makes 'en.json' the master. + // The localeDir setting above points to en.json as the single source of truth. "@intlify/vue-i18n/no-missing-keys": "error", - // Optional: Warn about unused keys in your 'en.json' - // This requires configuring the `localeDir` setting below. - "@intlify/vue-i18n/no-unused-keys": ["error", { - "src": "./src", // Path to your source files - "extensions": [".js", ".vue"] - // Important: This tells the rule to check unused keys specifically in en.json - // by making it the single source of truth for what "should" exist. - // However, the rule usually checks keys NOT used in your Vue code. - // The primary goal is `no-missing-keys` for keys used in the template. - }], + // Check for unused keys in en.json (keys that exist but are never used in code) + "@intlify/vue-i18n/no-unused-keys": [ + "error", + { + "src": "./src", + "extensions": [".js", ".vue", ".ts"] + } + ], "@intlify/vue-i18n/no-raw-text": [ "error", diff --git a/frontend/package-lock.json b/frontend/package-lock.json new file mode 100644 index 0000000000..37a8052f73 --- /dev/null +++ b/frontend/package-lock.json @@ -0,0 +1,7557 @@ +{ + "name": "filebrowser-frontend", + "version": "3.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "filebrowser-frontend", + "version": "3.0.0", + "dependencies": { + "@onlyoffice/document-editor-vue": "^1.4.0", + "@skjnldsv/vue-plyr": "^7.5.0", + "ace-builds": "^1.24.2", + "axios": "^1.7.9", + "clipboard": "^2.0.4", + "css-vars-ponyfill": "^2.4.3", + "dompurify": "^3.2.4", + "epubjs": "^0.3.93", + "file-loader": "^6.2.0", + "glob": "^9.3.5", + "highlight.js": "^11.11.1", + "mammoth": "^1.9.1", + "marked": "^15.0.6", + "normalize.css": "^8.0.1", + "qrcode.vue": "^3.4.1", + "srt-support-for-html5-videos": "^2.6.11", + "vue": "^3.4.21", + "vue-i18n": "^9.10.2", + "vue-lazyload": "^3.0.0", + "vue-router": "^4.3.0" + }, + "devDependencies": { + "@intlify/eslint-plugin-vue-i18n": "^3.2.0", + "@intlify/unplugin-vue-i18n": "^4.0.0", + "@playwright/test": "^1.54.1", + "@types/node": "^24.1.0", + "@vitejs/plugin-vue": "^5.0.4", + "@vue/eslint-config-typescript": "^13.0.0", + "deepl-node": "^1.18.0", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-vue": "^9.24.0", + "fs-extra": "^11.3.0", + "jsdom": "^25.0.1", + "vite": "^6.2.0", + "vite-plugin-checker": "^0.10.3", + "vite-plugin-compression2": "^1.0.0", + "vitest": "^3.0.7", + "vue-tsc": "^2.0.7" + }, + "engines": { + "node": ">=20.0.0", + "npm": ">=9.0.0" + } + }, + "node_modules/@asamuzakjp/css-color": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-3.2.0.tgz", + "integrity": "sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@csstools/css-calc": "^2.1.3", + "@csstools/css-color-parser": "^3.0.9", + "@csstools/css-parser-algorithms": "^3.0.4", + "@csstools/css-tokenizer": "^3.0.3", + "lru-cache": "^10.4.3" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", + "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.5" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz", + "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", + "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@csstools/color-helpers": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.1.0.tgz", + "integrity": "sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "engines": { + "node": ">=18" + } + }, + "node_modules/@csstools/css-calc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-2.1.4.tgz", + "integrity": "sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^3.0.5", + "@csstools/css-tokenizer": "^3.0.4" + } + }, + "node_modules/@csstools/css-color-parser": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-3.1.0.tgz", + "integrity": "sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "dependencies": { + "@csstools/color-helpers": "^5.1.0", + "@csstools/css-calc": "^2.1.4" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^3.0.5", + "@csstools/css-tokenizer": "^3.0.4" + } + }, + "node_modules/@csstools/css-parser-algorithms": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.5.tgz", + "integrity": "sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@csstools/css-tokenizer": "^3.0.4" + } + }, + "node_modules/@csstools/css-tokenizer": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.4.tgz", + "integrity": "sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@intlify/bundle-utils": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@intlify/bundle-utils/-/bundle-utils-8.0.0.tgz", + "integrity": "sha512-1B++zykRnMwQ+20SpsZI1JCnV/YJt9Oq7AGlEurzkWJOFtFAVqaGc/oV36PBRYeiKnTbY9VYfjBimr2Vt42wLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@intlify/message-compiler": "^9.4.0", + "@intlify/shared": "^9.4.0", + "acorn": "^8.8.2", + "escodegen": "^2.1.0", + "estree-walker": "^2.0.2", + "jsonc-eslint-parser": "^2.3.0", + "mlly": "^1.2.0", + "source-map-js": "^1.0.1", + "yaml-eslint-parser": "^1.2.2" + }, + "engines": { + "node": ">= 14.16" + }, + "peerDependenciesMeta": { + "petite-vue-i18n": { + "optional": true + }, + "vue-i18n": { + "optional": true + } + } + }, + "node_modules/@intlify/core-base": { + "version": "9.14.5", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-9.14.5.tgz", + "integrity": "sha512-5ah5FqZG4pOoHjkvs8mjtv+gPKYU0zCISaYNjBNNqYiaITxW8ZtVih3GS/oTOqN8d9/mDLyrjD46GBApNxmlsA==", + "license": "MIT", + "dependencies": { + "@intlify/message-compiler": "9.14.5", + "@intlify/shared": "9.14.5" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/eslint-plugin-vue-i18n": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@intlify/eslint-plugin-vue-i18n/-/eslint-plugin-vue-i18n-3.2.0.tgz", + "integrity": "sha512-TOIrD4tJE48WMyVIB8bNeQJJPYo1Prpqnm9Xpn1UZmcqlELhm8hmP8QyJnkgesfbG7hyiX/kvo63W7ClEQmhpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint/eslintrc": "^3.0.0", + "@intlify/core-base": "^9.12.0", + "@intlify/message-compiler": "^9.12.0", + "debug": "^4.3.4", + "eslint-compat-utils": "^0.6.0", + "glob": "^10.3.3", + "globals": "^15.0.0", + "ignore": "^6.0.0", + "import-fresh": "^3.3.0", + "is-language-code": "^3.1.0", + "js-yaml": "^4.1.0", + "json5": "^2.2.3", + "jsonc-eslint-parser": "^2.3.0", + "lodash": "^4.17.21", + "parse5": "^7.1.2", + "semver": "^7.5.4", + "synckit": "^0.9.0", + "vue-eslint-parser": "^9.3.1", + "yaml-eslint-parser": "^1.2.2" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "eslint": "^8.0.0 || ^9.0.0-0" + } + }, + "node_modules/@intlify/eslint-plugin-vue-i18n/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@intlify/eslint-plugin-vue-i18n/node_modules/glob": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@intlify/eslint-plugin-vue-i18n/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@intlify/eslint-plugin-vue-i18n/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "9.14.5", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-9.14.5.tgz", + "integrity": "sha512-IHzgEu61/YIpQV5Pc3aRWScDcnFKWvQA9kigcINcCBXN8mbW+vk9SK+lDxA6STzKQsVJxUPg9ACC52pKKo3SVQ==", + "license": "MIT", + "dependencies": { + "@intlify/shared": "9.14.5", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/shared": { + "version": "9.14.5", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-9.14.5.tgz", + "integrity": "sha512-9gB+E53BYuAEMhbCAxVgG38EZrk59sxBtv3jSizNL2hEWlgjBjAw1AwpLHtNaeda12pe6W20OGEa0TwuMSRbyQ==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/unplugin-vue-i18n": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@intlify/unplugin-vue-i18n/-/unplugin-vue-i18n-4.0.0.tgz", + "integrity": "sha512-q2Mhqa/mLi0tulfLFO4fMXXvEbkSZpI5yGhNNsLTNJJ41icEGUuyDe+j5zRZIKSkOJRgX6YbCyibTDJdRsukmw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@intlify/bundle-utils": "^8.0.0", + "@intlify/shared": "^9.4.0", + "@rollup/pluginutils": "^5.1.0", + "@vue/compiler-sfc": "^3.2.47", + "debug": "^4.3.3", + "fast-glob": "^3.2.12", + "js-yaml": "^4.1.0", + "json5": "^2.2.3", + "pathe": "^1.0.0", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2", + "unplugin": "^1.1.0" + }, + "engines": { + "node": ">= 14.16" + }, + "peerDependencies": { + "petite-vue-i18n": "*", + "vue-i18n": "*", + "vue-i18n-bridge": "*" + }, + "peerDependenciesMeta": { + "petite-vue-i18n": { + "optional": true + }, + "vue-i18n": { + "optional": true + }, + "vue-i18n-bridge": { + "optional": true + } + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz", + "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@onlyoffice/document-editor-vue": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@onlyoffice/document-editor-vue/-/document-editor-vue-1.6.1.tgz", + "integrity": "sha512-sdU7h684ESSdXvGNDcMf73UmToiZGMVO5QRIazTmGfm+bKOnT5ildomeagYFdnQaHQH0J28EJqc4jqXOcQbicA==", + "license": "Apache-2.0", + "dependencies": { + "lodash": "^4.17.21" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.2.tgz", + "integrity": "sha512-fdDH1LSGfZdTH2sxdpVMw31BanV28K/Gry0cVFxaNP77neJSkd82mM8ErPNYs9e+0O7SdHBLTDzDgwUuy18RnQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/@playwright/test": { + "version": "1.56.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.56.1.tgz", + "integrity": "sha512-vSMYtL/zOcFpvJCW71Q/OEGQb7KYBPAdKh35WNSkaZA75JlAO8ED8UN6GUNTm3drWomcbcqRPFqQbLae8yBTdg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright": "1.56.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", + "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.53.2.tgz", + "integrity": "sha512-yDPzwsgiFO26RJA4nZo8I+xqzh7sJTZIWQOxn+/XOdPE31lAvLIYCKqjV+lNH/vxE2L2iH3plKxDCRK6i+CwhA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.53.2.tgz", + "integrity": "sha512-k8FontTxIE7b0/OGKeSN5B6j25EuppBcWM33Z19JoVT7UTXFSo3D9CdU39wGTeb29NO3XxpMNauh09B+Ibw+9g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.53.2.tgz", + "integrity": "sha512-A6s4gJpomNBtJ2yioj8bflM2oogDwzUiMl2yNJ2v9E7++sHrSrsQ29fOfn5DM/iCzpWcebNYEdXpaK4tr2RhfQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.53.2.tgz", + "integrity": "sha512-e6XqVmXlHrBlG56obu9gDRPW3O3hLxpwHpLsBJvuI8qqnsrtSZ9ERoWUXtPOkY8c78WghyPHZdmPhHLWNdAGEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.53.2.tgz", + "integrity": "sha512-v0E9lJW8VsrwPux5Qe5CwmH/CF/2mQs6xU1MF3nmUxmZUCHazCjLgYvToOk+YuuUqLQBio1qkkREhxhc656ViA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.53.2.tgz", + "integrity": "sha512-ClAmAPx3ZCHtp6ysl4XEhWU69GUB1D+s7G9YjHGhIGCSrsg00nEGRRZHmINYxkdoJehde8VIsDC5t9C0gb6yqA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.53.2.tgz", + "integrity": "sha512-EPlb95nUsz6Dd9Qy13fI5kUPXNSljaG9FiJ4YUGU1O/Q77i5DYFW5KR8g1OzTcdZUqQQ1KdDqsTohdFVwCwjqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.53.2.tgz", + "integrity": "sha512-BOmnVW+khAUX+YZvNfa0tGTEMVVEerOxN0pDk2E6N6DsEIa2Ctj48FOMfNDdrwinocKaC7YXUZ1pHlKpnkja/Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.53.2.tgz", + "integrity": "sha512-Xt2byDZ+6OVNuREgBXr4+CZDJtrVso5woFtpKdGPhpTPHcNG7D8YXeQzpNbFRxzTVqJf7kvPMCub/pcGUWgBjA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.53.2.tgz", + "integrity": "sha512-+LdZSldy/I9N8+klim/Y1HsKbJ3BbInHav5qE9Iy77dtHC/pibw1SR/fXlWyAk0ThnpRKoODwnAuSjqxFRDHUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.53.2.tgz", + "integrity": "sha512-8ms8sjmyc1jWJS6WdNSA23rEfdjWB30LH8Wqj0Cqvv7qSHnvw6kgMMXRdop6hkmGPlyYBdRPkjJnj3KCUHV/uQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.53.2.tgz", + "integrity": "sha512-3HRQLUQbpBDMmzoxPJYd3W6vrVHOo2cVW8RUo87Xz0JPJcBLBr5kZ1pGcQAhdZgX9VV7NbGNipah1omKKe23/g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.53.2.tgz", + "integrity": "sha512-fMjKi+ojnmIvhk34gZP94vjogXNNUKMEYs+EDaB/5TG/wUkoeua7p7VCHnE6T2Tx+iaghAqQX8teQzcvrYpaQA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.53.2.tgz", + "integrity": "sha512-XuGFGU+VwUUV5kLvoAdi0Wz5Xbh2SrjIxCtZj6Wq8MDp4bflb/+ThZsVxokM7n0pcbkEr2h5/pzqzDYI7cCgLQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.53.2.tgz", + "integrity": "sha512-w6yjZF0P+NGzWR3AXWX9zc0DNEGdtvykB03uhonSHMRa+oWA6novflo2WaJr6JZakG2ucsyb+rvhrKac6NIy+w==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.2.tgz", + "integrity": "sha512-yo8d6tdfdeBArzC7T/PnHd7OypfI9cbuZzPnzLJIyKYFhAQ8SvlkKtKBMbXDxe1h03Rcr7u++nFS7tqXz87Gtw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.53.2.tgz", + "integrity": "sha512-ah59c1YkCxKExPP8O9PwOvs+XRLKwh/mV+3YdKqQ5AMQ0r4M4ZDuOrpWkUaqO7fzAHdINzV9tEVu8vNw48z0lA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.53.2.tgz", + "integrity": "sha512-4VEd19Wmhr+Zy7hbUsFZ6YXEiP48hE//KPLCSVNY5RMGX2/7HZ+QkN55a3atM1C/BZCGIgqN+xrVgtdak2S9+A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.53.2.tgz", + "integrity": "sha512-IlbHFYc/pQCgew/d5fslcy1KEaYVCJ44G8pajugd8VoOEI8ODhtb/j8XMhLpwHCMB3yk2J07ctup10gpw2nyMA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.53.2.tgz", + "integrity": "sha512-lNlPEGgdUfSzdCWU176ku/dQRnA7W+Gp8d+cWv73jYrb8uT7HTVVxq62DUYxjbaByuf1Yk0RIIAbDzp+CnOTFg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.53.2.tgz", + "integrity": "sha512-S6YojNVrHybQis2lYov1sd+uj7K0Q05NxHcGktuMMdIQ2VixGwAfbJ23NnlvvVV1bdpR2m5MsNBViHJKcA4ADw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.2.tgz", + "integrity": "sha512-k+/Rkcyx//P6fetPoLMb8pBeqJBNGx81uuf7iljX9++yNBVRDQgD04L+SVXmXmh5ZP4/WOp4mWF0kmi06PW2tA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@skjnldsv/vue-plyr": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@skjnldsv/vue-plyr/-/vue-plyr-7.5.0.tgz", + "integrity": "sha512-JmbKPe8Eh0yTP+7w4VYeqGhrUqDKM4qSsCn37CbADAvvwMvceBwYC0IBXil0RBtyzStxwXPtOj1oI//lQ5DeTw==", + "license": "MIT", + "dependencies": { + "plyr": "^3.7.8", + "vue": "^3.3.4" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0", + "npm": "^9.0.0 || ^10.0.0" + } + }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/eslint": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", + "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "license": "MIT" + }, + "node_modules/@types/localforage": { + "version": "0.0.34", + "resolved": "https://registry.npmjs.org/@types/localforage/-/localforage-0.0.34.tgz", + "integrity": "sha512-tJxahnjm9dEI1X+hQSC5f2BSd/coZaqbIl1m3TCl0q9SVuC52XcXfV0XmoCU1+PmjyucuVITwoTnN8OlTbEXXA==", + "deprecated": "This is a stub types definition for localforage (https://github.com/localForage/localForage). localforage provides its own type definitions, so you don't need @types/localforage installed!", + "license": "MIT", + "dependencies": { + "localforage": "*" + } + }, + "node_modules/@types/node": { + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", + "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz", + "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", + "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", + "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz", + "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", + "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", + "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", + "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "dev": true, + "license": "ISC" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", + "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@vitest/expect": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz", + "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/spy": "3.2.4", + "@vitest/utils": "3.2.4", + "chai": "^5.2.0", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/mocker": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz", + "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "3.2.4", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.17" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/mocker/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/@vitest/pretty-format": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", + "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz", + "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/utils": "3.2.4", + "pathe": "^2.0.3", + "strip-literal": "^3.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vitest/snapshot": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz", + "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "3.2.4", + "magic-string": "^0.30.17", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vitest/spy": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", + "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyspy": "^4.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz", + "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "3.2.4", + "loupe": "^3.1.4", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.15", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.15.tgz", + "integrity": "sha512-3VHw+QZU0ZG9IuQmzT68IyN4hZNd9GchGPhbD9+pa8CVv7rnoOZwo7T8weIbrRmihqy3ATpdfXFnqRrfPVK6CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.15" + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.15", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.15.tgz", + "integrity": "sha512-CPbMWlUN6hVZJYGcU/GSoHu4EnCHiLaXI9n8c9la6RaI9W5JHX+NqG+GSQcB0JdC2FIBLdZJwGsfKyBB71VlTg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.15", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.15.tgz", + "integrity": "sha512-2aZ8i0cqPGjXb4BhkMsPYDkkuc2ZQ6yOpqwAuNwUoncELqoy5fRgOQtLR9gB0g902iS0NAkvpIzs27geVyVdPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.15", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.24.tgz", + "integrity": "sha512-eDl5H57AOpNakGNAkFDH+y7kTqrQpJkZFXhWZQGyx/5Wh7B1uQYvcWkvZi11BDhscPgj8N7XV3oRwiPnx1Vrig==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "@vue/shared": "3.5.24", + "entities": "^4.5.0", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.24.tgz", + "integrity": "sha512-1QHGAvs53gXkWdd3ZMGYuvQFXHW4ksKWPG8HP8/2BscrbZ0brw183q2oNWjMrSWImYLHxHrx1ItBQr50I/q2zw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.24", + "@vue/shared": "3.5.24" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.24.tgz", + "integrity": "sha512-8EG5YPRgmTB+YxYBM3VXy8zHD9SWHUJLIGPhDovo3Z8VOgvP+O7UP5vl0J4BBPWYD9vxtBabzW1EuEZ+Cqs14g==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "@vue/compiler-core": "3.5.24", + "@vue/compiler-dom": "3.5.24", + "@vue/compiler-ssr": "3.5.24", + "@vue/shared": "3.5.24", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.6", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.24.tgz", + "integrity": "sha512-trOvMWNBMQ/odMRHW7Ae1CdfYx+7MuiQu62Jtu36gMLXcaoqKvAyh+P73sYG9ll+6jLB6QPovqoKGGZROzkFFg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.24", + "@vue/shared": "3.5.24" + } + }, + "node_modules/@vue/compiler-vue2": { + "version": "2.7.16", + "resolved": "https://registry.npmjs.org/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz", + "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==", + "dev": true, + "license": "MIT", + "dependencies": { + "de-indent": "^1.0.2", + "he": "^1.2.0" + } + }, + "node_modules/@vue/devtools-api": { + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" + }, + "node_modules/@vue/eslint-config-typescript": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/@vue/eslint-config-typescript/-/eslint-config-typescript-13.0.0.tgz", + "integrity": "sha512-MHh9SncG/sfqjVqjcuFLOLD6Ed4dRAis4HNt0dXASeAuLqIAx4YMB1/m2o4pUKK1vCt8fUvYG8KKX2Ot3BVZTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "^7.1.1", + "@typescript-eslint/parser": "^7.1.1", + "vue-eslint-parser": "^9.3.1" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "peerDependencies": { + "eslint": "^8.56.0", + "eslint-plugin-vue": "^9.0.0", + "typescript": ">=4.7.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/language-core": { + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.2.12.tgz", + "integrity": "sha512-IsGljWbKGU1MZpBPN+BvPAdr55YPkj2nB/TBNGNC32Vy2qLG25DYu/NBN2vNtZqdRbTRjaoYrahLrToim2NanA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.15", + "@vue/compiler-dom": "^3.5.0", + "@vue/compiler-vue2": "^2.7.16", + "@vue/shared": "^3.5.0", + "alien-signals": "^1.0.3", + "minimatch": "^9.0.3", + "muggle-string": "^0.4.1", + "path-browserify": "^1.0.1" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/language-core/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@vue/language-core/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.24.tgz", + "integrity": "sha512-BM8kBhtlkkbnyl4q+HiF5R5BL0ycDPfihowulm02q3WYp2vxgPcJuZO866qa/0u3idbMntKEtVNuAUp5bw4teg==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.24" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.24.tgz", + "integrity": "sha512-RYP/byyKDgNIqfX/gNb2PB55dJmM97jc9wyF3jK7QUInYKypK2exmZMNwnjueWwGceEkP6NChd3D2ZVEp9undQ==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.24", + "@vue/shared": "3.5.24" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.24.tgz", + "integrity": "sha512-Z8ANhr/i0XIluonHVjbUkjvn+CyrxbXRIxR7wn7+X7xlcb7dJsfITZbkVOeJZdP8VZwfrWRsWdShH6pngMxRjw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.24", + "@vue/runtime-core": "3.5.24", + "@vue/shared": "3.5.24", + "csstype": "^3.1.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.24.tgz", + "integrity": "sha512-Yh2j2Y4G/0/4z/xJ1Bad4mxaAk++C2v4kaa8oSYTMJBJ00/ndPuxCnWeot0/7/qafQFLh5pr6xeV6SdMcE/G1w==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.24", + "@vue/shared": "3.5.24" + }, + "peerDependencies": { + "vue": "3.5.24" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.24.tgz", + "integrity": "sha512-9cwHL2EsJBdi8NY22pngYYWzkTDhld6fAD6jlaeloNGciNSJL6bLpbxVgXl96X00Jtc6YWQv96YA/0sxex/k1A==", + "license": "MIT" + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xmldom/xmldom": { + "version": "0.7.13", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.13.tgz", + "integrity": "sha512-lm2GW5PkosIzccsaZIz7tp8cPADSIlIHWDFTR1N0SzfinhhYgeIQjFMz4rYzanCScr3DqQLeomUDArp6MWKm+g==", + "deprecated": "this version is no longer supported, please update to at least 0.8.*", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "license": "BSD-3-Clause", + "peer": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "license": "Apache-2.0", + "peer": true + }, + "node_modules/ace-builds": { + "version": "1.43.4", + "resolved": "https://registry.npmjs.org/ace-builds/-/ace-builds-1.43.4.tgz", + "integrity": "sha512-8hAxVfo2ImICd69BWlZwZlxe9rxDGDjuUhh+WeWgGDvfBCE+r3lkynkQvIovDz4jcMi8O7bsEaFygaDT+h9sBA==", + "license": "BSD-3-Clause" + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-phases": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz", + "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10.13.0" + }, + "peerDependencies": { + "acorn": "^8.14.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/adm-zip": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.16.tgz", + "integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "license": "MIT", + "peer": true, + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT", + "peer": true + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "license": "MIT", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/alien-signals": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-1.0.13.tgz", + "integrity": "sha512-OGj9yyTnJEttvzhTUWuscOvtqxq5vrhF7vL9oS0xJ2mK0ItPYP1/y+vCFebfxoEyAz0++1AIwJ5CMr+Fk3nDmg==", + "dev": true, + "license": "MIT" + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz", + "integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.4", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.29.tgz", + "integrity": "sha512-sXdt2elaVnhpDNRDz+1BDx1JQoJRuNk7oVlAlbGiFkLikHCAQiccexF/9e91zVi6RCgqspl04aP+6Cnl9zRLrA==", + "license": "Apache-2.0", + "peer": true, + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/bluebird": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", + "integrity": "sha512-iD3898SR7sWVRHbiQv+sHUtHnMvC1o3nW5rAcqnq3uOn07DSAppZYUkIGslDz6gXC7HfunPe7YVBgoEJASPcHA==", + "license": "MIT" + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true, + "license": "ISC" + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", + "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "baseline-browser-mapping": "^2.8.25", + "caniuse-lite": "^1.0.30001754", + "electron-to-chromium": "^1.5.249", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.1.4" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT", + "peer": true + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001755", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001755.tgz", + "integrity": "sha512-44V+Jm6ctPj7R52Na4TLi3Zri4dWUljJd+RDm+j8LtNCc/ihLCT+X1TzoOAkRETEWqjuLnh9581Tl80FvK7jVA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0", + "peer": true + }, + "node_modules/chai": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", + "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/check-error": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 16" + } + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", + "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/clipboard": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz", + "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==", + "license": "MIT", + "dependencies": { + "good-listener": "^1.2.2", + "select": "^1.1.2", + "tiny-emitter": "^2.0.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "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", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "license": "MIT", + "peer": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/core-js": { + "version": "3.47.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.47.0.tgz", + "integrity": "sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg==", + "hasInstallScript": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-vars-ponyfill": { + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/css-vars-ponyfill/-/css-vars-ponyfill-2.4.9.tgz", + "integrity": "sha512-aZyLue5bdiGVNCiCclNjo123D8I7kyoYNUaAvz+H1JalX1ye4Ilz7jNRRH5YbM+dYD6ucejiydGwk7lol/GCXQ==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.2", + "get-css-data": "^2.0.2" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssstyle": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.6.0.tgz", + "integrity": "sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/css-color": "^3.2.0", + "rrweb-cssom": "^0.8.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/cssstyle/node_modules/rrweb-cssom": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.8.0.tgz", + "integrity": "sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==", + "dev": true, + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/custom-event-polyfill": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/custom-event-polyfill/-/custom-event-polyfill-1.0.7.tgz", + "integrity": "sha512-TDDkd5DkaZxZFM8p+1I3yAlvM3rSr1wbrOliG4yJiwinMZN8z/iGL7BTlDkrJcYTmgUSb4ywVCc3ZaUtOtC76w==", + "license": "MIT" + }, + "node_modules/d": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", + "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "license": "ISC", + "dependencies": { + "es5-ext": "^0.10.64", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/data-urls": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz", + "integrity": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-mimetype": "^4.0.0", + "whatwg-url": "^14.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", + "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", + "dev": true, + "license": "MIT" + }, + "node_modules/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/deepl-node": { + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/deepl-node/-/deepl-node-1.22.0.tgz", + "integrity": "sha512-NmaNAiOi7Ztw74wRMnPxhUEypxidHxSZ9hbVZNtjZKcjFyGfcbG7rqeYj13ln/BIisftK+FdGXwTDE4viBszrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": ">=12.0", + "adm-zip": "^0.5.16", + "axios": "^1.7.4", + "form-data": "^3.0.0", + "loglevel": ">=1.6.2", + "uuid": "^8.3.2" + }, + "engines": { + "node": ">=12.0" + } + }, + "node_modules/deepl-node/node_modules/form-data": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.4.tgz", + "integrity": "sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.35" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegate": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz", + "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==", + "license": "MIT" + }, + "node_modules/dingbat-to-unicode": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dingbat-to-unicode/-/dingbat-to-unicode-1.0.1.tgz", + "integrity": "sha512-98l0sW87ZT58pU4i61wa2OHwxbiYSbuxsCBozaVnYX2iCnr3bLM3fIes1/ej7h1YdOKuKt/MLs706TVnALA65w==", + "license": "BSD-2-Clause" + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dompurify": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.3.0.tgz", + "integrity": "sha512-r+f6MYR1gGN1eJv0TVQbhA7if/U7P87cdPl3HN5rikqaBSBxLiCb/b9O+2eG0cxz0ghyU+mU1QkbsOwERMYlWQ==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, + "node_modules/duck": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/duck/-/duck-0.1.12.tgz", + "integrity": "sha512-wkctla1O6VfP89gQ+J/yDesM0S7B7XLXjKGzXxMDVFg7uEn706niAtyYovKbyq1oT9YwDcly721/iUWoc8MVRg==", + "license": "BSD", + "dependencies": { + "underscore": "^1.13.1" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.255", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.255.tgz", + "integrity": "sha512-Z9oIp4HrFF/cZkDPMpz2XSuVpc1THDpT4dlmATFlJUIBVCy9Vap5/rIXsASP1CscBacBqhabwh8vLctqBwEerQ==", + "license": "ISC", + "peer": true + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz", + "integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==", + "license": "MIT", + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/epubjs": { + "version": "0.3.93", + "resolved": "https://registry.npmjs.org/epubjs/-/epubjs-0.3.93.tgz", + "integrity": "sha512-c06pNSdBxcXv3dZSbXAVLE1/pmleRhOT6mXNZo6INKmvuKpYB65MwU/lO7830czCtjIiK9i+KR+3S+p0wtljrw==", + "license": "BSD-2-Clause", + "dependencies": { + "@types/localforage": "0.0.34", + "@xmldom/xmldom": "^0.7.5", + "core-js": "^3.18.3", + "event-emitter": "^0.3.5", + "jszip": "^3.7.1", + "localforage": "^1.10.0", + "lodash": "^4.17.21", + "marks-pane": "^1.0.9", + "path-webpack": "0.0.3" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-module-lexer": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "license": "MIT" + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es5-ext": { + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "hasInstallScript": true, + "license": "ISC", + "dependencies": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "license": "MIT", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-symbol": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", + "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "license": "ISC", + "dependencies": { + "d": "^1.0.2", + "ext": "^1.7.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/eslint": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-compat-utils": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.6.5.tgz", + "integrity": "sha512-vAUHYzue4YAa2hNACjB8HvUQj5yehAZgiClyFVVom9cP8z5NSFq3PwB/TtJslN2zAMgRX6FCFCjYBbQh71g5RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "eslint": ">=6.0.0" + } + }, + "node_modules/eslint-config-prettier": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.2.tgz", + "integrity": "sha512-iI1f+D2ViGn+uvv5HuHVUamg8ll4tN+JRHGc6IJi4TP9Kl976C57fzPXgseXNs8v0iA8aSJpHsTWjDb9QJamGQ==", + "dev": true, + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-vue": { + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.33.0.tgz", + "integrity": "sha512-174lJKuNsuDIlLpjeXc5E2Tss8P44uIimAfGD0b90k0NoirJqpG7stLuU9Vp/9ioTOrQdWVREc4mRd1BD+CvGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "globals": "^13.24.0", + "natural-compare": "^1.4.0", + "nth-check": "^2.1.1", + "postcss-selector-parser": "^6.0.15", + "semver": "^7.6.3", + "vue-eslint-parser": "^9.4.3", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-vue/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "license": "ISC", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "license": "MIT", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/expect-type": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz", + "integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "license": "ISC", + "dependencies": { + "type": "^2.7.2" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause", + "peer": true + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "license": "MIT", + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "11.3.2", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.2.tgz", + "integrity": "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-css-data": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/get-css-data/-/get-css-data-2.1.1.tgz", + "integrity": "sha512-JpMa/f5P4mDXKg6l5/2cHL5xNY77Jap7tHyduMa6BF0E2a7bQ6Tvaz2BIMjeVYZYLcmOZ5w2Ro0yVJEI41tMbw==", + "license": "MIT" + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob": { + "version": "9.3.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz", + "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "minimatch": "^8.0.2", + "minipass": "^4.2.4", + "path-scurry": "^1.6.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "license": "BSD-2-Clause", + "peer": true + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz", + "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "15.15.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", + "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/good-listener": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz", + "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==", + "license": "MIT", + "dependencies": { + "delegate": "^3.1.2" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "license": "MIT", + "bin": { + "he": "bin/he" + } + }, + "node_modules/highlight.js": { + "version": "11.11.1", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.11.1.tgz", + "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz", + "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^3.1.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-6.0.2.tgz", + "integrity": "sha512-InwqeHHN2XpumIkMvpl/DCJVrAHgCsG5+cn1XlnLWGwtZBm8QJfSusItfrwx81CTp5agNZqpKU2J/ccC5nGT4A==", + "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-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-language-code": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-language-code/-/is-language-code-3.1.0.tgz", + "integrity": "sha512-zJdQ3QTeLye+iphMeK3wks+vXSRFKh68/Pnlw7aOfApFSEIOhYa8P9vwwa6QrImNNBMJTiL1PpYF0f4BxDuEgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.14.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "25.0.1", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-25.0.1.tgz", + "integrity": "sha512-8i7LzZj7BF8uplX+ZyOlIz86V6TAsSs+np6m1kpW9u0JWi4z/1t+FzcK1aek+ybTnAC4KhBL4uXCNT0wcUIeCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssstyle": "^4.1.0", + "data-urls": "^5.0.0", + "decimal.js": "^10.4.3", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^4.0.0", + "http-proxy-agent": "^7.0.2", + "https-proxy-agent": "^7.0.5", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.12", + "parse5": "^7.1.2", + "rrweb-cssom": "^0.7.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^5.0.0", + "w3c-xmlserializer": "^5.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^3.1.1", + "whatwg-mimetype": "^4.0.0", + "whatwg-url": "^14.0.0", + "ws": "^8.18.0", + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "canvas": "^2.11.2" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/xml-name-validator": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "license": "MIT", + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonc-eslint-parser": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/jsonc-eslint-parser/-/jsonc-eslint-parser-2.4.1.tgz", + "integrity": "sha512-uuPNLJkKN8NXAlZlQ6kmUF9qO+T6Kyd7oV4+/7yy8Jz6+MZNyhPq8EdLpdfnPVzUC8qSf1b4j1azKaGnFsjmsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.5.0", + "eslint-visitor-keys": "^3.0.0", + "espree": "^9.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + } + }, + "node_modules/jsonc-eslint-parser/node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/jsonfile": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jszip": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", + "license": "(MIT OR GPL-3.0-or-later)", + "dependencies": { + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "setimmediate": "^1.0.5" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "license": "MIT", + "dependencies": { + "immediate": "~3.0.5" + } + }, + "node_modules/loader-runner": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.1.tgz", + "integrity": "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.11.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "license": "MIT", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/loadjs": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loadjs/-/loadjs-4.3.0.tgz", + "integrity": "sha512-vNX4ZZLJBeDEOBvdr2v/F+0aN5oMuPu7JTqrMwp+DtgK+AryOlpy6Xtm2/HpNr+azEa828oQjOtWsB6iDtSfSQ==", + "license": "MIT" + }, + "node_modules/localforage": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz", + "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==", + "license": "Apache-2.0", + "dependencies": { + "lie": "3.1.1" + } + }, + "node_modules/localforage/node_modules/lie": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz", + "integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==", + "license": "MIT", + "dependencies": { + "immediate": "~3.0.5" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/loglevel": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.9.2.tgz", + "integrity": "sha512-HgMmCqIJSAKqo68l0rS2AanEWfkxaZ5wNiEFb5ggm08lDs9Xl2KxBlX3PTcaD2chBM1gXAYf491/M2Rv8Jwayg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + }, + "funding": { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/loglevel" + } + }, + "node_modules/lop": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/lop/-/lop-0.4.2.tgz", + "integrity": "sha512-RefILVDQ4DKoRZsJ4Pj22TxE3omDO47yFpkIBoDKzkqPRISs5U1cnAdg/5583YPkWPaLIYHOKRMQSvjFsO26cw==", + "license": "BSD-2-Clause", + "dependencies": { + "duck": "^0.1.12", + "option": "~0.2.1", + "underscore": "^1.13.1" + } + }, + "node_modules/loupe": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", + "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "license": "ISC" + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/mammoth": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/mammoth/-/mammoth-1.11.0.tgz", + "integrity": "sha512-BcEqqY/BOwIcI1iR5tqyVlqc3KIaMRa4egSoK83YAVrBf6+yqdAAbtUcFDCWX8Zef8/fgNZ6rl4VUv+vVX8ddQ==", + "license": "BSD-2-Clause", + "dependencies": { + "@xmldom/xmldom": "^0.8.6", + "argparse": "~1.0.3", + "base64-js": "^1.5.1", + "bluebird": "~3.4.0", + "dingbat-to-unicode": "^1.0.1", + "jszip": "^3.7.1", + "lop": "^0.4.2", + "path-is-absolute": "^1.0.0", + "underscore": "^1.13.1", + "xmlbuilder": "^10.0.0" + }, + "bin": { + "mammoth": "bin/mammoth" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/mammoth/node_modules/@xmldom/xmldom": { + "version": "0.8.11", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.11.tgz", + "integrity": "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/mammoth/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/marked": { + "version": "15.0.12", + "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.12.tgz", + "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/marks-pane": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/marks-pane/-/marks-pane-1.0.9.tgz", + "integrity": "sha512-Ahs4oeG90tbdPWwAJkAAoHg2lRR8lAs9mZXETNPO9hYg3AkjUJBKi1NQ4aaIQZVGrig7c/3NUV1jANl8rFTeMg==", + "license": "MIT" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "license": "MIT", + "peer": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minipass": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", + "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/mlly": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz", + "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.15.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.1" + } + }, + "node_modules/mlly/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "license": "MIT", + "peer": true + }, + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "license": "ISC" + }, + "node_modules/node-releases": { + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "license": "MIT", + "peer": true + }, + "node_modules/normalize.css": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-8.0.1.tgz", + "integrity": "sha512-qizSNPO93t1YUuUhP22btGOo3chcvDFqFaj2TRybP0DMxkHOCTYwp3n34fel4a31ORXy4m1Xq0Gyqpb5m33qIg==", + "license": "MIT" + }, + "node_modules/npm-run-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz", + "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^4.0.0", + "unicorn-magic": "^0.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/nwsapi": { + "version": "2.2.22", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.22.tgz", + "integrity": "sha512-ujSMe1OWVn55euT1ihwCI1ZcAaAU3nxUiDwfDQldc51ZXaB9m2AyOn6/jh1BLe2t/G8xd6uKG1UBF2aZJeg2SQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/option": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/option/-/option-0.2.4.tgz", + "integrity": "sha512-pkEqbDyl8ou5cpq+VsnQbe/WlEy5qS7xPzMS1U55OCG9KPvwFD46zDbxQIj3egJSFc3D+XhYOPUzz49zQAVy7A==", + "license": "BSD-2-Clause" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "license": "(MIT AND Zlib)" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "entities": "^6.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5/node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-webpack": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/path-webpack/-/path-webpack-0.0.3.tgz", + "integrity": "sha512-AmeDxedoo5svf7aB3FYqSAKqMxys014lVKBzy1o/5vv9CtU7U4wgGWL1dA2o6MOzcD53ScN4Jmiq6VbtLz1vIQ==", + "license": "MIT" + }, + "node_modules/pathe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/pathval": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", + "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.16" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/pkg-types/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/playwright": { + "version": "1.56.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.56.1.tgz", + "integrity": "sha512-aFi5B0WovBHTEvpM3DzXTUaeN6eN0qWnTkKx4NQaH4Wvcmc153PdaY2UBdSYKaGYw+UyWXSVyxDUg5DoPEttjw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.56.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.56.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.56.1.tgz", + "integrity": "sha512-hutraynyn31F+Bifme+Ps9Vq59hKuUCz7H1kDOcBs+2oGguKkWTU50bBWrtz34OUWmIwpBTWDxaRPXrIXkgvmQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/plyr": { + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/plyr/-/plyr-3.8.3.tgz", + "integrity": "sha512-0+iI5uw0WRvtKBpgPCkmQQv7ucHVQKTEo6UFJjgJ8cy/JZhy0dQqshHQVitHXV6l2O3MzhgnuvQ95VSkWcWeSw==", + "license": "MIT", + "dependencies": { + "core-js": "^3.45.1", + "custom-event-polyfill": "^1.0.7", + "loadjs": "^4.3.0", + "rangetouch": "^2.0.1", + "url-polyfill": "^1.1.13" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode.vue": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/qrcode.vue/-/qrcode.vue-3.6.0.tgz", + "integrity": "sha512-vQcl2fyHYHMjDO1GguCldJxepq2izQjBkDEEu9NENgfVKP6mv/e2SU62WbqYHGwTgWXLhxZ1NCD1dAZKHQq1fg==", + "license": "MIT", + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/rangetouch": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/rangetouch/-/rangetouch-2.0.1.tgz", + "integrity": "sha512-sln+pNSc8NGaHoLzwNBssFSf/rSYkqeBXzX1AtJlkJiUaVSJSbRAWJk+4omsXkN+EJalzkZhWQ3th1m0FpR5xA==", + "license": "MIT" + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.53.2.tgz", + "integrity": "sha512-MHngMYwGJVi6Fmnk6ISmnk7JAHRNF0UkuucA0CUW3N3a4KnONPEZz+vUanQP/ZC/iY1Qkf3bwPWzyY84wEks1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.53.2", + "@rollup/rollup-android-arm64": "4.53.2", + "@rollup/rollup-darwin-arm64": "4.53.2", + "@rollup/rollup-darwin-x64": "4.53.2", + "@rollup/rollup-freebsd-arm64": "4.53.2", + "@rollup/rollup-freebsd-x64": "4.53.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.53.2", + "@rollup/rollup-linux-arm-musleabihf": "4.53.2", + "@rollup/rollup-linux-arm64-gnu": "4.53.2", + "@rollup/rollup-linux-arm64-musl": "4.53.2", + "@rollup/rollup-linux-loong64-gnu": "4.53.2", + "@rollup/rollup-linux-ppc64-gnu": "4.53.2", + "@rollup/rollup-linux-riscv64-gnu": "4.53.2", + "@rollup/rollup-linux-riscv64-musl": "4.53.2", + "@rollup/rollup-linux-s390x-gnu": "4.53.2", + "@rollup/rollup-linux-x64-gnu": "4.53.2", + "@rollup/rollup-linux-x64-musl": "4.53.2", + "@rollup/rollup-openharmony-arm64": "4.53.2", + "@rollup/rollup-win32-arm64-msvc": "4.53.2", + "@rollup/rollup-win32-ia32-msvc": "4.53.2", + "@rollup/rollup-win32-x64-gnu": "4.53.2", + "@rollup/rollup-win32-x64-msvc": "4.53.2", + "fsevents": "~2.3.2" + } + }, + "node_modules/rrweb-cssom": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz", + "integrity": "sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==", + "dev": true, + "license": "MIT" + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/select": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", + "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "license": "MIT" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true, + "license": "ISC" + }, + "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/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "license": "MIT", + "peer": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "license": "BSD-3-Clause" + }, + "node_modules/srt-support-for-html5-videos": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/srt-support-for-html5-videos/-/srt-support-for-html5-videos-2.6.11.tgz", + "integrity": "sha512-rHsP8iaE7vwhPHpaJPj178YZn6ak1jZvjtEA+XrRm9hhOfC3KZVK/TdNyZIi+fBFtSC+EkscWkyNFKiMuLE4IQ==" + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", + "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", + "dev": true, + "license": "MIT" + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-literal": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz", + "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^9.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/strip-literal/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==", + "dev": true, + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true, + "license": "MIT" + }, + "node_modules/synckit": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.3.tgz", + "integrity": "sha512-JJoOEKTfL1urb1mDoEblhD9NhEbWmq9jHEMEnxoC4ujUaZ4itA8vKgwkFAyNClgxplLi9tsUKX+EduK0p/l7sg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/tapable": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", + "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tar-mini": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/tar-mini/-/tar-mini-0.2.0.tgz", + "integrity": "sha512-+qfUHz700DWnRutdUsxRRVZ38G1Qr27OetwaMYTdg8hcPxf46U0S1Zf76dQMWRBmusOt2ZCK5kbIaiLkoGO7WQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/terser": { + "version": "5.44.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.44.1.tgz", + "integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==", + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.15.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.14", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz", + "integrity": "sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "jest-worker": "^27.4.5", + "schema-utils": "^4.3.0", + "serialize-javascript": "^6.0.2", + "terser": "^5.31.1" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT", + "peer": true + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", + "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true, + "license": "MIT" + }, + "node_modules/tiny-emitter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", + "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==", + "license": "MIT" + }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinypool": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", + "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/tinyrainbow": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", + "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz", + "integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tldts": { + "version": "6.1.86", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz", + "integrity": "sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tldts-core": "^6.1.86" + }, + "bin": { + "tldts": "bin/cli.js" + } + }, + "node_modules/tldts-core": { + "version": "6.1.86", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.86.tgz", + "integrity": "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.2.tgz", + "integrity": "sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tldts": "^6.1.32" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tr46": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz", + "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/ts-api-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz", + "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD" + }, + "node_modules/type": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", + "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==", + "license": "ISC" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "devOptional": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ufo": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz", + "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==", + "dev": true, + "license": "MIT" + }, + "node_modules/underscore": { + "version": "1.13.7", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.7.tgz", + "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==", + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "license": "MIT" + }, + "node_modules/unicorn-magic": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", + "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unplugin": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.16.1.tgz", + "integrity": "sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.14.0", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", + "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url-polyfill": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/url-polyfill/-/url-polyfill-1.1.14.tgz", + "integrity": "sha512-p4f3TTAG6ADVF3mwbXw7hGw+QJyw5CnNGvYh5fCuQQZIiuKUswqcznyV3pGDP9j0TSmC4UvRKm8kl1QsX1diiQ==", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/vite": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz", + "integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite-node": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", + "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.4.1", + "es-module-lexer": "^1.7.0", + "pathe": "^2.0.3", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vite-node/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite-plugin-checker": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/vite-plugin-checker/-/vite-plugin-checker-0.10.3.tgz", + "integrity": "sha512-f4sekUcDPF+T+GdbbE8idb1i2YplBAoH+SfRS0e/WRBWb2rYb1Jf5Pimll0Rj+3JgIYWwG2K5LtBPCXxoibkLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "chokidar": "^4.0.3", + "npm-run-path": "^6.0.0", + "picocolors": "^1.1.1", + "picomatch": "^4.0.3", + "strip-ansi": "^7.1.0", + "tiny-invariant": "^1.3.3", + "tinyglobby": "^0.2.14", + "vscode-uri": "^3.1.0" + }, + "engines": { + "node": ">=14.16" + }, + "peerDependencies": { + "@biomejs/biome": ">=1.7", + "eslint": ">=7", + "meow": "^13.2.0", + "optionator": "^0.9.4", + "stylelint": ">=16", + "typescript": "*", + "vite": ">=2.0.0", + "vls": "*", + "vti": "*", + "vue-tsc": "~2.2.10 || ^3.0.0" + }, + "peerDependenciesMeta": { + "@biomejs/biome": { + "optional": true + }, + "eslint": { + "optional": true + }, + "meow": { + "optional": true + }, + "optionator": { + "optional": true + }, + "stylelint": { + "optional": true + }, + "typescript": { + "optional": true + }, + "vls": { + "optional": true + }, + "vti": { + "optional": true + }, + "vue-tsc": { + "optional": true + } + } + }, + "node_modules/vite-plugin-checker/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/vite-plugin-checker/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/vite-plugin-compression2": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/vite-plugin-compression2/-/vite-plugin-compression2-1.4.0.tgz", + "integrity": "sha512-UEk0Bq1IkkwqbDLoLOHZ8WTmN1QbvR28fvNl2liB88/6SG1oLrTVkxfjqW3pdla/rKQ6QXn+pJpv3GBbl+k56g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.1.0", + "tar-mini": "^0.2.0" + }, + "peerDependencies": { + "vite": "^2.0.0||^3.0.0||^4.0.0||^5.0.0 ||^6.0.0" + } + }, + "node_modules/vite/node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/vitest": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz", + "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/expect": "3.2.4", + "@vitest/mocker": "3.2.4", + "@vitest/pretty-format": "^3.2.4", + "@vitest/runner": "3.2.4", + "@vitest/snapshot": "3.2.4", + "@vitest/spy": "3.2.4", + "@vitest/utils": "3.2.4", + "chai": "^5.2.0", + "debug": "^4.4.1", + "expect-type": "^1.2.1", + "magic-string": "^0.30.17", + "pathe": "^2.0.3", + "picomatch": "^4.0.2", + "std-env": "^3.9.0", + "tinybench": "^2.9.0", + "tinyexec": "^0.3.2", + "tinyglobby": "^0.2.14", + "tinypool": "^1.1.1", + "tinyrainbow": "^2.0.0", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", + "vite-node": "3.2.4", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/debug": "^4.1.12", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@vitest/browser": "3.2.4", + "@vitest/ui": "3.2.4", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/debug": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/vitest/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/vscode-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz", + "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/vue": { + "version": "3.5.24", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.24.tgz", + "integrity": "sha512-uTHDOpVQTMjcGgrqFPSb8iO2m1DUvo+WbGqoXQz8Y1CeBYQ0FXf2z1gLRaBtHjlRz7zZUBHxjVB5VTLzYkvftg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.24", + "@vue/compiler-sfc": "3.5.24", + "@vue/runtime-dom": "3.5.24", + "@vue/server-renderer": "3.5.24", + "@vue/shared": "3.5.24" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-eslint-parser": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.4.3.tgz", + "integrity": "sha512-2rYRLWlIpaiN8xbPiDyXZXRgLGOtWxERV7ND5fFAv5qo1D2N9Fu9MNajBNc6o13lZ+24DAWCkQCvj4klgmcITg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4", + "eslint-scope": "^7.1.1", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.1", + "esquery": "^1.4.0", + "lodash": "^4.17.21", + "semver": "^7.3.6" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=6.0.0" + } + }, + "node_modules/vue-eslint-parser/node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/vue-i18n": { + "version": "9.14.5", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-9.14.5.tgz", + "integrity": "sha512-0jQ9Em3ymWngyiIkj0+c/k7WgaPO+TNzjKSNq9BvBQaKJECqn9cd9fL4tkDhB5G1QBskGl9YxxbDAhgbFtpe2g==", + "license": "MIT", + "dependencies": { + "@intlify/core-base": "9.14.5", + "@intlify/shared": "9.14.5", + "@vue/devtools-api": "^6.5.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/vue-lazyload": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/vue-lazyload/-/vue-lazyload-3.0.0.tgz", + "integrity": "sha512-h2keL/Rj550dLgesgOtXJS9qOiSMmuJNeVlfNAYV1/IYwOQYaWk5mFJlwRxmZDK9YC5gECcFLYYj7z1lKSf9ug==", + "license": "MIT" + }, + "node_modules/vue-router": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.3.tgz", + "integrity": "sha512-ARBedLm9YlbvQomnmq91Os7ck6efydTSpRP3nuOKCvgJOHNrhRoJDSKtee8kcL1Vf7nz6U+PMBL+hTvR3bTVQg==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.4" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/vue-tsc": { + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-2.2.12.tgz", + "integrity": "sha512-P7OP77b2h/Pmk+lZdJ0YWs+5tJ6J2+uOQPo7tlBnY44QqQSPYvS0qVT4wqDJgwrZaLe47etJLLQRFia71GYITw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.15", + "@vue/language-core": "2.2.12" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", + "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/w3c-xmlserializer/node_modules/xml-name-validator": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/watchpack": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.4.tgz", + "integrity": "sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==", + "license": "MIT", + "peer": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/webpack": { + "version": "5.103.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.103.0.tgz", + "integrity": "sha512-HU1JOuV1OavsZ+mfigY0j8d1TgQgbZ6M+J75zDkpEAwYeXjWSqrGJtgnPblJjd/mAyTNQ7ygw0MiKOn6etz8yw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.8", + "@types/json-schema": "^7.0.15", + "@webassemblyjs/ast": "^1.14.1", + "@webassemblyjs/wasm-edit": "^1.14.1", + "@webassemblyjs/wasm-parser": "^1.14.1", + "acorn": "^8.15.0", + "acorn-import-phases": "^1.0.3", + "browserslist": "^4.26.3", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.17.3", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.11", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.3.1", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^4.3.3", + "tapable": "^2.3.0", + "terser-webpack-plugin": "^5.3.11", + "watchpack": "^2.4.4", + "webpack-sources": "^3.3.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-sources": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", + "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/webpack/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webpack/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "license": "BSD-2-Clause", + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/webpack/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT", + "peer": true + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", + "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/whatwg-encoding": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz", + "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/whatwg-mimetype": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", + "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/whatwg-url": { + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz", + "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tr46": "^5.1.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/ws": { + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12" + } + }, + "node_modules/xmlbuilder": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-10.1.1.tgz", + "integrity": "sha512-OyzrcFLL/nb6fMGHbiRDuPup9ljBycsdCypwuyg5AAHvyWzGfChJpCXMG88AGTIMFhGZ9RccFN1e6lhg3hkwKg==", + "license": "MIT", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true, + "license": "MIT" + }, + "node_modules/yaml": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + } + }, + "node_modules/yaml-eslint-parser": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/yaml-eslint-parser/-/yaml-eslint-parser-1.3.0.tgz", + "integrity": "sha512-E/+VitOorXSLiAqtTd7Yqax0/pAS3xaYMP+AUUJGOK1OZG3rhcj9fcJOM5HJ2VrP1FrStVCWr1muTfQCdj4tAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.0.0", + "yaml": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/frontend/package.json b/frontend/package.json index 90c97a8b9f..b9421627ef 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,12 +9,11 @@ }, "scripts": { "build": "rm -rf ../backend/http/dist/* && rm -rf ../backend/http/embed/* && vite build --outDir ../backend/http/dist && cp -r ../backend/http/dist/* ../backend/http/embed", - "build:windows": "vite build --outDir ../backend/http/dist && robocopy ../backend/http/dist ../backend/http/embed /e", "build:docker": "vite build", "watch": "vite build --watch --outDir ../backend/http/dist", "typecheck": "vue-tsc -p ./tsconfig.json --noEmit", - "lint": "eslint --ext .js,.vue,ts src", - "lint:fix": "eslint --fix src/", + "lint": "eslint --ext .js,.vue,.ts src/", + "lint:fix": "eslint --fix --ext .js,.vue,.ts src/", "i18n:sync": "node ./scripts/sync-translations.js", "i18n:check": "node ./scripts/sync-translations.js --check", "format": "prettier --write .", diff --git a/frontend/public/config.generated.yaml b/frontend/public/config.generated.yaml index 4f91590937..69bbb5cecb 100644 --- a/frontend/public/config.generated.yaml +++ b/frontend/public/config.generated.yaml @@ -9,6 +9,7 @@ server: disablePreviewResize: false # disable resizing of previews for faster loading over slow connections disableTypeDetectionByHeader: false # disable type detection by header, useful if filesystem is slow. port: 80 # port to listen on + listen: "" # address to listen on (default: 0.0.0.0) baseURL: "/" # base URL for the server, the subpath that the server is running on. logging: - levels: "" # separated list of log levels to enable. (eg. "info|warning|error|debug") @@ -25,8 +26,8 @@ server: denyByDefault: false # deny access unless an "allow" access rule was specifically created. private: false # designate as source as private -- currently just means no sharing permitted. disabled: false # disable the source, this is useful so you don't need to remove it from the config file - indexingIntervalMinutes: 0 # optional manual overide interval in minutes to re-index the source - disableIndexing: false # disable the indexing of this source + indexingIntervalMinutes: 0 # (optional) not recommended: manual overide interval in minutes to re-index the source + disableIndexing: false # (optional) not recommended: disable the indexing of this source conditionals: # conditional rules to apply when indexing to include/exclude certain items ignoreHidden: false # exclude hidden files and folders. ignoreZeroSizeFolders: false # ignore folders with 0 size @@ -42,12 +43,13 @@ server: fileName: "" # (global) exclude files that match these names. Eg. "file.txt" or "test.csv" folderName: "" # (global) exclude folders that match these names. Eg. "folder" or "subfolder" viewable: false # Enable viewing in UI but exclude from indexing - defaultUserScope: "/" # default "/" should match folders under path + defaultUserScope: "/" # defaults to root of index "/" should match folders under path defaultEnabled: true # should be added as a default source for new users? - createUserDir: false # create a user directory for each user + createUserDir: false # create a user directory for each user under defaultUserScope + username externalUrl: "" # used by share links if set (eg. http://mydomain.com) internalUrl: "" # used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080) cacheDir: "tmp" # path to the cache directory, used for thumbnails and other cached files + cacheDirCleanup: true # whether to automatically cleanup the cache directory (default: true) maxArchiveSize: 50 # max pre-archive combined size of files/folder that are allowed to be archived (in GB) filesystem: # filesystem settings createFilePermission: "644" # Unix permissions like 644, 755, 2755 (default: 644) validate:required,file_permission @@ -133,16 +135,16 @@ userDefaults: lockPassword: false # disable the user from changing their password disableSettings: false # disable the user from viewing the settings page preview: - disableHideSidebar: false # disable the hide sidebar preview for previews and editors - highQuality: false # generate high quality thumbnail preview images - image: false # show thumbnail preview image for image files - video: false # show thumbnail preview image for video files - motionVideoPreview: false # show multiple frames for videos in thumbnail preview when hovering - office: false # show thumbnail preview image for office files - popup: false # show larger popup preview when hovering over thumbnail - autoplayMedia: false # autoplay media files in preview - defaultMediaPlayer: false # disable html5 media player and use the default media player - folder: false # show thumbnail preview image for folder files + disableHideSidebar: false # keep sidebar open when previewing files + highQuality: true # use high quality thumbnails + image: true # show thumbnails for image files + video: true # show thumbnails for video files + motionVideoPreview: true # show multiple frames for videos in thumbnail preview when hovering + office: true # show thumbnails for office files + popup: true # show larger popup preview when hovering over thumbnail + autoplayMedia: true # autoplay media files in preview + defaultMediaPlayer: false # disable the styled feature-rich media player for browser default + folder: true # show thumbnails for folders that have previewable contents permissions: api: false # allow api access admin: false # allow admin access @@ -151,7 +153,7 @@ userDefaults: realtime: false # allow realtime updates delete: false # allow deleting files create: false # allow creating or uploading files - download: false # allow downloading files + download: true # allow downloading files loginMethod: "password" # login method to use: eg. password, proxy, oidc disableUpdateNotifications: false # disable update notifications banner for admin users deleteWithoutConfirming: false # delete files without confirmation @@ -159,11 +161,10 @@ userDefaults: maxConcurrentUpload: 10 uploadChunkSizeMb: 10 clearAll: false - disableOnlyOfficeExt: ".md .txt .pdf" # list of file extensions to disable onlyoffice editor for + disableOnlyOfficeExt: ".md .txt .pdf .html .xml" # list of file extensions to disable onlyoffice editor for customTheme: "" # Name of theme to use chosen from custom themes config. showSelectMultiple: false # show select multiple files on desktop debugOffice: false # debug onlyoffice editor - defaultLandingPage: "" # default landing page to use if no redirect is specified: eg. /files/mysource/mysubpath, /settings, etc. integrations: office: # validate:omitempty url: "" # The URL to the OnlyOffice Document Server, needs to be accessible to the user. validate:required diff --git a/frontend/public/img/icons/favicon-light.svg b/frontend/public/img/icons/favicon-light.svg new file mode 100644 index 0000000000..e62bb1c8fc --- /dev/null +++ b/frontend/public/img/icons/favicon-light.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/frontend/public/index.html b/frontend/public/index.html index 5e712a9572..d54f522413 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -37,7 +37,6 @@ @@ -225,13 +198,4 @@ export default { filter: contrast(0.8) hue-rotate(200deg) saturate(1); } -.gallery-size { - display: flex; - width: fit-content; - padding: 0.5em; - margin-bottom: 0.5em; -} -input[type="range"] { - accent-color: var(--primaryColor); -} diff --git a/frontend/src/components/ButtonGroup.vue b/frontend/src/components/ButtonGroup.vue index 0fe26a939b..b41d74256a 100644 --- a/frontend/src/components/ButtonGroup.vue +++ b/frontend/src/components/ButtonGroup.vue @@ -1,6 +1,6 @@ @@ -87,6 +87,7 @@ export default { }, confirm() { this.onConfirm(); + mutations.setReload(true); mutations.closeHovers(); }, }, diff --git a/frontend/src/components/prompts/CreateApi.vue b/frontend/src/components/prompts/CreateApi.vue index 6eb8c6c919..4006625717 100644 --- a/frontend/src/components/prompts/CreateApi.vue +++ b/frontend/src/components/prompts/CreateApi.vue @@ -29,12 +29,12 @@
- -
@@ -90,7 +90,7 @@ export default { await usersApi.createApiKey(params); // Emit event to refresh API keys list eventBus.emit('apiKeysChanged'); - notify.showSuccess($t("api.createKeySuccess")); + notify.showSuccessToast(this.$t("api.createKeySuccess")); mutations.closeHovers(); } catch (error) { notify.showError($t("api.createKeyFailed")); diff --git a/frontend/src/components/prompts/Delete.vue b/frontend/src/components/prompts/Delete.vue index 4c0a592634..f04d56664f 100644 --- a/frontend/src/components/prompts/Delete.vue +++ b/frontend/src/components/prompts/Delete.vue @@ -11,13 +11,13 @@
-
@@ -71,12 +71,12 @@ export default { const currentView = getters.currentView() if (state.isSearchActive || currentView == "preview") { if (getters.isShare()) { - await publicApi.remove(state.selected[0].path); + await publicApi.remove(state.shareInfo.hash, state.selected[0].path); } else { await filesApi.remove(state.selected[0].source, state.selected[0].path); } buttons.success("delete"); - notify.showSuccess("Deleted item successfully"); + notify.showSuccessToast("Deleted item successfully"); mutations.closeHovers(); mutations.setDeletedItem(true); mutations.setReload(true); @@ -84,12 +84,12 @@ export default { } if (!this.isListing) { if (getters.isShare()) { - await publicApi.remove(state.req.items[state.selected[0]].path); + await publicApi.remove(state.shareInfo.hash, state.req.items[state.selected[0]].path); } else { await filesApi.remove(state.req.items.source, state.req.items[state.selected[0]].path); } buttons.success("delete"); - notify.showSuccess("Deleted item successfully"); + notify.showSuccessToast("Deleted item successfully"); mutations.closeHovers(); return; } @@ -103,7 +103,7 @@ export default { let promises = []; for (let index of state.selected) { if (getters.isShare()) { - promises.push(publicApi.remove(state.req.items[index].path)); + promises.push(publicApi.remove(state.shareInfo.hash, state.req.items[index].path)); } else { promises.push(filesApi.remove(state.req.source, state.req.items[index].path)); } @@ -111,11 +111,11 @@ export default { mutations.resetSelected(); await Promise.all(promises); buttons.success("delete"); - notify.showSuccess(this.$t('prompts.deleted')); + notify.showSuccessToast(this.$t('prompts.deleted')); mutations.setReload(true); // Handle reload as neededs } catch (e) { buttons.done("delete"); - notify.showError(e); + console.error(e); if (this.isListing) mutations.setReload(true); // Handle reload as needed } }, diff --git a/frontend/src/components/prompts/DeleteUser.vue b/frontend/src/components/prompts/DeleteUser.vue index b6fc4ee473..7f0cdb8972 100644 --- a/frontend/src/components/prompts/DeleteUser.vue +++ b/frontend/src/components/prompts/DeleteUser.vue @@ -4,11 +4,11 @@
@@ -35,7 +35,7 @@ export default { await usersApi.remove(this.user.id); // Emit event to refresh user list eventBus.emit('usersChanged'); - notify.showSuccess(this.$t("settings.userDeleted")); + notify.showSuccessToast(this.$t("settings.userDeleted")); mutations.closeHovers(); } catch (e) { e.message === "403" diff --git a/frontend/src/components/prompts/Download.vue b/frontend/src/components/prompts/Download.vue index d18c932df8..92d771fc2f 100644 --- a/frontend/src/components/prompts/Download.vue +++ b/frontend/src/components/prompts/Download.vue @@ -9,6 +9,7 @@ v-for="(ext, format) in formats" :key="format" class="button button--block" + :aria-label="`Download as ${format}`" @click="currentPrompt.confirm(format)" v-focus > diff --git a/frontend/src/components/prompts/FileList.vue b/frontend/src/components/prompts/FileList.vue index d7093e1ea2..3d9dd775ce 100644 --- a/frontend/src/components/prompts/FileList.vue +++ b/frontend/src/components/prompts/FileList.vue @@ -16,16 +16,17 @@ -
{{ $t('search.path') }} +
{{ $t('general.path', { suffix: ':' }) }} {{ sourcePath.path }}
  • - + {{ item.name }}
@@ -33,9 +34,9 @@
-
@@ -46,7 +47,6 @@ import { state, mutations, getters } from "@/store"; import { url } from "@/utils"; import { filesApi, publicApi } from "@/api"; import Icon from "@/components/files/Icon.vue"; -import { shareInfo } from "@/utils/constants"; export default { name: "file-list", @@ -58,6 +58,10 @@ export default { type: String, default: null, }, + browseShare: { + type: String, + default: null, // Share hash to browse + }, fileList: { type: Array, default: null, @@ -74,11 +78,12 @@ export default { data: function () { const initialSource = this.browseSource || state.req.source; // Use current path if browsing the same source as current, otherwise start at root - const initialPath = this.browseSource && this.browseSource !== state.req.source ? "/" : state.req.path; + const initialPath = (this.browseSource && this.browseSource !== state.req.source) || this.browseShare ? "/" : state.req.path; return { items: [], path: initialPath, source: initialSource, + shareHash: this.browseShare || null, touches: { id: "", count: 0, @@ -111,7 +116,7 @@ export default { return this.fileList !== null; }, showSourceSelector() { - return this.availableSources.length > 1 && !this.isDisplayMode && !getters.isShare(); + return this.availableSources.length > 1 && !this.isDisplayMode && !getters.isShare() && !this.browseShare; }, }, watch: { @@ -121,6 +126,11 @@ export default { this.resetToSource(newSource); } }, + browseShare(newHash) { + if (newHash && newHash !== this.shareHash) { + this.resetToShare(newHash); + } + }, currentSource(newSource) { if (newSource && newSource !== this.source) { this.resetToSource(newSource); @@ -131,6 +141,9 @@ export default { if (this.isDisplayMode) { // Display mode: use provided fileList this.fillOptionsFromList(); + } else if (this.browseShare) { + // Browse a specific share + publicApi.fetchPub("/", this.browseShare).then(this.fillOptions); } else { // Normal browse mode: fetch files const sourceToUse = this.currentSource; @@ -155,11 +168,22 @@ export default { // Reset to the appropriate path for the new source this.path = newPath; this.source = newSource; + this.shareHash = null; this.selected = null; this.selectedSource = null; // Fetch files for the new source filesApi.fetchFiles(newSource, newPath).then(this.fillOptions); }, + resetToShare(newHash) { + // Reset to the share root + this.path = "/"; + this.shareHash = newHash; + this.source = null; + this.selected = null; + this.selectedSource = null; + // Fetch files for the share + publicApi.fetchPub("/", newHash).then(this.fillOptions); + }, fillOptions(req) { // Sets the current path and resets // the current items. @@ -206,8 +230,10 @@ export default { let clickedItem = this.items.find(item => item.path === path); let sourceToUse = clickedItem ? clickedItem.source : this.source; this.path = path; - if (getters.isShare()) { - publicApi.fetchPub(path, shareInfo.hash).then(this.fillOptions); + if (this.browseShare || getters.isShare()) { + // Browsing a share - use public API + const hashToUse = this.browseShare || state.shareInfo?.hash; + publicApi.fetchPub(path, hashToUse).then(this.fillOptions); } else { this.source = sourceToUse; filesApi.fetchFiles(sourceToUse, path).then(this.fillOptions); @@ -332,6 +358,7 @@ export default { align-items: center; padding: 0.5rem; cursor: pointer; + user-select: none; } .file-item:hover { @@ -348,6 +375,7 @@ export default { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + user-select: none; } .file-list { diff --git a/frontend/src/components/prompts/Generic.vue b/frontend/src/components/prompts/Generic.vue index 8f196f6836..00a6ffe31c 100644 --- a/frontend/src/components/prompts/Generic.vue +++ b/frontend/src/components/prompts/Generic.vue @@ -48,7 +48,7 @@ export default { // Otherwise, return a default close button return [ { - label: this.$t('buttons.close'), + label: this.$t('general.close'), action: () => { // Just close the prompt }, diff --git a/frontend/src/components/prompts/Help.vue b/frontend/src/components/prompts/Help.vue index bd33c68c97..1eaaee64f1 100644 --- a/frontend/src/components/prompts/Help.vue +++ b/frontend/src/components/prompts/Help.vue @@ -1,6 +1,6 @@ diff --git a/frontend/src/components/prompts/IconPicker.vue b/frontend/src/components/prompts/IconPicker.vue new file mode 100644 index 0000000000..eaef2a05ea --- /dev/null +++ b/frontend/src/components/prompts/IconPicker.vue @@ -0,0 +1,315 @@ + + + + + + diff --git a/frontend/src/components/prompts/Info.vue b/frontend/src/components/prompts/Info.vue index 5c4d0d2519..2fd590e7e0 100644 --- a/frontend/src/components/prompts/Info.vue +++ b/frontend/src/components/prompts/Info.vue @@ -29,7 +29,7 @@ {{ humanTime }}
- {{ $t("prompts.source") }} + {{ $t("general.source") }} {{ source }}
@@ -38,11 +38,11 @@
{{ $t("prompts.hidden") }} - {{ hidden ? "✓" : "✗" }} + {{ hidden ? "✓" : "✗" }}
{{ $t("prompts.hasPreview") }} - {{ hasPreview ? "✓" : "✗" }} + {{ hasPreview ? "✓" : "✗" }}
@@ -57,6 +57,15 @@ {{ req.numDirs }} + + +
+

{{ $t("prompts.additionalInfo") }}

+
+ {{ info.label }} + {{ info.value }} +
+

{{ $t("prompts.checksums") }}

@@ -70,13 +79,8 @@ -
@@ -85,47 +89,23 @@
- -
- - -
-

{{ $t("prompts.additionalInfo") }}

-
- {{ info.label }} - {{ info.value }} -
-
-
@@ -328,7 +308,7 @@ export default { try { await navigator.clipboard.writeText(this.hashResult); - notify.showSuccess(this.$t("prompts.hashCopied")); + notify.showSuccessToast(this.$t("prompts.hashCopied")); } catch (err) { // Fallback for older browsers const textArea = document.createElement("textarea"); @@ -339,7 +319,7 @@ export default { textArea.select(); try { document.execCommand("copy"); - notify.showSuccess(this.$t("prompts.hashCopied")); + notify.showSuccessToast(this.$t("prompts.hashCopied")); } catch (e) { notify.showError(this.$t("prompts.errorCopyingHash")); } diff --git a/frontend/src/components/prompts/MoveCopy.vue b/frontend/src/components/prompts/MoveCopy.vue index b5c322a44c..859ca3abcd 100644 --- a/frontend/src/components/prompts/MoveCopy.vue +++ b/frontend/src/components/prompts/MoveCopy.vue @@ -1,36 +1,59 @@ + + + diff --git a/frontend/src/components/prompts/PlaybackQueue.vue b/frontend/src/components/prompts/PlaybackQueue.vue index 863665a4c1..d6628969d1 100644 --- a/frontend/src/components/prompts/PlaybackQueue.vue +++ b/frontend/src/components/prompts/PlaybackQueue.vue @@ -21,7 +21,7 @@
@@ -55,8 +55,8 @@ swap_vert {{ $t('player.changePlaybackMode') }} -
@@ -127,7 +127,6 @@ export default { handler(newVal) { if (newVal) { // Prompt just became visible, scroll to current item - console.log('PlaybackQueue prompt became visible, scrolling to current item'); this.$nextTick(() => { setTimeout(() => { this.scrollToCurrentItem(); @@ -225,7 +224,7 @@ export default { scrollToCurrentItem() { this.$nextTick(() => { const list = this.$refs.QueueList; - const currentItem = list.querySelector('.listing-item.current'); + const currentItem = list.querySelector('.item.current'); if (currentItem) { // Calculate the scroll position to center the current item const itemTop = currentItem.offsetTop; @@ -306,7 +305,7 @@ export default { border-radius: 12px; } -.listing-item { +.item { display: flex; align-items: center; text-align: center; @@ -317,17 +316,17 @@ export default { border-radius: 12px; } -.listing-item:hover { +.item:hover { background: var(--surfaceSecondary); } -.listing-item.current { +.item.current { background: var(--primaryColor); color: white; } -.listing-item.current .item-icon i, -.listing-item.current .current-indicator { +.item.current .item-icon i, +.item.current .current-indicator { color: white; } diff --git a/frontend/src/components/prompts/Prompts.vue b/frontend/src/components/prompts/Prompts.vue index 2abf210efa..9760e5d669 100644 --- a/frontend/src/components/prompts/Prompts.vue +++ b/frontend/src/components/prompts/Prompts.vue @@ -1,9 +1,17 @@ @@ -25,6 +33,8 @@ import ShareDelete from "./ShareDelete.vue"; import DeleteUser from "./DeleteUser.vue"; import CreateApi from "./CreateApi.vue"; import ActionApi from "./ActionApi.vue"; +import SidebarLinks from "./SidebarLinks.vue"; +import IconPicker from "./IconPicker.vue"; import Sidebar from "../sidebar/Sidebar.vue"; import UserEdit from "./UserEdit.vue"; import buttons from "@/utils/buttons"; @@ -33,10 +43,12 @@ import Access from "./Access.vue"; import Password from "./Password.vue"; import PlaybackQueue from "./PlaybackQueue.vue"; import FileList from "./FileList.vue"; +import PathPicker from "./PathPicker.vue"; import SaveBeforeExit from "./SaveBeforeExit.vue"; import CopyPasteConfirm from "./CopyPasteConfirm.vue"; import CloseWithActiveUploads from "./CloseWithActiveUploads.vue"; import Generic from "./Generic.vue"; +import ShareInfo from "./ShareInfo.vue"; import { state, getters, mutations } from "@/store"; // Import your custom store export default { @@ -62,14 +74,18 @@ export default { DeleteUser, CreateApi, ActionApi, + SidebarLinks, + IconPicker, Access, Password, PlaybackQueue, "file-list": FileList, + PathPicker, SaveBeforeExit, CopyPasteConfirm, CloseWithActiveUploads, generic: Generic, + ShareInfo, }, data() { return { @@ -86,6 +102,10 @@ export default { if (!currentPrompt) return; let prompt = this.$refs[currentPrompt.name]; + // Handle array refs (Vue 3 style) + if (Array.isArray(prompt)) { + prompt = prompt[0]; + } // Esc! if (event.keyCode === 27) { @@ -95,7 +115,7 @@ export default { event.preventDefault(); } // Enter - if (event.keyCode === 13) { + if (event.keyCode === 13 && prompt) { switch (currentPrompt.name) { case "delete": prompt.submit(); @@ -118,39 +138,27 @@ export default { }); }, computed: { - promptLabel() { - return getters.currentPromptName() + "-prompt"; - }, - currentPromptName() { - return getters.currentPromptName(); - }, - currentPrompt() { - if (!getters.currentPrompt()) { - return { - props: {}, - }; - } - return getters.currentPrompt(); - }, - currentPromptProps() { - const prompt = this.currentPrompt; - const promptName = this.currentPromptName; - // For move and copy prompts, add the operation prop - if (promptName === "move" || promptName === "copy") { - return { - ...prompt.props, - operation: promptName, - }; - } - return prompt.props; + prompts() { + return state.prompts || []; }, plugins() { return state.plugins; }, - showOverlay() { - return getters.currentPromptName() !== "" && getters.currentPromptName() !== "ContextMenu" && getters.currentPromptName() !== "OverflowMenu"; + isDarkMode() { + return getters.isDarkMode(); + }, + }, + methods: { + getPropsForPrompt(prompt) { + // For move and copy prompts, add the operation prop + if (prompt.name === "move" || prompt.name === "copy") { + return { + ...prompt.props, + operation: prompt.name, + }; + } + return prompt.props || {}; }, }, - methods: {}, }; diff --git a/frontend/src/components/prompts/Rename.vue b/frontend/src/components/prompts/Rename.vue index fc0da1a420..5ec495ff31 100644 --- a/frontend/src/components/prompts/Rename.vue +++ b/frontend/src/components/prompts/Rename.vue @@ -5,7 +5,16 @@

{{ $t("prompts.renameMessage") }}

- + + . + +
+ +

@@ -18,13 +27,13 @@

- -
@@ -42,22 +51,59 @@ export default { } }, data() { + // Separate filename and extension for avoid renmame mistakenly the extension too + const itemName = this.item.name; + + if (this.item.type !== 'directory') { + const lastDotIndex = this.item.name.lastIndexOf('.'); + const hasExtension = lastDotIndex > 0; + return { + fileName: hasExtension ? itemName.substring(0, lastDotIndex) : itemName, + fileExtension: hasExtension ? itemName.substring(lastDotIndex + 1) : "", + name: itemName, + }; + } return { - name: this.item?.name || "", + fileName: "", + fileExtension: "", + name: itemName, }; }, computed: { closeHovers() { return mutations.closeHovers; }, - oldName() { - return this.item?.name || ""; - }, validation() { return this.validateFileName(this.name); + }, + canRename() { + // Enable the button only if the name is different from the original, and if the filename field is not empty + const hasValidFileName = this.item.type === 'directory' + ? this.name.trim() !== '' + : this.fileName.trim() !== ''; + return this.validation.valid && + this.name !== this.item.name && + hasValidFileName; } }, + mounted() { + this.$nextTick(() => { + // Auto-focus filename input field + if (this.item.type !== 'directory') { + const filenameInput = this.$el.querySelector('.filename-input'); + filenameInput?.select(); + } + }); + }, methods: { + updateFullName() { + // Combine filename and extension + if (this.item.type !== 'directory') { + this.name = this.fileExtension + ? `${this.fileName}.${this.fileExtension}` + : this.fileName; + } + }, /** * @param {string} value */ @@ -78,10 +124,9 @@ export default { // Check if the item already exists for (const item of state.req.items) { + if (item.path === this.item.path) continue; if (item.name.toLowerCase() === value.toLowerCase()) { - if (isFolder === (item.type === "directory")) { - return { valid: false, reason: 'conflict' }; - } + return { valid: false, reason: 'conflict' }; } } @@ -92,10 +137,7 @@ export default { if (this.name.endsWith("/") || this.name.endsWith("\\")) { this.name = this.name.substring(0, this.name.length - 1); } - if (!this.validation.valid) { - return; - } - + 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("\\")) { @@ -105,11 +147,6 @@ export default { let newPath = sourcePath.substring(0, sourcePath.lastIndexOf("/")); newPath = `${newPath}/${this.name}`; try { - if (this.name === this.item.name) { - mutations.closeHovers(); - return; - } - const items = [{ from: this.item.path, fromSource: this.item.source, @@ -118,13 +155,15 @@ export default { }]; if (getters.isShare()) { - await publicApi.moveCopy(items, "move"); + await publicApi.moveCopy(state.shareInfo.hash, items, "move"); } else { await filesApi.moveCopy(items, "move"); } + notify.showSuccess(this.$t("prompts.renameSuccess")); + mutations.setReload(true); mutations.closeHovers(); } catch (error) { - notify.showError(error); + console.error(error); } }, }, @@ -147,4 +186,18 @@ export default { opacity: 0.5; cursor: not-allowed; } + +.filename-inputs { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.extension-input { + width: 80px; +} + +.extension-separator { + font-weight: bold; +} diff --git a/frontend/src/components/prompts/Replace.vue b/frontend/src/components/prompts/Replace.vue index fe258be0a6..f83a4a8f82 100644 --- a/frontend/src/components/prompts/Replace.vue +++ b/frontend/src/components/prompts/Replace.vue @@ -8,13 +8,13 @@
- -
diff --git a/frontend/src/components/prompts/ReplaceRename.vue b/frontend/src/components/prompts/ReplaceRename.vue index fcdd191abc..bde7218d24 100644 --- a/frontend/src/components/prompts/ReplaceRename.vue +++ b/frontend/src/components/prompts/ReplaceRename.vue @@ -7,18 +7,19 @@

{{ $t("prompts.replaceMessage") }}

-
@@ -32,10 +33,14 @@ export default { currentPrompt() { return getters.currentPrompt(); // Access the getter directly from the store }, + isSameFile() { + // Check if the current prompt has props indicating same file + return this.currentPrompt?.props?.isSameFile === true; + }, }, methods: { closeHovers() { - mutations.closeHovers(); + mutations.closeTopHover(); }, }, }; diff --git a/frontend/src/components/prompts/Share.vue b/frontend/src/components/prompts/Share.vue index 3076e373fa..285a9033b1 100644 --- a/frontend/src/components/prompts/Share.vue +++ b/frontend/src/components/prompts/Share.vue @@ -1,291 +1,306 @@ @@ -298,6 +313,7 @@ import { fromNow } from "@/utils/moment"; import { buildItemUrl, fixDownloadURL } from "@/utils/url"; import ToggleSwitch from "@/components/settings/ToggleSwitch.vue"; import SettingsItem from "@/components/settings/SettingsItem.vue"; +import FileList from "./FileList.vue"; import { globalVars } from "@/utils/constants"; import { eventBus } from "@/store/eventBus"; //import ViewMode from "@/components/settings/ViewMode.vue"; @@ -307,6 +323,7 @@ export default { components: { ToggleSwitch, SettingsItem, + FileList, //ViewMode, }, props: { @@ -364,11 +381,18 @@ export default { disableSidebar: false, enforceDarkLightMode: "default", viewMode: "normal", - enableOnlyOffice: false, + enableOnlyOffice: false, shareType: "normal", extractEmbeddedSubtitles: false, + sidebarLinks: [], /** @type {Share | null} */ editingLink: null, + isEditingPath: false, + isReassigningPath: false, + tempPath: "", + tempSource: "", + pathExists: true, + isChangingPassword: false, //viewMode: "normal", }; }, @@ -422,12 +446,18 @@ export default { }, isEditMode() { return this.editing && this.link && Object.keys(this.link).length > 0; + }, + hasExistingPassword() { + // Check if we're editing a link and it has a password + const currentLink = this.isEditMode ? this.link : this.editingLink; + return currentLink && currentLink.hasPassword; } }, watch: { listing(isListing) { if (!isListing) { this.password = ""; + this.isChangingPassword = false; } }, isEditMode: { @@ -435,11 +465,14 @@ export default { handler(isEditMode) { if (isEditMode) { this.listing = false; + // Check if path exists + this.pathExists = this.link.pathExists !== false; this.time = this.link.expire ? String(Math.round((new Date(this.link.expire * 1000).getTime() - new Date().getTime()) / 3600000)) : "0"; this.unit = "hours"; this.password = ""; + this.isChangingPassword = false; this.disableDownload = this.link.disableDownload || false; this.allowModify = this.link.allowModify || false; this.allowDelete = this.link.allowDelete || false; @@ -469,6 +502,7 @@ export default { this.enableOnlyOffice = this.link.enableOnlyOffice || false; this.shareType = this.link.shareType || "normal"; this.extractEmbeddedSubtitles = this.link.extractEmbeddedSubtitles || false; + this.sidebarLinks = Array.isArray(this.link.sidebarLinks) ? [...this.link.sidebarLinks] : []; //this.viewMode = this.link.viewMode || "normal"; } }, @@ -483,22 +517,44 @@ export default { const links = await shareApi.get(this.item.path, this.item.source); this.links = links; } catch (err) { - notify.showError(err); + console.error(err); return; } this.sort(); if (this.links.length === 0) { this.listing = false; + // Set default sidebar links for new shares + this.setDefaultSidebarLinks(); } }, mounted() { - this.clip = new Clipboard(".copy-clipboard"); - this.clip.on("success", () => { - notify.showSuccess(this.$t("success.linkCopied")); - }); + this.initClipboard(); + // Listen for sidebar links updates from the SidebarLinks prompt + eventBus.on('shareSidebarLinksUpdated', this.handleSidebarLinksUpdate); + }, + beforeUnmount() { + // Clean up event listeners + eventBus.off('apiKeysChanged', this.reloadApiKeys); + eventBus.off('shareSidebarLinksUpdated', this.handleSidebarLinksUpdate); + // Clean up clipboard + if (this.clip) { + this.clip.destroy(); + } }, methods: { + initClipboard() { + // Destroy existing clipboard first + if (this.clip) { + this.clip.destroy(); + } + + // Create new clipboard instance + this.clip = new Clipboard(".copy-clipboard"); + this.clip.on("success", () => { + notify.showSuccessToast(this.$t("success.linkCopied")); + }); + }, /** * @param {MouseEvent} event * @param {string} text @@ -529,7 +585,6 @@ export default { const payload = { path: this.displayPath, source: this.displaySource, - password: this.password, expires: isPermanent ? "" : this.time.toString(), unit: this.unit, disableAnonymous: this.disableAnonymous, @@ -561,7 +616,17 @@ export default { enableOnlyOffice: this.enableOnlyOffice, shareType: this.shareType, extractEmbeddedSubtitles: this.extractEmbeddedSubtitles, + sidebarLinks: this.sidebarLinks, }; + + // Handle password inclusion logic: + // - Always include for new shares + // - For editing: only include if no existing password OR explicitly changing it + const isEditing = this.isEditMode || this.editingLink; + if (!isEditing || !this.hasExistingPassword || this.isChangingPassword) { + payload.password = this.password; + } + if (this.isEditMode) { payload.hash = this.link.hash; } else if (this.editingLink) { @@ -573,6 +638,10 @@ export default { if (!this.isEditMode && !this.editingLink) { this.links.push(res); this.sort(); + // reinitialize the clipboard after adding a new link + this.$nextTick(() => { + this.initClipboard(); + }); } else if (this.editingLink) { // Update the link in the local list const index = this.links.findIndex(l => l.hash === this.editingLink.hash); @@ -582,6 +651,10 @@ export default { this.editingLink = null; // emit event to reload shares in settings view eventBus.emit('sharesChanged'); + // Reinitialize clipboard after edit the share + this.$nextTick(() => { + this.initClipboard(); + }); } else { // emit event to reload shares in settings view eventBus.emit('sharesChanged'); @@ -591,10 +664,14 @@ export default { this.time = ""; this.unit = "hours"; this.password = ""; + this.isChangingPassword = false; this.listing = true; } catch (err) { - notify.showError(err); + if (!err.message) { + // didn't come from api, show error to user + notify.showError(err); + } } }, /** @@ -607,6 +684,7 @@ export default { : "0"; this.unit = "hours"; this.password = ""; + this.isChangingPassword = false; this.disableDownload = link.disableDownload || false; this.allowModify = link.allowModify || false; this.allowDelete = link.allowDelete || false; @@ -636,6 +714,7 @@ export default { this.enableOnlyOffice = link.enableOnlyOffice || false; this.shareType = link.shareType || "normal"; this.extractEmbeddedSubtitles = link.extractEmbeddedSubtitles || false; + this.sidebarLinks = Array.isArray(link.sidebarLinks) ? [...link.sidebarLinks] : []; // Store the link being edited this.editingLink = link; }, @@ -648,13 +727,17 @@ export default { try { await shareApi.remove(link.hash); this.links = this.links.filter((item) => item.hash !== link.hash); + // Reinitialize clipboard after deletion too + this.$nextTick(() => { + this.initClipboard(); + }); // emit event to reload shares in settings view eventBus.emit('sharesChanged'); if (this.links.length === 0) { this.listing = false; } } catch (err) { - notify.showError(err); + console.error(err); } }, /** @@ -706,16 +789,109 @@ export default { // Clear editing link when switching back to listing if (this.listing) { this.editingLink = null; + } else { + // Clear editing link when switching to create new share + this.editingLink = null; + this.isChangingPassword = false; + // Set default sidebar links for new shares + this.setDefaultSidebarLinks(); + } + }, + setDefaultSidebarLinks() { + // Only set defaults if creating a new share (not editing) and no links are configured + if (!this.isEditMode && !this.editingLink && this.sidebarLinks.length === 0) { + this.sidebarLinks = [ + { + name: "Share QR Code and Info", + category: "shareInfo", + target: "#", + icon: "qr_code" + }, + { + name: "Download", + category: "download", + target: "#", + icon: "download" + } + ]; } }, fixDownloadURL(downloadUrl) { return fixDownloadURL(downloadUrl); }, + /** + * @param {{path: string, source: string}} pathOrData + */ + updateTempPath(pathOrData) { + if (pathOrData && pathOrData.path) { + this.tempPath = pathOrData.path; + this.tempSource = pathOrData.source; + } + }, + async confirmPathChange() { + if (this.isReassigningPath && this.link) { + // Reassigning path - call API to update + try { + await shareApi.updatePath(this.link.hash, this.tempPath); + notify.showSuccessToast(this.$t("messages.pathReassigned")); + this.link.path = this.tempPath; + this.pathExists = true; + this.isEditingPath = false; + this.isReassigningPath = false; + // Emit event to reload shares in settings view + eventBus.emit('sharesChanged'); + } catch (e) { + notify.showError(this.$t("messages.pathReassignFailed")); + console.error(e); + } + } + }, + cancelPathChange() { + this.isEditingPath = false; + this.isReassigningPath = false; + }, + startPathReassignment() { + this.isReassigningPath = true; + this.tempPath = this.displayPath; + this.tempSource = this.displaySource; + this.isEditingPath = true; + }, + handleSidebarLinksUpdate(data) { + // Update local sidebarLinks when the SidebarLinks prompt saves + if (data && data.sidebarLinks) { + this.sidebarLinks = [...data.sidebarLinks]; + } + }, + openSidebarLinksCustomization() { + // Prepare share data for the SidebarLinks component + const shareData = this.isEditMode ? this.link : this.editingLink || { + hash: this.$route.params.hash || 'new', + sidebarLinks: this.sidebarLinks, + }; + + mutations.showHover({ + name: 'sidebarLinks', + props: { + context: 'share', + shareData: { + ...shareData, + sidebarLinks: this.sidebarLinks, + }, + }, + }); + }, }, }; diff --git a/frontend/src/components/prompts/ShareDelete.vue b/frontend/src/components/prompts/ShareDelete.vue index 86eefb155d..596868aa9d 100644 --- a/frontend/src/components/prompts/ShareDelete.vue +++ b/frontend/src/components/prompts/ShareDelete.vue @@ -3,13 +3,13 @@

{{ $t("prompts.deleteMessageShare", { path }) }}

- -
diff --git a/frontend/src/components/prompts/ShareInfo.vue b/frontend/src/components/prompts/ShareInfo.vue new file mode 100644 index 0000000000..4d63d4cb0d --- /dev/null +++ b/frontend/src/components/prompts/ShareInfo.vue @@ -0,0 +1,150 @@ + + + + + + diff --git a/frontend/src/components/prompts/SidebarLinks.vue b/frontend/src/components/prompts/SidebarLinks.vue new file mode 100644 index 0000000000..4dc477b5ac --- /dev/null +++ b/frontend/src/components/prompts/SidebarLinks.vue @@ -0,0 +1,866 @@ + + + + + diff --git a/frontend/src/components/prompts/Totp.vue b/frontend/src/components/prompts/Totp.vue index db5b274680..4562f10df0 100644 --- a/frontend/src/components/prompts/Totp.vue +++ b/frontend/src/components/prompts/Totp.vue @@ -17,13 +17,13 @@
@@ -98,7 +98,7 @@ export default { mutations.updateCurrentUser({ otpEnabled: true }); this.succeeded = true this.error = ""; - notify.showSuccess(this.$t("otp.verificationSucceed")); + notify.showSuccessToast(this.$t("otp.verificationSucceed")); } catch (error) { this.error = this.$t("otp.verificationFailed"); return; diff --git a/frontend/src/components/prompts/Upload.vue b/frontend/src/components/prompts/Upload.vue index 72d12e5bee..efa3d0008e 100644 --- a/frontend/src/components/prompts/Upload.vue +++ b/frontend/src/components/prompts/Upload.vue @@ -42,10 +42,10 @@

{{ $t("prompts.dragAndDrop") }}

@@ -58,10 +58,10 @@
@@ -84,28 +84,28 @@ :help-text="file.status === 'error' && file.errorDetails ? file.errorDetails : ''">
- {{ $t(`prompts.${file.status}`) }} + {{ getStatusText(file.status) }}
-
@@ -114,9 +114,9 @@
-

- +

- +
- {{ $t("buttons.update") }} + {{ $t("general.update") }}
@@ -169,7 +169,7 @@

- +

- -
@@ -352,7 +352,6 @@ export default { } } } catch (e) { - notify.showError(e); this.error = e; } finally { mutations.setLoading("users", false); @@ -405,11 +404,11 @@ export default { if (state.user.permissions.admin && this.user.id !== state.user.id) { eventBus.emit('usersChanged'); } - notify.showSuccess(this.$t("settings.userUpdated")); + notify.showSuccessToast(this.$t("settings.userUpdated")); mutations.closeHovers(); } } catch (e) { - notify.showError(e); + console.error(e); } }, newOTP() { @@ -432,7 +431,7 @@ export default { if (state.user.permissions.admin && this.user.id !== state.user.id) { eventBus.emit('usersChanged'); } - notify.showSuccess(this.$t("settings.userUpdated")); + notify.showSuccessToast(this.$t("settings.userUpdated")); } catch (e) { notify.showError(e); } diff --git a/frontend/src/components/settings/Themes.vue b/frontend/src/components/settings/Themes.vue index a2ccfa6bd2..be93f2fb68 100644 --- a/frontend/src/components/settings/Themes.vue +++ b/frontend/src/components/settings/Themes.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/components/sidebar/General.vue b/frontend/src/components/sidebar/General.vue index 6cbb42b9a7..62ec46c5e4 100644 --- a/frontend/src/components/sidebar/General.vue +++ b/frontend/src/components/sidebar/General.vue @@ -1,40 +1,30 @@ diff --git a/frontend/src/components/sidebar/Settings.vue b/frontend/src/components/sidebar/Settings.vue index 650e129713..e4383a7807 100644 --- a/frontend/src/components/sidebar/Settings.vue +++ b/frontend/src/components/sidebar/Settings.vue @@ -10,7 +10,10 @@ hidden: !shouldShow(setting), 'active-settings': active(setting.id + '-main'), }"> - {{ $t(setting.label) }} + + {{ setting.icon }} + {{ $t(setting.label) }} +
@@ -64,4 +67,14 @@ export default { overflow: unset !important; padding: 1em; } + +.settings-item-content { + display: flex; + align-items: center; + gap: 0.5em; +} + +.settings-icon { + font-size: 1.2em; +} diff --git a/frontend/src/components/sidebar/Share.vue b/frontend/src/components/sidebar/Share.vue deleted file mode 100644 index 7580140741..0000000000 --- a/frontend/src/components/sidebar/Share.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - diff --git a/frontend/src/components/sidebar/Sidebar.vue b/frontend/src/components/sidebar/Sidebar.vue index 5a5d683c5b..f12fbf8402 100644 --- a/frontend/src/components/sidebar/Sidebar.vue +++ b/frontend/src/components/sidebar/Sidebar.vue @@ -9,8 +9,6 @@ - -
@@ -18,8 +16,8 @@ v-if="item.url === 'help prompt'" href="#" @click.prevent="help" - :title="$t('sidebar.help')" - >{{ $t("sidebar.help") }}{{ $t("general.help") }} {{ item.text @@ -37,14 +35,12 @@ import { globalVars } from "@/utils/constants"; import { getters, mutations, state } from "@/store"; // Import your custom store import SidebarGeneral from "./General.vue"; import SidebarSettings from "./Settings.vue"; -import SidebarShare from "./Share.vue"; export default { name: "sidebar", components: { SidebarGeneral, SidebarSettings, - SidebarShare, }, mounted() { @@ -77,7 +73,7 @@ export default { isLoggedIn: () => getters.isLoggedIn(), isSettings: () => getters.isSettings(), active: () => getters.isSidebarVisible(), - behindOverlay: () => state.isSearchActive, + behindOverlay: () => state.isSearchActive || (state.prompts && state.prompts.length > 0), shouldShow() { return ( globalVars.updateAvailable != "" && @@ -114,7 +110,6 @@ export default { z-index: 4; left: -20em; height: 100%; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); transition: 0.5s ease; top: 4em; padding-bottom: 4em; @@ -153,13 +148,8 @@ body.rtl nav { right: 0; } -#sidebar .action { +#sidebar .button { width: 100%; - display: block; - white-space: nowrap; - height: 100%; - overflow: hidden; - padding: 0.5em; text-overflow: ellipsis; } @@ -200,7 +190,8 @@ body.rtl .action { .release-banner { background-color: var(--primarColor); - display: flex; + display: flex !important; + height: fit-content !important; justify-content: space-between; align-items: center; margin-bottom: 1em; diff --git a/frontend/src/css/_banners.css b/frontend/src/css/_banners.css new file mode 100644 index 0000000000..5ed71dac6e --- /dev/null +++ b/frontend/src/css/_banners.css @@ -0,0 +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; +} + +.warning-banner i { + color: var(--icon-orange); + font-size: 24px; +} + +.warning-banner span { + flex: 1; +} + +.warning-icon { + 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; +} + +.warning-message .material-icons { + font-size: 1.5rem; + color: #f57c00; + flex-shrink: 0; +} + +.warning-message strong { + 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; +} + +.success-message .material-icons { + font-size: 1.5rem; + color: #28a745; + flex-shrink: 0; +} + +.success-message strong { + display: block; + margin-bottom: 0.25rem; +} \ No newline at end of file diff --git a/frontend/src/css/_buttons.css b/frontend/src/css/_buttons.css index 62f04fca84..9caff14ec7 100644 --- a/frontend/src/css/_buttons.css +++ b/frontend/src/css/_buttons.css @@ -1,6 +1,5 @@ .button { outline: 0; - border: 0; padding: .5em 1em; border-radius: 1em; cursor: pointer; @@ -45,3 +44,14 @@ opacity: .5; cursor: not-allowed; } + +.floating-action-button { + position: fixed; + bottom: 1rem; + right: 1rem; + z-index: 1000; +} + +.searchContext { + margin-bottom: 1em; +} \ No newline at end of file diff --git a/frontend/src/css/_inputs.css b/frontend/src/css/_inputs.css index e2f788d653..33d4016543 100644 --- a/frontend/src/css/_inputs.css +++ b/frontend/src/css/_inputs.css @@ -29,7 +29,6 @@ background: #c9f2da; } - /* Autofill hack to maintain style */ input:-webkit-autofill, input:-webkit-autofill:hover, @@ -38,4 +37,9 @@ input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0px 1000px var(--surfaceSecondary) inset !important; -webkit-text-fill-color: var(--textPrimary) !important; /* Optional: Change text color to contrast */ border-color: unset !important; +} + +/* Style for input sliders */ +input[type="range"] { + accent-color: var(--primaryColor); } \ No newline at end of file diff --git a/frontend/src/css/_share.css b/frontend/src/css/_share.css index c3d4cd0e2c..e012afc1b9 100644 --- a/frontend/src/css/_share.css +++ b/frontend/src/css/_share.css @@ -57,7 +57,7 @@ flex: 10 0 25em; } -.share__box__items #listingView.list .item { +.share__box__items #listingView.list .listing-item { cursor: pointer; border-left: 0; border-right: 0; @@ -65,11 +65,11 @@ border-top: 1px solid rgba(0, 0, 0, 0.1); } -.share__box__items #listingView.list .item .name { +.share__box__items #listingView.list .listing-item .name { width: 50%; } -.share__box__items #listingView.list .item .modified { +.share__box__items #listingView.list .listing-item .modified { width: 25%; } diff --git a/frontend/src/css/base.css b/frontend/src/css/base.css index 5c57d52672..d88da994ef 100644 --- a/frontend/src/css/base.css +++ b/frontend/src/css/base.css @@ -91,11 +91,9 @@ over } .main-padding { - padding: 0.5em; - padding-top: 4em; + padding: 4em .5em .5em; } - /* Files */ .files { position: absolute; diff --git a/frontend/src/css/dark.css b/frontend/src/css/dark.css index 37cf50432f..de70bda811 100644 --- a/frontend/src/css/dark.css +++ b/frontend/src/css/dark.css @@ -71,18 +71,18 @@ } /* Listing items */ -.dark-mode #listingView .item { +.dark-mode #listingView .listing-item { background: var(--surfacePrimary); color: var(--textPrimary); border-color: var(--divider); } -.dark-mode #listingView.gallery .item .text { +.dark-mode #listingView.gallery .listing-item .text { text-shadow: 0 0 2px black; } /* Listing item modified text */ -.dark-mode #listingView .item .modified { +.dark-mode #listingView .listing-item .modified { color: var(--textSecondary); } @@ -218,9 +218,17 @@ color: var(--textPrimary); } -/* Header */ .dark-mode-header { color: white; - background-color: #283136; } +/* Dark mode - lighter shadow for original look */ +.dark-mode .clickable:hover, +.dark-mode .plyr .plyr__control:hover, +.dark-mode button:hover, +.dark-mode .action:hover, +.dark-mode .listing-item.drag-hover { + box-shadow: + inset 0 -3em 3em rgba(217, 217, 217, 0.211), + 0 0 0 2px var(--alt-background) !important; +} \ No newline at end of file diff --git a/frontend/src/css/dashboard.css b/frontend/src/css/dashboard.css index b4638a4b25..4f98ef2a60 100644 --- a/frontend/src/css/dashboard.css +++ b/frontend/src/css/dashboard.css @@ -161,7 +161,7 @@ table tr>*:last-child { .card { position: relative; margin: 0 0 1rem 0; - background-color: var(--background); + background-color: var(--surfacePrimary); border-radius: 2px; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); border-radius: 1em; @@ -224,14 +224,11 @@ body.rtl .card-title>*:first-child { padding-bottom: 1.5em; } -.card-title * { - margin: 0; -} - /* Apply flex behavior only to direct children of floating cards */ .card.floating > .card-action { text-align: right; flex-shrink: 0; + padding-top: 0; } .card.floating > .card-content { diff --git a/frontend/src/css/listing.css b/frontend/src/css/listing.css index 0db671ca01..c9842419a1 100644 --- a/frontend/src/css/listing.css +++ b/frontend/src/css/listing.css @@ -1,11 +1,10 @@ #listingView { --item-selected: white; - transition: all; animation-duration: 0.25s; - transition: width 0.25s, height 0.25s, box-shadow 0.2s ease-in-out, transform 0.1s ease-in-out; + transition: box-shadow 0.2s ease-in-out, transform 0.1s ease-in-out; user-select: none; min-height: 75vh; - padding-bottom: 0.5em; + padding-bottom: 2.5em; /* Space for status bar - this prevents items from going behind */ } body.rtl #listingView { @@ -19,7 +18,7 @@ body.rtl #listingView { font-weight: 500; } -#listingView .item div:last-of-type * { +.listing-item div:last-of-type * { text-overflow: ellipsis; overflow: hidden; } @@ -30,7 +29,7 @@ body.rtl #listingView { justify-content: flex-start; } -#listingView .item { +.listing-item { display: flex; flex-wrap: nowrap; color: #6f6f6f; @@ -45,29 +44,31 @@ body.rtl #listingView { background: var(--item-secondary); color: var(--textPrimary); border-color: var(--divider); + background: var(--surfacePrimary) } -#listingView .item div:last-of-type { +.listing-item div:last-of-type { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } -#listingView .item p { +.listing-item p { margin: 0; } -#listingView .item .size, -#listingView .item .modified { +.listing-item .size, +.listing-item .modified, +.listing-item .duration { font-size: 0.9em; } -#listingView .item i { +.listing-item i { font-size: 4em; vertical-align: bottom; } -#listingView .item img { +.listing-item img { padding: 0; height: 3.2em; min-width: 3.2em; @@ -77,8 +78,6 @@ body.rtl #listingView { vertical-align: bottom; } - - .message { text-align: center; font-size: 2em; @@ -95,92 +94,127 @@ body.rtl #listingView { display: block; } -#listingView.gallery .item, -#listingView.compact .item, -#listingView.normal .item, -#listingView.list .item { +#listingView.gallery .listing-item, +#listingView.compact .listing-item, +#listingView.normal .listing-item, +#listingView.list .listing-item, +#listingView.icons .listing-item { margin: .5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 3px, rgba(0, 0, 0, 0.12) 0px 1px 2px; } -#listingView.compact .item:hover, -#listingView.list .item:hover, +#listingView.compact .listing-item:hover, +#listingView.list .listing-item:hover, .search-entry:hover { width: 98% !important; margin-left: 1% !important; padding-left: 0.5em !important; } -#listingView.list .item, -#listingView.compact .item { +#listingView.list .listing-item, +#listingView.compact .listing-item { max-width: 100%; border-radius: 0em; } -#listingView .item div:last-of-type { +.listing-item div:last-of-type { width: 100%; } -#listingView.gallery .item { +#listingView.gallery .listing-item { display: flex; flex-direction: column; align-content: center; overflow: hidden; justify-content: center; + margin: 0; padding: 0; position: relative; + width: 100%; + height: var(--item-height); + flex-shrink: 0; } -#listingView.gallery .item .gallery-div { - display: contents; +#listingView.icons .listing-item { + display: flex; + flex-direction: column; + align-content: center; + overflow: hidden; + justify-content: flex-start; + padding: 0.5em; + margin: 0.25em; + position: relative; + width: 100%; + height: auto; + min-height: calc(var(--icons-view-icon-size, 60px) + 2em); } -#listingView.normal .item, -#listingView.gallery .item { - transition: width 0.25s, height 0.25s, box-shadow 0.2s ease-in-out, transform 0.1s ease-in-out; +#listingView.gallery .listing-item .gallery-div { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + aspect-ratio: 1; + transition: all 0.25s ease-out; } +#listingView.normal .listing-item, +#listingView.gallery .listing-item, +#listingView.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; +} -#listingView.gallery .item .text { - text-shadow: 0 0 2px white; +#listingView.gallery .listing-item .text { + color: white; + text-shadow: 0 0 2px black; pointer-events: none; font-weight: 700; position: absolute; z-index: 1; - transform: translateY(6em); + bottom: 0; + left: 0; + right: 0; + padding: 1em; } -#listingView.gallery .item .text .name { +#listingView.gallery .listing-item .text .name { text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + font-weight: 600; } -#listingView.gallery .item[data-type=image] div:last-of-type { +#listingView.gallery .listing-item[data-type=image] div:last-of-type { color: white; } -#listingView.gallery .item i { +#listingView.gallery .listing-item i { margin: auto; font-size: 8em; background: none; } -#listingView.gallery .item span { +#listingView.gallery .listing-item span { display: flex; } -#listingView.list .item img, -#listingView.compact .item img { +#listingView.list .listing-item img, +#listingView.compact .listing-item img { min-width: unset; } -#listingView.gallery .item img { +#listingView.gallery .listing-item img { width: 100%; - max-width: 100%; height: 100%; - border-radius: 0.5em; + max-width: 100%; + max-height: 100%; + aspect-ratio: 1; + object-fit: cover; + transition: all 0.25s ease-out; } - #listingView.compact { flex-direction: column; width: 100%; @@ -188,7 +222,7 @@ body.rtl #listingView { margin: 0; } -#listingView.compact .item { +#listingView.compact .listing-item { width: 100%; margin: 0; border: 1px solid rgba(0, 0, 0, 0.1); @@ -201,21 +235,23 @@ body.rtl #listingView { display: none; } -#listingView.compact .item div:first-of-type { +#listingView.compact .listing-item div:first-of-type { width: 3em; } -#listingView.compact .item div:first-of-type i { - font-size: 2em; +#listingView.compact .listing-item div:first-of-type i { + font-size: var(--list-icon-font-size, 2em); + transition: font-size 0.25s ease-out; } -#listingView.compact .item div:first-of-type img { - width: 1.5em; - height: 1.5em; +#listingView.compact .listing-item div:first-of-type img { + width: var(--list-icon-image-size, 1.5em); + height: var(--list-icon-image-size, 1.5em); border-radius: .25em; + transition: width 0.25s ease-out, height 0.25s ease-out; } -#listingView.compact .item div:last-of-type { +#listingView.compact .listing-item div:last-of-type { display: flex; align-items: center; } @@ -230,29 +266,35 @@ body.rtl #listingView { } #listingView .header .size, -#listingView.list .item .size, -#listingView.compact .item .size { +#listingView.list .listing-item .size, +#listingView.compact .listing-item .size { width: 25%; } -#listingView.list .item .size.adjustment, -#listingView.compact .item .size.adjustment { +#listingView .header .duration, +#listingView.list .listing-item .duration, +#listingView.compact .listing-item .duration { + margin: auto; +} + +#listingView.list .listing-item .size.adjustment, +#listingView.compact .listing-item .size.adjustment { width: calc(25% + 1em) !important; } #listingView .header .name, -#listingView.list .item .name, -#listingView.compact .item .name { +#listingView.list .listing-item .name, +#listingView.compact .listing-item .name { width: 50%; } -#listingView.list .item .name.adjustment, -#listingView.compact .item .name.adjustment { +#listingView.list .listing-item .name.adjustment, +#listingView.compact .listing-item .name.adjustment { width: calc(50% + 1em) !important; } -#listingView.normal .item .text { +#listingView.normal .listing-item .text { padding-left: 0.3em; } @@ -270,7 +312,7 @@ body.rtl #listingView { border-bottom-right-radius: 0px; } -#listingView.compact .item:first-child { +#listingView.compact .listing-item:first-child { border-top: 1px solid rgba(0, 0, 0, 0.1); } @@ -317,7 +359,7 @@ body.rtl #listingView { margin: 0; } -#listingView.list .item { +#listingView.list .listing-item { width: 100%; margin: 0; border: 1px solid rgba(0, 0, 0, 0.1); @@ -325,42 +367,41 @@ body.rtl #listingView { border-top: 0; } -#listingView.compact .item[aria-selected=true], -#listingView.normal .item[aria-selected=true], -#listingView.list .item[aria-selected=true] { - background: var(--primaryColor) !important; +.listing-item[aria-selected=true] { + background-color: color-mix(in srgb, var(--primaryColor) 85%, transparent) !important; color: var(--item-selected) !important; } -#listingView.gallery .item[aria-selected=true] { - border: 1em solid var(--primaryColor) !important; - padding: 0; +#listingView.gallery .listing-item[aria-selected=true] { + border: 0.2em solid var(--primaryColor) !important; } -#listingView.gallery .item[aria-selected=true] .text { - padding: 0; +#listingView.gallery .listing-item .size, +#listingView.gallery .listing-item .modified, +#listingView.gallery .listing-item .duration, +#listingView.icons .listing-item .size, +#listingView.icons .listing-item .modified, +#listingView.icons .listing-item .duration { + display: none !important; } -#listingView.gallery .item .size, -#listingView.gallery .item .modified { - opacity: 0; -} - -#listingView.list .item div:first-of-type { +#listingView.list .listing-item div:first-of-type { width: 3em; } -#listingView.list .item div:first-of-type i { - font-size: 2em; +#listingView.list .listing-item div:first-of-type i { + font-size: var(--list-icon-font-size, 2em); + transition: font-size 0.25s ease-out; } -#listingView.list .item div:first-of-type img { - width: 1.5em; - height: 1.5em; +#listingView.list .listing-item div:first-of-type img { + width: var(--list-icon-image-size, 1.5em); + height: var(--list-icon-image-size, 1.5em); border-radius: 0.2em; + transition: width 0.25s ease-out, height 0.25s ease-out; } -#listingView.list .item div:last-of-type { +#listingView.list .listing-item div:last-of-type { display: flex; align-items: center; } @@ -376,7 +417,8 @@ body.rtl #listingView { #listingView.list .header i, #listingView.normal .header i, -#listingView.gallery .header i { +#listingView.gallery .header i, +#listingView.icons .header i { font-size: 1.5em; vertical-align: middle; margin-left: .2em; @@ -389,7 +431,7 @@ body.rtl #listingView { border: unset; } -#listingView.list .item:first-child { +#listingView.list .listing-item:first-child { margin-top: .5em; border-top-left-radius: 1em; border-top-right-radius: 1em; @@ -400,12 +442,12 @@ body.rtl #listingView { border-bottom-right-radius: 1em; } -#listingView.list .item:last-child { +#listingView.list .listing-item:last-child { border-bottom-left-radius: 1em; border-bottom-right-radius: 1em; } -#listingView.list .item:last-child { +#listingView.list .listing-item:last-child { margin-bottom: .5em; } @@ -449,3 +491,57 @@ body.rtl #listingView { .half-selected { border-color: var(--primaryColor) !important; } + +#listingView.icons .listing-item .text { + display: block !important; + width: 100%; + margin-top: 0.3em; + padding: 0; + flex: 1; + text-align: center; +} + +#listingView.icons .listing-item i { + height: var(--icons-view-icon-size, 50px); + width: var(--icons-view-icon-size, 80px); + display: flex; + align-items: center; + justify-content: center; + transition: width 0.25s ease-out, height 0.25s ease-out; +} + +#listingView.icons .listing-item img { + width: var(--icons-view-icon-size, 50px); + height: var(--icons-view-icon-size, 60px); + max-width: var(--icons-view-icon-size, 80px); + min-width: var(--icons-view-icon-size, 80px); + border-radius: 0.3em; + margin: 0; + transition: width 0.25s ease-out, height 0.25s ease-out; +} + +#listingView.gallery .folder-items, +#listingView.gallery .file-items { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(var(--item-width, 200px), 1fr)); + gap: 1em; + padding: 0.5em; + width: 100%; + transition: grid-template-columns 0.25s ease-out; +} + +#listingView.icons .folder-items, +#listingView.icons .file-items { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(var(--icons-view-cell-size, 100px), 1fr)); + gap: 0.5em; + padding: 0.25em; + width: 100%; + transition: grid-template-columns 0.25s ease-out; +} + +/* Account space when sidebar is active - this give the columns a cleaner look */ +#main.moveWithSidebar #listingView.icons .folder-items, +#main.moveWithSidebar #listingView.icons .file-items { + grid-template-columns: repeat(auto-fill, minmax(calc(var(--icons-view-cell-size, 100px) * 0.9), 1fr)); +} diff --git a/frontend/src/css/mobile.css b/frontend/src/css/mobile.css index 1385bef7ab..cba32f2d3d 100644 --- a/frontend/src/css/mobile.css +++ b/frontend/src/css/mobile.css @@ -1,23 +1,41 @@ @media (max-width: 800px) { #listingView .header .name, - #listingView.list .item .name, - #listingView.compact .item .name { + .list .listing-item .name, + .compact .listing-item .name { width: 50%; } - #listingView.list .item div:last-of-type{ - display:block; - width:100%; + .compact .listing-item div:first-of-type { + width: unset !important; + } + + .list .listing-item .text { + flex-direction: column; + align-items: flex-start !important; + padding-left: 0.5em; + width: 100%; + } + + .list .listing-item .text .name, + .list .listing-item .text .modified, + .list .listing-item .text .size, + .list .listing-item .text .duration { + width: 100% !important; + } + + .compact .listing-item .text .duration { + display: none !important; + } + + .compact .listing-item .name { + width: 42%; + padding-left: 0.5em; } body { padding-bottom: 5em; } - #listingView.list .item .name { - width: 60%; - } - #more { display: inherit } @@ -35,14 +53,24 @@ #listingView { margin-bottom: 5em; } - #listingView .item { + + /* Don't override width for gallery and icons views - they use CSS variables */ + #listingView.list .listing-item, + #listingView.compact .listing-item, + #listingView.normal .listing-item { width: 100% } + + /* Gallery mode on mobile - use simple column-based grid */ + #listingView.gallery .folder-items, + #listingView.gallery .file-items { + grid-template-columns: repeat(var(--gallery-mobile-columns, 2), 1fr); + } + body.rtl #listingView { margin-right: unset; } - body.rtl #nav .wrapper { margin-right: unset; } @@ -50,15 +78,6 @@ body.rtl .dashboard .row { margin-right: unset; } - -} - - -@media (max-width: 450px) { - - #listingView.list .item .name { - width: 100%; - } } /* Mobile Specific Styles */ diff --git a/frontend/src/css/styles.css b/frontend/src/css/styles.css index 5c526dc068..0db340ee0f 100644 --- a/frontend/src/css/styles.css +++ b/frontend/src/css/styles.css @@ -2,6 +2,7 @@ @import "./_variables.css"; @import "./_buttons.css"; @import "./_inputs.css"; +@import "./_banners.css"; @import "./fonts.css"; @import "./base.css"; @import "./header.css"; @@ -63,13 +64,11 @@ * * * * * * * * * * * * * * * */ .action { - display: inline-block; cursor: pointer; transition: 0.2s ease all; border: 0; margin: 0; color: #546e7a; - border-radius: 50%; background: transparent; padding: 0; box-shadow: none; @@ -357,10 +356,9 @@ body.rtl .card-content .small+input { button:hover, .action:hover, .listing-item.drag-hover { - box-shadow: - inset 0 -3em 3em rgba(217, 217, 217, 0.211), - 0 0 0 2px var(--alt-background) !important; - /* Adjust shadow values as needed */ + box-shadow: inset 0 -3em 3em rgba(172, 172, 172, 0.211), + 0 0 0 2px var(--alt-background) !important; + /* Darker shadow for better visibility in light mode */ transform: scale(1.02); /* Slightly enlarges the element */ } @@ -384,7 +382,7 @@ button:hover, .form-flex-group { display: flex; flex-direction: row; - align-items: center; + align-items: stretch; } .form-flex-group>.form-compact { @@ -394,6 +392,7 @@ button:hover, .form-button { height: auto !important; + white-space: nowrap; } .form-invalid { diff --git a/frontend/src/i18n/ar.json b/frontend/src/i18n/ar.json index fa57488675..a4c24269f9 100644 --- a/frontend/src/i18n/ar.json +++ b/frontend/src/i18n/ar.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "إلغاء", - "close": "إغلاق", - "copy": "نسخ", "copyFile": "نسخ الملف", "copyToClipboard": "نسخ الى الحافظة", - "create": "إنشاء", - "delete": "حذف", - "download": "تحميل", - "info": "معلومات", - "more": "المزيد", - "move": "نقل", "moveFile": "نقل الملف", - "new": "جديد", - "next": "التالي", - "ok": "موافق", "permalink": "الحصول على لنك دائم", - "previous": "السابق", - "publish": "نشر", - "rename": "إعادة تسمية", - "replace": "استبدال", "reportIssue": "إبلاغ عن مشكلة", - "save": "حفظ", - "schedule": "جدولة", - "search": "بحث", - "select": "تحديد", "selectMultiple": "تحديد متعدد", - "share": "مشاركة", "shell": "Toggle shell", "switchView": "تغيير العرض", "toggleSidebar": "تبديل الشريط الجانبي", - "update": "تحديث", - "upload": "رفع", "copyDownloadLinkToClipboard": "نسخ رابط التحميل إلى الحافظة", - "file": "ملف", - "folder": "المجلد", - "submit": "إرسال", - "openFile": "فتح الملف", - "continue": "تابع", - "edit": "تحرير", "generateNewOtp": "إعادة تعيين وإنشاء رمز ثنائي العامل الجديد", - "verify": "تحقق", - "pause": "وقفة", - "resume": "السيرة الذاتية", - "retry": "إعادة المحاولة", "pauseAll": "إيقاف الكل مؤقتاً", "resumeAll": "استئناف الكل", "clearCompleted": "اكتمل المسح", @@ -62,10 +29,8 @@ "discardAndExit": "التخلص والخروج", "saveAndExit": "الحفظ والخروج", "keepEditing": "استمر في التحرير", - "stayOnPrompt": "ابق في مكانك", "closeAnyway": "إغلاق على أي حال", - "disable": "تعطيل", - "confirm": "تأكيد" + "goToItem": "الانتقال إلى العنصر" }, "download": { "downloadFile": "Download File", @@ -77,31 +42,31 @@ "internal": "لقد حدث خطأ ما.", "notFound": "لا يمكن الوصول لهذا المحتوى.", "connection": "لا يمكن الوصول إلى الخادم", - "shareNotFound": "حصة غير صالحة أو منتهية الصلاحية." + "shareNotFound": "حصة غير صالحة أو منتهية الصلاحية.", + "failedToConnectToServer": "فشل الاتصال بالخادم، هل لا يزال يعمل؟" }, "files": { - "body": "الصفحة", - "clear": "مسح", "closePreview": "إغلاق العرض", - "home": "الصفحة الاولى", "lastModified": "آخر تعديل", - "loading": "جاري التحميل...", "lonely": "تبدو وحيدا هنا...", - "metadata": "بيانات تعريفية", "multipleSelectionEnabled": "التحديد المتعدد مفعل", - "name": "الإسم", - "size": "الحجم", "sortByLastModified": "الترتيب بآخر تعديل", "sortByName": "الترتيب بالإسم", "sortBySize": "الترتيب بالحجم", "noPreview": "المعاينة غير متوفرة لهذا الملف.", - "noDownloadAccess": "التنزيل غير متاح." + "noDownloadAccess": "التنزيل غير متاح.", + "itemSelected": "عنصر محدد", + "itemsSelected": "عناصر محددة", + "myFiles": "ملفاتي{suffix}", + "newFile": "ملف جديد{suffix}", + "newFolder": "مجلد جديد{suffix}", + "duration": "المدة{suffix}", + "sortByDuration": "فرز حسب المدة" }, "help": { "functionKeys": "مفاتيح الوظائف", "mouseActions": "إجراءات الفأرة", "fileOperations": "عمليات الملفات", - "navigation": "التنقل", "click": "حدد الملف أو المجلد", "ctrl": { "click": "حدد أكثر من ملف او مجلد", @@ -115,11 +80,11 @@ "del": "حذف البيانات المحددة", "esc": "مسح التحديد وإغلاق النافذة المنبثقة", "f2": "إعادة تسمية الملف", - "help": "مساعدة", "f1": "إظهار موجه المساعدة", "description": "يمكنك عرض خيارات التنقل الأساسية أدناه. للحصول على معلومات إضافية، يرجى زيارة", "slash": "تفعيل البحث", - "wiki": "مستندات FileBrowser Quantum الرسمية" + "wiki": "مستندات FileBrowser Quantum الرسمية", + "marqueeSelect": "تحديد ملفات أو أدلة متعددة عن طريق السحب على مساحة فارغة" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Already have an account", "passwordConfirm": "Password Confirmation", "passwordsDontMatch": "Passwords don't match", - "submit": "تسجيل دخول", "usernameTaken": "Username already taken", "wrongCredentials": "بيانات دخول خاطئة", "or": "أو", @@ -208,7 +172,6 @@ "viewMode": "وضع العرض", "renameMessage": "أدخل اسماً جديداً:", "renameMessageInvalid": "لا يمكن أن يحتوي الملف على \"/\" أو \"\\\"", - "source": "المصدر{suffix}", "deleteMessageMultiple": "هل تريد بالتأكيد حذف الملف (الملفات) {count} ؟", "deleteMessageShare": "هل أنت متأكد أنك تريد حذف هذه المشاركة؟ {path} ?", "numberDirs": "عدد الدلائل{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "مرحبًا بك في متصفح الملفات الكمي!", "halloweenTitle": "عيد هالوين سعيد!", "halloweenBody": "تم تطبيق سمة الهالوين. يمكنك تعطيله إذا لم يعجبك، أو تعطيله بشكل دائم في إعدادات الملف الشخصي عن طريق تحديد أي سمة أخرى.", - "firstLoadBody": "تم إنشاء قاعدة بيانات جديدة عند بدء التشغيل. إذا لم يكن هذا هو ما كنت تتوقعه، يرجى التحقق مرة أخرى من ملف التكوين الخاص بك لمسار 'server.database' والتأكد من وجوده. في docker، يمكن أن يكون مسار قاعدة البيانات \"./data/database.db\" أو \"./database.db\"." + "firstLoadBody": "تم إنشاء قاعدة بيانات جديدة عند بدء التشغيل. إذا لم يكن هذا هو ما كنت تتوقعه، يرجى التحقق مرة أخرى من ملف التكوين الخاص بك لمسار 'server.database' والتأكد من وجوده. في docker، يمكن أن يكون مسار قاعدة البيانات \"./data/database.db\" أو \"./database.db\".", + "selectPath": "تحديد المسار", + "renameSuccess": "تمت إعادة تسمية العنصر بنجاح!", + "newFileSuccess": "تم إنشاء الملف بنجاح!", + "newDirSuccess": "تم إنشاء الدليل بنجاح!", + "copyToClipboardFailed": "تعذر النسخ إلى الحافظة" }, "search": { - "images": "الصور", - "music": "الموسيقى", - "pdf": "PDF", - "search": "البحث...", - "types": "الأنواع", - "video": "فيديوهات", - "path": "المسار:", "smallerThan": "أصغر من:", "largerThan": "أكبر من:", "helpText1": "يحدث البحث على كل حرف تكتبه (3 أحرف كحد أدنى لمصطلحات البحث).", @@ -267,18 +228,11 @@ "onlyFolders": "المجلدات فقط", "onlyFiles": "الملفات فقط", "showOptions": "عرض الخيارات", - "photos": "الصور", - "audio": "الصوت", - "videos": "مقاطع الفيديو", - "documents": "المستندات", - "archives": "المحفوظات", - "number": "العدد", "searchContext": "سياق البحث: {context}", "notEnoughCharacters": "أحرف غير كافية للبحث (الحد الأدنى {minSearchLength})", "typeToSearch": "ابدأ الكتابة {minSearchLength} أو أكثر لبدء البحث." }, "settings": { - "admin": "Admin", "administrator": "Administrator", "allowCommands": "تنفيذ الأوامر", "allowEdit": "تعديل، إعادة تسمية وحذف الملفات والمجلدات", @@ -286,7 +240,6 @@ "allowPublish": "نشر مقالات وصفحات جديدة", "allowSignup": "Allow users to signup", "avoidChanges": "(أتركه فارغاً إن لم ترد تغييره)", - "branding": "Branding", "brandingDirectoryPath": "Branding directory path", "changePassword": "تغيير كلمة المرور", "commandRunner": "Command runner", @@ -296,8 +249,6 @@ "defaultUserDescription": "This are the default settings for new users.", "disableExternalLinks": "Disable external links (except documentation)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "documentation", - "examples": "أمثلة", "executeOnShell": "Execute on shell", "executeOnShellDescription": "By default, File Browser executes the commands by calling their binaries directly. If you want to run them on a shell instead (such as Bash or PowerShell), you can define it here with the required arguments and flags. If set, the command you execute will be appended as an argument. This apply to both user commands and event hooks.", "globalRules": "This is a global set of allow and disallow rules. They apply to every user. You can define specific rules on each user's settings to override this ones.", @@ -305,14 +256,11 @@ "insertPath": "Insert the path", "insertRegex": "Insert regex expression", "instanceName": "Instance name", - "language": "اللغة", "lockPassword": "منع المستخدم من تغيير كلمة المرور", "newPassword": "كلمة المرور الجديدة", "newPasswordConfirm": "تأكيد كلمة المرور", "newUser": "مستخدم جديد", - "password": "كلمة المرور", "passwordUpdated": "تم تغيير كلمة المرور", - "path": "المسار", "permissions": { "modify": "Edit files", "share": "Share files", @@ -328,27 +276,16 @@ "profileSettings": "إعدادات الحساب", "ruleExample1": "منع الوصول إلى الملفات التي تبدأ بنقطة مثل (.git، و .gitignore) في كل مجلد.\n", "ruleExample2": "منع الوصول إلى الملف المسمى Caddyfile في نطاق الجذر.", - "rules": "المجموعات", "rulesHelp": "يمكنك هنا تحديد مجموعة من شروط السماح والمنع لهذا المستخدم. الملفات الممنوعة لن تظهر ضمن القائمة لهذا المستخدم ولن يستطيع الوصول لها. هنا ندعم الـ regex والـ relative path لنطاق المستخدمين.\n", - "scope": "نطاق", "settingsUpdated": "تم تعديل الإعدادات", "shareManagement": "إدارة المشاركة", "singleClick": "استخدام نقرات واحدة لفتح الملفات والدلائل", - "themes": { - "dark": "داكن", - "light": "خفيف", - "title": "الموضوع" - }, - "user": "المستخدم", - "userCommands": "الأوامر", "userCommandsHelp": "الأوامر المتاحة لهذا المستخدم مفصولة فيما بينها بمسافة. مثال:\n", "userCreated": "تم إنشاء المستخدم", "userDefaults": "User default settings", "userDeleted": "تم حذف المستخدم", "userManagement": "إدارة المستخدمين", "userUpdated": "تم تعديل المستخدم", - "username": "إسم المستخدم", - "users": "المستخدمين", "modifyOtherUser": "تعديل المستخدم:", "modifyCurrentUser": "تعديل المستخدم الحالي", "themeColor": "لون السمة", @@ -373,9 +310,7 @@ "loginMethod": "طريقة تسجيل الدخول", "shareSettings": "مشاركة الإعدادات", "adminOptions": "خيارات المستخدم المسؤول", - "shareDuration": "تنتهي صلاحيتها", "searchOptions": "خيارات البحث", - "downloads": "التنزيلات", "systemAdmin": "النظام والإدارة", "configViewer": "عارض التكوين", "configViewerShowFull": "إظهار التكوين الكامل", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "الوكيل" }, - "newUserHintSubFolder": "على سبيل المثال '/مجلد فرعي' - فارغ للافتراضي", - "userScopes": "النطاقات" + "newUserHintSubFolder": "على سبيل المثال '/مجلد فرعي' - فارغ للافتراضي" }, "sidebar": { - "help": "مساعدة", - "hugoNew": "هيوجو جديد", - "login": "Login", - "logout": "تسجيل خروج", - "myFiles": "ملفاتي", - "newFile": "ملف جديد", - "newFolder": "مجلد جديد", - "preview": "معاينة", - "settings": "الإعدادات", - "signup": "Signup", "siteSettings": "إعدادات الموقع", - "sources": "المصادر", "updateIsAvailable": "يتوفر تحديث!", - "fileActions": "إجراءات الملف" + "fileActions": "إجراءات الملف", + "customizeLinks": "تخصيص روابط الشريط الجانبي", + "customizeLinksDescription": "خصص الروابط المعروضة في الشريط الجانبي. السحب والإفلات لإعادة الترتيب.", + "currentLinks": "الروابط الحالية", + "addNewLink": "إضافة رابط جديد", + "linkType": "نوع الرابط", + "selectLinkType": "حدد نوع الرابط", + "customLink": "رابط مخصص", + "selectSource": "اختر المصدر", + "chooseSource": "اختر مصدراً", + "selectTool": "اختر الأداة", + "chooseTool": "اختر أداة", + "linkName": "اسم الرابط", + "linkNamePlaceholder": "أدخل اسم الرابط", + "linkUrl": "رابط الرابط URL", + "linkUrlPlaceholder": "أدخل عنوان URL أو المسار (على سبيل المثال، /ملفات/مسار أو https://example.com)", + "linkIcon": "أيقونة الرابط", + "linksUpdatedSuccess": "تم تحديث روابط الشريط الجانبي بنجاح!", + "linksUpdateFailed": "فشل في تحديث روابط الشريط الجانبي", + "sourceNotAccessible": "لم يعد هذا المصدر متاحاً لك", + "noLinksYet": "لم يتم تكوين أي روابط حتى الآن. أضف الرابط الأول أدناه.", + "customizeShareLinks": "تخصيص روابط الشريط الجانبي للمشاركة", + "customizeShareLinksDescription": "قم بتخصيص الروابط المعروضة في الشريط الجانبي لهذه المشاركة. السحب والإفلات لإعادة الترتيب.", + "editLink": "تحرير الرابط", + "selectShare": "حدد المشاركة", + "chooseShare": "اختر حصة", + "selectSharePath": "المسار داخل المشاركة (اختياري)", + "sharePathPlaceholder": "على سبيل المثال، /مجلد فرعي أو تركه فارغًا للجذر", + "browseIcons": "تصفح الأيقونات", + "pickIcon": "اختر أيقونة", + "pickIconDescription": "بحث وتحديد أيقونة من مكتبة الأيقونات المادية", + "shareLinksUpdatedSuccess": "تم تحديث روابط الشريط الجانبي المشاركة بنجاح!", + "shareHome": "مشاركة الصفحة الرئيسية", + "linkIconPlaceholder": "تحديد اسم رمز المادة اختياريًا" }, "success": { "linkCopied": "تم نسخ الملف" @@ -481,7 +437,12 @@ "allowReplacements": "السماح باستبدال الملفات", "allowReplacementsDescription": "يمكن لأي شخص استبدال الملفات الموجودة عند تحميل ملفات بنفس الاسم.", "allowCreate": "إتاحة إنشاء الملفات والمجلدات وتحميلها", - "allowCreateDescription": "يمكن لأي شخص إنشاء ملفات ومجلدات جديدة وتحميلها في هذه المشاركة." + "allowCreateDescription": "يمكن لأي شخص إنشاء ملفات ومجلدات جديدة وتحميلها في هذه المشاركة.", + "customizeSidebarLinks": "تخصيص روابط الشريط الجانبي", + "customizeSidebarLinksButton": "تخصيص الروابط", + "shareInfo": "مشاركة رمز الاستجابة السريعة والمعلومات", + "shareInfoDescription": "يعرض هذا الرابط معلومات المشاركة، بما في ذلك العنوان والوصف والشعار ورمز الاستجابة السريعة في نافذة منبثقة.", + "downloadDescription": "يتيح هذا الرابط تنزيل محتوى المشاركة بالكامل كملف مضغوط." }, "api": { "title": "مفاتيح واجهة برمجة التطبيقات (API):", @@ -505,21 +466,28 @@ "expires": "تنتهي صلاحيتها", "actions": "الإجراءات", "enabled": "ممكّنة", - "disabled": "معاق" + "disabled": "معاق", + "apiKeyDeleted": "تم حذف مفتاح API!" }, "index": { - "status": "الحالة", "assessment": "التقييم", "lastScanned": "آخر مسح ضوئي", "quickScan": "ثواني المسح السريع", "fullScan": "كامل ثواني المسح الضوئي", "settingsHover": "إعدادات المستخدم", - "logout": "تسجيل الخروج", "toggleClick": "تبديل نقرة واحدة", "toggleDark": "تبديل الوضع الداكن", "toggleSticky": "تبديل الوضع اللاصق", - "used": "مستعمل", - "noSources": "لا توجد مصادر متاحة لهذا المستخدم. إما أن تقوم بإضافة مصدر لهذا المستخدم أو تكوين مصدر مع defaultEnabled: true" + "noSources": "لا توجد مصادر متاحة لهذا المستخدم. إما أن تقوم بإضافة مصدر لهذا المستخدم أو تكوين مصدر مع defaultEnabled: true", + "unknown": "غير معروف", + "simple": "بسيطة", + "normal": "عادي", + "complex": "مجمع", + "highlyComplex": "معقدة للغاية", + "ready": "جاهز", + "indexing": "الفهرسة", + "unavailable": "غير متاح", + "error": "خطأ" }, "otp": { "name": "المصادقة الثنائية", @@ -545,7 +513,96 @@ "exit": "الخروج", "permanent": "دائم", "hash": "تجزئة", - "of": "من" + "of": "من", + "source": "المصدر{suffix}", + "percentage": "{percentage}%", + "type": "النوع{suffix}", + "size": "الحجم{suffix}", + "body": "الجسم{suffix}", + "home": "الصفحة الرئيسية{suffix}", + "clear": "واضح{suffix}", + "help": "المساعدة{suffix}", + "login": "تسجيل الدخول{suffix}", + "logout": "تسجيل الخروج{suffix}", + "preview": "معاينة{suffix}", + "settings": "الإعدادات{suffix}", + "sources": "المصادر{suffix}", + "links": "الروابط{suffix}", + "tool": "الأداة{suffix}", + "used": "مستعمل{suffix}", + "status": "الحالة{suffix}", + "analyze": "تحليل{suffix}", + "results": "النتائج{suffix}", + "users": "المستخدمون{suffix}", + "photos": "الصور", + "audio": "الصوت{suffix}", + "videos": "مقاطع الفيديو{suffix}", + "documents": "المستندات{suffix}", + "archives": "المحفوظات{suffix}", + "images": "الصور{suffix}", + "music": "الموسيقى{suffix}", + "pdf": "PDF{suffix}", + "search": "بحث{suffix}", + "number": "العدد{suffix}", + "types": "الأنواع{suffix}", + "video": "فيديو{suffix}", + "admin": "المسؤول{suffix}", + "branding": "العلامة التجارية{suffix}", + "language": "اللغة{suffix}", + "documentation": "الوثائق{suffix}", + "examples": "أمثلة{suffix}", + "dark": "داكن{suffix}", + "light": "خفيف{suffix}", + "title": "الموضوع{suffix}", + "expires": "تنتهي صلاحيتها{suffix}", + "scope": "النطاق{suffix}", + "rules": "القواعد{suffix}", + "downloads": "التنزيلات{suffix}", + "submit": "تسجيل الدخول{suffix}", + "navigation": "الملاحة{suffix}", + "metadata": "البيانات الوصفية{suffix}", + "loading": "التحميل{suffix}", + "add": "إضافة{suffix}", + "cancel": "إلغاء{suffix}", + "verify": "تحقق{suffix}", + "close": "إغلاق{suffix}", + "copy": "نسخ{suffix}", + "create": "إنشاء{suffix}", + "delete": "حذف{suffix}", + "download": "تنزيل{suffix}", + "file": "ملف{suffix}", + "folder": "المجلد{suffix}", + "info": "المعلومات{suffix}", + "more": "المزيد{suffix}", + "move": "الانتقال{suffix}", + "new": "جديد{suffix}", + "next": "التالي{suffix}", + "ok": "حسناً{suffix}", + "previous": "السابق{suffix}", + "publish": "النشر{suffix}", + "rename": "إعادة التسمية{suffix}", + "replace": "استبدل{suffix}", + "save": "الحفظ{suffix}", + "schedule": "الجدول الزمني{suffix}", + "select": "اختر{suffix}", + "share": "شارك{suffix}", + "update": "تحديث{suffix}", + "upload": "التحميل{suffix}", + "openFile": "فتح الملف{suffix}", + "continue": "تابع{suffix}", + "edit": "تحرير{suffix}", + "pause": "وقفة{suffix}", + "resume": "السيرة الذاتية{suffix}", + "retry": "إعادة المحاولة{suffix}", + "disable": "تعطيل{suffix}", + "confirm": "تأكيد{suffix}", + "stay": "ابق في مكانك{suffix}", + "scopes": "النطاقات{suffix}", + "commands": "الأوامر{suffix}", + "uploading": "التحميل{suffix}", + "paused": "متوقف مؤقتاً{suffix}", + "conflict": "التعارض{suffix}", + "change": "التغيير{suffix}" }, "access": { "rules": "قواعد الوصول", @@ -560,13 +617,15 @@ "enterName": "أدخل اسم المستخدم أو المجموعة", "deleted": "تم حذف قاعدة الوصول", "added": "تمت إضافة قاعدة الوصول!", - "name": "الاسم", "accessManagement": "إدارة الوصول", "totalDenied": "مرفوض", "totalAllowed": "المسموح به", "all": "رفض الكل", "defaultBehaviorDescription": "يوضح هذا ما يحدث عندما يحاول المستخدم الوصول إلى مسار لا توجد فيه قواعد وصول محددة. تعني \"السماح\" أنه يمكن للمستخدمين الوصول بشكل افتراضي، وتعني \"الرفض\" أنه يتم حظر المستخدمين بشكل افتراضي ما لم يُسمح لهم صراحةً.", - "defaultBehavior": "الإجراء الافتراضي{suffix}" + "defaultBehavior": "الإجراء الافتراضي{suffix}", + "deletedCascade": "تم حذف قواعد الوصول من المسار وجميع المسارات الفرعية!", + "cascadeDelete": "الحذف التكراري", + "cascadeDeleteDescription": "عند التمكين، سيؤدي حذف قاعدة وصول إلى إزالتها أيضًا من جميع الدلائل الفرعية. يتيح لك ذلك إزالة مستخدم أو مجموعة بالكامل من شجرة الدليل بأكملها." }, "fileLoading": { "title": "التحميلات والتنزيلات", @@ -636,9 +695,7 @@ "themeAndLanguage": "الموضوع واللغة", "previewFolder": "إظهار الصور المصغرة للمجلدات إذا كانت متوفرة", "previewFolderDescription": "إظهار معاينات الصور المصغرة للمجلدات التي تحتوي على العنصر الفرعي الأول مع صورة مصغرة كغلاف.", - "disableFileExtensions": "أدخل امتدادات الملفات لتعطيلها", - "defaultLandingPage": "صفحة الهبوط الافتراضية", - "defaultLandingPageDescription": "على سبيل المثال. '/الملفات/المصدر/المصدر الفرعي/المسار الفرعي' أو '/الإعدادات' - الصفحة الافتراضية هي /الملفات التي تنتقل إلى عرض قائمة المصدر الأول" + "disableFileExtensions": "أدخل امتدادات الملفات لتعطيلها" }, "colors": { "red": "أحمر", @@ -653,7 +710,9 @@ "saveFailed": "فشل حفظ الملف. يرجى المحاولة مرة أخرى.", "saveAborted": "تم إجهاض الحفظ. اسم الملف غير مطابق للملف النشط.", "saveAbortedMessage": "تم إجهاض عملية الحفظ. الملف النشط للتطبيق ({activeFile}) لا يتطابق مع الملف الذي تحاول حفظه ({tryingToSave}).", - "syncFailed": "فشل مزامنة الحالة مع مسار \"{filename}\" بعد 5 محاولات. إجهاض إعداد المحرر لمنع تلف البيانات." + "syncFailed": "فشل مزامنة الحالة مع مسار \"{filename}\" بعد 5 محاولات. إجهاض إعداد المحرر لمنع تلف البيانات.", + "fileSaved": "تم حفظ الملف!", + "errorSavingFile": "خطأ في حفظ الملف: {error}" }, "player": { "LoopEnabled": "تفعيل التكرار", @@ -666,5 +725,93 @@ "changePlaybackMode": "تغيير وضع التشغيل", "changePlaybackModeHint": "غير وضع التشغيل لرؤية المزيد من الملفات", "emptyQueue": "قائمة التشغيل فارغة" + }, + "fileSizeAnalyzer": { + "title": "محلل حجم الملف", + "searchLocation": "موقع البحث", + "selectPath": "تحديد موقع البحث", + "largerThan": "أكبر من (ميغابايت)", + "includeFolders": "تضمين المجلدات", + "includeFoldersDescription": "تضمين الدلائل في التحليل", + "totalFiles": "إجمالي الملفات{suffix}", + "totalSize": "الحجم الإجمالي{suffix}", + "emptyState": "أدخل معايير البحث وانقر فوق تحليل لتصور أحجام الملفات", + "completeResults": "النتائج الكاملة المعروضة!", + "incompleteResults": "قد تكون النتائج غير مكتملة", + "incompleteResultsDetails": "عرض الحد الأقصى للنتائج (100). حاول تضييق نطاق البحث للحصول على المزيد من النتائج أقل من 100.", + "relativePercentage": "النسبة المئوية النسبية{suffix}", + "percentageOfResults": "{percentage}النسبة المئوية للنتائج" + }, + "fileTypes": { + "video": "فيديو", + "image": "الصورة", + "audio": "الصوت", + "archive": "الأرشيف", + "document": "المستند", + "binary": "ثنائي", + "directory": "الدليل", + "other": "أخرى" + }, + "tools": { + "description": "الأدوات المساعدة وأدوات التحليل لملفاتك", + "sizeAnalyzer": { + "name": "محلل حجم الملف", + "description": "تصور الملفات والأدلة الكبيرة باستخدام خريطة ثلاثية تفاعلية" + }, + "title": "الأدوات", + "duplicateFinder": { + "name": "أداة البحث عن الملفات المكررة", + "description": "البحث عن الملفات المكررة وإدارتها لاستعادة مساحة التخزين" + }, + "materialIconPicker": { + "name": "منتقي أيقونة المواد", + "description": "استعراض أيقونات المواد والبحث فيها مع المعاينة المباشرة", + "searchPlaceholder": "أيقونات البحث...", + "popularIcons": "عرض {count} أيقونات شائعة ", + "showingResults": "عرض {count} النتائج ", + "noResults": "لم يتم العثور على أي أيقونات", + "tryDifferentSearch": "جرّب مصطلح بحث مختلف", + "copiedToClipboard": "نسخ \"{name}\" إلى الحافظة!", + "copyFailed": "فشل النسخ إلى الحافظة", + "custom": "مخصص", + "useCustomIcon": "استخدام أيقونة مخصصة: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "تصفح مكتبة الأيقونات الكاملة" + }, + "toolNotFound": "الأداة غير موجودة", + "backToTools": "العودة إلى الأدوات" + }, + "messages": { + "pathNotFound": "المسار غير موجود على نظام الملفات", + "pathNotFoundMessage": "لم يعد المسار الخاص بهذا موجوداً على نظام الملفات. ربما تم نقله أو حذفه.", + "reassignPath": "إعادة تعيين المسار", + "pathReassigned": "تم تحديث المسار بنجاح!", + "pathReassignFailed": "فشل تحديث المسار. يرجى المحاولة مرة أخرى." + }, + "duplicateFinder": { + "title": "أداة البحث عن الملفات المكررة", + "minSize": "الحد الأدنى للحجم (ميغابايت){suffix}", + "minSizeHint": "تحليل الملفات الأكبر من هذا الحجم (بالميغابايت) فقط", + "useChecksums": "مقارنة محتويات الملف", + "useChecksumsDescription": "قم أيضًا بتضمين محتويات الملف في المقارنة. بدون ذلك، تتم مطابقة الملفات حسب الحجم وتشابه اسم الملف.", + "findDuplicates": "البحث عن التكرارات", + "groupsFound": "تم العثور على مجموعات مكررة{suffix}", + "totalWastedSpace": "إجمالي المساحة المهدرة{suffix}", + "wasted": "ضائع{suffix}", + "emptyState": "أدخل معايير البحث وانقر فوق البحث عن التكرارات لتحديد الملفات المكررة" + }, + "notifications": { + "title": "الإشعارات", + "description": "عرض جميع التنبيهات من جلستك الحالية", + "empty": "لا توجد إخطارات حتى الآن", + "clearAll": "مسح الكل", + "clearConfirm": "هل أنت متأكد من رغبتك في مسح كل سجل الإشعارات؟", + "total": "{count} الإخطارات" + }, + "events": { + "serverShutdown": "تم إيقاف تشغيل الخادم.", + "authenticationFailed": "فشلت المصادقة. يرجى تحديث الصفحة لتسجيل الدخول مرة أخرى.", + "reconnected": "تمت إعادة الاتصال بالخادم.", + "connectionLost": "فُقد الاتصال بالخادم. محاولة إعادة الاتصال..." } } diff --git a/frontend/src/i18n/cz.json b/frontend/src/i18n/cz.json index cce3bb695c..213346679b 100644 --- a/frontend/src/i18n/cz.json +++ b/frontend/src/i18n/cz.json @@ -1,49 +1,16 @@ { "buttons": { "generateNewOtp": "Resetovat a vygenerovat nový kód dvoufázového ověření", - "cancel": "Zrušit", - "verify": "Ověřit", - "close": "Zavřít", - "copy": "Kopírovat", "copyFile": "Kopírovat soubor", "copyToClipboard": "Kopírovat do schránky", "copyDownloadLinkToClipboard": "Kopírovat odkaz ke stažení do schránky", - "create": "Vytvořit", - "delete": "Smazat", - "download": "Stáhnout", - "file": "Soubor", - "folder": "Složka", - "info": "Informace", - "more": "Více", - "move": "Přesunout", "moveFile": "Přesunout soubor", - "new": "Nový", - "next": "Další", - "ok": "OK", "permalink": "Získat trvalý odkaz", - "previous": "Předchozí", - "publish": "Publikovat", - "rename": "Přejmenovat", - "replace": "Nahradit", "reportIssue": "Nahlásit problém", - "save": "Uložit", - "schedule": "Naplánovat", - "search": "Hledat", - "select": "Vybrat", "selectMultiple": "Vybrat více", - "share": "Sdílet", "shell": "Přepnout shell", - "submit": "Odeslat", "switchView": "Přepnout zobrazení", "toggleSidebar": "Přepnout postranní panel", - "update": "Aktualizovat", - "upload": "Nahrát", - "openFile": "Otevřít soubor", - "continue": "Pokračovat", - "edit": "Upravit", - "pause": "Pauza", - "resume": "Životopis", - "retry": "Opakování", "pauseAll": "Pozastavení všech", "resumeAll": "Obnovit vše", "clearCompleted": "Vymazání dokončeno", @@ -62,10 +29,8 @@ "discardAndExit": "Vyřazení a ukončení", "saveAndExit": "Uložit a ukončit", "keepEditing": "Pokračovat v úpravách", - "stayOnPrompt": "Zůstaňte na", "closeAnyway": "Stejně zavřít", - "disable": "Zakázat", - "confirm": "Potvrďte" + "goToItem": "Přejít na položku" }, "download": { "downloadFile": "Stáhnout soubor", @@ -80,31 +45,31 @@ "internal": "Něco se opravdu pokazilo.", "notFound": "Tuto položku nelze najít.", "connection": "Nelze se připojit k serveru.", - "shareNotFound": "Neplatná nebo prošlá akcie." + "shareNotFound": "Neplatná nebo prošlá akcie.", + "failedToConnectToServer": "Nepodařilo se připojit k serveru, je stále spuštěn?" }, "files": { - "body": "Tělo", - "clear": "Vymazat", "closePreview": "Zavřít náhled", - "home": "Domů", "lastModified": "Poslední změna", - "loading": "Načítání...", "lonely": "Je tu nějak prázdno...", - "metadata": "Metadata", "multipleSelectionEnabled": "Povoleno vícenásobné označení", - "name": "Název", - "size": "Velikost", "sortByLastModified": "Řadit podle poslední změny", "sortByName": "Řadit podle názvu", "sortBySize": "Řadit podle velikosti", "noPreview": "Náhled pro tento soubor není dostupný.", - "noDownloadAccess": "Stahování není k dispozici." + "noDownloadAccess": "Stahování není k dispozici.", + "itemSelected": "položka vybrána", + "itemsSelected": "položky vybrány", + "myFiles": "Moje soubory{suffix}", + "newFile": "Nový soubor{suffix}", + "newFolder": "Nová složka{suffix}", + "duration": "Doba trvání{suffix}", + "sortByDuration": "Třídit podle doby trvání" }, "help": { "functionKeys": "Funkční Klávesy", "mouseActions": "Akce Myši", "fileOperations": "Operace se Soubory", - "navigation": "Navigace", "click": "označit soubor nebo složku", "ctrl": { "click": "označit více souborů nebo složek", @@ -118,11 +83,11 @@ "del": "smazat označené položky", "esc": "zrušit označení a/nebo zavřít dialog", "f2": "přejmenovat soubor", - "help": "Nápověda", "f1": "zobrazit výzvu nápovědy", "description": "Základní možnosti navigace si můžete prohlédnout níže. Další informace naleznete na adrese", "slash": "aktivovat vyhledávání", - "wiki": "Oficiální dokumenty k aplikaci FileBrowser Quantum" + "wiki": "Oficiální dokumenty k aplikaci FileBrowser Quantum", + "marqueeSelect": "vybrat více souborů nebo adresářů přetažením na prázdné místo." }, "languages": { "he": "עברית", @@ -156,7 +121,6 @@ "loginInstead": "Už máte účet", "passwordConfirm": "Potvrzení hesla", "passwordsDontMatch": "Hesla se neshodují", - "submit": "Přihlásit se", "usernameTaken": "Uživatelské jméno je již obsazeno", "wrongCredentials": "Nesprávné přihlašovací údaje", "or": "NEBO", @@ -225,7 +189,12 @@ "allowReplacements": "Povolení nahrazení souborů", "allowReplacementsDescription": "Při nahrávání souborů se stejným názvem může kdokoli nahradit stávající soubory.", "allowCreate": "Umožnit vytváření a nahrávání souborů a složek", - "allowCreateDescription": "V této sdílené složce může kdokoli vytvářet a nahrávat nové soubory a složky." + "allowCreateDescription": "V této sdílené složce může kdokoli vytvářet a nahrávat nové soubory a složky.", + "customizeSidebarLinks": "Přizpůsobení odkazů na bočním panelu", + "customizeSidebarLinksButton": "Přizpůsobení odkazů", + "shareInfo": "Sdílení kódu QR a informací", + "shareInfoDescription": "Tento odkaz zobrazí informace o sdílené složce včetně názvu, popisu, banneru a QR kódu ve vyskakovacím okně.", + "downloadDescription": "Tento odkaz umožňuje stáhnout celý obsah sdílené složky jako komprimovaný soubor." }, "prompts": { "copy": "Kopírovat", @@ -274,7 +243,6 @@ "viewMode": "Režim zobrazení", "renameMessage": "Zadejte nový název:", "renameMessageInvalid": "Soubor nemůže obsahovat \"/\" nebo \"\\\".", - "source": "Zdroj:{suffix}", "deleteMessageMultiple": "Opravdu chcete odstranit soubor(y) {count}?", "deleteMessageShare": "Jste si jisti, že chcete tuto sdílenou složku odstranit: {path} ?", "numberDirs": "Počet adresářů{suffix}", @@ -315,16 +283,14 @@ "firstLoadTitle": "Vítejte v aplikaci FileBrowser Quantum!", "halloweenTitle": "Šťastný Halloween!", "halloweenBody": "Bylo použito téma Halloween. Pokud se vám nelíbí, můžete jej vypnout nebo trvale zakázat v nastavení profilu výběrem jiného motivu.", - "firstLoadBody": "Při spuštění byla vytvořena nová databáze. Pokud to není to, co jste očekávali, překontrolujte prosím konfigurační soubor pro cestu `server.database` a ujistěte se, že existuje. V dockeru může být cesta k databázi `./data/database.db` nebo `./database.db`." + "firstLoadBody": "Při spuštění byla vytvořena nová databáze. Pokud to není to, co jste očekávali, překontrolujte prosím konfigurační soubor pro cestu `server.database` a ujistěte se, že existuje. V dockeru může být cesta k databázi `./data/database.db` nebo `./database.db`.", + "selectPath": "Vybrat cestu", + "renameSuccess": "Položka byla úspěšně přejmenována!", + "newFileSuccess": "Soubor byl úspěšně vytvořen!", + "newDirSuccess": "Adresář byl úspěšně vytvořen!", + "copyToClipboardFailed": "Nelze zkopírovat do schránky" }, "search": { - "images": "Obrázky", - "music": "Hudba", - "pdf": "PDF", - "search": "Hledat...", - "path": "Cesta:", - "types": "Typy", - "video": "Video", "smallerThan": "Menší než:", "largerThan": "Větší než:", "helpText1": "Vyhledávání probíhá po každém napsaném znaku (minimálně 3 znaky pro hledaný výraz).", @@ -333,12 +299,6 @@ "onlyFolders": "Pouze složky", "onlyFiles": "Pouze soubory", "showOptions": "Zobrazit možnosti", - "photos": "Fotografie", - "audio": "Audio", - "videos": "Videa", - "documents": "Dokumenty", - "archives": "Archivy", - "number": "Číslo", "searchContext": "Kontext vyhledávání: {context}", "notEnoughCharacters": "Nedostatek znaků pro vyhledávání (min. {minSearchLength})", "typeToSearch": "Pro zahájení vyhledávání začněte psát {minSearchLength} nebo více znaků." @@ -401,9 +361,7 @@ "themeAndLanguage": "Téma a jazyk", "previewFolder": "Zobrazení miniatur složek, pokud jsou k dispozici", "previewFolderDescription": "Zobrazení náhledů miniatur pro složky s první podřízenou položkou s miniaturou jako obálkou.", - "disableFileExtensions": "Zadejte přípony souborů, které chcete zakázat", - "defaultLandingPage": "Výchozí vstupní stránka", - "defaultLandingPageDescription": "např. '/files/mysource/mysubpath' nebo '/settings' - výchozí stránka je /files, která přejde do prvního zobrazení seznamu zdrojů." + "disableFileExtensions": "Zadejte přípony souborů, které chcete zakázat" }, "settings": { "enterPassword": "Zadejte heslo", @@ -419,7 +377,6 @@ "emptyGlobal": "Aktuálně nejsou žádné globální možnosti nastavení. Pro úpravu systémových nastavení upravte konfigurační soubor yaml.", "scopes": "Definujte povolené zdroje a rozsah uživatele v nich", "UserManagement": "Správa uživatelů", - "admin": "Správce", "userNotAdmin": "Uživatel není administrátor", "administrator": "Administrátor", "allowCommands": "Povolit spouštění příkazů", @@ -428,7 +385,6 @@ "allowPublish": "Publikovat nové příspěvky a stránky", "allowSignup": "Povolit registraci uživatelů", "avoidChanges": "Zaškrtněte také 'změnit heslo' pro použití tohoto hesla", - "branding": "Branding", "brandingDirectoryPath": "Cesta k adresáři s brandingem", "changePassword": "Změnit heslo", "commandRunner": "Spouštěč příkazů", @@ -445,8 +401,6 @@ "defaultUserDescription": "Toto jsou výchozí nastavení pro nové uživatele.", "disableExternalLinks": "Zakázat externí odkazy (kromě dokumentace)", "disableUsedDiskPercentage": "Zakázat graf procentuálního využití disku", - "documentation": "dokumentace", - "examples": "Příklady", "executeOnShell": "Spouštět v shellu", "executeOnShellDescription": "Ve výchozím nastavení File Browser spouští příkazy přímo jako binárky. Pokud je chcete spouštět v shellu (například Bash nebo PowerShell), zadejte jej zde s požadovanými argumenty a přepínači. Pokud je nastaveno, zadaný příkaz bude připojen jako argument. Platí jak pro uživatelské příkazy, tak pro události.", "globalRules": "Toto je globální sada povolených a zakázaných pravidel. Platí pro všechny uživatele. Pro konkrétní uživatele můžete definovat vlastní pravidla, která přepíší ta globální.", @@ -456,14 +410,11 @@ "insertPath": "Vložit cestu", "insertRegex": "Vložit regulární výraz", "instanceName": "Název instance", - "language": "Jazyk", "lockPassword": "Zabránit uživateli ve změně hesla", "newPassword": "Nové heslo", "newPasswordConfirm": "Potvrdit nové heslo", "newUser": "Nový uživatel", - "password": "Heslo", "passwordUpdated": "Heslo bylo aktualizováno!", - "path": "Cesta", "permissions": { "admin": "Administrátor", "modify": "Upravit soubory", @@ -479,31 +430,18 @@ "profileSettings": "Nastavení profilu", "ruleExample1": "zamezí přístup ke všem skrytým souborům (např. .git, .gitignore) ve všech složkách.\n", "ruleExample2": "blokuje přístup k souboru s názvem Caddyfile v kořeni rozsahu.", - "rules": "Pravidla", "rulesHelp": "Zde můžete nastavit povolená a zakázaná pravidla pro konkrétního uživatele. Blokované soubory se nezobrazí v seznamu a uživatel k nim nebude mít přístup. Podporujeme regex a cesty relativní k rozsahu uživatele.\n", - "scope": "Rozsah", "settingsUpdated": "Nastavení aktualizováno!", - "shareDuration": "Platnost vyprší", "shareManagement": "Správa sdílení", "shareDeleted": "Sdílení bylo smazáno!", "singleClick": "Používat jednoduché kliknutí pro otevření souborů a složek", - "themes": { - "dark": "Tmavý", - "light": "Světlý", - "title": "Motiv" - }, - "user": "Uživatel", - "userCommands": "Příkazy", "userCommandsHelp": "Mezerami oddělený seznam dostupných příkazů pro tohoto uživatele. Příklad:\n", "userCreated": "Uživatel vytvořen!", "userDefaults": "Výchozí nastavení uživatele", "userDeleted": "Uživatel smazán!", "userManagement": "Správa uživatelů", "userUpdated": "Uživatel aktualizován!", - "username": "Uživatelské jméno", - "users": "Uživatelé", "adminOptions": "Možnosti administrátora", - "downloads": "Ke stažení na", "systemAdmin": "Systém a správce", "configViewer": "Prohlížeč konfigurace", "configViewerShowFull": "Zobrazit úplnou konfiguraci", @@ -516,24 +454,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "např. '/subfolder' - prázdný pro výchozí nastavení", - "userScopes": "Rozsahy" + "newUserHintSubFolder": "např. '/subfolder' - prázdný pro výchozí nastavení" }, "sidebar": { - "help": "Nápověda", - "hugoNew": "Nový Hugo", - "login": "Přihlásit se", - "logout": "Odhlásit se", - "myFiles": "Moje soubory", - "newFile": "Nový soubor", - "newFolder": "Nová složka", - "preview": "Náhled", - "settings": "Nastavení", - "sources": "Zdroje", - "signup": "Registrace", "siteSettings": "Nastavení webu", "updateIsAvailable": "Je dostupná aktualizace!", - "fileActions": "Akce se soubory" + "fileActions": "Akce se soubory", + "customizeLinks": "Přizpůsobení odkazů na bočním panelu", + "customizeLinksDescription": "Přizpůsobení odkazů zobrazených v postranním panelu. Přetažením změníte jejich pořadí.", + "currentLinks": "Aktuální odkazy", + "addNewLink": "Přidat nový odkaz", + "linkType": "Typ odkazu", + "selectLinkType": "Vyberte typ odkazu", + "customLink": "Vlastní odkaz", + "selectSource": "Vybrat zdroj", + "chooseSource": "Výběr zdroje", + "selectTool": "Vybrat nástroj", + "chooseTool": "Výběr nástroje", + "linkName": "Název odkazu", + "linkNamePlaceholder": "Zadejte název odkazu", + "linkUrl": "Adresa URL odkazu", + "linkUrlPlaceholder": "Zadejte adresu URL nebo cestu (např. /files/path nebo https://example.com).", + "linkIcon": "Ikona odkazu", + "linksUpdatedSuccess": "Odkazy na postranním panelu úspěšně aktualizovány!", + "linksUpdateFailed": "Nepodařilo se aktualizovat odkazy na postranním panelu", + "sourceNotAccessible": "Tento zdroj již není přístupný", + "noLinksYet": "Zatím nejsou nakonfigurovány žádné odkazy. Přidejte svůj první odkaz níže.", + "customizeShareLinks": "Přizpůsobení sdílených odkazů na postranním panelu", + "customizeShareLinksDescription": "Přizpůsobte si odkazy zobrazené v postranním panelu pro toto sdílení. Přetažením změníte pořadí.", + "editLink": "Upravit odkaz", + "selectShare": "Zvolte možnost Sdílet", + "chooseShare": "Výběr podílu", + "selectSharePath": "Cesta v rámci sdílené složky (nepovinné)", + "sharePathPlaceholder": "např. /subfolder nebo nechat prázdný pro kořenový adresář.", + "browseIcons": "Procházet ikony", + "pickIcon": "Výběr ikony", + "pickIconDescription": "Vyhledejte a vyberte ikonu z knihovny Material Icons.", + "shareLinksUpdatedSuccess": "Odkazy na sdílení postranního panelu byly úspěšně aktualizovány!", + "shareHome": "Sdílet Domů", + "linkIconPlaceholder": "Volitelně zadejte název ikony materiálu" }, "success": { "linkCopied": "Odkaz zkopírován!" @@ -567,21 +526,28 @@ "expires": "Vyprší", "actions": "Akce", "enabled": "Povoleno", - "disabled": "Zakázáno" + "disabled": "Zakázáno", + "apiKeyDeleted": "Klíč API smazán!" }, "index": { - "status": "Stav", "assessment": "Vyhodnocení", "lastScanned": "Poslední skenování", "quickScan": "Rychlý sken (s)", "fullScan": "Plný sken (s)", "settingsHover": "Nastavení pro uživatele", - "logout": "Odhlásit se", "toggleClick": "Přepnout jedno kliknutí", "toggleDark": "Přepnout tmavý režim", "toggleSticky": "Přepnout sticky režim", - "used": "použito", - "noSources": "Pro tohoto uživatele nejsou dostupné žádné zdroje. Přidejte zdroj pro uživatele nebo nastavte zdroj s defaultEnabled: true" + "noSources": "Pro tohoto uživatele nejsou dostupné žádné zdroje. Přidejte zdroj pro uživatele nebo nastavte zdroj s defaultEnabled: true", + "unknown": "Neznámý", + "simple": "Jednoduché", + "normal": "Normální", + "complex": "Komplexní", + "highlyComplex": "Vysoce komplexní", + "ready": "Připraveno", + "indexing": "Indexování", + "unavailable": "Nedostupné", + "error": "Chyba" }, "otp": { "name": "Dvoufázové ověření", @@ -625,7 +591,96 @@ "exit": "Exit", "permanent": "Permanentní", "hash": "Hash", - "of": "z" + "of": "z", + "source": "Zdroj:{suffix}", + "percentage": "{percentage}%", + "type": "Typ{suffix}", + "size": "Velikost{suffix}", + "body": "Tělo{suffix}", + "home": "Home{suffix}", + "clear": "Přehledně{suffix}", + "help": "Nápověda{suffix}", + "login": "Přihlášení{suffix}", + "logout": "Odhlášení{suffix}", + "preview": "Náhled{suffix}", + "settings": "Nastavení{suffix}", + "sources": "Zdroje{suffix}", + "links": "Odkazy{suffix}", + "tool": "Nástroj{suffix}", + "used": "použité{suffix}", + "status": "Stav{suffix}", + "analyze": "Analýza{suffix}", + "results": "Výsledky{suffix}", + "users": "Uživatelé{suffix}", + "photos": "Fotografie", + "audio": "Audio{suffix}", + "videos": "Videa{suffix}", + "documents": "Dokumenty{suffix}", + "archives": "Archivy{suffix}", + "images": "Obrázky{suffix}", + "music": "Hudba{suffix}", + "pdf": "PDF{suffix}", + "search": "Vyhledávání{suffix}", + "number": "Číslo{suffix}", + "types": "Typy{suffix}", + "video": "Video{suffix}", + "admin": "Admin{suffix}", + "branding": "Branding{suffix}", + "language": "Jazyk{suffix}", + "documentation": "dokumentace{suffix}", + "examples": "Příklady{suffix}", + "dark": "Dark{suffix}", + "light": "Světlo{suffix}", + "title": "Téma{suffix}", + "expires": "Platnost končí na{suffix}", + "scope": "Oblast působnosti{suffix}", + "rules": "Pravidla{suffix}", + "downloads": "Ke stažení na{suffix}", + "submit": "Přihlášení{suffix}", + "navigation": "Navigace{suffix}", + "metadata": "Metadata{suffix}", + "loading": "Načítání{suffix}", + "add": "Přidat{suffix}", + "cancel": "Zrušit{suffix}", + "verify": "Ověřit{suffix}", + "close": "Zavřít{suffix}", + "copy": "Kopírovat{suffix}", + "create": "Vytvořit{suffix}", + "delete": "Odstranit{suffix}", + "download": "Stáhnout{suffix}", + "file": "Soubor{suffix}", + "folder": "Složka{suffix}", + "info": "Informace{suffix}", + "more": "Více na{suffix}", + "move": "Přesun{suffix}", + "new": "Nový{suffix}", + "next": "Další{suffix}", + "ok": "OK{suffix}", + "previous": "Předchozí{suffix}", + "publish": "Zveřejnit{suffix}", + "rename": "Přejmenování{suffix}", + "replace": "Vyměňte stránky{suffix}", + "save": "Uložit{suffix}", + "schedule": "Plán{suffix}", + "select": "Vyberte{suffix}", + "share": "Sdílet{suffix}", + "update": "Aktualizace{suffix}", + "upload": "Nahrát{suffix}", + "openFile": "Otevřít soubor{suffix}", + "continue": "Pokračovat{suffix}", + "edit": "Upravit{suffix}", + "pause": "Pauza{suffix}", + "resume": "Životopis{suffix}", + "retry": "Opakování{suffix}", + "disable": "Zakázat{suffix}", + "confirm": "Potvrďte{suffix}", + "stay": "Zůstaňte na{suffix}", + "scopes": "Rozsahy{suffix}", + "commands": "Příkazy{suffix}", + "uploading": "Nahrávání{suffix}", + "paused": "Pauza{suffix}", + "conflict": "Konflikt{suffix}", + "change": "Změna{suffix}" }, "access": { "rules": "Pravidla přístupu", @@ -642,18 +697,22 @@ "enterName": "Zadejte jméno uživatele nebo skupiny", "deleted": "Přístupové pravidlo odstraněno!", "added": "Přidáno pravidlo přístupu!", - "name": "Název", "accessManagement": "Správa přístupu", "all": "Odmítnout vše", "defaultBehaviorDescription": "To ukazuje, co se stane, když se uživatel pokusí získat přístup k cestě, kde neexistují žádná specifická pravidla přístupu. \"Povolit\" znamená, že uživatelé mají ve výchozím nastavení přístup, \"Odmítnout\" znamená, že uživatelé jsou ve výchozím nastavení blokováni, pokud není výslovně povoleno.", - "defaultBehavior": "Výchozí akce{suffix}" + "defaultBehavior": "Výchozí akce{suffix}", + "deletedCascade": "Přístupová pravidla odstraněna z cesty a všech podcest!", + "cascadeDelete": "Rekurzivní mazání", + "cascadeDeleteDescription": "Pokud je tato možnost povolena, odstraní se pravidlo přístupu také ze všech podadresářů. To umožňuje zcela odstranit uživatele nebo skupinu z celého adresářového stromu." }, "editor": { "uninitialized": "Nepodařilo se inicializovat editor. Prosím, načtěte jej znovu.", "saveFailed": "Soubor se nepodařilo uložit. Zkuste to prosím znovu.", "saveAborted": "Uložení přerušeno. Název souboru neodpovídá aktivnímu souboru.", "saveAbortedMessage": "Operace ukládání byla přerušena. Aktivní soubor aplikace ({activeFile}) neodpovídá souboru, který se pokoušíte uložit ({tryingToSave}).", - "syncFailed": "po 5 pokusech se nepodařilo synchronizovat stav s trasou pro \"{filename}\". Přerušení nastavení editoru, aby se zabránilo poškození dat." + "syncFailed": "po 5 pokusech se nepodařilo synchronizovat stav s trasou pro \"{filename}\". Přerušení nastavení editoru, aby se zabránilo poškození dat.", + "fileSaved": "Soubor uložen!", + "errorSavingFile": "Chyba při ukládání souboru: {error}" }, "player": { "LoopEnabled": "Smyčka povolena", @@ -666,5 +725,93 @@ "changePlaybackMode": "Změnit režim přehrávání", "changePlaybackModeHint": "Změňte režim přehrávání, abyste viděli více souborů", "emptyQueue": "Fronta je prázdná" + }, + "fileSizeAnalyzer": { + "title": "Analyzátor velikosti souborů", + "searchLocation": "Umístění vyhledávání", + "selectPath": "Výběr místa vyhledávání", + "largerThan": "Větší než (MB)", + "includeFolders": "Zahrnout složky", + "includeFoldersDescription": "Zahrnutí adresářů do analýzy", + "totalFiles": "Soubory celkem{suffix}", + "totalSize": "Celková velikost{suffix}", + "emptyState": "Zadejte kritéria vyhledávání a kliknutím na tlačítko Analyzovat zobrazte velikosti souborů.", + "completeResults": "Zobrazeny kompletní výsledky!", + "incompleteResults": "Výsledky mohou být neúplné", + "incompleteResultsDetails": "Zobrazují se maximální výsledky (100). Zkuste zúžit vyhledávání, abyste získali více výsledků pod 100.", + "relativePercentage": "Relativní procento{suffix}", + "percentageOfResults": "{percentage}% výsledků" + }, + "fileTypes": { + "video": "Video", + "image": "Obrázek", + "audio": "Audio", + "archive": "Archiv", + "document": "Dokument", + "binary": "Binární", + "directory": "Adresář", + "other": "Další" + }, + "tools": { + "description": "Nástroje a nástroje pro analýzu vašich souborů", + "sizeAnalyzer": { + "name": "Analyzátor velikosti souborů", + "description": "Vizualizace velkých souborů a adresářů pomocí interaktivní mapy stromů" + }, + "title": "Nástroje", + "duplicateFinder": { + "name": "Vyhledávač duplicitních souborů", + "description": "Vyhledávání a správa duplicitních souborů pro obnovu úložného prostoru" + }, + "materialIconPicker": { + "name": "Nástroj pro výběr ikony materiálu", + "description": "Procházení a vyhledávání ikon materiálu s živým náhledem", + "searchPlaceholder": "Hledat ikony...", + "popularIcons": "Zobrazeno {count} populární ikony", + "showingResults": "Zobrazují se výsledky {count} ", + "noResults": "Nebyly nalezeny žádné ikony", + "tryDifferentSearch": "Zkuste použít jiný vyhledávací výraz", + "copiedToClipboard": "Zkopírováno '{name}' do schránky!", + "copyFailed": "Nepodařilo se zkopírovat do schránky", + "custom": "Vlastní", + "useCustomIcon": "Použití vlastní ikony: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Procházet celou knihovnu ikon" + }, + "toolNotFound": "Nástroj nebyl nalezen", + "backToTools": "Zpět na Nástroje" + }, + "messages": { + "pathNotFound": "Cesta v souborovém systému neexistuje", + "pathNotFoundMessage": "Cesta k němu již v souborovém systému neexistuje. Mohla být přesunuta nebo odstraněna.", + "reassignPath": "Změna přiřazení cesty", + "pathReassigned": "Cesta byla úspěšně aktualizována!", + "pathReassignFailed": "Nepodařilo se aktualizovat cestu. Zkuste to prosím znovu." + }, + "duplicateFinder": { + "title": "Vyhledávač duplicitních souborů", + "minSize": "Minimální velikost (MB){suffix}", + "minSizeHint": "Analyzovat pouze soubory větší než tato velikost (v megabajtech).", + "useChecksums": "Porovnání obsahu souboru", + "useChecksumsDescription": "Do porovnání zahrňte také obsah souboru. Bez tohoto nastavení jsou soubory porovnávány podle velikosti a podobnosti názvů souborů.", + "findDuplicates": "Vyhledání duplicit", + "groupsFound": "Nalezeny duplicitní skupiny{suffix}", + "totalWastedSpace": "Celkový promarněný prostor{suffix}", + "wasted": "Promarněné{suffix}", + "emptyState": "Zadejte kritéria vyhledávání a kliknutím na tlačítko Najít duplikáty identifikujte duplicitní soubory." + }, + "notifications": { + "title": "Oznámení", + "description": "Zobrazení všech oznámení z aktuální relace", + "empty": "Zatím žádná oznámení", + "clearAll": "Vymazat vše", + "clearConfirm": "Určitě chcete vymazat celou historii oznámení?", + "total": "{count} oznámení" + }, + "events": { + "serverShutdown": "Server byl vypnut.", + "authenticationFailed": "Ověření se nezdařilo. Obnovte prosím stránku a přihlaste se znovu.", + "reconnected": "Znovu se připojil k serveru.", + "connectionLost": "Spojení se serverem bylo ztraceno. Při pokusu o obnovení připojení..." } } diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.json index 2d7fa0bf3f..add66559c8 100644 --- a/frontend/src/i18n/de.json +++ b/frontend/src/i18n/de.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Abbrechen", - "close": "Schließen", - "copy": "Kopieren", "copyFile": "Datei kopieren", "copyToClipboard": "In Zwischenablage kopieren", - "create": "Neu", - "delete": "Löschen", - "download": "Herunterladen", - "file": "Datei", - "folder": "Ordner", - "info": "Info", - "more": "Mehr", - "move": "Verschieben", "moveFile": "Datei verschieben", - "new": "Neu", - "next": "Weiter", - "ok": "OK", "permalink": "Permalink anzeigen", - "previous": "Zurück", - "publish": "Veröffentlichen", - "rename": "Umbenennen", - "replace": "Ersetzen", "reportIssue": "Fehler melden", - "save": "Speichern", - "schedule": "Planung", - "search": "Suchen", - "select": "Auswählen", "selectMultiple": "Mehrfachauswahl", - "share": "Teilen", "shell": "Kommandozeile ein-/ausschalten", - "submit": "Absenden", "switchView": "Ansicht wechseln", "toggleSidebar": "Seitenleiste anzeigen", - "update": "Aktualisieren", - "upload": "Hochladen", - "openFile": "Datei öffnen", - "continue": "Fortfahren", "copyDownloadLinkToClipboard": "Download-Link in die Zwischenablage kopieren", - "edit": "bearbeiten", "generateNewOtp": "Zurücksetzen und Generieren eines neuen Zwei-Faktor-Codes", - "verify": "Überprüfen Sie", - "pause": "Pause", - "resume": "Lebenslauf", - "retry": "Wiederholung", "pauseAll": "Pause alle", "resumeAll": "Alle zusammenfassen", "clearCompleted": "Abgeschlossene löschen", @@ -62,10 +29,8 @@ "discardAndExit": "Verwerfen und Beenden", "saveAndExit": "Speichern und Beenden", "keepEditing": "Weiter bearbeiten", - "stayOnPrompt": "Bleiben Sie", "closeAnyway": "Jedenfalls schließen", - "disable": "Deaktivieren Sie", - "confirm": "Bestätigen Sie" + "goToItem": "Weiter zu Artikel" }, "download": { "downloadFile": "Datei herunterladen", @@ -77,31 +42,31 @@ "internal": "Etwas ist schief gelaufen.", "notFound": "Dieser Ort kann nicht angezeigt werden.", "connection": "Der Server ist nicht erreichbar.", - "shareNotFound": "Ungültige oder abgelaufene Freigabe." + "shareNotFound": "Ungültige oder abgelaufene Freigabe.", + "failedToConnectToServer": "Verbindung zum Server fehlgeschlagen, läuft er noch?" }, "files": { - "body": "Body", - "clear": "Schließen", "closePreview": "Vorschau schließen", - "home": "Home", "lastModified": "Zuletzt geändert", - "loading": "Laden...", "lonely": "Hier scheint nichts zu sein...", - "metadata": "Metadaten", "multipleSelectionEnabled": "Mehrfachauswahl aktiviert", - "name": "Name", - "size": "Größe", "sortByLastModified": "Nach Änderungsdatum sortieren", "sortByName": "Nach Namen sortieren", "sortBySize": "Nach Größe sortieren", "noPreview": "Für diese Datei ist keine Vorschau verfügbar.", - "noDownloadAccess": "Der Download ist nicht verfügbar." + "noDownloadAccess": "Der Download ist nicht verfügbar.", + "itemSelected": "Element ausgewählt", + "itemsSelected": "Elemente ausgewählt", + "myFiles": "Meine Dateien{suffix}", + "newFile": "Neue Datei{suffix}", + "newFolder": "Neuer Ordner{suffix}", + "duration": "Dauer{suffix}", + "sortByDuration": "Sortieren nach Dauer" }, "help": { "functionKeys": "Funktionstasten", "mouseActions": "Mausaktionen", "fileOperations": "Dateioperationen", - "navigation": "Navigation", "click": "Wähle Datei oder Ordner", "ctrl": { "click": "Markiere mehrere Dateien oder Ordner", @@ -115,11 +80,11 @@ "del": "Löscht die ausgewählten Elemente", "esc": "Auswahl zurücksetzen und/oder Dialog schließen", "f2": "Datei umbenennen", - "help": "Hilfe", "f1": "Hilfeprompt anzeigen", "description": "Nachstehend finden Sie die grundlegenden Navigationsoptionen. Für zusätzliche Informationen besuchen Sie bitte das", "slash": "Suche aktivieren", - "wiki": "FileBrowser Quantum-Wiki" + "wiki": "FileBrowser Quantum-Wiki", + "marqueeSelect": "mehrere Dateien oder Verzeichnisse durch Ziehen auf leeren Raum auswählen" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Bei bestehendem Konto anmelden", "passwordConfirm": "Kennwort bestätigen", "passwordsDontMatch": "Kennwörter stimmen nicht überein", - "submit": "Anmelden", "usernameTaken": "Benutzername ist bereits vergeben", "wrongCredentials": "Falsche Zugangsdaten", "or": "OR", @@ -208,7 +172,6 @@ "viewMode": "Ansichtsmodus", "renameMessage": "Geben Sie einen neuen Namen ein:", "renameMessageInvalid": "Eine Datei kann nicht den Container \"/\" oder \"\\\" enthalten.", - "source": "Quelle{suffix}", "deleteMessageMultiple": "Sind Sie sicher, dass Sie die Datei(en) {count} löschen möchten?", "deleteMessageShare": "Sind Sie sicher, dass Sie diese Freigabe löschen möchten: {path} ?", "numberDirs": "Anzahl der Verzeichnisse{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Willkommen bei FileBrowser Quantum!", "halloweenTitle": "Fröhliches Halloween!", "halloweenBody": "Das Halloween-Thema wurde angewendet. Sie können es deaktivieren, wenn es Ihnen nicht gefällt, oder es in den Profileinstellungen dauerhaft deaktivieren, indem Sie ein anderes Thema auswählen.", - "firstLoadBody": "Beim Starten wurde eine neue Datenbank erstellt. Wenn dies nicht das ist, was Sie erwartet haben, überprüfen Sie bitte Ihre Konfigurationsdatei auf den Pfad `server.database` und stellen Sie sicher, dass er existiert. Bei Docker kann der Datenbankpfad `./data/database.db` oder `./database.db` sein." + "firstLoadBody": "Beim Starten wurde eine neue Datenbank erstellt. Wenn dies nicht das ist, was Sie erwartet haben, überprüfen Sie bitte Ihre Konfigurationsdatei auf den Pfad `server.database` und stellen Sie sicher, dass er existiert. Bei Docker kann der Datenbankpfad `./data/database.db` oder `./database.db` sein.", + "selectPath": "Pfad auswählen", + "renameSuccess": "Artikel erfolgreich umbenannt!", + "newFileSuccess": "Datei erfolgreich erstellt!", + "newDirSuccess": "Verzeichnis erfolgreich erstellt!", + "copyToClipboardFailed": "Kopieren in die Zwischenablage nicht möglich" }, "search": { - "images": "Bilder", - "music": "Musik", - "pdf": "PDF", - "search": "Suche...", - "types": "Typen", - "video": "Video", - "path": "Pfad:", "smallerThan": "Kleiner als:", "largerThan": "Größer als:", "helpText1": "Die Suche erfolgt bei jedem Zeichen, das Sie eingeben (mindestens 3 Zeichen für Suchbegriffe).", @@ -267,18 +228,11 @@ "onlyFolders": "Nur Ordner", "onlyFiles": "Nur Dateien", "showOptions": "Optionen anzeigen", - "photos": "Fotos", - "audio": "Audio", - "videos": "Videos", - "documents": "Dokumente", - "archives": "Archiv", - "number": "Nummer", "searchContext": "Suche im Kontext: {context}", "notEnoughCharacters": "Nicht genügend Zeichen für die Suche (min {minSearchLength})", "typeToSearch": "Beginnen Sie mit der Eingabe von {minSearchLength} oder mehr Zeichen, um die Suche zu starten." }, "settings": { - "admin": "Admin", "administrator": "Administrator", "allowCommands": "Befehle ausführen", "allowEdit": "Bearbeiten, Umbenennen und Löschen von Dateien oder Ordnern", @@ -286,7 +240,6 @@ "allowPublish": "Veröffentlichen von neuen Beiträgen und Seiten", "allowSignup": "Benutzern erlauben, sich zu registrieren", "avoidChanges": "(leer lassen, um Änderungen zu vermeiden)", - "branding": "Branding", "brandingDirectoryPath": "Branding-Verzeichnispfad", "changePassword": "Kennwort ändern", "commandRunner": "Befehlseingabe", @@ -300,8 +253,6 @@ "defaultUserDescription": "Das sind die Standardeinstellung für Benutzer", "disableExternalLinks": "Externe Links deaktivieren (außer Dokumentation)", "disableUsedDiskPercentage": "Diagramm zur Festplattennutzung deaktivieren", - "documentation": "Dokumentation", - "examples": "Beispiele", "executeOnShell": "In Kommandozeile ausführen", "executeOnShellDescription": "Es ist voreingestellt, dass FileBrowser Befehle ausführt, indem er die Befehlsdateien direkt aufruft. Wenn Sie wollen, dass sie über eine Kommandozeile (wie Bash oder PowerShell) laufen, könne Sie diese hier mit allen benötigten Argumenten und Optionen definieren. Wenn gesetzt, wird der auszuführende Befehl als Parameter angehängt. Das gilt sowohl für Benuzerbefehle als auch für Ereignisse.", "globalRules": "Das ist ein globales Set von Regeln die erlauben oder nicht erlauben. Die sind für alle Benutzer zutreffend. Es können spezielle Regeln in den Einstellungen der Benutzer definiert werden, die diese überschreiben.", @@ -309,14 +260,11 @@ "insertPath": "Pfad einfügen", "insertRegex": "Regulären Ausdruck (Regex) einfügen", "instanceName": "Instanzname", - "language": "Sprache", "lockPassword": "Verhindere, dass der Benutzer sein Passwort ändert", "newPassword": "Ihr neues Passwort.", "newPasswordConfirm": "Bestätigen Sie Ihr neues Passwort", "newUser": "Neuer Benutzer", - "password": "Kennwort", "passwordUpdated": "Kennwort aktualisiert!", - "path": "Pfad", "permissions": { "modify": "Dateien bearbeiten", "share": "Datei teilen", @@ -332,28 +280,17 @@ "profileSettings": "Darstellung", "ruleExample1": "Verhindert den Zugang zu versteckten Dateien (dot-Files, wie .git, .gitignore) in allen Ordnern\n", "ruleExample2": "Blockiert den Zugang auf Dateien mit dem Namen Caddyfile in der Wurzel/Basis des Scopes.", - "rules": "Regeln", "rulesHelp": "Hier können Sie erlaubte und verbotene Aktionen für einen einzelnen Benutzer festlegen. Blockierte Dateien werden nicht gelistet und sind für den Nutzer nicht erreichbar. Reguläre Ausdrücke (Regex) und Pfade relativ zum Benutzerordner werden unterstützt. \n", - "scope": "Scope", "settingsUpdated": "Einstellungen aktualisiert!", "shareManagement": "Freigaben verwalten", "shareDeleted": "Freigabe gelöscht!", "singleClick": "Einfacher Klick zum Öffnen von Dateien und Ordnern", - "themes": { - "dark": "Dunkel", - "light": "Hell", - "title": "Erscheinungsbild" - }, - "user": "Benutzer", - "userCommands": "Befehle", "userCommandsHelp": "Eine durch Leerzeichen getrennte Liste mit den für diesen Nutzer verfügbaren Befehlen. Beispiel:\n", "userCreated": "Benutzer angelegt!", "userDefaults": "Benutzer-Standardeinstellungen", "userDeleted": "Benutzer gelöscht!", "userManagement": "Benutzerverwaltung", "userUpdated": "Benutzer aktualisiert!", - "username": "Benutzername", - "users": "Benutzer", "modifyOtherUser": "Benutzer ändern:", "modifyCurrentUser": "Aktuellen Benutzer ändern", "themeColor": "Designfarbe", @@ -373,9 +310,7 @@ "loginMethod": "Login-Methode", "shareSettings": "Dateifreigaben", "adminOptions": "Optionen für Verwaltungsbenutzer", - "shareDuration": "Abgelaufen", "searchOptions": "Suchoptionen", - "downloads": "Herunterladen", "systemAdmin": "System & Verwaltung", "configViewer": "Config Viewer", "configViewerShowFull": "Vollständige Konfiguration anzeigen", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "z.B. '/subfolder' - leer für Standard", - "userScopes": "Zugangsbereiche" + "newUserHintSubFolder": "z.B. '/subfolder' - leer für Standard" }, "sidebar": { - "help": "Hilfe", - "hugoNew": "Hugo Neu", - "login": "Anmelden", - "logout": "Abmelden", - "myFiles": "Meine Dateien", - "newFile": "Neue Datei", - "newFolder": "Neuer Ordner", - "preview": "Vorschau", - "settings": "Einstellungen", - "signup": "Registrieren", "siteSettings": "Seiteneinstellungen", - "sources": "Quellen", "updateIsAvailable": "Ein Update ist verfügbar!", - "fileActions": "Datei-Aktionen" + "fileActions": "Datei-Aktionen", + "customizeLinks": "Links in der Seitenleiste anpassen", + "customizeLinksDescription": "Passen Sie die in Ihrer Seitenleiste angezeigten Links an. Durch Ziehen und Ablegen können Sie die Reihenfolge ändern.", + "currentLinks": "Aktuelle Links", + "addNewLink": "Neuen Link hinzufügen", + "linkType": "Link Typ", + "selectLinkType": "Wählen Sie einen Link-Typ", + "customLink": "Benutzerdefinierter Link", + "selectSource": "Quelle auswählen", + "chooseSource": "Wählen Sie eine Quelle", + "selectTool": "Werkzeug auswählen", + "chooseTool": "Wählen Sie ein Werkzeug", + "linkName": "Link Name", + "linkNamePlaceholder": "Link-Name eingeben", + "linkUrl": "Link URL", + "linkUrlPlaceholder": "URL oder Pfad eingeben (z. B. /files/path oder https://example.com)", + "linkIcon": "Link-Symbol", + "linksUpdatedSuccess": "Links in der Seitenleiste erfolgreich aktualisiert!", + "linksUpdateFailed": "Links in der Seitenleiste können nicht aktualisiert werden", + "sourceNotAccessible": "Diese Quelle ist für Sie nicht mehr zugänglich", + "noLinksYet": "Noch keine Links konfiguriert. Fügen Sie unten Ihren ersten Link hinzu.", + "customizeShareLinks": "Links in der Seitenleiste für die Freigabe anpassen", + "customizeShareLinksDescription": "Passen Sie die in der Seitenleiste angezeigten Links für diese Freigabe an. Durch Ziehen und Ablegen können Sie die Reihenfolge ändern.", + "editLink": "Link bearbeiten", + "selectShare": "Aktie auswählen", + "chooseShare": "Wählen Sie eine Aktie", + "selectSharePath": "Pfad innerhalb der Freigabe (optional)", + "sharePathPlaceholder": "z. B. /subfolder oder leer lassen für root", + "browseIcons": "Icons durchsuchen", + "pickIcon": "Wählen Sie eine Ikone", + "pickIconDescription": "Suchen und wählen Sie ein Symbol aus der Bibliothek der Materialsymbole", + "shareLinksUpdatedSuccess": "Links in der Seitenleiste erfolgreich aktualisiert!", + "shareHome": "Startseite teilen", + "linkIconPlaceholder": "Optional können Sie einen Materialsymbolnamen angeben" }, "success": { "linkCopied": "Link wurde kopiert!" @@ -481,7 +437,12 @@ "allowReplacements": "Ersetzen von Dateien zulassen", "allowReplacementsDescription": "Jeder kann beim Hochladen von Dateien mit demselben Namen bestehende Dateien ersetzen.", "allowCreate": "Ermöglicht das Erstellen und Hochladen von Dateien und Ordnern", - "allowCreateDescription": "Jeder kann neue Dateien und Ordner in dieser Freigabe erstellen und hochladen." + "allowCreateDescription": "Jeder kann neue Dateien und Ordner in dieser Freigabe erstellen und hochladen.", + "customizeSidebarLinks": "Links in der Seitenleiste anpassen", + "customizeSidebarLinksButton": "Anpassen von Links", + "shareInfo": "QR-Code und Informationen teilen", + "shareInfoDescription": "Dieser Link zeigt die Informationen zur Freigabe, einschließlich Titel, Beschreibung, Banner und QR-Code, in einem Popup-Fenster an.", + "downloadDescription": "Über diesen Link kann der gesamte Inhalt der Freigabe als komprimierte Datei heruntergeladen werden." }, "api": { "title": "API-Schlüssel", @@ -505,21 +466,28 @@ "expires": "Läuft ab", "actions": "Aktionen", "enabled": "Aktiviert", - "disabled": "Deaktiviert" + "disabled": "Deaktiviert", + "apiKeyDeleted": "API-Schlüssel gelöscht!" }, "index": { - "status": "Status", "assessment": "Bewertung", "lastScanned": "Zuletzt gescannt", "quickScan": "Schnell-Scan (Sekunden)", "fullScan": "Vollständiger Scan (Sekunden)", "settingsHover": "Einstellungen", - "logout": "Abmelden", "toggleClick": "Einzelklick umschalten", "toggleDark": "Dunkelmodus umschalten", "toggleSticky": "Sticky-Modus umschalten", - "used": "belegt", - "noSources": "Für diesen Benutzer sind keine Quellen verfügbar. Entweder eine Quelle für diesen Benutzer hinzufügen oder eine Quelle mit defaultEnabled: true konfigurieren" + "noSources": "Für diesen Benutzer sind keine Quellen verfügbar. Entweder eine Quelle für diesen Benutzer hinzufügen oder eine Quelle mit defaultEnabled: true konfigurieren", + "unknown": "Unbekannt", + "simple": "Einfach", + "normal": "Normal", + "complex": "Komplexe", + "highlyComplex": "Hochkomplex", + "ready": "Bereit", + "indexing": "Indizierung", + "unavailable": "Nicht verfügbar", + "error": "Fehler" }, "otp": { "name": "Zwei-Faktoren-Authentifizierung", @@ -545,7 +513,96 @@ "exit": "Ausfahrt", "permanent": "Dauerhaft", "hash": "Hash", - "of": "von" + "of": "von", + "source": "Quelle{suffix}", + "percentage": "{percentage}%", + "type": "Typ{suffix}", + "size": "Größe{suffix}", + "body": "Körper{suffix}", + "home": "Startseite{suffix}", + "clear": "Klar{suffix}", + "help": "Hilfe{suffix}", + "login": "Anmeldung{suffix}", + "logout": "Abmeldung{suffix}", + "preview": "Vorschau{suffix}", + "settings": "Einstellungen{suffix}", + "sources": "Quellen{suffix}", + "links": "Links{suffix}", + "tool": "Werkzeug{suffix}", + "used": "gebraucht{suffix}", + "status": "Status{suffix}", + "analyze": "Analysieren Sie{suffix}", + "results": "Ergebnisse{suffix}", + "users": "Benutzer{suffix}", + "photos": "Fotos", + "audio": "Audio{suffix}", + "videos": "Videos{suffix}", + "documents": "Dokumente{suffix}", + "archives": "Archiv{suffix}", + "images": "Bilder{suffix}", + "music": "Musik{suffix}", + "pdf": "PDF{suffix}", + "search": "Suche{suffix}", + "number": "Nummer{suffix}", + "types": "Typen{suffix}", + "video": "Video{suffix}", + "admin": "Verwaltung{suffix}", + "branding": "Branding{suffix}", + "language": "Sprache{suffix}", + "documentation": "Dokumentation{suffix}", + "examples": "Beispiele{suffix}", + "dark": "Dunkelheit{suffix}", + "light": "Licht{suffix}", + "title": "Thema{suffix}", + "expires": "Abgelaufen{suffix}", + "scope": "Umfang{suffix}", + "rules": "Regeln{suffix}", + "downloads": "Herunterladen{suffix}", + "submit": "Anmeldung{suffix}", + "navigation": "Navigation{suffix}", + "metadata": "Metadaten{suffix}", + "loading": "Laden{suffix}", + "add": "hinzufügen{suffix}", + "cancel": "Abbrechen{suffix}", + "verify": "Überprüfen Sie{suffix}", + "close": "Schließen Sie{suffix}", + "copy": "Kopieren{suffix}", + "create": "erstellen.{suffix}", + "delete": "Löschen{suffix}", + "download": "Herunterladen{suffix}", + "file": "Datei{suffix}", + "folder": "Mappe{suffix}", + "info": "Infos{suffix}", + "more": "Mehr{suffix}", + "move": "Verschieben{suffix}", + "new": "Neu{suffix}", + "next": "Weiter{suffix}", + "ok": "OK{suffix}", + "previous": "Vorherige{suffix}", + "publish": "veröffentlichen.{suffix}", + "rename": "Umbenennen{suffix}", + "replace": "Ersetzen Sie{suffix}", + "save": "Speichern Sie{suffix}", + "schedule": "Zeitplan{suffix}", + "select": "Wählen Sie{suffix}", + "share": "Teilen Sie{suffix}", + "update": "Update{suffix}", + "upload": "Hochladen{suffix}", + "openFile": "Datei öffnen{suffix}", + "continue": "Weiter{suffix}", + "edit": "bearbeiten{suffix}", + "pause": "Pause{suffix}", + "resume": "Lebenslauf{suffix}", + "retry": "Wiederholung{suffix}", + "disable": "Deaktivieren Sie{suffix}", + "confirm": "Bestätigen Sie{suffix}", + "stay": "Bleiben Sie{suffix}", + "scopes": "Geltungsbereiche{suffix}", + "commands": "Befehle{suffix}", + "uploading": "Hochladen{suffix}", + "paused": "Pausiert{suffix}", + "conflict": "Konflikt{suffix}", + "change": "Ändern Sie{suffix}" }, "access": { "rules": "Zugangsregeln", @@ -560,13 +617,15 @@ "enterName": "Benutzer- oder Gruppenname eingeben", "deleted": "Zugriffsregel gelöscht!", "added": "Zugangsregel hinzugefügt!", - "name": "Name", "accessManagement": "Zugangsverwaltung", "totalDenied": "Verweigert", "totalAllowed": "Erlaubt", "all": "Alle ablehnen", "defaultBehaviorDescription": "Dies zeigt, was passiert, wenn ein Benutzer versucht, auf einen Pfad zuzugreifen, für den keine spezifischen Zugriffsregeln bestehen. Zulassen\" bedeutet, dass Benutzer standardmäßig Zugang haben, \"Verweigern\" bedeutet, dass Benutzer standardmäßig blockiert werden, wenn sie nicht ausdrücklich zugelassen sind.", - "defaultBehavior": "Standard-Aktion{suffix}" + "defaultBehavior": "Standard-Aktion{suffix}", + "deletedCascade": "Zugriffsregeln aus Pfad und allen Unterpfaden gelöscht!", + "cascadeDelete": "Rekursives Löschen", + "cascadeDeleteDescription": "Wenn diese Funktion aktiviert ist, wird beim Löschen einer Zugriffsregel diese auch aus allen Unterverzeichnissen entfernt. Auf diese Weise können Sie einen Benutzer oder eine Gruppe vollständig aus dem gesamten Verzeichnisbaum entfernen." }, "fileLoading": { "title": "Uploads & Downloads", @@ -644,16 +703,16 @@ "themeAndLanguage": "Design und Sprache", "previewFolder": "Miniaturansichten für Ordner anzeigen, falls vorhanden", "previewFolderDescription": "Zeigen Sie Miniaturvorschauen für Ordner an, deren erstes untergeordnetes Element ein Miniaturbild als Cover hat.", - "disableFileExtensions": "Zu deaktivierende Dateierweiterungen eingeben", - "defaultLandingPage": "Standard-Landeseite", - "defaultLandingPageDescription": "z.B.. '/files/mysource/mysubpath' oder '/settings' - die Standardseite ist /files, die zur ersten Ansicht der Quellenliste führt" + "disableFileExtensions": "Zu deaktivierende Dateierweiterungen eingeben" }, "editor": { "uninitialized": "Der Editor konnte nicht initialisiert werden. Bitte neu laden.", "saveFailed": "Datei konnte nicht gespeichert werden. Bitte versuchen Sie es erneut.", "saveAborted": "Speichern abgebrochen. Der Dateiname stimmt nicht mit der aktiven Datei überein.", "saveAbortedMessage": "Der Speichervorgang wurde abgebrochen. Die aktive Datei der Anwendung ({activeFile}) stimmt nicht mit der Datei überein, die Sie zu speichern versuchen ({tryingToSave}).", - "syncFailed": "Nach 5 Versuchen ist es nicht gelungen, den Status mit der Route für \"{filename}\" zu synchronisieren. Abbruch der Editor-Einrichtung, um Datenbeschädigung zu vermeiden." + "syncFailed": "Nach 5 Versuchen ist es nicht gelungen, den Status mit der Route für \"{filename}\" zu synchronisieren. Abbruch der Editor-Einrichtung, um Datenbeschädigung zu vermeiden.", + "fileSaved": "Datei gespeichert!", + "errorSavingFile": "Fehler beim Speichern der Datei: {error}" }, "player": { "LoopEnabled": "Wiederholung aktiviert", @@ -666,5 +725,93 @@ "changePlaybackMode": "Wiedergabemodus ändern", "changePlaybackModeHint": "Ändern Sie den Wiedergabemodus, um mehr Dateien zu sehen", "emptyQueue": "Warteschlange ist leer" + }, + "fileSizeAnalyzer": { + "title": "Dateigrößen-Analysator", + "searchLocation": "Standort suchen", + "selectPath": "Suchort auswählen", + "largerThan": "Größer als (MB)", + "includeFolders": "Ordner einbeziehen", + "includeFoldersDescription": "Verzeichnisse in die Analyse einbeziehen", + "totalFiles": "Dateien insgesamt{suffix}", + "totalSize": "Gesamtgröße{suffix}", + "emptyState": "Geben Sie Suchkriterien ein und klicken Sie auf Analysieren, um die Dateigrößen zu visualisieren.", + "completeResults": "Vollständige Ergebnisse werden angezeigt!", + "incompleteResults": "Ergebnisse können unvollständig sein", + "incompleteResultsDetails": "Zeige maximale Ergebnisse (100). Versuchen Sie, Ihre Suche einzuschränken, um mehr Ergebnisse unter 100 zu erhalten.", + "relativePercentage": "Relativer Prozentsatz{suffix}", + "percentageOfResults": "{percentage}% der Ergebnisse" + }, + "fileTypes": { + "video": "Video", + "image": "Bild", + "audio": "Audio", + "archive": "Archiv", + "document": "Dokument", + "binary": "Binär", + "directory": "Verzeichnis", + "other": "Andere" + }, + "tools": { + "description": "Dienstprogramme und Analysetools für Ihre Dateien", + "sizeAnalyzer": { + "name": "Dateigrößen-Analysator", + "description": "Visualisieren Sie große Dateien und Verzeichnisse mit einer interaktiven Baumstruktur" + }, + "title": "Werkzeuge", + "duplicateFinder": { + "name": "Duplicate File Finder", + "description": "Finden und Verwalten doppelter Dateien, um Speicherplatz zurückzugewinnen" + }, + "materialIconPicker": { + "name": "Material-Symbol-Auswahl", + "description": "Durchsuchen und Suchen von Material Icons mit Live-Vorschau", + "searchPlaceholder": "Suchsymbole...", + "popularIcons": "Zeigt {count} beliebte Icons", + "showingResults": "{count} Ergebnisse anzeigen", + "noResults": "Keine Icons gefunden", + "tryDifferentSearch": "Versuchen Sie einen anderen Suchbegriff", + "copiedToClipboard": "Kopiert '{name}' in die Zwischenablage!", + "copyFailed": "Kopieren in die Zwischenablage fehlgeschlagen", + "custom": "Benutzerdefiniert", + "useCustomIcon": "Benutzerdefiniertes Symbol verwenden: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Vollständige Symbolbibliothek durchsuchen" + }, + "toolNotFound": "Werkzeug nicht gefunden", + "backToTools": "Zurück zu Tools" + }, + "messages": { + "pathNotFound": "Pfad existiert nicht im Dateisystem", + "pathNotFoundMessage": "Der Pfad hierfür existiert nicht mehr im Dateisystem. Er kann verschoben oder gelöscht worden sein.", + "reassignPath": "Pfad neu zuweisen", + "pathReassigned": "Pfad erfolgreich aktualisiert!", + "pathReassignFailed": "Der Pfad konnte nicht aktualisiert werden. Bitte versuchen Sie es erneut." + }, + "duplicateFinder": { + "title": "Duplicate File Finder", + "minSize": "Mindestgröße (MB){suffix}", + "minSizeHint": "Nur Dateien analysieren, die größer sind als diese Größe (in Megabyte)", + "useChecksums": "Dateiinhalte vergleichen", + "useChecksumsDescription": "Beziehen Sie auch den Dateiinhalt in den Vergleich ein. Andernfalls werden die Dateien nach Größe und Ähnlichkeit des Dateinamens verglichen.", + "findDuplicates": "Duplikate finden", + "groupsFound": "Doppelte Gruppen gefunden{suffix}", + "totalWastedSpace": "Insgesamt verschwendeter Platz{suffix}", + "wasted": "Vergeudet{suffix}", + "emptyState": "Geben Sie Suchkriterien ein und klicken Sie auf Duplikate suchen, um doppelte Dateien zu identifizieren" + }, + "notifications": { + "title": "Benachrichtigungen", + "description": "Alle Benachrichtigungen aus Ihrer aktuellen Sitzung anzeigen", + "empty": "Noch keine Benachrichtigungen", + "clearAll": "Alle löschen", + "clearConfirm": "Sind Sie sicher, dass Sie den gesamten Benachrichtigungsverlauf löschen möchten?", + "total": "{count} Benachrichtigungen" + }, + "events": { + "serverShutdown": "Der Server wurde abgeschaltet.", + "authenticationFailed": "Authentifizierung fehlgeschlagen. Bitte aktualisieren Sie die Seite, um sich erneut anzumelden.", + "reconnected": "Die Verbindung zum Server wurde wiederhergestellt.", + "connectionLost": "Die Verbindung zum Server wurde unterbrochen. Ich versuche, die Verbindung wiederherzustellen..." } } diff --git a/frontend/src/i18n/el.json b/frontend/src/i18n/el.json index c3ee184024..080dc56726 100644 --- a/frontend/src/i18n/el.json +++ b/frontend/src/i18n/el.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Ακύρωση", - "close": "Κλείσιμο", - "copy": "Αντιγραφή", "copyFile": "Αντιγραφή αρχείου", "copyToClipboard": "Αντιγραφή στο πρόχειρο", "copyDownloadLinkToClipboard": "Αντιγραφή συνδέσμου λήψης στο πρόχειρο", - "create": "Δημιουργία", - "delete": "Διαγραφή", - "download": "Λήψη", - "file": "Αρχείο", - "folder": "Φάκελος", - "info": "Πληροφορίες", - "more": "Περισσότερα", - "move": "Μετακίνηση", "moveFile": "Μετακίνηση αρχείου", - "new": "Νέο", - "next": "Επόμενο", - "ok": "Εντάξει", "permalink": "Λήψη μόνιμου συνδέσμου", - "previous": "Προηγούμενο", - "publish": "Δημοσίευση", - "rename": "Μετονομασία", - "replace": "Αντικατάσταση", "reportIssue": "Αναφορά προβλήματος", - "save": "Αποθήκευση", - "schedule": "Προγραμματισμός", - "search": "Αναζήτηση", - "select": "Επιλογή", "selectMultiple": "Επιλογή πολλαπλών", - "share": "Κοινοποίηση", - "submit": "Υποβολή", "switchView": "Εναλλαγή προβολής", "toggleSidebar": "(Απ-)ενεργοποίησης της πλευρικής μπάρας", - "update": "Ενημέρωση", - "upload": "Μεταφόρτωση", - "openFile": "Άνοιγμα αρχείου", - "continue": "Συνέχεια", "shell": "Εναλλαγή κελύφους", - "edit": "Επεξεργασία", "generateNewOtp": "Επαναφορά και δημιουργία νέου κωδικού δύο παραγόντων", - "verify": "Επαλήθευση", - "pause": "Παύση", - "resume": "Βιογραφικό σημείωμα", - "retry": "Επανάληψη", "pauseAll": "Παύση όλων", "resumeAll": "Συνέχισε όλα", "clearCompleted": "Εκκαθάριση ολοκληρώθηκε", @@ -62,10 +29,8 @@ "discardAndExit": "Απόρριψη και έξοδος", "saveAndExit": "Αποθήκευση και έξοδος", "keepEditing": "Συνεχίστε την επεξεργασία", - "stayOnPrompt": "Μείνετε", "closeAnyway": "Κλείστε Ούτως ή άλλως", - "disable": "Απενεργοποίηση", - "confirm": "Επιβεβαίωση" + "goToItem": "Πηγαίνετε στο στοιχείο" }, "download": { "downloadFile": "Λήψη αρχείου", @@ -80,31 +45,31 @@ "internal": "Προέκυψε εσωτερικό σφάλμα.", "notFound": "Αυτή η τοποθεσία δεν μπορεί να βρεθεί.", "connection": "Ο διακομιστής δεν είναι διαθέσιμος.", - "shareNotFound": "Άκυρη ή ληγμένη μετοχή." + "shareNotFound": "Άκυρη ή ληγμένη μετοχή.", + "failedToConnectToServer": "Απέτυχε να συνδεθεί στο διακομιστή, εξακολουθεί να λειτουργεί;" }, "files": { - "body": "Περιεχόμενο", - "clear": "Καθαρισμός", "closePreview": "Κλείσιμο προεπισκόπησης", - "home": "Αρχική", "lastModified": "Τελευταία τροποποίηση", - "loading": "Φορτώνει…", "lonely": "Δεν υπάρχει τίποτα εδώ (ακόμη)…", - "metadata": "Μεταδεδομένα", "multipleSelectionEnabled": "Ενεργοποιημένη επιλογή πολλαπλών", - "name": "Όνομα", - "size": "Μέγεθος", "sortByLastModified": "Ταξινόμηση κατά πρόσφατη τροποποίηση", "sortByName": "Ταξινόμηση κατά όνομα", "sortBySize": "Ταξινόμηση κατά μέγεθος", "noPreview": "Η προεπισκόπηση δεν είναι διαθέσιμη για αυτό το αρχείο.", - "noDownloadAccess": "Η λήψη δεν είναι διαθέσιμη." + "noDownloadAccess": "Η λήψη δεν είναι διαθέσιμη.", + "itemSelected": "στοιχείο επιλεγμένο", + "itemsSelected": "στοιχεία επιλεγμένα", + "myFiles": "Τα αρχεία μου{suffix}", + "newFile": "Νέο αρχείο{suffix}", + "newFolder": "Νέος φάκελος{suffix}", + "duration": "Διάρκεια{suffix}", + "sortByDuration": "Ταξινόμηση κατά διάρκεια" }, "help": { "functionKeys": "Πλήκτρα Λειτουργιών", "mouseActions": "Ενέργειες Ποντικιού", "fileOperations": "Λειτουργίες Αρχείων", - "navigation": "Πλοήγηση", "click": "επιλέξτε αρχείο ή φάκελο", "ctrl": { "click": "επιλογή πολλαπλών αρχείων ή φακέλων", @@ -118,11 +83,11 @@ "del": "διαγραφή επιλεγμένων στοιχείων", "esc": "καθαρίζει την επιλογή ή/και κλείνει το παράθυρο", "f2": "μετονομασία αρχείου", - "help": "Βοήθεια", "f1": "Εμφάνιση προτροπής βοήθειας", "description": "Μπορείτε να δείτε τις βασικές επιλογές πλοήγησης παρακάτω. Για πρόσθετες πληροφορίες, επισκεφθείτε τη διεύθυνση", "slash": "ενεργοποιήστε την αναζήτηση", - "wiki": "Επίσημα έγγραφα του FileBrowser Quantum" + "wiki": "Επίσημα έγγραφα του FileBrowser Quantum", + "marqueeSelect": "επιλογή πολλαπλών αρχείων ή καταλόγων με σύρσιμο σε κενό χώρο" }, "languages": { "he": "עברית", @@ -156,7 +121,6 @@ "loginInstead": "Έχετε ήδη λογαριασμό", "passwordConfirm": "Επιβεβαίωση κωδικού πρόσβασης", "passwordsDontMatch": "Οι κωδικοί πρόσβασης δεν ταιριάζουν", - "submit": "Είσοδος", "usernameTaken": "Το όνομα χρήστη χρησιμοποιείται ήδη", "wrongCredentials": "Λάθος όνομα ή/και κωδικός πρόσβασης", "or": "Ή", @@ -211,7 +175,6 @@ "viewMode": "Λειτουργία προβολής", "renameMessage": "Εισάγετε ένα νέο όνομα:", "renameMessageInvalid": "Ένα αρχείο δεν μπορεί να περιέχει \"/\" ή \"\\\"", - "source": "Πηγή{suffix}", "deleteMessageMultiple": "Είστε σίγουροι ότι θέλετε να διαγράψετε το/τα αρχείο/α {count};", "deleteMessageShare": "Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό το μερίδιο: {path} ?", "numberDirs": "Αριθμός καταλόγων{suffix}", @@ -252,16 +215,14 @@ "firstLoadTitle": "Καλώς ήρθατε στο FileBrowser Quantum!", "halloweenTitle": "Καλές Απόκριες!", "halloweenBody": "Το θέμα των αποκριών έχει εφαρμοστεί. Μπορείτε να το απενεργοποιήσετε αν δεν σας αρέσει ή να το απενεργοποιήσετε μόνιμα στις ρυθμίσεις προφίλ επιλέγοντας οποιοδήποτε άλλο θέμα.", - "firstLoadBody": "Κατά την εκκίνηση δημιουργήθηκε μια νέα βάση δεδομένων. Αν αυτό δεν είναι αυτό που περιμένατε, ελέγξτε ξανά το αρχείο ρυθμίσεων για τη διαδρομή `server.database` και βεβαιωθείτε ότι υπάρχει. Στο docker, η διαδρομή της βάσης δεδομένων μπορεί να είναι `./data/database.db` ή `./database.db`." + "firstLoadBody": "Κατά την εκκίνηση δημιουργήθηκε μια νέα βάση δεδομένων. Αν αυτό δεν είναι αυτό που περιμένατε, ελέγξτε ξανά το αρχείο ρυθμίσεων για τη διαδρομή `server.database` και βεβαιωθείτε ότι υπάρχει. Στο docker, η διαδρομή της βάσης δεδομένων μπορεί να είναι `./data/database.db` ή `./database.db`.", + "selectPath": "Επιλέξτε διαδρομή", + "renameSuccess": "Το στοιχείο μετονομάστηκε επιτυχώς!", + "newFileSuccess": "Το αρχείο δημιουργήθηκε με επιτυχία!", + "newDirSuccess": "Ο κατάλογος δημιουργήθηκε με επιτυχία!", + "copyToClipboardFailed": "Αδυναμία αντιγραφής στο πρόχειρο" }, "search": { - "images": "Εικόνες", - "music": "Μουσική", - "pdf": "PDF", - "search": "Αναζήτηση…", - "types": "Τύποι", - "video": "Βίντεο", - "path": "Μονοπάτι:", "smallerThan": "Μικρότερο από:", "largerThan": "Μεγαλύτερο από:", "helpText1": "Η αναζήτηση πραγματοποιείται σε κάθε χαρακτήρα που πληκτρολογείτε (ελάχιστο όριο 3 χαρακτήρων για τους όρους αναζήτησης).", @@ -270,18 +231,11 @@ "onlyFolders": "Μόνο φάκελοι", "onlyFiles": "Μόνο αρχεία", "showOptions": "Εμφάνιση επιλογών", - "photos": "Φωτογραφίες", - "audio": "Ήχος", - "videos": "Βίντεο", - "documents": "Έγγραφα", - "archives": "Αρχεία", - "number": "Αριθμός", "searchContext": "Πλαίσιο αναζήτησης: {context}", "notEnoughCharacters": "Δεν υπάρχουν αρκετοί χαρακτήρες για αναζήτηση (min {minSearchLength})", "typeToSearch": "Αρχίστε να πληκτρολογείτε {minSearchLength} ή περισσότερους χαρακτήρες για να ξεκινήσετε την αναζήτηση." }, "settings": { - "admin": "Διαχειριστής", "administrator": "Διαχειριστής", "allowCommands": "Εκτέλεση εντολών", "allowEdit": "Επεξεργασία, μετονομασία και διαγραφή αρχείων ή φακέλων", @@ -289,7 +243,6 @@ "allowPublish": "Δημοσίευση νέων αναρτήσεων και σελίδων", "allowSignup": "Να επιτρέπεται η εγγραφή νέων χρηστών", "avoidChanges": "(αφήστε το κενό για αποφυγή αλλαγών)", - "branding": "Εξατομίκευση", "brandingDirectoryPath": "Διαδρομή φακέλου εξατομίκευσης", "changePassword": "Αλλαγή κωδικού πρόσβασης", "commandRunner": "Εκτέλεση εντολών", @@ -306,8 +259,6 @@ "defaultUserDescription": "Αυτές είναι οι προεπιλεγμένες ρυθμίσεις για νέους χρήστες.", "disableExternalLinks": "Απενεργοποίηση εξωτερικών συνδέσμων (εκτός από συνδέσμους προς τις οδηγίες χρήσης)", "disableUsedDiskPercentage": "Απενεργοποίηση γραφήματος ποσοστού χρήσης χώρου αποθήκευσης", - "documentation": "οδηγίες χρήσης", - "examples": "Παραδείγματα", "executeOnShell": "Εκτέλεση στο κέλυφος", "executeOnShellDescription": "Από προεπιλογή, η εφαρμογή File Browser εκτελεί τις εντολές καλώντας τα προγράμματα των εντολών απευθείας. Αν θέλετε να τις εκτελέσετε σε ένα κέλυφος (όπως το Bash ή το PowerShell), μπορείτε να το καθορίσετε εδώ με τις απαιτούμενες παραμέτρους. Εάν οριστεί, η εντολή που εκτελείτε θα προστίθεται ως παράμετρος. Αυτό ισχύει τόσο για τις εντολές χρήστη όσο και για τους αγκίστρους συμβάντων (event hooks).", "globalRules": "Πρόκειται για ένα γενικό σύνολο κανόνων που επιτρέπουν και απαγορεύουν διάφορες λειτουργίες και ισχύουν για κάθε χρήστη. Μπορείτε να καθορίσετε συγκεκριμένους κανόνες στις ρυθμίσεις κάθε χρήστη για να παρακάμψετε τους γενικούς κανόνες.", @@ -315,14 +266,11 @@ "insertPath": "Εισάγετε διαδρομή", "insertRegex": "Εισάγετε έκφραση regex", "instanceName": "Όνομα περιβάλλοντος", - "language": "Γλώσσα", "lockPassword": "Αποτρέψτε τον χρήστη από την αλλαγή του κωδικού πρόσβασης", "newPassword": "Νέος κωδικός πρόσβασης", "newPasswordConfirm": "Επιβεβαιώστε τον νέο κωδικό πρόσβασης", "newUser": "Νέος χρήστης", - "password": "Κωδικός πρόσβασης", "passwordUpdated": "Ο κωδικός πρόσβασης ενημερώθηκε!", - "path": "Διαδρομή", "permissions": { "modify": "Επεξεργασία αρχείων", "share": "Κοινοποίηση αρχείων", @@ -338,28 +286,17 @@ "profileSettings": "Ρυθμίσεις προφίλ", "ruleExample1": "αποκλείει την πρόσβαση σε οποιοδήποτε κρυφό αρχείο (όπως .git, .gitignore) σε κάθε φάκελο.\n", "ruleExample2": "αποκλείει την πρόσβαση στο αρχείο με το όνομα Caddyfile στον ριζικό φάκελο της εμβέλειας του κανόνα.", - "rules": "Κανόνες", "rulesHelp": "Εδώ μπορείτε να ορίσετε ένα σύνολο κανόνων που επιτρέπουν και απαγορεύουν διάφορες λειτουργίες για τον συγκεκριμένο χρήστη. Τα αποκλεισμένα αρχεία δεν θα εμφανίζονται στα περιεχόμενα των αντίστοιχων φακέλων και δεν θα είναι προσβάσιμα από τον χρήστη. Υποστηρίζονται εκφράσεις regex και διαδρομές σχετικές με την εμβέλεια αρχείων των χρηστών.\n", - "scope": "Εμβέλεια", "settingsUpdated": "Οι ρυθμίσεις ενημερώθηκαν!", "shareManagement": "Διαχείριση κοινοποίησης", "shareDeleted": "Η κοινοποίηση διαγράφηκε!", "singleClick": "Χρήση μονού κλικ για να ανοίξετε αρχεία και φακέλους", - "themes": { - "dark": "Σκοτεινό", - "light": "Φωτεινό", - "title": "Μοτίβο" - }, - "user": "Χρήστης", - "userCommands": "Εντολές χρήστη", "userCommandsHelp": "Μια λίστα με τις διαθέσιμες εντολές για αυτόν το χρήστη, χωρισμένες μεταξύ τους με κενά. Παράδειγμα:\n", "userCreated": "Ο χρήστης δημιουργήθηκε!", "userDefaults": "Προεπιλεγμένες ρυθμίσεις χρήστη", "userDeleted": "Ο χρήστης διαγράφηκε!", "userManagement": "Διαχείριση χρηστών", "userUpdated": "Ο χρήστης ενημερώθηκε!", - "username": "Όνομα χρήστη", - "users": "Χρήστες", "modifyOtherUser": "Τροποποίηση χρήστη:", "modifyCurrentUser": "Τροποποίηση τρέχοντος χρήστη", "themeColor": "Χρώμα θέματος", @@ -376,9 +313,7 @@ "loginMethod": "Μέθοδος σύνδεσης", "shareSettings": "Ρυθμίσεις κοινής χρήσης", "adminOptions": "Επιλογές χρήστη διαχειριστή", - "shareDuration": "Λήγει", "searchOptions": "Επιλογές αναζήτησης", - "downloads": "Λήψεις", "systemAdmin": "Σύστημα & Διαχείριση", "configViewer": "Config Viewer", "configViewerShowFull": "Εμφάνιση πλήρων ρυθμίσεων", @@ -391,24 +326,45 @@ "oidc": "OIDC", "proxy": "Πληρεξούσιος" }, - "newUserHintSubFolder": "π.χ. '/subfolder' - κενό για προεπιλογή", - "userScopes": "Πεδία" + "newUserHintSubFolder": "π.χ. '/subfolder' - κενό για προεπιλογή" }, "sidebar": { - "help": "Βοήθεια", - "hugoNew": "Νέο Hugo", - "login": "Σύνδεση", - "logout": "Αποσύνδεση", - "myFiles": "Τα αρχεία μου", - "newFile": "Νέο αρχείο", - "newFolder": "Νέος φάκελος", - "preview": "Προεπισκόπηση", - "settings": "Ρυθμίσεις", - "signup": "Εγγραφή", "siteSettings": "Ρυθμίσεις ιστότοπου", - "sources": "Πηγές", "updateIsAvailable": "Μια ενημέρωση είναι διαθέσιμη!", - "fileActions": "Ενέργειες αρχείων" + "fileActions": "Ενέργειες αρχείων", + "customizeLinks": "Προσαρμογή συνδέσμων πλευρικής γραμμής", + "customizeLinksDescription": "Προσαρμόστε τους συνδέσμους που εμφανίζονται στην πλαϊνή γραμμή σας. Σύρετε και αφήστε για να αναδιατάξετε.", + "currentLinks": "Τρέχοντες σύνδεσμοι", + "addNewLink": "Προσθήκη νέου συνδέσμου", + "linkType": "Τύπος συνδέσμου", + "selectLinkType": "Επιλέξτε έναν τύπο συνδέσμου", + "customLink": "Προσαρμοσμένος σύνδεσμος", + "selectSource": "Επιλέξτε Πηγή", + "chooseSource": "Επιλέξτε μια πηγή", + "selectTool": "Επιλέξτε εργαλείο", + "chooseTool": "Επιλέξτε ένα εργαλείο", + "linkName": "Όνομα συνδέσμου", + "linkNamePlaceholder": "Εισάγετε το όνομα του συνδέσμου", + "linkUrl": "Σύνδεσμος URL", + "linkUrlPlaceholder": "Εισάγετε τη διεύθυνση URL ή τη διαδρομή (π.χ. /files/path ή https://example.com)", + "linkIcon": "Εικονίδιο συνδέσμου", + "linksUpdatedSuccess": "Οι σύνδεσμοι της πλαϊνής μπάρας ενημερώθηκαν με επιτυχία!", + "linksUpdateFailed": "Απέτυχε η ενημέρωση των συνδέσμων της πλευρικής γραμμής", + "sourceNotAccessible": "Αυτή η πηγή δεν είναι πλέον προσβάσιμη σε εσάς", + "noLinksYet": "Δεν έχουν διαμορφωθεί ακόμη σύνδεσμοι. Προσθέστε τον πρώτο σας σύνδεσμο παρακάτω.", + "customizeShareLinks": "Προσαρμογή συνδέσμων πλευρικής γραμμής κοινής χρήσης", + "customizeShareLinksDescription": "Προσαρμόστε τους συνδέσμους που εμφανίζονται στην πλευρική γραμμή για αυτό το share. Σύρετε και αφήστε για να αναδιατάξετε.", + "editLink": "Επεξεργασία συνδέσμου", + "selectShare": "Επιλέξτε Share", + "chooseShare": "Επιλέξτε ένα μερίδιο", + "selectSharePath": "Διαδρομή εντός της κοινής χρήσης (προαιρετικό)", + "sharePathPlaceholder": "π.χ., /subfolder ή αφήστε το κενό για το root", + "browseIcons": "Αναζήτηση εικονιδίων", + "pickIcon": "Επιλέξτε ένα εικονίδιο", + "pickIconDescription": "Αναζήτηση και επιλογή ενός εικονιδίου από τη βιβλιοθήκη Material Icons", + "shareLinksUpdatedSuccess": "Οι σύνδεσμοι της πλαϊνής μπάρας κοινής χρήσης ενημερώθηκαν με επιτυχία!", + "shareHome": "Μοιραστείτε το Home", + "linkIconPlaceholder": "Προαιρετικά καθορίστε ένα όνομα εικονιδίου υλικού" }, "success": { "linkCopied": "Ο σύνδεσμος αντιγράφηκε!" @@ -481,7 +437,12 @@ "allowReplacements": "Επιτρέψτε αντικαταστάσεις αρχείων", "allowReplacementsDescription": "Οποιοσδήποτε μπορεί να αντικαταστήσει τα υπάρχοντα αρχεία όταν μεταφορτώνει αρχεία με το ίδιο όνομα.", "allowCreate": "Επιτρέπει τη δημιουργία και μεταφόρτωση αρχείων και φακέλων", - "allowCreateDescription": "Οποιοσδήποτε μπορεί να δημιουργήσει και να ανεβάσει νέα αρχεία και φακέλους σε αυτή τη κοινή χρήση." + "allowCreateDescription": "Οποιοσδήποτε μπορεί να δημιουργήσει και να ανεβάσει νέα αρχεία και φακέλους σε αυτή τη κοινή χρήση.", + "customizeSidebarLinks": "Προσαρμογή συνδέσμων πλευρικής γραμμής", + "customizeSidebarLinksButton": "Προσαρμογή συνδέσμων", + "shareInfo": "Μοιραστείτε τον κωδικό QR και τις πληροφορίες", + "shareInfoDescription": "Αυτός ο σύνδεσμος εμφανίζει τις πληροφορίες της κοινής χρήσης, συμπεριλαμβανομένου του τίτλου, της περιγραφής, του banner και του κωδικού QR σε ένα αναδυόμενο παράθυρο.", + "downloadDescription": "Αυτός ο σύνδεσμος επιτρέπει τη λήψη ολόκληρου του περιεχομένου της κοινής χρήσης ως συμπιεσμένο αρχείο." }, "api": { "title": "Κλειδιά API:", @@ -505,21 +466,28 @@ "expires": "Λήγει", "actions": "Δράσεις", "enabled": "Ενεργοποιημένο", - "disabled": "Άτομα με ειδικές ανάγκες" + "disabled": "Άτομα με ειδικές ανάγκες", + "apiKeyDeleted": "Το κλειδί API διαγράφηκε!" }, "index": { - "status": "Κατάσταση", "assessment": "Αξιολόγηση", "lastScanned": "Τελευταία σάρωση", "quickScan": "Δευτερόλεπτα γρήγορης σάρωσης", "fullScan": "Δευτερόλεπτα πλήρους σάρωσης", "settingsHover": "Ρυθμίσεις για τον χρήστη", - "logout": "Αποσύνδεση", "toggleClick": "Εναλλαγή με ένα κλικ", "toggleDark": "Εναλλαγή σκοτεινής λειτουργίας", "toggleSticky": "Εναλλαγή της λειτουργίας Sticky", - "used": "χρησιμοποιημένο", - "noSources": "Δεν υπάρχουν διαθέσιμες πηγές για αυτόν τον χρήστη. Είτε προσθέστε μια πηγή για αυτόν τον χρήστη είτε ρυθμίστε μια πηγή με defaultEnabled: true" + "noSources": "Δεν υπάρχουν διαθέσιμες πηγές για αυτόν τον χρήστη. Είτε προσθέστε μια πηγή για αυτόν τον χρήστη είτε ρυθμίστε μια πηγή με defaultEnabled: true", + "unknown": "Άγνωστος", + "simple": "Απλό", + "normal": "Κανονικό", + "complex": "Σύνθετο", + "highlyComplex": "Εξαιρετικά πολύπλοκο", + "ready": "Έτοιμο", + "indexing": "Ευρετηρίαση", + "unavailable": "Μη διαθέσιμο", + "error": "Σφάλμα" }, "otp": { "name": "Αυθεντικοποίηση δύο παραγόντων", @@ -545,7 +513,96 @@ "exit": "Έξοδος", "permanent": "Μόνιμο", "hash": "Κατακερματισμός", - "of": "του" + "of": "του", + "source": "Πηγή{suffix}", + "percentage": "{percentage}%", + "type": "Τύπος{suffix}", + "size": "Μέγεθος{suffix}", + "body": "Σώμα{suffix}", + "home": "Αρχική σελίδα{suffix}", + "clear": "Σαφής{suffix}", + "help": "Βοήθεια{suffix}", + "login": "Σύνδεση{suffix}", + "logout": "Αποσύνδεση{suffix}", + "preview": "Προεπισκόπηση{suffix}", + "settings": "Ρυθμίσεις{suffix}", + "sources": "Πηγές{suffix}", + "links": "Σύνδεσμοι{suffix}", + "tool": "Εργαλείο{suffix}", + "used": "χρησιμοποιημένο{suffix}", + "status": "Κατάσταση{suffix}", + "analyze": "Αναλύστε το{suffix}", + "results": "Αποτελέσματα{suffix}", + "users": "Χρήστες{suffix}", + "photos": "Φωτογραφίες", + "audio": "Ήχος{suffix}", + "videos": "Βίντεο{suffix}", + "documents": "Έγγραφα{suffix}", + "archives": "Αρχεία{suffix}", + "images": "Εικόνες{suffix}", + "music": "Μουσική{suffix}", + "pdf": "PDF{suffix}", + "search": "Αναζήτηση{suffix}", + "number": "Αριθμός{suffix}", + "types": "Τύποι{suffix}", + "video": "Βίντεο{suffix}", + "admin": "Διαχειριστής{suffix}", + "branding": "Branding{suffix}", + "language": "Γλώσσα{suffix}", + "documentation": "τεκμηρίωση{suffix}", + "examples": "Παραδείγματα{suffix}", + "dark": "Σκούρο{suffix}", + "light": "Φως{suffix}", + "title": "Θέμα{suffix}", + "expires": "Λήγει{suffix}", + "scope": "Πεδίο εφαρμογής{suffix}", + "rules": "Κανόνες{suffix}", + "downloads": "Λήψεις{suffix}", + "submit": "Σύνδεση{suffix}", + "navigation": "Πλοήγηση{suffix}", + "metadata": "Μεταδεδομένα{suffix}", + "loading": "Φόρτωση{suffix}", + "add": "Προσθέστε{suffix}", + "cancel": "Ακύρωση{suffix}", + "verify": "Επαλήθευση{suffix}", + "close": "Κλείστε το{suffix}", + "copy": "Αντιγραφή{suffix}", + "create": "Δημιουργία{suffix}", + "delete": "Διαγραφή{suffix}", + "download": "Λήψη{suffix}", + "file": "Αρχείο{suffix}", + "folder": "Φάκελος{suffix}", + "info": "Πληροφορίες{suffix}", + "more": "Περισσότερα{suffix}", + "move": "Μετακίνηση{suffix}", + "new": "Νέο{suffix}", + "next": "Επόμενο{suffix}", + "ok": "OK{suffix}", + "previous": "Προηγούμενο{suffix}", + "publish": "Δημοσίευση{suffix}", + "rename": "Μετονομασία{suffix}", + "replace": "Αντικαταστήστε το{suffix}", + "save": "Αποθήκευση{suffix}", + "schedule": "Πρόγραμμα{suffix}", + "select": "Επιλέξτε{suffix}", + "share": "Μοιραστείτε το{suffix}", + "update": "Ενημέρωση{suffix}", + "upload": "Ανέβασμα{suffix}", + "openFile": "Άνοιγμα αρχείου{suffix}", + "continue": "Συνεχίστε{suffix}", + "edit": "Επεξεργασία{suffix}", + "pause": "Παύση{suffix}", + "resume": "Βιογραφικό σημείωμα{suffix}", + "retry": "Επανάληψη{suffix}", + "disable": "Απενεργοποίηση{suffix}", + "confirm": "Επιβεβαίωση{suffix}", + "stay": "Μείνετε{suffix}", + "scopes": "Πεδία{suffix}", + "commands": "Εντολές{suffix}", + "uploading": "Ανέβασμα{suffix}", + "paused": "Παύση{suffix}", + "conflict": "Σύγκρουση{suffix}", + "change": "Αλλαγή{suffix}" }, "access": { "rules": "Κανόνες πρόσβασης", @@ -560,13 +617,15 @@ "enterName": "Εισάγετε το όνομα χρήστη ή ομάδας", "deleted": "Ο κανόνας πρόσβασης διαγράφηκε!", "added": "Προστέθηκε κανόνας πρόσβασης!", - "name": "Όνομα", "accessManagement": "Διαχείριση πρόσβασης", "totalDenied": "Απορρίπτεται", "totalAllowed": "Επιτρεπόμενο", "all": "Άρνηση όλων", "defaultBehaviorDescription": "Αυτό δείχνει τι συμβαίνει όταν ένας χρήστης προσπαθεί να αποκτήσει πρόσβαση σε μια διαδρομή όπου δεν υπάρχουν συγκεκριμένοι κανόνες πρόσβασης. 'Allow' σημαίνει ότι οι χρήστες μπορούν να έχουν πρόσβαση από προεπιλογή, 'Deny' σημαίνει ότι οι χρήστες αποκλείονται από προεπιλογή, εκτός αν επιτρέπεται ρητά.", - "defaultBehavior": "Προεπιλεγμένη ενέργεια{suffix}" + "defaultBehavior": "Προεπιλεγμένη ενέργεια{suffix}", + "deletedCascade": "Διαγραφή κανόνων πρόσβασης από τη διαδρομή και όλα τα υποδιαδρομές!", + "cascadeDelete": "Αναδρομική διαγραφή", + "cascadeDeleteDescription": "Όταν είναι ενεργοποιημένη, η διαγραφή ενός κανόνα πρόσβασης θα τον αφαιρέσει επίσης από όλους τους υποκαταλόγους. Αυτό σας επιτρέπει να αφαιρέσετε πλήρως έναν χρήστη ή μια ομάδα από ολόκληρο το δέντρο καταλόγων." }, "fileLoading": { "title": "Ανεβάσματα & λήψεις", @@ -644,16 +703,16 @@ "themeAndLanguage": "Θέμα & Γλώσσα", "previewFolder": "Εμφάνιση μικρογραφιών για φακέλους, εάν είναι διαθέσιμες", "previewFolderDescription": "Εμφάνιση προεπισκοπήσεων μικρογραφιών για φακέλους με το πρώτο στοιχείο-παιδί με μικρογραφία ως εξώφυλλο.", - "disableFileExtensions": "Εισάγετε επεκτάσεις αρχείων για απενεργοποίηση", - "defaultLandingPage": "Προεπιλεγμένη σελίδα προορισμού", - "defaultLandingPageDescription": "π.χ. '/files/mysource/mysubpath' ή '/settings' - η προεπιλεγμένη σελίδα είναι η /files η οποία πηγαίνει στην πρώτη προβολή λίστας πηγών" + "disableFileExtensions": "Εισάγετε επεκτάσεις αρχείων για απενεργοποίηση" }, "editor": { "uninitialized": "Απέτυχε η αρχικοποίηση του συντάκτη. Παρακαλούμε επαναφορτώστε.", "saveFailed": "Απέτυχε η αποθήκευση του αρχείου. Προσπαθήστε ξανά.", "saveAborted": "Η αποθήκευση διακόπηκε. Το όνομα του αρχείου δεν ταιριάζει με το ενεργό αρχείο.", "saveAbortedMessage": "Διακοπή της λειτουργίας αποθήκευσης. Το ενεργό αρχείο της εφαρμογής ({activeFile}) δεν ταιριάζει με το αρχείο που προσπαθείτε να αποθηκεύσετε ({tryingToSave}).", - "syncFailed": "απέτυχε να συγχρονίσει την κατάσταση με τη διαδρομή για το \"{filename}\" μετά από 5 προσπάθειες. Διακοπή της ρύθμισης του συντάκτη για να αποφευχθεί η αλλοίωση των δεδομένων." + "syncFailed": "απέτυχε να συγχρονίσει την κατάσταση με τη διαδρομή για το \"{filename}\" μετά από 5 προσπάθειες. Διακοπή της ρύθμισης του συντάκτη για να αποφευχθεί η αλλοίωση των δεδομένων.", + "fileSaved": "Το αρχείο αποθηκεύτηκε!", + "errorSavingFile": "Σφάλμα αποθήκευσης αρχείου: {error}" }, "player": { "LoopEnabled": "Ενεργή επανάληψη", @@ -666,5 +725,93 @@ "changePlaybackMode": "Αλλαγή λειτουργίας αναπαραγωγής", "changePlaybackModeHint": "Αλλάξτε λειτουργία αναπαραγωγής για να δείτε περισσότερα αρχεία", "emptyQueue": "Η ουρά είναι άδεια" + }, + "fileSizeAnalyzer": { + "title": "Αναλυτής μεγέθους αρχείου", + "searchLocation": "Τοποθεσία αναζήτησης", + "selectPath": "Επιλέξτε τοποθεσία αναζήτησης", + "largerThan": "Μεγαλύτερο από (MB)", + "includeFolders": "Συμπεριλάβετε φακέλους", + "includeFoldersDescription": "Συμπεριλάβετε καταλόγους στην ανάλυση", + "totalFiles": "Συνολικά αρχεία{suffix}", + "totalSize": "Συνολικό μέγεθος{suffix}", + "emptyState": "Εισάγετε τα κριτήρια αναζήτησης και κάντε κλικ στην επιλογή Ανάλυση για να απεικονίσετε τα μεγέθη των αρχείων", + "completeResults": "Παρουσιάζονται πλήρη αποτελέσματα!", + "incompleteResults": "Τα αποτελέσματα μπορεί να είναι ελλιπή", + "incompleteResultsDetails": "Εμφάνιση μέγιστων αποτελεσμάτων (100). Προσπαθήστε να περιορίσετε την αναζήτησή σας για να λάβετε περισσότερα αποτελέσματα κάτω από 100.", + "relativePercentage": "Σχετικό ποσοστό{suffix}", + "percentageOfResults": "{percentage}% των αποτελεσμάτων" + }, + "fileTypes": { + "video": "Βίντεο", + "image": "Εικόνα", + "audio": "Ήχος", + "archive": "Αρχείο", + "document": "Έγγραφο", + "binary": "Δυαδικό", + "directory": "Κατάλογος", + "other": "Άλλα" + }, + "tools": { + "description": "Βοηθητικά προγράμματα και εργαλεία ανάλυσης για τα αρχεία σας", + "sizeAnalyzer": { + "name": "Αναλυτής μεγέθους αρχείου", + "description": "Οπτικοποίηση μεγάλων αρχείων και καταλόγων με διαδραστικό χάρτη δέντρων" + }, + "title": "Εργαλεία", + "duplicateFinder": { + "name": "Αναζήτηση διπλών αρχείων", + "description": "Εύρεση και διαχείριση διπλών αρχείων για ανάκτηση χώρου αποθήκευσης" + }, + "materialIconPicker": { + "name": "Επιλογέας εικονιδίων υλικού", + "description": "Αναζήτηση και αναζήτηση εικονιδίων υλικού με ζωντανή προεπισκόπηση", + "searchPlaceholder": "Εικονίδια αναζήτησης...", + "popularIcons": "Εμφάνιση {count} δημοφιλών εικονιδίων", + "showingResults": "Εμφάνιση {count} αποτελεσμάτων", + "noResults": "Δεν βρέθηκαν εικονίδια", + "tryDifferentSearch": "Δοκιμάστε έναν διαφορετικό όρο αναζήτησης", + "copiedToClipboard": "Αντιγραφή του '{name}' στο πρόχειρο!", + "copyFailed": "Απέτυχε η αντιγραφή στο πρόχειρο", + "custom": "Προσαρμοσμένο", + "useCustomIcon": "Χρήση προσαρμοσμένου εικονιδίου: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Αναζήτηση πλήρους βιβλιοθήκης εικονιδίων" + }, + "toolNotFound": "Το εργαλείο δεν βρέθηκε", + "backToTools": "Επιστροφή στα Εργαλεία" + }, + "messages": { + "pathNotFound": "Η διαδρομή δεν υπάρχει στο σύστημα αρχείων", + "pathNotFoundMessage": "Η διαδρομή για αυτό δεν υπάρχει πλέον στο σύστημα αρχείων. Μπορεί να έχει μετακινηθεί ή διαγραφεί.", + "reassignPath": "Επαναπροσδιορισμός διαδρομής", + "pathReassigned": "Η διαδρομή ενημερώθηκε επιτυχώς!", + "pathReassignFailed": "Απέτυχε η ενημέρωση της διαδρομής. Προσπαθήστε ξανά." + }, + "duplicateFinder": { + "title": "Αναζήτηση διπλών αρχείων", + "minSize": "Ελάχιστο μέγεθος (MB){suffix}", + "minSizeHint": "Αναλύει μόνο αρχεία μεγαλύτερα από αυτό το μέγεθος (σε megabytes)", + "useChecksums": "Σύγκριση περιεχομένων αρχείων", + "useChecksumsDescription": "Συμπεριλάβετε επίσης τα περιεχόμενα των αρχείων στη σύγκριση. Χωρίς αυτό, τα αρχεία συγκρίνονται με βάση το μέγεθος και την ομοιότητα του ονόματος αρχείου.", + "findDuplicates": "Εύρεση αντιγράφων", + "groupsFound": "Βρέθηκαν διπλές ομάδες{suffix}", + "totalWastedSpace": "Συνολικός σπαταλημένος χώρος{suffix}", + "wasted": "Σπατάλη{suffix}", + "emptyState": "Εισάγετε τα κριτήρια αναζήτησης και κάντε κλικ στο Find Duplicates για να εντοπίσετε τα διπλότυπα αρχεία." + }, + "notifications": { + "title": "Ειδοποιήσεις", + "description": "Προβολή όλων των ειδοποιήσεων από την τρέχουσα συνεδρία σας", + "empty": "Δεν υπάρχουν ακόμη ειδοποιήσεις", + "clearAll": "Εκκαθάριση όλων", + "clearConfirm": "Είστε σίγουροι ότι θέλετε να διαγράψετε όλο το ιστορικό ειδοποιήσεων;", + "total": "{count} ειδοποιήσεις" + }, + "events": { + "serverShutdown": "Ο διακομιστής τερματίστηκε.", + "authenticationFailed": "Ο έλεγχος ταυτότητας απέτυχε. Παρακαλούμε ανανεώστε τη σελίδα για να συνδεθείτε ξανά.", + "reconnected": "Επανασυνδέθηκε με τον διακομιστή.", + "connectionLost": "Η σύνδεση με τον διακομιστή χάθηκε. Προσπαθούμε να επανασυνδεθούμε..." } } diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 7adb0edf73..ab4fdb3c17 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -1,49 +1,127 @@ { + "messages": { + "pathNotFound": "Path does not exist on filesystem", + "pathNotFoundMessage": "The path for this no longer exists on the filesystem. It may have been moved or deleted.", + "reassignPath": "Reassign Path", + "pathReassigned": "Path successfully updated!", + "pathReassignFailed": "Failed to update path. Please try again." + }, + "general": { + "name": "Name{suffix}", + "path": "Path{suffix}", + "user": "User{suffix}", + "group": "Group{suffix}", + "signup": "Signup{suffix}", + "password": "Password{suffix}", + "username": "Username{suffix}", + "files": "Files{suffix}", + "folders": "Folders{suffix}", + "exit": "Exit{suffix}", + "permanent": "Permanent{suffix}", + "hash": "Hash{suffix}", + "of": "of{suffix}", + "source": "Source{suffix}", + "percentage": "{percentage}%", + "type": "Type{suffix}", + "size": "Size{suffix}", + "body": "Body{suffix}", + "home": "Home{suffix}", + "clear": "Clear{suffix}", + "help": "Help{suffix}", + "login": "Login{suffix}", + "logout": "Logout{suffix}", + "preview": "Preview{suffix}", + "settings": "Settings{suffix}", + "sources": "Sources{suffix}", + "links": "Links{suffix}", + "tool": "Tool{suffix}", + "used": "used{suffix}", + "status": "Status{suffix}", + "analyze": "Analyze{suffix}", + "results": "Results{suffix}", + "users": "Users{suffix}", + "scopes": "Scopes{suffix}", + "commands": "Commands{suffix}", + "photos": "Photos", + "audio": "Audio{suffix}", + "videos": "Videos{suffix}", + "documents": "Documents{suffix}", + "archives": "Archives{suffix}", + "images": "Images{suffix}", + "music": "Music{suffix}", + "pdf": "PDF{suffix}", + "search": "Search{suffix}", + "number": "Number{suffix}", + "types": "Types{suffix}", + "video": "Video{suffix}", + "admin": "Admin{suffix}", + "branding": "Branding{suffix}", + "language": "Language{suffix}", + "documentation": "documentation{suffix}", + "examples": "Examples{suffix}", + "dark": "Dark{suffix}", + "light": "Light{suffix}", + "title": "Theme{suffix}", + "expires": "Expires{suffix}", + "scope": "Scope{suffix}", + "rules": "Rules{suffix}", + "downloads": "Downloads{suffix}", + "submit": "Login{suffix}", + "navigation": "Navigation{suffix}", + "metadata": "Metadata{suffix}", + "loading": "Loading{suffix}", + "add": "Add{suffix}", + "stay": "Stay{suffix}", + "cancel": "Cancel{suffix}", + "change": "Change{suffix}", + "verify": "Verify{suffix}", + "close": "Close{suffix}", + "copy": "Copy{suffix}", + "create": "Create{suffix}", + "delete": "Delete{suffix}", + "download": "Download{suffix}", + "file": "File{suffix}", + "folder": "Folder{suffix}", + "info": "Info{suffix}", + "more": "More{suffix}", + "move": "Move{suffix}", + "new": "New{suffix}", + "next": "Next{suffix}", + "ok": "OK{suffix}", + "previous": "Previous{suffix}", + "publish": "Publish{suffix}", + "rename": "Rename{suffix}", + "replace": "Replace{suffix}", + "save": "Save{suffix}", + "schedule": "Schedule{suffix}", + "select": "Select{suffix}", + "share": "Share{suffix}", + "update": "Update{suffix}", + "upload": "Upload{suffix}", + "openFile": "Open file{suffix}", + "continue": "Continue{suffix}", + "edit": "Edit{suffix}", + "pause": "Pause{suffix}", + "resume": "Resume{suffix}", + "retry": "Retry{suffix}", + "disable": "Disable{suffix}", + "confirm": "Confirm{suffix}", + "uploading": "Uploading{suffix}", + "paused": "Paused{suffix}", + "conflict": "Conflict{suffix}" + }, "buttons": { "generateNewOtp": "Reset and generate new two-factor code", - "cancel": "Cancel", - "verify": "Verify", - "close": "Close", - "copy": "Copy", "copyFile": "Copy file", "copyToClipboard": "Copy to clipboard", "copyDownloadLinkToClipboard": "Copy download link to clipboard", - "create": "Create", - "delete": "Delete", - "download": "Download", - "file": "File", - "folder": "Folder", - "info": "Info", - "more": "More", - "move": "Move", "moveFile": "Move file", - "new": "New", - "next": "Next", - "ok": "OK", "permalink": "Get Permanent Link", - "previous": "Previous", - "publish": "Publish", - "rename": "Rename", - "replace": "Replace", "reportIssue": "Report Issue", - "save": "Save", - "schedule": "Schedule", - "search": "Search", - "select": "Select", "selectMultiple": "Select multiple", - "share": "Share", "shell": "Toggle shell", - "submit": "Submit", "switchView": "Switch view", "toggleSidebar": "Toggle sidebar", - "update": "Update", - "upload": "Upload", - "openFile": "Open file", - "continue": "Continue", - "edit": "Edit", - "pause": "Pause", - "resume": "Resume", - "retry": "Retry", "pauseAll": "Pause all", "resumeAll": "Resume all", "clearCompleted": "Clear completed", @@ -62,10 +140,8 @@ "discardAndExit": "Discard and Exit", "saveAndExit": "Save and Exit", "keepEditing": "Keep Editing", - "stayOnPrompt": "Stay", "closeAnyway": "Close Anyways", - "disable": "Disable", - "confirm": "Confirm" + "goToItem": "Go to Item" }, "download": { "downloadFile": "Download File", @@ -80,32 +156,33 @@ "internal": "Something really went wrong.", "notFound": "This location can't be reached.", "connection": "The server can't be reached.", - "shareNotFound": "Invalid or expired share." + "shareNotFound": "Invalid or expired share.", + "failedToConnectToServer": "Failed to connect to the server, is it still running?" }, "files": { - "body": "Body", - "clear": "Clear", "closePreview": "Close preview", - "home": "Home", "lastModified": "Last modified{suffix}", - "loading": "Loading...", + "duration": "Duration{suffix}", "lonely": "It feels lonely here...", - "metadata": "Metadata", "multipleSelectionEnabled": "Multiple selection enabled", - "name": "Name", - "size": "Size", "sortByLastModified": "Sort by last modified", "sortByName": "Sort by name", "sortBySize": "Sort by size", + "sortByDuration": "Sort by duration", "noPreview": "Preview is not available for this file.", - "noDownloadAccess": "Download is not available." + "noDownloadAccess": "Download is not available.", + "itemSelected": "item selected", + "itemsSelected": "items selected", + "myFiles": "My files{suffix}", + "newFile": "New file{suffix}", + "newFolder": "New folder{suffix}" }, "help": { "functionKeys": "Function Keys", "mouseActions": "Mouse Actions", "fileOperations": "File Operations", - "navigation": "Navigation", "click": "select file or directory", + "marqueeSelect": "select multiple files or directories by dragging on empty space", "ctrl": { "click": "select multiple files or directories", "c": "copy selected items", @@ -120,7 +197,6 @@ "f2": "rename file", "f1": "show help prompt", "slash": "activate search", - "help": "Help", "description": "You can view the basic naviagation options below. For additional information, please visit", "wiki": "FileBrowser Quantum Official Docs" }, @@ -156,7 +232,6 @@ "loginInstead": "Already have an account", "passwordConfirm": "Password Confirmation", "passwordsDontMatch": "Passwords don't match", - "submit": "Login", "usernameTaken": "Username already taken", "wrongCredentials": "Wrong credentials", "or": "OR", @@ -216,6 +291,8 @@ "perUserDownloadLimitDescription": "When enabled, the downloads limit will be applied to each user. Anonymous users will not be able to download any files from this share.", "extractEmbeddedSubtitles": "Extract embedded subtitles", "extractEmbeddedSubtitlesDescription": "Extract embedded subtitles from media files on load -- this can be slow for large files.", + "customizeSidebarLinks": "Customize Sidebar Links", + "customizeSidebarLinksButton": "Customize Links", "disableDownload": "Disable downloading files", "disableDownloadDescription": "Anyone won't be able to download files or view a file's content.", "allowModify": "Allow editing files", @@ -225,7 +302,10 @@ "allowCreate": "Allow creating and uploading files and folders", "allowCreateDescription": "Anyone can create and upload new files and folders in this share.", "allowReplacements": "Allow file replacements", - "allowReplacementsDescription": "Anyone can replace existing files when uploading files with the same name." + "allowReplacementsDescription": "Anyone can replace existing files when uploading files with the same name.", + "shareInfo": "Share QR Code and Info", + "shareInfoDescription": "This link displays the share's information, including title, description, banner, and QR code in a popup.", + "downloadDescription": "This link allows downloading the entire share content as a compressed file." }, "prompts": { "operationInProgress": "Operation in progress, please wait...", @@ -240,8 +320,8 @@ "shareLogo": "Share logo URL", "shareBanner": "Share banner URL", "shareFavicon": "Share favicon URL", - "source": "Source{suffix}", "destinationSource": "Destination Source:", + "selectPath": "Select Path", "copy": "Copy", "copyMessage": "Choose the place to copy your files:", "deleteMessageMultiple": "Are you sure you want to delete {count} file(s)?", @@ -261,6 +341,8 @@ "lastModified": "Last Modified{suffix}", "move": "Move", "moveSuccess": "Files moved successfully!", + "newFileSuccess": "File created successfully!", + "newDirSuccess": "Directory created successfully!", "copySuccess": "Files copied successfully!", "moveMessage": "Choose new house for your file(s)/folder(s):", "newArchetype": "Create a new post based on an archetype. Your file will be created on content folder.", @@ -271,6 +353,7 @@ "numberDirs": "Number of directories{suffix}", "numberFiles": "Number of files{suffix}", "rename": "Rename", + "renameSuccess": "Item renamed successfully!", "renameMessageConflict": "An item named \"{filename}\" already exists!", "renameMessage": "Enter a new name:", "renameMessageInvalid": "A file can't container \"/\" or \"\\\"", @@ -309,6 +392,7 @@ "generate": "Generate", "errorGeneratingHash": "Error generating hash", "hashCopied": "Hash copied to clipboard", + "copyToClipboardFailed": "Unable to copy to clipboard", "errorCopyingHash": "Error copying hash", "token": "Token", "onlyOfficeId": "OnlyOffice ID", @@ -322,22 +406,9 @@ "onlyFolders": "Only Folders", "onlyFiles": "Only Files", "showOptions": "Show Options", - "photos": "Photos", - "audio": "Audio", - "videos": "Videos", - "documents": "Documents", - "archives": "Archives", "notEnoughCharacters": "Not enough characters to search (min {minSearchLength})", "typeToSearch": "Start typing {minSearchLength} or more characters to begin searching.", - "images": "Images", - "music": "Music", - "pdf": "PDF", - "search": "Search...", - "number": "Number", "noResults": "No results found in indexed search.", - "path": "Path:", - "types": "Types", - "video": "Video", "smallerThan": "Smaller than:", "largerThan": "Larger than:", "helpText1": "Search occurs on each character you type (3 character minimum for search terms).", @@ -401,9 +472,7 @@ "disableOfficeEditorDescription": "A space-separated list of file extensions to disable the OnlyOffice editor and viewer for. (e.g., '.txt .html .pdf').", "disableOfficeEditor": "Disable office viewer for certain file extensions", "fileViewerOptions": "File Viewer Options", - "themeAndLanguage": "Theme & Language", - "defaultLandingPage": "Default landing page", - "defaultLandingPageDescription": "eg. '/files/mysource/mysubpath' or '/settings' - default page is /files which goes to the first source listing view" + "themeAndLanguage": "Theme & Language" }, "settings": { "systemAdmin": "System & Admin", @@ -429,7 +498,6 @@ "emptyGlobal": "Currently there are no global config options, You can edit the configuration yaml to adjust system settings.", "scopes": "Define allowed sources and the user scope within them", "UserManagement": "User Management", - "admin": "Admin", "userNotAdmin": "User is not an administrator", "administrator": "Administrator", "allowCommands": "Execute commands", @@ -438,7 +506,6 @@ "allowPublish": "Publish new posts and pages", "allowSignup": "Allow users to signup", "avoidChanges": "also tick 'change password' to apply this password", - "branding": "Branding", "brandingDirectoryPath": "Branding directory path", "brandingHelp": "You can customize how your File Browser instance looks and feels by changing its name, replacing the logo, adding custom styles and even disable external links to GitHub.\nFor more information about custom branding, please check out the {0}.", "changePassword": "Change Password", @@ -457,8 +524,6 @@ "defaultUserDescription": "These are the default settings for new users.", "disableExternalLinks": "Disable external links (except documentation)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "documentation", - "examples": "Examples", "executeOnShell": "Execute on shell", "executeOnShellDescription": "By default, File Browser executes the commands by calling their binaries directly. If you want to run them on a shell instead (such as Bash or PowerShell), you can define it here with the required arguments and flags. If set, the command you execute will be appended as an argument. This apply to both user commands and event hooks.", "globalRules": "This is a global set of allow and disallow rules. They apply to every user. You can define specific rules on each user's settings to override these ones.", @@ -468,15 +533,12 @@ "insertPath": "Insert the path", "insertRegex": "Insert regex expression", "instanceName": "Instance name", - "language": "Language", "lockPassword": "Prevent the user from changing the password", "newPassword": "Your new password", "newPasswordConfirm": "Confirm your new password", "newUser": "New User", "newUserHintSubFolder": "eg '/subfolder' - blank for default", - "password": "Password", "passwordUpdated": "Password updated!", - "path": "Path", "permissions": { "admin": "Administrator", "modify": "Edit files", @@ -492,48 +554,56 @@ "profileSettings": "Profile Settings", "ruleExample1": "prevents the access to any dot file (such as .git, .gitignore) in every folder.\n", "ruleExample2": "blocks the access to the file named Caddyfile on the root of the scope.", - "rules": "Rules", "rulesHelp": "Here you can define a set of allow and disallow rules for this specific user. The blocked files won't show up in the listings and they wont be accessible to the user. We support regex and paths relative to the users scope.\n", - "scope": "Scope", "settingsUpdated": "Settings updated!", - "shareDuration": "Expires", - "downloads": "Downloads", "shareManagement": "Share Management", "shareDeleted": "Share deleted!", "singleClick": "Use single clicks to open files and directories", - "themes": { - "dark": "Dark", - "light": "Light", - "title": "Theme" - }, - "user": "User", - "userCommands": "Commands", "userCommandsHelp": "A space separated list with the available commands for this user. Example:\n", "userCreated": "User created!", "userDefaults": "User default settings", "userDeleted": "User deleted!", "userManagement": "User Management", "userUpdated": "User updated!", - "username": "Username", - "users": "Users", - "userScopes": "Scopes", "adminOptions": "Admin user options" }, "sidebar": { - "help": "Help", - "hugoNew": "Hugo New", - "login": "Login", - "logout": "Logout", - "myFiles": "My files", - "newFile": "New file", - "newFolder": "New folder", - "preview": "Preview", - "settings": "Settings", - "sources": "Sources", - "signup": "Signup", "siteSettings": "Site Settings", "updateIsAvailable": "An update is available!", - "fileActions": "File actions" + "fileActions": "File actions", + "customizeLinks": "Customize Sidebar Links", + "customizeLinksDescription": "Customize the links shown in your sidebar. Drag and drop to reorder.", + "customizeShareLinks": "Customize Share Sidebar Links", + "customizeShareLinksDescription": "Customize the links shown in the sidebar for this share. Drag and drop to reorder.", + "currentLinks": "Current Links", + "addNewLink": "Add New Link", + "editLink": "Edit Link", + "linkType": "Link Type", + "selectLinkType": "Select a link type", + "customLink": "Custom Link", + "selectSource": "Select Source", + "chooseSource": "Choose a source", + "selectShare": "Select Share", + "chooseShare": "Choose a share", + "selectSharePath": "Path within share (optional)", + "sharePathPlaceholder": "e.g., /subfolder or leave empty for root", + "selectTool": "Select Tool", + "chooseTool": "Choose a tool", + "linkName": "Link Name", + "linkNamePlaceholder": "Enter link name", + "linkUrl": "Link URL", + "linkUrlPlaceholder": "Enter URL or path (e.g., /files/path or https://example.com)", + "linkIcon": "Link Icon", + "linkIconPlaceholder": "Optionally specify a material icon name", + "browseIcons": "Browse Icons", + "pickIcon": "Pick an Icon", + "pickIconDescription": "Search and select an icon from the Material Icons library", + "linksUpdatedSuccess": "Sidebar links updated successfully!", + "shareLinksUpdatedSuccess": "Share sidebar links updated successfully!", + "linksUpdateFailed": "Failed to update sidebar links", + "sourceNotAccessible": "This source is no longer accessible to you", + "noLinksYet": "No links configured yet. Add your first link below.", + "shareHome": "Share Home" }, "success": { "linkCopied": "Link copied!" @@ -560,6 +630,7 @@ "permissionNote": "Choose at least one permission for the key. Your user must also have the permission.", "createKeyFailed": "Failed to create API key.", "createKeySuccess": "API key created successfully.", + "apiKeyDeleted": "API key deleted!", "description": "API keys are based on the user that creates them. See", "swaggerLinkText": "swagger page", "name": "Name", @@ -570,17 +641,23 @@ "disabled": "Disabled" }, "index": { - "status": "Status", + "unknown": "Unknown", + "simple": "Simple", + "normal": "Normal", + "complex": "Complex", + "highlyComplex": "Highly Complex", "assessment": "Assessment", + "ready": "Ready", + "indexing": "Indexing", + "unavailable": "Unavailable", + "error": "Error", "lastScanned": "Last Scanned", "quickScan": "Quick Scan Seconds", "fullScan": "Full Scan Seconds", "settingsHover": "Settings For User", - "logout": "Logout", "toggleClick": "Toggle Single Click", "toggleDark": "Toggle Dark Mode", "toggleSticky": "Toggle Sticky Mode", - "used": "used", "noSources": "No sources available for this user. Either add a source for this user or configure a source with defaultEnabled: true" }, "otp": { @@ -594,21 +671,6 @@ "verificationSucceed": "Verification Succeed", "generationFailed": "Generation Failed" }, - "general": { - "name": "Name", - "path": "Path", - "user": "User", - "group": "Group", - "signup": "Signup", - "password": "Password", - "username": "Username", - "files": "Files", - "folders": "Folders", - "exit": "Exit", - "permanent": "Permanent", - "hash": "Hash", - "of": "of" - }, "access": { "all": "Deny All", "rules": "Access rules", @@ -624,11 +686,13 @@ "userGroup": "User/Group", "enterName": "Enter user or group name", "deleted": "Access rule deleted!", + "deletedCascade": "Access rules deleted from path and all subpaths!", "added": "Access rule added!", - "name": "Name", "accessManagement": "Access Management", "defaultBehavior": "Default action{suffix}", - "defaultBehaviorDescription": "This shows what happens when a user tries to access a path where no specific access rules exist. 'Allow' means users can access by default, 'Deny' means users are blocked by default unless explicitly allowed." + "defaultBehaviorDescription": "This shows what happens when a user tries to access a path where no specific access rules exist. 'Allow' means users can access by default, 'Deny' means users are blocked by default unless explicitly allowed.", + "cascadeDelete": "Recursive Delete", + "cascadeDeleteDescription": "When enabled, deleting an access rule will also remove it from all subdirectories. This allows you to completely remove a user or group from the entire directory tree." }, "fileLoading": { "title": "Uploads & Downloads", @@ -653,7 +717,9 @@ "saveFailed":"Failed to save file. Please try again.", "saveAborted":"Save aborted. The file name does not match the active file.", "saveAbortedMessage":"Save operation aborted. The application's active file ({activeFile}) does not match the file you are trying to save ({tryingToSave}).", - "syncFailed":"failed to sync state with the route for \"{filename}\" after 5 attempts. Aborting editor setup to prevent data corruption." + "syncFailed":"failed to sync state with the route for \"{filename}\" after 5 attempts. Aborting editor setup to prevent data corruption.", + "fileSaved":"File saved!", + "errorSavingFile":"Error saving file: {error}" }, "player": { "LoopEnabled": "Loop Enabled", @@ -666,5 +732,86 @@ "changePlaybackMode": "Change playback mode", "changePlaybackModeHint": "Change playback mode to see more files", "emptyQueue": "Queue is empty" + }, + "fileSizeAnalyzer": { + "title": "File Size Analyzer", + "searchLocation": "Search Location", + "selectPath": "Select search location", + "largerThan": "Larger Than (MB)", + "includeFolders": "Include Folders", + "includeFoldersDescription": "Include directories in the analysis", + "totalFiles": "Total Files{suffix}", + "totalSize": "Total Size{suffix}", + "emptyState": "Enter search criteria and click Analyze to visualize file sizes", + "completeResults": "Complete results shown!", + "incompleteResults": "Results may be incomplete", + "incompleteResultsDetails": "Showing max results (100). Try narrowing your search to get more results under 100.", + "relativePercentage": "Relative Percentage{suffix}", + "percentageOfResults": "{percentage}% of results" + }, + "fileTypes": { + "video": "Video", + "image": "Image", + "audio": "Audio", + "archive": "Archive", + "document": "Document", + "binary": "Binary", + "directory": "Directory", + "other": "Other" + }, + "tools": { + "title": "Tools", + "description": "Utilities and analysis tools for your files", + "sizeAnalyzer": { + "name": "File Size Analyzer", + "description": "Visualize large files and directories with an interactive treemap" + }, + "duplicateFinder": { + "name": "Duplicate File Finder", + "description": "Find and manage duplicate files to reclaim storage space" + }, + "materialIconPicker": { + "name": "Material Icon Picker", + "description": "Browse and search Material Icons with live preview", + "searchPlaceholder": "Search icons...", + "browseFullLibrary": "Browse full icon library", + "iconLibraryUrl": "fonts.google.com/icons", + "popularIcons": "Showing {count} popular icons", + "showingResults": "Showing {count} results", + "noResults": "No icons found", + "tryDifferentSearch": "Try a different search term", + "copiedToClipboard": "Copied '{name}' to clipboard!", + "copyFailed": "Failed to copy to clipboard", + "custom": "Custom", + "useCustomIcon": "Use custom icon: {name}" + }, + "toolNotFound": "Tool not found", + "backToTools": "Back to Tools" + }, + "notifications": { + "title": "Notifications", + "description": "View all notifications from your current session", + "empty": "No notifications yet", + "clearAll": "Clear All", + "clearConfirm": "Are you sure you want to clear all notification history?", + "total": "{count} notifications" + }, + "duplicateFinder": { + "title": "Duplicate File Finder", + "minSize": "Minimum Size (MB){suffix}", + "minSizeHint": "Only analyze files larger than this size (in megabytes)", + "useChecksums": "Compare file contents", + "useChecksumsDescription": "Also include file contents in the comparison. Without this, files are matched by size and filename similarity.", + "findDuplicates": "Find Duplicates", + "groupsFound": "Duplicate Groups Found{suffix}", + "totalWastedSpace": "Total Wasted Space{suffix}", + "wasted": "Wasted{suffix}", + "emptyState": "Enter search criteria and click Find Duplicates to identify duplicate files" + }, + "events": { + "serverShutdown": "The server was shutdown.", + "authenticationFailed": "Authentication failed. Please refresh the page to log in again.", + "reconnected": "Reconnected to server.", + "connectionLost": "The connection to server was lost. Trying to reconnect..." } } diff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.json index 2e588e3ed7..4243a970d8 100644 --- a/frontend/src/i18n/es.json +++ b/frontend/src/i18n/es.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Cancelar", - "close": "Cerrar", - "copy": "Copiar", "copyFile": "Copiar archivo", "copyToClipboard": "Copiar al portapapeles", - "create": "Crear", - "delete": "Borrar", - "download": "Descargar", - "file": "Archivo", - "folder": "Carpeta", - "info": "Info", - "more": "Más", - "move": "Mover", "moveFile": "Mover archivo", - "new": "Nuevo", - "next": "Siguiente", - "ok": "Aceptar", "permalink": "Link sin expiración", - "previous": "Anterior", - "publish": "Publicar", - "rename": "Cambiar nombre", - "replace": "Reemplazar", "reportIssue": "Reportar problema", - "save": "Guardar", - "schedule": "Programar", - "search": "Buscar", - "select": "Seleccionar", "selectMultiple": "Selección múltiple", - "share": "Compartir", "shell": "Presiona Enter para buscar...", - "submit": "Enviar", "switchView": "Cambiar modo de visualización", "toggleSidebar": "Cambiar visibilidad del panel lateral", - "update": "Actualizar", - "upload": "Subir archivos", - "openFile": "Abrir archivo", "copyDownloadLinkToClipboard": "Copiar enlace de descarga", - "continue": "Continuar", - "edit": "Editar", "generateNewOtp": "Generar nuevo código de dos factores (2FA)", - "verify": "Verificar", - "pause": "Pausar", - "resume": "Reanudar", - "retry": "Reintentar", "pauseAll": "Pausar todo", "resumeAll": "Reanudar todo", "clearCompleted": "Limpiar completados", @@ -62,10 +29,8 @@ "discardAndExit": "Descartar y salir", "saveAndExit": "Guardar y salir", "keepEditing": "Seguir editando", - "stayOnPrompt": "Quedarce", "closeAnyway": "Cerrar de todos modos", - "disable": "Desactivar", - "confirm": "Confirmar" + "goToItem": "Ir al artículo" }, "download": { "downloadFile": "Descargar archivo", @@ -77,31 +42,31 @@ "internal": "Error interno :(", "notFound": "No se encontró el directorio", "connection": "No se puede conectar al servidor.", - "shareNotFound": "No se encuentra lo que buscas, tal vez el enlace expiró." + "shareNotFound": "No se encuentra lo que buscas, tal vez el enlace expiró.", + "failedToConnectToServer": "No se ha podido conectar con el servidor, ¿sigue funcionando?" }, "files": { - "body": "Contenido", - "clear": "Borrar selección", "closePreview": "Cerrar vista previa", - "home": "Inicio", "lastModified": "Última modificación", - "loading": "Cargando...", "lonely": "Esto está muy vacio...", - "metadata": "Metadatos", "multipleSelectionEnabled": "Selección múltiple activada", - "name": "Nombre", - "size": "Tamaño", "sortByLastModified": "Ordenar por fecha de modificación", "sortByName": "Ordenar por nombre", "sortBySize": "Ordenar por tamaño", "noPreview": "Vista previa no disponible", - "noDownloadAccess": "La descarga no está disponible." + "noDownloadAccess": "La descarga no está disponible.", + "itemSelected": "elemento seleccionado", + "itemsSelected": "elementos seleccionados", + "myFiles": "Mis archivos{suffix}", + "newFile": "Nuevo archivo{suffix}", + "newFolder": "Nueva carpeta{suffix}", + "duration": "Duración{suffix}", + "sortByDuration": "Ordenar por duración" }, "help": { "functionKeys": "Teclas de función", "mouseActions": "Acciones del mouse", "fileOperations": "Operaciones de Archivo", - "navigation": "Navegación", "click": "Selecciona un archivo o carpeta", "ctrl": { "click": "Selecciona varios elementos (Selección multiple)", @@ -115,11 +80,11 @@ "del": "Eliminar elementos seleccionados", "esc": "Cancela la selección o cierra la ventana actual", "f2": "Cambiar nombre del archivo o carpeta", - "help": "Ayuda", "f1": "Abrir ventana de ayuda", "description": "Aquí puedes ver todos los atajos de teclado básicos. Si quieres saber más, visita la", "slash": "Activar búsqueda", - "wiki": "documentación oficial de FileBrowser Quantum" + "wiki": "documentación oficial de FileBrowser Quantum", + "marqueeSelect": "seleccionar varios archivos o directorios arrastrando sobre el espacio vacío" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "¿Ya tienes una cuenta?", "passwordConfirm": "Confirmar contraseña", "passwordsDontMatch": "Las contraseñas no coinciden", - "submit": "Iniciar sesión", "usernameTaken": "Este usuario ya existe", "wrongCredentials": "Nombre de usuario y/o contraseña incorrectos", "or": "O", @@ -208,7 +172,6 @@ "viewMode": "Cambiar modo de vista", "renameMessage": "Introduce un nuevo nombre:", "renameMessageInvalid": "El archivo no puede tener \"/\" o \"\\\"", - "source": "Fuente{suffix}", "deleteMessageMultiple": "¿Quieres borrar estos {count} archivos?", "deleteMessageShare": "¿Estás seguro que quieres borrar \"{path}\" de los recursos compartidos?", "numberDirs": "Número de carpetas {suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "¡Bienvenido a FileBrowser Quantum!", "halloweenTitle": "¡Feliz Halloween!", "halloweenBody": "Se ha aplicado el tema de Halloween. Puedes desactivarlo si no te gusta, o desactivarlo permanentemente en los ajustes del perfil seleccionando cualquier otro tema.", - "firstLoadBody": "Se ha creado una nueva base de datos al iniciar. Si esto no es lo que esperaba, por favor, compruebe su archivo de configuración para la ruta `server.database` y asegúrese de que existe. En docker, la ruta de la base de datos puede ser `./data/database.db` o `./database.db`." + "firstLoadBody": "Se ha creado una nueva base de datos al iniciar. Si esto no es lo que esperaba, por favor, compruebe su archivo de configuración para la ruta `server.database` y asegúrese de que existe. En docker, la ruta de la base de datos puede ser `./data/database.db` o `./database.db`.", + "selectPath": "Seleccionar ruta", + "renameSuccess": "El cambio de nombre se ha realizado correctamente.", + "newFileSuccess": "¡Fichero creado con éxito!", + "newDirSuccess": "¡Directorio creado con éxito!", + "copyToClipboardFailed": "No se puede copiar en el portapapeles" }, "search": { - "images": "Imágenes", - "music": "Música", - "pdf": "PDF", - "search": " Buscar...", - "types": "Tipos", - "video": "Vídeo", - "path": "Ruta:", "smallerThan": "Menor que:", "largerThan": "Mayor que:", "helpText1": "La busqueda se realiza por cada letra introducida (empezando de 3)", @@ -266,12 +227,6 @@ "onlyFolders": "Solo carpetas", "onlyFiles": "Solo archivos", "showOptions": "Mostrar opciones", - "photos": "Fotos", - "audio": "Audio", - "videos": "Vídeos", - "documents": "Documentos", - "archives": "Archivos", - "number": "número", "noResults": "No pudimos encontrar lo que buscas...", "searchContext": "Buscar en: {context}", "notEnoughCharacters": "Escribe al menos {minSearchLength} letras para empezar a buscar", @@ -279,7 +234,6 @@ }, "settings": { "scopes": "Fuentes y carpetas que el usuario tendrá acceso", - "admin": "Admin", "administrator": "Administrador", "allowCommands": "Permitir comandos", "allowEdit": "Editar, borrar y cambiar nombres de archivos o carpetas", @@ -287,7 +241,6 @@ "allowPublish": "Publicar posts/páginas", "allowSignup": "Permitir registro de nuevos usuarios", "avoidChanges": "(dejar en blanco para evitar cambios)", - "branding": "Personalización", "brandingDirectoryPath": "Ruta del directorio con los archivos que usarás para personalizar FileBrowser Quantum", "changePassword": "Cambiar contraseña", "commandRunner": "Ejecutor de comandos", @@ -300,8 +253,6 @@ "defaultUserDescription": "Configuración por defecto nuevos usuarios", "disableExternalLinks": "Desactivar enlaces externos", "disableUsedDiskPercentage": "Desactivar porcentaje de uso de disco", - "documentation": "Documentación", - "examples": "Ejemplos", "executeOnShell": "Ejecutar en la consola de comandos", "executeOnShellDescription": "FileBrowser ejecuta los comandos directamente de sus binarios. Si quieres ejecutarlos en una consola, puedes definirlo aquí, con los argumentos y banderas (flags) necesarias. El comando ejecutado se añadirá como argumento, tanto a los comandos de usuario, y a los eventos", "globalRules": "Conjunto global de reglas (permitir y rechazar). Se aplicará a todos los usuarios. Puedes definirlas en la configuración de cada usuario si quieres anularlas", @@ -309,15 +260,12 @@ "insertPath": "Ingresar ruta", "insertRegex": "Ingresar regla Regex", "instanceName": "Nombre de la instancia", - "language": "Idioma", "lockPassword": "Impedir que el usuario cambie su contraseña", "newPassword": "Nueva contraseña", "newPasswordConfirm": "Confirmar nueva contraseña", "newUser": "Nuevo usuario", "newUserHintSubFolder": "ej: '/subfolder' - vacio para predeterminado", - "password": "Contraseña", "passwordUpdated": "¡Contraseña actualizada!", - "path": "Ruta", "permissions": { "modify": "Editar archivos", "share": "Compartir archivos", @@ -333,31 +281,19 @@ "profileSettings": "Ajustes del perfil", "ruleExample1": "Bloquea el acceso a una extensión especifica extensión de archivo (ej: .git) en todas las carpetas.\n", "ruleExample2": "Bloquea el acceso al archivo llamado \"Caddyfile\" en la carpeta raíz (/)", - "rules": "Reglas", "rulesHelp": "Puedes definir un conjunto de reglas para este usuario. Los archivos bloqueados no se mostrarán y no serán accesibles pora el usuario. Puedes utilizar regex y rutas relativas al alcance (Ruta base) del usuario.\n", - "scope": "Alcance", "settingsUpdated": "¡Ajustes actualizados!", "shareManagement": "Gestión de recursos compartidos", "shareDeleted": "¡Compartido eliminado!", "singleClick": "Abrir con un solo clic", - "themes": { - "dark": "Oscuro", - "light": "Claro", - "title": "Tema" - }, - "user": "Usuario", - "userCommands": "Comandos", "userCommandsHelp": "Comandos permitidos (separados por espacios). Ejemplo:\n", "userCreated": "¡Usuario creado!", "userDefaults": "Configuración de usuario por defecto", "userDeleted": "¡Usuario eliminado!", "userManagement": "Gestión de usuarios", "userUpdated": "¡Usuario actualizado!", - "username": "Nombre de Usuario", - "users": "Usuarios", "modifyOtherUser": "Modificar usuario:", "modifyCurrentUser": "Modificar usuario actual", - "userScopes": "Alcances", "themeColor": "Color del tema", "listingOptions": "Opciones de listado", "emptyGlobal": "Actualmente no hay configuracion global, edita el archivo YAML para establecer las configuraciones del sistema", @@ -380,9 +316,7 @@ }, "shareSettings": "Recursos compartidos", "adminOptions": "Opciones de administrador", - "shareDuration": "Tiempo de expiración:", "searchOptions": "Opciones de busqueda", - "downloads": "Descargas", "systemAdmin": "Sistema y administración", "configViewer": "Visor de configuración", "configViewerShowFull": "Mostrar configuración completa", @@ -392,20 +326,42 @@ "commandRunnerHelp": "Aquí puede establecer los comandos que se ejecutan en los eventos nombrados. Debe escribir uno por línea. Las variables de entorno {0} y {1} estarán disponibles, siendo {0} relativa a {1}. Para más información sobre esta característica y las variables de entorno disponibles, por favor lea el {2}." }, "sidebar": { - "help": "Ayuda", - "hugoNew": "Nuevo", - "login": "Iniciar sesión", - "logout": "Cerrar sesión", - "myFiles": "Mis archivos", - "newFile": "Nuevo archivo", - "newFolder": "Nueva carpeta", - "preview": "Vista previa", - "settings": "Ajustes", - "signup": "Regístrate", "siteSettings": "Ajustes del sitio", - "sources": "Fuentes", "updateIsAvailable": "¡Actualización disponible!", - "fileActions": "Acciones de archivo" + "fileActions": "Acciones de archivo", + "customizeLinks": "Personalizar los enlaces de la barra lateral", + "customizeLinksDescription": "Personaliza los enlaces que aparecen en tu barra lateral. Arrastre y suelte para reordenar.", + "currentLinks": "Enlaces actuales", + "addNewLink": "Añadir nuevo enlace", + "linkType": "Tipo de enlace", + "selectLinkType": "Seleccione un tipo de enlace", + "customLink": "Enlace personalizado", + "selectSource": "Seleccionar fuente", + "chooseSource": "Elija una fuente", + "selectTool": "Seleccionar herramienta", + "chooseTool": "Elija una herramienta", + "linkName": "Nombre del enlace", + "linkNamePlaceholder": "Introduzca el nombre del enlace", + "linkUrl": "Enlace URL", + "linkUrlPlaceholder": "Introduzca la URL o la ruta (por ejemplo, /archivos/ruta o https://example.com)", + "linkIcon": "Icono de enlace", + "linksUpdatedSuccess": "Los enlaces de la barra lateral se han actualizado correctamente.", + "linksUpdateFailed": "Error al actualizar los enlaces de la barra lateral", + "sourceNotAccessible": "Ya no puede acceder a esta fuente", + "noLinksYet": "Aún no hay enlaces configurados. Añada su primer enlace a continuación.", + "customizeShareLinks": "Personalizar los enlaces compartidos de la barra lateral", + "customizeShareLinksDescription": "Personalice los enlaces que aparecen en la barra lateral para esta acción. Arrastre y suelte para reordenar.", + "editLink": "Editar enlace", + "selectShare": "Seleccione Compartir", + "chooseShare": "Elija una acción", + "selectSharePath": "Ruta dentro del recurso compartido (opcional)", + "sharePathPlaceholder": "por ejemplo, /subcarpeta o dejar vacío para root", + "browseIcons": "Iconos de navegación", + "pickIcon": "Elija un icono", + "pickIconDescription": "Busque y seleccione un icono de la biblioteca Material Icons", + "shareLinksUpdatedSuccess": "Los enlaces de la barra lateral compartida se han actualizado correctamente.", + "shareHome": "Compartir", + "linkIconPlaceholder": "Opcionalmente, especifique un nombre de icono de material" }, "success": { "linkCopied": "¡Enlace copiado!" @@ -481,7 +437,12 @@ "allowReplacements": "Permitir la sustitución de archivos", "allowReplacementsDescription": "Cualquiera podrá reemplazar archivos existentes al subir archivos con el mismo nombre.", "allowCreate": "Permitir crear/subir archivos y carpetas", - "allowCreateDescription": "Cualquiera puede crear/subir nuevos archivos y carpetas en este recurso compartido." + "allowCreateDescription": "Cualquiera puede crear/subir nuevos archivos y carpetas en este recurso compartido.", + "customizeSidebarLinks": "Personalizar los enlaces de la barra lateral", + "customizeSidebarLinksButton": "Personalizar enlaces", + "shareInfo": "Compartir código QR e información", + "shareInfoDescription": "Este enlace muestra la información de la acción, incluido el título, la descripción, el banner y el código QR en una ventana emergente.", + "downloadDescription": "Este enlace permite descargar todo el contenido compartido como archivo comprimido." }, "api": { "title": "Gestión de claves API", @@ -505,21 +466,28 @@ "permissionNote": "Elije al menos un permiso - Tu usuario también debe tener ese permiso.", "createKeyFailed": "Hubo un error al crear la API", "createKeySuccess": "¡Clave API creada con exito!", - "description": "Las claves API solo podrán tener los permisos que tu usuario tenga. Para más info mira la" + "description": "Las claves API solo podrán tener los permisos que tu usuario tenga. Para más info mira la", + "apiKeyDeleted": "Clave API eliminada" }, "index": { - "status": "Estado", "assessment": "Tipo", "lastScanned": "Último escaneo", "quickScan": "Escaneo rápido", "fullScan": "Escaneo completo", "settingsHover": "Ajustes de usuario", - "logout": "Cerrar sesión", "toggleClick": "Abrir con un solo clic", "toggleDark": "Activar modo oscuro", "toggleSticky": "Cambiar visibilidad del panel lateral", - "used": "usado", - "noSources": "No hay fuentes disponibles. Añada una o active \"defaultEnabled: true\" en el archivo de configuración." + "noSources": "No hay fuentes disponibles. Añada una o active \"defaultEnabled: true\" en el archivo de configuración.", + "unknown": "Desconocido", + "simple": "Simple", + "normal": "Normal", + "complex": "Complejo", + "highlyComplex": "Alta complejidad", + "ready": "Listo", + "indexing": "Indexación", + "unavailable": "No disponible", + "error": "Error" }, "otp": { "name": "Autenticación de dos factores (2FA)", @@ -545,7 +513,96 @@ "exit": "Salir", "permanent": "Permanente", "hash": "Hash", - "of": "de" + "of": "de", + "source": "Fuente{suffix}", + "percentage": "{percentage}%", + "type": "Tipo{suffix}", + "size": "Talla{suffix}", + "body": "Cuerpo{suffix}", + "home": "Inicio{suffix}", + "clear": "Claro{suffix}", + "help": "Ayuda{suffix}", + "login": "Inicio de sesión{suffix}", + "logout": "Cierre de sesión{suffix}", + "preview": "Vista previa{suffix}", + "settings": "Ajustes{suffix}", + "sources": "Fuentes{suffix}", + "links": "Enlaces{suffix}", + "tool": "Herramienta{suffix}", + "used": "usado{suffix}", + "status": "Estado{suffix}", + "analyze": "Analice{suffix}", + "results": "Resultados{suffix}", + "users": "Usuarios{suffix}", + "photos": "Fotos", + "audio": "Audio{suffix}", + "videos": "Vídeos{suffix}", + "documents": "Documentos{suffix}", + "archives": "Archivos{suffix}", + "images": "Imágenes{suffix}", + "music": "Música{suffix}", + "pdf": "PDF{suffix}", + "search": "Buscar en{suffix}", + "number": "Número{suffix}", + "types": "Tipos{suffix}", + "video": "Vídeo{suffix}", + "admin": "Admin{suffix}", + "branding": "Marca{suffix}", + "language": "Idioma{suffix}", + "documentation": "documentación{suffix}", + "examples": "Ejemplos{suffix}", + "dark": "Oscuro{suffix}", + "light": "Luz{suffix}", + "title": "Tema{suffix}", + "expires": "Expira en{suffix}", + "scope": "Alcance{suffix}", + "rules": "Reglas{suffix}", + "downloads": "Descargas{suffix}", + "submit": "Inicio de sesión{suffix}", + "navigation": "Navegación{suffix}", + "metadata": "Metadatos{suffix}", + "loading": "Cargando{suffix}", + "add": "Añadir{suffix}", + "cancel": "Cancelar{suffix}", + "verify": "Verifique{suffix}", + "close": "Cerrar{suffix}", + "copy": "Copia{suffix}", + "create": "Cree{suffix}", + "delete": "Borrar{suffix}", + "download": "Descargar{suffix}", + "file": "Archivo{suffix}", + "folder": "Carpeta{suffix}", + "info": "Información{suffix}", + "more": "Más{suffix}", + "move": "Mover{suffix}", + "new": "Nuevo{suffix}", + "next": "Siguiente{suffix}", + "ok": "OK{suffix}", + "previous": "Anterior{suffix}", + "publish": "Publique{suffix}", + "rename": "Cambie el nombre de{suffix}", + "replace": "Sustituir{suffix}", + "save": "Guardar{suffix}", + "schedule": "Horario{suffix}", + "select": "Seleccione{suffix}", + "share": "Compartir{suffix}", + "update": "Actualización{suffix}", + "upload": "Cargar{suffix}", + "openFile": "Abrir expediente{suffix}", + "continue": "Continúe en{suffix}", + "edit": "Editar{suffix}", + "pause": "Pausa{suffix}", + "resume": "Currículum{suffix}", + "retry": "Reintentar{suffix}", + "disable": "Desactivar{suffix}", + "confirm": "Confirme{suffix}", + "stay": "Permanezca en{suffix}", + "scopes": "Visores{suffix}", + "commands": "Comandos{suffix}", + "uploading": "Cargar{suffix}", + "paused": "En pausa{suffix}", + "conflict": "Conflicto{suffix}", + "change": "Cambia{suffix}" }, "access": { "rules": "Normas de acceso", @@ -560,13 +617,15 @@ "enterName": "Escribe el nombre del usuario, o del grupo", "deleted": "Regla de acceso eliminada", "added": "Regla de acceso añadida", - "name": "Nombre", "accessManagement": "Gestión de accesos", "totalDenied": "Denegado", "totalAllowed": "Permitido", "all": "Denegar todo", "defaultBehaviorDescription": "Muestra lo que ocurre cuando un usuario intenta acceder a una ruta en la que no existen reglas de acceso específicas -- \"Permitir\" significa que los usuarios pueden acceder (por defecto), \"Denegar\" significa que los usuarios están bloqueados (por defecto) a menos que se les permita explícitamente.", - "defaultBehavior": "Acción por defecto {suffix}" + "defaultBehavior": "Acción por defecto {suffix}", + "deletedCascade": "Reglas de acceso eliminadas de la ruta y de todas las sub-rutas.", + "cascadeDelete": "Supresión recursiva", + "cascadeDeleteDescription": "Cuando está activada, la eliminación de una regla de acceso también la eliminará de todos los subdirectorios. Esto permite eliminar completamente un usuario o grupo de todo el árbol de directorios." }, "fileLoading": { "title": "Subir archivos", @@ -644,16 +703,16 @@ "fileViewerOptions": "Opciones del visor de archivos", "themeAndLanguage": "Tema e Idioma", "previewFolder": "Vista previa en miniatura para carpetas", - "previewFolderDescription": "Mostrar vistas previas en miniatura para las carpetas - Se usará el primer elemento como portada. (puede ser una imagen, o audio con imagen)", - "defaultLandingPage": "Página de inicio predeterminada", - "defaultLandingPageDescription": "Ej. '/files/miCarpeta/MiSubfolder' o '/settings' - la página por defecto es /files que va a la primera vista del listado de fuentes." + "previewFolderDescription": "Mostrar vistas previas en miniatura para las carpetas - Se usará el primer elemento como portada. (puede ser una imagen, o audio con imagen)" }, "editor": { "uninitialized": "Hubo un error al iniciar el editor", "saveFailed": "No se ha podido guardar el archivo. Por favor, inténtelo de nuevo.", "saveAborted": "No se ha podido guardar el archivo. El nombre del archivo no coincide con el que estás editando.", "saveAbortedMessage": "Operación de guardado abortada. El archivo activo ({activeFile}) no coincide con el que estas intentando guardar ({tryingToSave}).", - "syncFailed": "No se ha podido sincronizar el estado con la ruta para \"{filename}\" después de 5 intentos - Se abortará la configuración del editor para evitar la corrupción de datos." + "syncFailed": "No se ha podido sincronizar el estado con la ruta para \"{filename}\" después de 5 intentos - Se abortará la configuración del editor para evitar la corrupción de datos.", + "fileSaved": "¡Fichero guardado!", + "errorSavingFile": "Error al guardar el archivo: {error}" }, "player": { "LoopEnabled": "Bucle activado", @@ -666,5 +725,93 @@ "changePlaybackMode": "Cambiar modo de Reproducción", "changePlaybackModeHint": "Cambia el modo de reproducción para ver más", "emptyQueue": "La cola de reproducción está vacia..." + }, + "fileSizeAnalyzer": { + "title": "Analizador de tamaño de archivos", + "searchLocation": "Buscar ubicación", + "selectPath": "Seleccione el lugar de búsqueda", + "largerThan": "Mayor que (MB)", + "includeFolders": "Incluir carpetas", + "includeFoldersDescription": "Incluir directorios en el análisis", + "totalFiles": "Archivos totales{suffix}", + "totalSize": "Tamaño total{suffix}", + "emptyState": "Introduzca los criterios de búsqueda y haga clic en Analizar para visualizar el tamaño de los archivos", + "completeResults": "Resultados completos", + "incompleteResults": "Los resultados pueden ser incompletos", + "incompleteResultsDetails": "Mostrando resultados máximos (100). Intenta restringir la búsqueda para obtener más resultados por debajo de 100.", + "relativePercentage": "Porcentaje relativo{suffix}", + "percentageOfResults": "{percentage}% de resultados" + }, + "fileTypes": { + "video": "Vídeo", + "image": "Imagen", + "audio": "Audio", + "archive": "Archivo", + "document": "Documento", + "binary": "Binario", + "directory": "Directorio", + "other": "Otros" + }, + "tools": { + "description": "Utilidades y herramientas de análisis para sus archivos", + "sizeAnalyzer": { + "name": "Analizador de tamaño de archivos", + "description": "Visualice archivos y directorios de gran tamaño con un mapa de árbol interactivo" + }, + "title": "Herramientas", + "duplicateFinder": { + "name": "Buscador de archivos duplicados", + "description": "Encuentre y gestione los archivos duplicados para recuperar espacio de almacenamiento" + }, + "materialIconPicker": { + "name": "Icono de selección de material", + "description": "Navega y busca Material Icons con vista previa en directo", + "searchPlaceholder": "Buscar iconos...", + "popularIcons": "Mostrar {count} iconos populares", + "showingResults": "Mostrando resultados de {count} ", + "noResults": "No se han encontrado iconos", + "tryDifferentSearch": "Pruebe con otro término de búsqueda", + "copiedToClipboard": "¡Copiado '{name}' al portapapeles!", + "copyFailed": "Error al copiar al portapapeles", + "custom": "A medida", + "useCustomIcon": "Utilizar icono personalizado: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Explorar la biblioteca completa de iconos" + }, + "toolNotFound": "Herramienta no encontrada", + "backToTools": "Volver a Herramientas" + }, + "messages": { + "pathNotFound": "La ruta no existe en el sistema de archivos", + "pathNotFoundMessage": "La ruta para esto ya no existe en el sistema de archivos. Puede que se haya movido o borrado.", + "reassignPath": "Reasignar ruta", + "pathReassigned": "¡Ruta actualizada correctamente!", + "pathReassignFailed": "No se ha podido actualizar la ruta. Inténtelo de nuevo." + }, + "duplicateFinder": { + "title": "Buscador de archivos duplicados", + "minSize": "Tamaño mínimo (MB){suffix}", + "minSizeHint": "Analizar sólo archivos mayores que este tamaño (en megabytes)", + "useChecksums": "Comparar el contenido de los archivos", + "useChecksumsDescription": "Incluya también el contenido del archivo en la comparación. Sin esto, los archivos se comparan por tamaño y similitud de nombre.", + "findDuplicates": "Buscar duplicados", + "groupsFound": "Grupos duplicados encontrados{suffix}", + "totalWastedSpace": "Espacio total desperdiciado{suffix}", + "wasted": "Desperdiciado{suffix}", + "emptyState": "Introduzca los criterios de búsqueda y haga clic en Buscar duplicados para identificar los archivos duplicados." + }, + "notifications": { + "title": "Notificaciones", + "description": "Ver todas las notificaciones de la sesión actual", + "empty": "Aún no hay notificaciones", + "clearAll": "Borrar todo", + "clearConfirm": "¿Estás seguro de que quieres borrar todo el historial de notificaciones?", + "total": "{count} notificaciones" + }, + "events": { + "serverShutdown": "El servidor se ha apagado.", + "authenticationFailed": "Error de autenticación. Actualice la página para volver a iniciar sesión.", + "reconnected": "Reconectado al servidor.", + "connectionLost": "Se ha perdido la conexión con el servidor. Intentando reconectar..." } } diff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.json index 5ff9b11bba..f20a02454b 100644 --- a/frontend/src/i18n/fr.json +++ b/frontend/src/i18n/fr.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Annuler", - "close": "Fermer", - "copy": "Copier", "copyFile": "Copier le fichier", "copyToClipboard": "Copier dans le presse-papier", - "create": "Créer", - "delete": "Supprimer", - "download": "Télécharger", - "file": "Fichier", - "folder": "Dossier", - "info": "Info", - "more": "Plus", - "move": "Déplacer", "moveFile": "Déplacer le fichier", - "new": "Nouveau", - "next": "Suivant", - "ok": "OK", "permalink": "Obtenir un lien permanent", - "previous": "Précédent", - "publish": "Publier", - "rename": "Renommer", - "replace": "Remplacer", "reportIssue": "Rapport d'erreur", - "save": "Enregistrer", - "schedule": "Fixer la date", - "search": "Chercher", - "select": "Sélectionner", "selectMultiple": "Sélection multiple", - "share": "Partager", "shell": "Activer/Désactiver le shell", - "submit": "Envoyer", "switchView": "Changer le mode d'affichage", "toggleSidebar": "Afficher/Masquer la barre latérale", - "update": "Mettre à jour", - "upload": "Importer", - "openFile": "Ouvrir le fichier", "copyDownloadLinkToClipboard": "Copier le lien de téléchargement dans le presse-papier", - "continue": "Continuer", - "edit": "Éditer", "generateNewOtp": "Réinitialiser et générer un nouveau code à deux facteurs", - "verify": "Vérifier", - "pause": "Pause", - "resume": "Reprendre", - "retry": "Réessayer", "pauseAll": "Tout mettre en pause", "resumeAll": "Tout reprendre", "clearCompleted": "Effacement terminé", @@ -62,10 +29,8 @@ "discardAndExit": "Rejeter et quitter", "saveAndExit": "Sauvegarder et quitter", "keepEditing": "Continuer à éditer", - "stayOnPrompt": "Séjour", "closeAnyway": "Fermer Quoi qu'il en soit", - "disable": "Désactiver", - "confirm": "Confirmer" + "goToItem": "Aller à l'article" }, "download": { "downloadFile": "Télécharger le fichier", @@ -77,31 +42,31 @@ "internal": "Aïe ! Quelque chose s'est mal passé.", "notFound": "Impossible d'accéder à cet emplacement.", "connection": "Le serveur n'est pas accessible.", - "shareNotFound": "Action non valide ou expirée." + "shareNotFound": "Action non valide ou expirée.", + "failedToConnectToServer": "Échec de la connexion au serveur, est-il toujours en cours d'exécution ?" }, "files": { - "body": "Corps", - "clear": "Fermer", "closePreview": "Fermer la prévisualisation", - "home": "Accueil", "lastModified": "Dernière modification", - "loading": "Chargement...", "lonely": "Il semble qu'il n'y ait rien par ici...", - "metadata": "Métadonnées", "multipleSelectionEnabled": "Sélection multiple activée", - "name": "Nom", - "size": "Taille", "sortByLastModified": "Trier par date de dernière modification", "sortByName": "Trier par nom", "sortBySize": "Trier par taille", "noPreview": "Il n'y a pas de prévisualisation pour ce fichier.", - "noDownloadAccess": "Le téléchargement n'est pas disponible." + "noDownloadAccess": "Le téléchargement n'est pas disponible.", + "itemSelected": "élément sélectionné", + "itemsSelected": "éléments sélectionnés", + "myFiles": "Mes dossiers{suffix}", + "newFile": "Nouveau dossier{suffix}", + "newFolder": "Nouveau dossier{suffix}", + "duration": "Durée de l'accord{suffix}", + "sortByDuration": "Trier par durée" }, "help": { "functionKeys": "Touches de Fonction", "mouseActions": "Actions de la Souris", "fileOperations": "Opérations sur les Fichiers", - "navigation": "Navigation", "click": "sélectionner un élément", "ctrl": { "click": "sélectionner plusieurs éléments", @@ -115,11 +80,11 @@ "del": "supprimer les éléments sélectionnés", "esc": "désélectionner et/ou fermer la boîte de dialogue", "f2": "renommer le fichier", - "help": "Aide", "f1": "afficher l'aide", "description": "Vous pouvez consulter les options de navigation de base ci-dessous. Pour plus d'informations, veuillez consulter le site", "slash": "activer la recherche", - "wiki": "Documents officiels de FileBrowser Quantum" + "wiki": "Documents officiels de FileBrowser Quantum", + "marqueeSelect": "sélectionner plusieurs fichiers ou répertoires en les faisant glisser sur l'espace vide" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Vous avez déjà un compte", "passwordConfirm": "Confirmation de mot de passe", "passwordsDontMatch": "Les mots de passe ne concordent pas", - "submit": "Se connecter", "usernameTaken": "Le nom d'utilisateur est déjà pris", "wrongCredentials": "Identifiants incorrects !", "or": "OU", @@ -208,7 +172,6 @@ "viewMode": "Mode d'affichage", "renameMessage": "Saisissez un nouveau nom :", "renameMessageInvalid": "Un fichier ne peut pas contenir \"/\" ou \"\\\"", - "source": "Source{suffix}", "deleteMessageMultiple": "Êtes-vous sûr de vouloir supprimer le(s) fichier(s) {count}?", "deleteMessageShare": "Êtes-vous sûr de vouloir supprimer ce partage : {path} ?", "numberDirs": "Nombre de répertoires{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Bienvenue à FileBrowser Quantum !", "halloweenTitle": "Joyeux Halloween !", "halloweenBody": "Le thème Halloween a été appliqué. Vous pouvez le désactiver si vous ne l'aimez pas, ou le désactiver définitivement dans les paramètres du profil en sélectionnant un autre thème.", - "firstLoadBody": "Une nouvelle base de données a été créée au démarrage. Si ce n'est pas ce que vous attendiez, vérifiez que le chemin `server.database` existe dans votre fichier de configuration. Sur docker, le chemin de la base de données peut être `./data/database.db` ou `./database.db`." + "firstLoadBody": "Une nouvelle base de données a été créée au démarrage. Si ce n'est pas ce que vous attendiez, vérifiez que le chemin `server.database` existe dans votre fichier de configuration. Sur docker, le chemin de la base de données peut être `./data/database.db` ou `./database.db`.", + "selectPath": "Sélectionner un chemin", + "renameSuccess": "L'élément a été renommé avec succès !", + "newFileSuccess": "Fichier créé avec succès !", + "newDirSuccess": "Répertoire créé avec succès !", + "copyToClipboardFailed": "Impossible de copier dans le presse-papiers" }, "search": { - "images": "Images", - "music": "Musique", - "pdf": "PDF", - "search": "Recherche en cours...", - "types": "Types", - "video": "Vidéo", - "path": "Chemin :", "smallerThan": "Plus petit que :", "largerThan": "Plus grand que :", "helpText1": "La recherche s'effectue sur chaque caractère saisi (3 caractères minimum pour les termes de recherche).", @@ -267,19 +228,12 @@ "onlyFolders": "Dossiers uniquement", "onlyFiles": "Uniquement les fichiers", "showOptions": "Afficher les options", - "photos": "Photos", - "audio": "Audio", - "videos": "Vidéos", - "documents": "Documents", - "archives": "Archives", - "number": "Nombre", "searchContext": "Contexte de la recherche : {context}", "notEnoughCharacters": "Pas assez de caractères pour effectuer une recherche (min {minSearchLength})", "typeToSearch": "Commencez à taper {minSearchLength} ou plus de caractères pour lancer la recherche." }, "settings": { "scopes": "Définir les sources autorisées et la portée de l'utilisateur au sein de celles-ci", - "admin": "Admin", "administrator": "Administrateur", "allowCommands": "Exécuter des commandes", "allowEdit": "Éditer, renommer et supprimer des fichiers ou des dossiers", @@ -287,7 +241,6 @@ "allowPublish": "Publier de nouveaux posts et pages", "allowSignup": "Autoriser les utilisateurs à s'inscrire", "avoidChanges": "(Laisser vide pour conserver l'actuel)", - "branding": "Image de marque", "brandingDirectoryPath": "Chemin du dossier d'image de marque", "changePassword": "Modifier le mot de passe", "commandRunner": "Fichier de commandes", @@ -297,8 +250,6 @@ "defaultUserDescription": "Paramètres par défaut pour les nouveaux utilisateurs.", "disableExternalLinks": "Désactiver les liens externes (sauf la documentation)", "disableUsedDiskPercentage": "Désactiver le graphe de pourcentage d'utilisation disque", - "documentation": "documentation", - "examples": "Exemples", "executeOnShell": "Exécuter dans le shell", "executeOnShellDescription": "Par défaut, File Browser exécute les commandes en appelant directement leurs binaires. Si vous voulez les exécuter sur un shell à la place (comme Bash ou PowerShell), vous pouvez le définir ici avec les arguments et les drapeaux requis. S'il est défini, la commande que vous exécutez sera ajoutée en tant qu'argument. Cela s'applique à la fois aux commandes utilisateur et aux crochets d'événements.", "globalRules": "Il s'agit d'un ensemble global de règles d'autorisation et d'interdiction. Elles s'appliquent à tous les utilisateurs. Vous pouvez définir des règles spécifiques sur les paramètres de chaque utilisateur pour remplacer celles-ci.", @@ -306,14 +257,11 @@ "insertPath": "Saisissez le chemin", "insertRegex": "Saisissez l'expression régulière", "instanceName": "Nom de l'instance", - "language": "Langue", "lockPassword": "Empêcher l'utilisateur de changer son mot de passe", "newPassword": "Votre nouveau mot de passe", "newPasswordConfirm": "Confirmation du nouveau mot de passe", "newUser": "Nouvel utilisateur", - "password": "Mot de passe", "passwordUpdated": "Mot de passe mis à jour !", - "path": "Chemin", "permissions": { "modify": "Modifier des fichiers", "share": "Partager des fichiers", @@ -329,28 +277,17 @@ "profileSettings": "Paramètres du profil", "ruleExample1": "bloque l'accès à tous les fichiers commençant par un point (comme par exemple .git, .gitignore) dans tous les dossiers", "ruleExample2": "bloque l'accès au fichier nommé \"Caddyfile\" à la racine du dossier utilisateur", - "rules": "Règles", "rulesHelp": "Vous pouvez définir ici un ensemble de règles pour cet utilisateur. Les fichiers bloqués ne seront pas affichés et ne seront pas accessibles par l'utilisateur. Les expressions régulières sont supportées et les chemins d'accès sont relatifs par rapport au dossier de l'utilisateur.\n", - "scope": "Portée du dossier utilisateur", "settingsUpdated": "Les paramètres ont été mis à jour !", "shareManagement": "Gestion des partages", "shareDeleted": "Partage supprimé !", "singleClick": "Utiliser un simple clic pour ouvrir les fichiers et les dossiers", - "themes": { - "dark": "Sombre", - "light": "Clair", - "title": "Thème" - }, - "user": "Utilisateur", - "userCommands": "Commandes", "userCommandsHelp": "Une liste séparée par des espaces des commandes permises pour l'utilisateur. Exemple :", "userCreated": "Utilisateur créé !", "userDefaults": "Paramètres par defaut ", "userDeleted": "Utilisateur supprimé !", "userManagement": "Gestion des utilisateurs", "userUpdated": "Utilisateur mis à jour !", - "username": "Nom d'utilisateur", - "users": "Utilisateurs", "modifyOtherUser": "Modifier l'utilisateur :", "modifyCurrentUser": "Modifier l'utilisateur actuel", "themeColor": "Couleur du thème", @@ -373,9 +310,7 @@ "loginMethod": "Méthode de connexion", "shareSettings": "Paramètres des partages", "adminOptions": "Options de l'utilisateur administrateur", - "shareDuration": "Expiration", "searchOptions": "Options de recherche", - "downloads": "Téléchargements", "systemAdmin": "Système et administration", "configViewer": "Config Viewer", "configViewerShowFull": "Afficher la configuration complète", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "par exemple \"/sous-dossier\" - vide par défaut", - "userScopes": "Scopes" + "newUserHintSubFolder": "par exemple \"/sous-dossier\" - vide par défaut" }, "sidebar": { - "help": "Aide", - "hugoNew": "Nouvel Hugo", - "login": "Identifiant", - "logout": "Se déconnecter", - "myFiles": "Mes fichiers", - "newFile": "Nouveau fichier", - "newFolder": "Nouveau dossier", - "preview": "Prévisualiser", - "settings": "Paramètres", - "signup": "S'inscrire", "siteSettings": "Paramètres du site", - "sources": "Sources d'information", "updateIsAvailable": "Une mise à jour est disponible !", - "fileActions": "Actions sur les dossiers" + "fileActions": "Actions sur les dossiers", + "customizeLinks": "Personnaliser les liens de la barre latérale", + "customizeLinksDescription": "Personnalisez les liens affichés dans votre barre latérale. Glissez-déposez pour réorganiser les liens.", + "currentLinks": "Liens actuels", + "addNewLink": "Ajouter un nouveau lien", + "linkType": "Type de lien", + "selectLinkType": "Sélectionner un type de lien", + "customLink": "Lien personnalisé", + "selectSource": "Sélectionner la source", + "chooseSource": "Choisir une source", + "selectTool": "Sélectionner l'outil", + "chooseTool": "Choisir un outil", + "linkName": "Nom du lien", + "linkNamePlaceholder": "Saisir le nom du lien", + "linkUrl": "Lien URL", + "linkUrlPlaceholder": "Saisir l'URL ou le chemin d'accès (par exemple, /files/path ou https://example.com)", + "linkIcon": "Icône de lien", + "linksUpdatedSuccess": "Les liens de la barre latérale ont été mis à jour avec succès !", + "linksUpdateFailed": "Échec de la mise à jour des liens de la barre latérale", + "sourceNotAccessible": "Cette source ne vous est plus accessible", + "noLinksYet": "Aucun lien n'a encore été configuré. Ajoutez votre premier lien ci-dessous.", + "customizeShareLinks": "Personnaliser les liens de la barre latérale de partage", + "customizeShareLinksDescription": "Personnalisez les liens affichés dans la barre latérale pour ce partage. Glissez-déposez pour réorganiser les liens.", + "editLink": "Modifier le lien", + "selectShare": "Sélectionner le partage", + "chooseShare": "Choisir une action", + "selectSharePath": "Chemin d'accès au partage (facultatif)", + "sharePathPlaceholder": "par exemple, /sous-dossier ou laisser vide pour la racine", + "browseIcons": "Parcourir les icônes", + "pickIcon": "Choisir une icône", + "pickIconDescription": "Rechercher et sélectionner une icône dans la bibliothèque des icônes matérielles", + "shareLinksUpdatedSuccess": "Les liens de la barre latérale de partage ont été mis à jour avec succès !", + "shareHome": "Partager l'accueil", + "linkIconPlaceholder": "Spécifier éventuellement un nom d'icône de matériau" }, "success": { "linkCopied": "Lien copié !" @@ -481,7 +437,12 @@ "allowReplacements": "Autoriser les remplacements de fichiers", "allowReplacementsDescription": "Toute personne peut remplacer des fichiers existants lorsqu'elle télécharge des fichiers portant le même nom.", "allowCreate": "Permettre la création et le téléchargement de fichiers et de dossiers", - "allowCreateDescription": "Tout le monde peut créer et télécharger de nouveaux fichiers et dossiers dans ce partage." + "allowCreateDescription": "Tout le monde peut créer et télécharger de nouveaux fichiers et dossiers dans ce partage.", + "customizeSidebarLinks": "Personnaliser les liens de la barre latérale", + "customizeSidebarLinksButton": "Personnaliser les liens", + "shareInfo": "Partager le code QR et les informations", + "shareInfoDescription": "Ce lien affiche les informations relatives au partage, y compris le titre, la description, la bannière et le code QR dans une fenêtre contextuelle.", + "downloadDescription": "Ce lien permet de télécharger l'intégralité du contenu du partage sous la forme d'un fichier compressé." }, "api": { "title": "Clés API :", @@ -505,21 +466,28 @@ "expires": "Expiration", "actions": "Actions", "enabled": "Activée", - "disabled": "Désactivée" + "disabled": "Désactivée", + "apiKeyDeleted": "Clé API supprimée !" }, "index": { - "status": "Statut", "assessment": "Évaluation", "lastScanned": "Dernier scan", "quickScan": "Scan rapide (secondes)", "fullScan": "Scan complet (secondes)", "settingsHover": "Paramètres pour l'utilisateur", - "logout": "Déconnexion", "toggleClick": "Activation du mode simple clic", "toggleDark": "Mode sombre/clair", "toggleSticky": "Activer/Désactiver le mode persistent", - "used": "utilisé", - "noSources": "Aucune source n'est disponible pour cet utilisateur. Ajoutez une source pour cet utilisateur ou configurez une source avec defaultEnabled : true" + "noSources": "Aucune source n'est disponible pour cet utilisateur. Ajoutez une source pour cet utilisateur ou configurez une source avec defaultEnabled : true", + "unknown": "Inconnu", + "simple": "Simple", + "normal": "Normal", + "complex": "Complexe", + "highlyComplex": "Très complexe", + "ready": "Prêt", + "indexing": "Indexation", + "unavailable": "Indisponible", + "error": "Erreur" }, "otp": { "name": "Authentification à deux facteurs", @@ -545,7 +513,96 @@ "exit": "Sortie", "permanent": "Permanent", "hash": "Hachures", - "of": "de" + "of": "de", + "source": "Source{suffix}", + "percentage": "{percentage}%", + "type": "Type{suffix}", + "size": "Taille{suffix}", + "body": "Corps{suffix}", + "home": "Accueil{suffix}", + "clear": "Clair{suffix}", + "help": "Aide{suffix}", + "login": "Connexion{suffix}", + "logout": "Déconnexion{suffix}", + "preview": "Avant-première{suffix}", + "settings": "Paramètres{suffix}", + "sources": "Sources d'information{suffix}", + "links": "Liens{suffix}", + "tool": "Outil{suffix}", + "used": "utilisé{suffix}", + "status": "Statut{suffix}", + "analyze": "Analyser{suffix}", + "results": "Résultats{suffix}", + "users": "Utilisateurs{suffix}", + "photos": "Photos", + "audio": "Audio{suffix}", + "videos": "Vidéos{suffix}", + "documents": "Documents{suffix}", + "archives": "Archives{suffix}", + "images": "Images{suffix}", + "music": "Musique{suffix}", + "pdf": "PDF (EN ANGLAIS){suffix}", + "search": "Recherche{suffix}", + "number": "Nombre{suffix}", + "types": "Les types{suffix}", + "video": "Vidéo{suffix}", + "admin": "Administrateur{suffix}", + "branding": "L'image de marque{suffix}", + "language": "Langue{suffix}", + "documentation": "la documentation{suffix}", + "examples": "Exemples{suffix}", + "dark": "Sombre{suffix}", + "light": "Lumière{suffix}", + "title": "Thème{suffix}", + "expires": "Expiration{suffix}", + "scope": "Champ d'application{suffix}", + "rules": "Règles{suffix}", + "downloads": "Téléchargements{suffix}", + "submit": "Connexion{suffix}", + "navigation": "Navigation{suffix}", + "metadata": "Métadonnées{suffix}", + "loading": "Chargement{suffix}", + "add": "Ajouter{suffix}", + "cancel": "Annuler{suffix}", + "verify": "Vérifier{suffix}", + "close": "Fermer{suffix}", + "copy": "Copie{suffix}", + "create": "Créer{suffix}", + "delete": "Supprimer{suffix}", + "download": "Télécharger{suffix}", + "file": "Fichier{suffix}", + "folder": "Dossier{suffix}", + "info": "Info{suffix}", + "more": "Plus d'informations{suffix}", + "move": "Déplacer{suffix}", + "new": "Nouveau{suffix}", + "next": "Suivant{suffix}", + "ok": "OK{suffix}", + "previous": "Précédent{suffix}", + "publish": "Publier{suffix}", + "rename": "Renommer{suffix}", + "replace": "Remplacer{suffix}", + "save": "Économiser{suffix}", + "schedule": "Calendrier{suffix}", + "select": "Sélectionner{suffix}", + "share": "Partager{suffix}", + "update": "Mise à jour{suffix}", + "upload": "Télécharger{suffix}", + "openFile": "Ouvrir un fichier{suffix}", + "continue": "Continuer{suffix}", + "edit": "Editer{suffix}", + "pause": "Pause{suffix}", + "resume": "Curriculum vitae{suffix}", + "retry": "Réessayer{suffix}", + "disable": "Désactiver{suffix}", + "confirm": "Confirmer{suffix}", + "stay": "Séjour{suffix}", + "scopes": "Scopes{suffix}", + "commands": "Commandes{suffix}", + "uploading": "Téléchargement{suffix}", + "paused": "En pause{suffix}", + "conflict": "Conflit{suffix}", + "change": "Changer{suffix}" }, "access": { "rules": "Règles d'accès", @@ -560,13 +617,15 @@ "enterName": "Saisir le nom de l'utilisateur ou du groupe", "deleted": "Règle d'accès supprimée !", "added": "Règle d'accès ajoutée !", - "name": "Nom", "accessManagement": "Gestion de l'accès", "totalDenied": "Refusé", "totalAllowed": "Autorisé", "all": "Refuser tout", "defaultBehaviorDescription": "Ceci montre ce qui se passe lorsqu'un utilisateur tente d'accéder à un chemin pour lequel il n'existe pas de règles d'accès spécifiques. La mention \"Autoriser\" signifie que les utilisateurs peuvent accéder par défaut, la mention \"Refuser\" signifie que les utilisateurs sont bloqués par défaut, à moins qu'ils n'y soient explicitement autorisés.", - "defaultBehavior": "Action par défaut{suffix}" + "defaultBehavior": "Action par défaut{suffix}", + "deletedCascade": "Règles d'accès supprimées du chemin et de tous les sous-chemins !", + "cascadeDelete": "Suppression récursive", + "cascadeDeleteDescription": "Lorsque cette option est activée, la suppression d'une règle d'accès s'applique également à tous les sous-répertoires. Cela vous permet de supprimer complètement un utilisateur ou un groupe de toute l'arborescence des répertoires." }, "fileLoading": { "title": "Importations et téléchargements", @@ -644,16 +703,16 @@ "themeAndLanguage": "Thème et langue", "previewFolder": "Afficher les vignettes des dossiers si elles sont disponibles", "previewFolderDescription": "Afficher des aperçus de vignettes pour les dossiers dont le premier élément enfant a une vignette comme couverture.", - "disableFileExtensions": "Saisir les extensions de fichiers à désactiver", - "defaultLandingPage": "Page d'atterrissage par défaut", - "defaultLandingPageDescription": "ex. '/files/mysource/mysubpath' ou '/settings' - la page par défaut est /files qui renvoie à la première vue de la liste des sources." + "disableFileExtensions": "Saisir les extensions de fichiers à désactiver" }, "editor": { "uninitialized": "Échec de l'initialisation de l'éditeur. Veuillez recharger.", "saveFailed": "Échec de l'enregistrement du fichier. Veuillez réessayer.", "saveAborted": "Sauvegarde interrompue. Le nom du fichier ne correspond pas au fichier actif.", "saveAbortedMessage": "L'opération d'enregistrement a été interrompue. Le fichier actif de l'application ({activeFile}) ne correspond pas au fichier que vous essayez d'enregistrer ({tryingToSave}).", - "syncFailed": "n'a pas réussi à synchroniser l'état avec l'itinéraire pour \"{filename}\" après 5 tentatives. Abandon de la configuration de l'éditeur pour éviter la corruption des données." + "syncFailed": "n'a pas réussi à synchroniser l'état avec l'itinéraire pour \"{filename}\" après 5 tentatives. Abandon de la configuration de l'éditeur pour éviter la corruption des données.", + "fileSaved": "Fichier sauvegardé !", + "errorSavingFile": "Erreur d'enregistrement du fichier : {error}" }, "player": { "LoopEnabled": "Boucle activée", @@ -666,5 +725,93 @@ "changePlaybackMode": "Changer le mode de lecture", "changePlaybackModeHint": "Changez le mode de lecture pour voir plus de fichiers", "emptyQueue": "La file est vide" + }, + "fileSizeAnalyzer": { + "title": "Analyseur de taille de fichier", + "searchLocation": "Lieu de recherche", + "selectPath": "Sélectionner le lieu de recherche", + "largerThan": "Plus grand que (MB)", + "includeFolders": "Inclure les dossiers", + "includeFoldersDescription": "Inclure les répertoires dans l'analyse", + "totalFiles": "Total des dossiers{suffix}", + "totalSize": "Taille totale{suffix}", + "emptyState": "Saisissez des critères de recherche et cliquez sur Analyser pour visualiser la taille des fichiers.", + "completeResults": "Résultats complets affichés !", + "incompleteResults": "Les résultats peuvent être incomplets", + "incompleteResultsDetails": "Résultats maximums (100). Essayez d'affiner votre recherche pour obtenir plus de résultats en dessous de 100.", + "relativePercentage": "Pourcentage relatif{suffix}", + "percentageOfResults": "{percentage}% de résultats" + }, + "fileTypes": { + "video": "Vidéo", + "image": "Image", + "audio": "Audio", + "archive": "Archives", + "document": "Document", + "binary": "Binaire", + "directory": "Annuaire", + "other": "Autres" + }, + "tools": { + "description": "Utilitaires et outils d'analyse pour vos fichiers", + "sizeAnalyzer": { + "name": "Analyseur de taille de fichier", + "description": "Visualisez les fichiers et les répertoires volumineux grâce à une arborescence interactive" + }, + "title": "Outils", + "duplicateFinder": { + "name": "Recherche de fichiers en double", + "description": "Recherche et gestion des fichiers en double pour récupérer de l'espace de stockage" + }, + "materialIconPicker": { + "name": "Sélecteur d'icônes de matériaux", + "description": "Parcourir et rechercher des icônes matérielles avec un aperçu en direct", + "searchPlaceholder": "Recherche d'icônes...", + "popularIcons": "Affichage de {count} icônes populaires", + "showingResults": "Afficher les résultats de {count} ", + "noResults": "Aucune icône trouvée", + "tryDifferentSearch": "Essayez un autre terme de recherche", + "copiedToClipboard": "Copie de '{name}' dans le presse-papiers !", + "copyFailed": "Échec de la copie dans le presse-papiers", + "custom": "Sur mesure", + "useCustomIcon": "Utiliser une icône personnalisée : {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Parcourir la bibliothèque complète d'icônes" + }, + "toolNotFound": "Outil non trouvé", + "backToTools": "Retour aux outils" + }, + "messages": { + "pathNotFound": "Le chemin n'existe pas dans le système de fichiers", + "pathNotFoundMessage": "Le chemin d'accès n'existe plus dans le système de fichiers. Il peut avoir été déplacé ou supprimé.", + "reassignPath": "Réaffecter le chemin", + "pathReassigned": "Mise à jour du chemin d'accès réussie !", + "pathReassignFailed": "Échec de la mise à jour du chemin d'accès. Veuillez réessayer." + }, + "duplicateFinder": { + "title": "Recherche de fichiers en double", + "minSize": "Taille minimale (MB){suffix}", + "minSizeHint": "Analyser uniquement les fichiers dont la taille est supérieure à cette valeur (en mégaoctets)", + "useChecksums": "Comparer le contenu des fichiers", + "useChecksumsDescription": "Inclure également le contenu des fichiers dans la comparaison. Sans cela, les fichiers sont comparés en fonction de leur taille et de la similitude de leur nom.", + "findDuplicates": "Recherche de doublons", + "groupsFound": "Groupes en double trouvés{suffix}", + "totalWastedSpace": "Total de l'espace perdu{suffix}", + "wasted": "Gaspillage{suffix}", + "emptyState": "Saisissez des critères de recherche et cliquez sur Rechercher les doublons pour identifier les fichiers en double." + }, + "notifications": { + "title": "Notifications", + "description": "Afficher toutes les notifications de la session en cours", + "empty": "Aucune notification pour l'instant", + "clearAll": "Tout effacer", + "clearConfirm": "Êtes-vous sûr de vouloir effacer tout l'historique des notifications ?", + "total": "{count} notifications" + }, + "events": { + "serverShutdown": "Le serveur a été arrêté.", + "authenticationFailed": "L'authentification a échoué. Veuillez actualiser la page pour vous reconnecter.", + "reconnected": "Reconnexion au serveur.", + "connectionLost": "La connexion au serveur a été perdue. Essayer de se reconnecter..." } } diff --git a/frontend/src/i18n/he.json b/frontend/src/i18n/he.json index b5af4ea434..23668cd9ea 100644 --- a/frontend/src/i18n/he.json +++ b/frontend/src/i18n/he.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "ביטול", - "close": "סגירה", - "copy": "העתק", "copyFile": "העתק קובץ", "copyToClipboard": "העתק ללוח", - "create": "צור", - "delete": "מחק", - "download": "הורד", - "file": "קובץ", - "folder": "תקייה", - "info": "מידע", - "more": "עוד", - "move": "העבר", "moveFile": "העבר קובץ", - "new": "חדש", - "next": "הבא", - "ok": "אישור", "permalink": "צור קישור קבוע", - "previous": "הקודם", - "publish": "יצירה", - "rename": "שנה שם", - "replace": "החלף", "reportIssue": "דווח על תקלה", - "save": "שמור", - "schedule": "תזמון", - "search": "חיפוש", - "select": "בחר", "selectMultiple": "בחירה מרובה", - "share": "שתף", "shell": "פתיחת מסוף", - "submit": "אישור", "switchView": "שנה תצוגה", "toggleSidebar": "פתיחת / סגירת סרגל צד", - "update": "עדכון", - "upload": "העלאה", - "openFile": "פתח קובץ", "generateNewOtp": "אפס וצור קוד דו-גורמי חדש", - "verify": "אמת", "copyDownloadLinkToClipboard": "העתק את קישור ההורדה ללוח", - "continue": "המשך", - "edit": "ערוך", - "pause": "השהה", - "resume": "קורות חיים", - "retry": "נסה שוב", "pauseAll": "השהה הכל", "resumeAll": "המשך הכל", "clearCompleted": "השלם", @@ -62,10 +29,8 @@ "discardAndExit": "מחק וצא", "saveAndExit": "שמור וצא", "keepEditing": "המשך עריכה", - "stayOnPrompt": "הישאר", "closeAnyway": "סגור בכל מקרה", - "disable": "השבת", - "confirm": "אשר" + "goToItem": "עבור לפריט" }, "download": { "downloadFile": "הורד קובץ", @@ -77,31 +42,31 @@ "internal": "משהו השתבש", "notFound": "לא ניתן להגיע למיקום זה", "connection": "לא ניתן להגיע לשרת", - "shareNotFound": "שיתוף לא חוקי או פג תוקף." + "shareNotFound": "שיתוף לא חוקי או פג תוקף.", + "failedToConnectToServer": "לא הצלחת להתחבר לשרת, האם הוא עדיין פועל?" }, "files": { - "body": "גוף", - "clear": "נקה", "closePreview": "סגירת תצוגה מקדימה", - "home": "ראשי", "lastModified": "שונה לאחרונה", - "loading": "טוען...", "lonely": "בודד כאן", - "metadata": "נתונים", "multipleSelectionEnabled": "בחירה מרובה מופעלת", - "name": "שם", - "size": "גודל", "sortByLastModified": "מיין לפי השינוי האחרון", "sortByName": "מיין לפי שם", "sortBySize": "מיין לפי גודל", "noPreview": "תצוגה מקדימה לא זמינה לקובץ זה", - "noDownloadAccess": "ההורדה אינה זמינה." + "noDownloadAccess": "ההורדה אינה זמינה.", + "itemSelected": "פריט נבחר", + "itemsSelected": "פריטים נבחרים", + "myFiles": "הקבצים שלי{suffix}", + "newFile": "קובץ חדש{suffix}", + "newFolder": "תיקיה חדשה{suffix}", + "duration": "משך{suffix}", + "sortByDuration": "מיין לפי משך" }, "help": { "functionKeys": "מקשי פונקציה", "mouseActions": "פעולות עכבר", "fileOperations": "פעולות קבצים", - "navigation": "ניווט", "click": "בחר קובץ או תקייה", "ctrl": { "click": "בחר מספר קבצים או תקיות", @@ -115,11 +80,11 @@ "del": "מחק את מה שנבחר", "esc": "נקה את הבחירה ו/או סגור את השדה", "f2": "שנה שם קובץ", - "help": "עזרה", "f1": "הצג עזרה", "description": "ניתן לצפות באפשרויות הניווט הבסיסיות להלן. למידע נוסף, בקרו בכתובת", "slash": "הפעל חיפוש", - "wiki": "מסמכים רשמיים של FileBrowser Quantum" + "wiki": "מסמכים רשמיים של FileBrowser Quantum", + "marqueeSelect": "בחר מספר קבצים או ספריות על ידי גרירה על שטח ריק" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "חשבון קיים", "passwordConfirm": "אימות סיסמא", "passwordsDontMatch": "סיסמאות אינן תואמות", - "submit": "התחברות", "usernameTaken": "שם משתמש כבר קיים", "wrongCredentials": "פרטי התחברות שגויים", "or": "או", @@ -208,7 +172,6 @@ "viewMode": "מצב תצוגה", "renameMessage": "הזן שם חדש:", "renameMessageInvalid": "קובץ לא יכול להכיל את התווים \"/\" או \"\\\"", - "source": "מקור{suffix}", "deleteMessageMultiple": "האם אתה בטוח שברצונך למחוק את הקובץ/ים {count}?", "deleteMessageShare": "האם אתה בטוח שברצונך למחוק שיתוף זה: {path}?", "numberDirs": "מספר הספריות{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "ברוכים הבאים ל-FileBrowser Quantum!", "halloweenTitle": "חג ליל כל הקדושים שמח!", "halloweenBody": "נושא ליל כל הקדושים הוחל. ניתן להשבית אותו אם אינו מוצא חן בעיניך, או להשבית אותו לצמיתות בהגדרות הפרופיל על ידי בחירת נושא אחר.", - "firstLoadBody": "במהלך ההפעלה נוצר מסד נתונים חדש. אם זה לא מה שציפית, אנא בדוק שוב את קובץ התצורה שלך עבור הנתיב `server.database` וודא שהוא קיים. ב-docker, נתיב מסד הנתונים יכול להיות `./data/database.db` או `./database.db`." + "firstLoadBody": "במהלך ההפעלה נוצר מסד נתונים חדש. אם זה לא מה שציפית, אנא בדוק שוב את קובץ התצורה שלך עבור הנתיב `server.database` וודא שהוא קיים. ב-docker, נתיב מסד הנתונים יכול להיות `./data/database.db` או `./database.db`.", + "selectPath": "בחר נתיב", + "renameSuccess": "הפריט שונה בהצלחה!", + "newFileSuccess": "הקובץ נוצר בהצלחה!", + "newDirSuccess": "הספרייה נוצרה בהצלחה!", + "copyToClipboardFailed": "לא ניתן להעתיק ללוח" }, "search": { - "images": "תמונות", - "music": "מוזיקה", - "pdf": "PDF", - "search": "חפש...", - "types": "סוג", - "video": "וידאו", - "path": "נתיב:", "smallerThan": "קטן מ:", "largerThan": "גדול מ:", "helpText1": "החיפוש מתבצע על כל תו שאתה מקליד (מינימום 3 תווים עבור מונחי חיפוש).", @@ -267,18 +228,11 @@ "onlyFolders": "רק תיקיות", "onlyFiles": "רק קבצים", "showOptions": "הצג אפשרויות", - "photos": "תמונות", - "audio": "אודיו", - "videos": "סרטונים", - "documents": "מסמכים", - "archives": "ארכיונים", - "number": "מספר", "searchContext": "הקשר החיפוש: {context}", "notEnoughCharacters": "אין מספיק תווים לחיפוש (מינימום {minSearchLength})", "typeToSearch": "התחל להקליד {minSearchLength} או יותר תווים כדי להתחיל בחיפוש." }, "settings": { - "admin": "מנהל", "administrator": "מנהל ראשי", "allowCommands": "הפעל פקודות", "allowEdit": "ערוך, שנה שם ומחק קבצים או תקיות", @@ -286,7 +240,6 @@ "allowPublish": "פרסם פוסטים ודפים חדשים", "allowSignup": "אפשר למשתמשים להירשם", "avoidChanges": "(השאר ריק כדי למנוע שינויים)", - "branding": "מיתוג", "brandingDirectoryPath": "נתיב תקיית מיתוג", "changePassword": "שנה סיסמא", "commandRunner": "הרצת פקודות", @@ -298,8 +251,6 @@ "customStylesheet": "עיצוב מותאם אישית (Stylesheet)", "defaultUserDescription": "אלה הגדרות ברירת המחדל למשתמשים חדשים", "disableExternalLinks": "השבת קישורים חיצוניים (למעט תיעוד)", - "documentation": "תיעוד", - "examples": "דוגמאות", "executeOnShell": "בצע במסוף", "executeOnShellDescription": "כברירת מחדל, האפליקציה מבצעת את הפקודות על ידי הפעלה ישירה לקבצים (הבינארים). אם אתה רוצה להפעיל אותם מתוך מעטפת כלשהי, (לדוגמא מתוך Bash או PowerShell) אתה יכול להגדיר אותם כאן עם הפרמטרים הנדרשים. שים לב שזה יבוצע גם על פקודות משתמש וגם על הוקים (Hooks) לאירועים.", "globalRules": "זוהי קבוצה גלובלית של חוקים והרשאות (מה מותר ומה אסור), הם חלים על כל משתמש. אתה יכול להגדיר כללים ספציפיים בהגדרות של כל משתמש, כדי לעקוף את החוקים הגלובלים.", @@ -307,14 +258,11 @@ "insertPath": "הכנס את הנתיב", "insertRegex": "הוסף ביטוי רגולרי", "instanceName": "שם", - "language": "שפה", "lockPassword": "מנע ממשתמש להחליף סיסמא", "newPassword": "הסיסמא החדשה שלך", "newPasswordConfirm": "אשר את הסיסמה החדשה שלך", "newUser": "משתמש חדש", - "password": "סיסמא", "passwordUpdated": "הסיסמא עודכנה!", - "path": "נתיב", "permissions": { "modify": "עריכת קבצים קבצים", "share": "שיתוף קבצים", @@ -330,28 +278,17 @@ "profileSettings": "הגדרות פרופיל", "ruleExample1": "מנע גישה לקבצים נסתרים (כל קובץ שמתחיל בנקודה, לדוגמא .git)", "ruleExample2": "חסימת גישה לקובץ בשם Caddyfile בתחום הראשי.", - "rules": "חוקים", "rulesHelp": "כאן אתה יכול להגדיר רשימה של כללים למשתמש ספציפי, רשימה שחורה ולבנה. הקבצים החסומים לא יופיעו ברשימת הקבצים ולא יהיו נגישים למשתמש. יש תמיכה בנתיבים (ביחס לתקייה הראשית של המשתמש), וגם בביטוי רגולרי.\n", - "scope": "תחום", "settingsUpdated": "ההגדרות עודכנו!", "shareManagement": "ניהול שיתוף", "shareDeleted": "שיתוף נמחק!", "singleClick": "השתמש בלחיצות בודדות כדי לפתוח קבצים ותקיות", - "themes": { - "dark": "כהה", - "light": "בהיר", - "title": "ערכת נושא" - }, - "user": "משתמש", - "userCommands": "פקודות", "userCommandsHelp": "רשימה מופרדת עם רווחים עם הפקודות הזמינות עבור משתמש זה. דוגמא:\n", "userCreated": "משתמש נוצר!", "userDefaults": "הגדרות ברירת מחדל למשתמש", "userDeleted": "משתמש נמחק!", "userManagement": "ניהול משתמש", "userUpdated": "המשתמש עודכן!", - "username": "שם משתמש", - "users": "משתמשים", "enterPassword": "הזן סיסמה", "enterPasswordAgain": "הזן את הסיסמה שוב", "passwordsDoNotMatch": "הסיסמאות אינן תואמות", @@ -373,9 +310,7 @@ "shareSettings": "הגדרות שיתוף", "api": "מפתחות API", "adminOptions": "אפשרויות משתמש מנהל", - "shareDuration": "תוקף", "searchOptions": "אפשרויות חיפוש", - "downloads": "הורדות", "systemAdmin": "מערכת וניהול", "configViewer": "מציג תצורה", "configViewerShowFull": "הצג את התצורה המלאה", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "פרוקסי" }, - "newUserHintSubFolder": "לדוגמה, '/subfolder' - ריק עבור ברירת המחדל", - "userScopes": "סקופים" + "newUserHintSubFolder": "לדוגמה, '/subfolder' - ריק עבור ברירת המחדל" }, "sidebar": { - "help": "עזרה", - "hugoNew": "הוגו חדש", - "login": "התחבר", - "logout": "התנתק", - "myFiles": "הקבצים שלי", - "newFile": "קובץ חדש", - "newFolder": "תקייה חדשה", - "preview": "תצוגה מקדימה", - "settings": "הגדרות", - "signup": "הרשמה", "siteSettings": "הגדרות", - "sources": "מקורות", "updateIsAvailable": "עדכון זמין!", - "fileActions": "פעולות קובץ" + "fileActions": "פעולות קובץ", + "customizeLinks": "התאמה אישית של קישורי סרגל הצד", + "customizeLinksDescription": "התאם אישית את הקישורים המוצגים בסרגל הצדדי. גרור ושחרר כדי לשנות את הסדר.", + "currentLinks": "קישורים נוכחיים", + "addNewLink": "הוסף קישור חדש", + "linkType": "סוג הקישור", + "selectLinkType": "בחר סוג קישור", + "customLink": "קישור מותאם אישית", + "selectSource": "בחר מקור", + "chooseSource": "בחר מקור", + "selectTool": "בחר כלי", + "chooseTool": "בחר כלי", + "linkName": "שם הקישור", + "linkNamePlaceholder": "הזן שם קישור", + "linkUrl": "כתובת URL של הקישור", + "linkUrlPlaceholder": "הזן כתובת URL או נתיב (לדוגמה, /files/path או https://example.com)", + "linkIcon": "סמל קישור", + "linksUpdatedSuccess": "קישורי הסרגל הצדדי עודכנו בהצלחה!", + "linksUpdateFailed": "לא הצלחנו לעדכן את הקישורים בסרגל הצדדי", + "sourceNotAccessible": "מקור זה אינו נגיש לך עוד", + "noLinksYet": "עדיין לא הוגדרו קישורים. הוסף את הקישור הראשון שלך למטה.", + "customizeShareLinks": "התאמה אישית של קישורי סרגל הצד", + "customizeShareLinksDescription": "התאם אישית את הקישורים המוצגים בסרגל הצדדי עבור שיתוף זה. גרור ושחרר כדי לשנות את הסדר.", + "editLink": "ערוך קישור", + "selectShare": "בחר שיתוף", + "chooseShare": "בחר שיתוף", + "selectSharePath": "נתיב בתוך השיתוף (אופציונלי)", + "sharePathPlaceholder": "לדוגמה, /subfolder או השאר ריק עבור root", + "browseIcons": "עיון בסמלים", + "pickIcon": "בחר סמל", + "pickIconDescription": "חפש ובחר סמל מספריית Material Icons.", + "shareLinksUpdatedSuccess": "קישורי הסרגל הצדדי שותפו בהצלחה!", + "shareHome": "שתף בית", + "linkIconPlaceholder": "אפשר לציין שם סמל חומר" }, "success": { "linkCopied": "הקישור הועתק!" @@ -481,7 +437,12 @@ "allowReplacements": "אפשר החלפת קבצים", "allowReplacementsDescription": "כל אחד יכול להחליף קבצים קיימים בעת העלאת קבצים עם אותו שם.", "allowCreate": "אפשר ליצור ולהעלות קבצים ותיקיות", - "allowCreateDescription": "כל אחד יכול ליצור ולהעלות קבצים ותיקיות חדשים בשיתוף זה." + "allowCreateDescription": "כל אחד יכול ליצור ולהעלות קבצים ותיקיות חדשים בשיתוף זה.", + "customizeSidebarLinks": "התאמה אישית של קישורי סרגל הצד", + "customizeSidebarLinksButton": "התאמה אישית של קישורים", + "shareInfo": "שתף קוד QR ומידע", + "shareInfoDescription": "קישור זה מציג את פרטי השיתוף, כולל כותרת, תיאור, באנר וקוד QR בחלון קופץ.", + "downloadDescription": "קישור זה מאפשר להוריד את כל תוכן השיתוף כקובץ דחוס." }, "api": { "title": "מפתחות API", @@ -505,21 +466,28 @@ "expires": "תוקף", "actions": "פעולות", "enabled": "מופעל", - "disabled": "נכה" + "disabled": "נכה", + "apiKeyDeleted": "מפתח API נמחק!" }, "index": { - "status": "סטטוס", "assessment": "הערכה", "lastScanned": "נסרק לאחרונה", "quickScan": "סריקה מהירה בשניות", "fullScan": "שניות סריקה מלאה", "settingsHover": "הגדרות למשתמש", - "logout": "התנתק", "toggleClick": "החלף לחיצה אחת", "toggleDark": "הפעל מצב כהה", "toggleSticky": "הפעל/כבה מצב דביק", - "used": "משומש", - "noSources": "אין מקורות זמינים עבור משתמש זה. הוסף מקור עבור משתמש זה או הגדר מקור עם defaultEnabled: true" + "noSources": "אין מקורות זמינים עבור משתמש זה. הוסף מקור עבור משתמש זה או הגדר מקור עם defaultEnabled: true", + "unknown": "לא ידוע", + "simple": "פשוט", + "normal": "רגיל", + "complex": "מורכב", + "highlyComplex": "מורכב ביותר", + "ready": "מוכן", + "indexing": "אינדקס", + "unavailable": "לא זמין", + "error": "שגיאה" }, "otp": { "name": "אימות דו-גורמי", @@ -545,7 +513,96 @@ "exit": "יציאה", "permanent": "קבוע", "hash": "חשיש", - "of": "של" + "of": "של", + "source": "מקור{suffix}", + "percentage": "{percentage}%", + "type": "סוג{suffix}", + "size": "גודל{suffix}", + "body": "גוף{suffix}", + "home": "בית{suffix}", + "clear": "ברור{suffix}", + "help": "עזרה{suffix}", + "login": "התחבר{suffix}", + "logout": "התנתק{suffix}", + "preview": "תצוגה מקדימה{suffix}", + "settings": "הגדרות{suffix}", + "sources": "מקורות{suffix}", + "links": "קישורים{suffix}", + "tool": "כלי{suffix}", + "used": "משומש{suffix}", + "status": "סטטוס{suffix}", + "analyze": "לנתח{suffix}", + "results": "תוצאות{suffix}", + "users": "משתמשים{suffix}", + "photos": "תמונות", + "audio": "אודיו{suffix}", + "videos": "סרטונים{suffix}", + "documents": "מסמכים{suffix}", + "archives": "ארכיונים{suffix}", + "images": "תמונות{suffix}", + "music": "מוזיקה{suffix}", + "pdf": "PDF{suffix}", + "search": "חיפוש{suffix}", + "number": "מספר{suffix}", + "types": "סוגים{suffix}", + "video": "וידאו{suffix}", + "admin": "מנהל{suffix}", + "branding": "מיתוג{suffix}", + "language": "שפה{suffix}", + "documentation": "תיעוד{suffix}", + "examples": "דוגמאות{suffix}", + "dark": "אפל{suffix}", + "light": "אור{suffix}", + "title": "נושא{suffix}", + "expires": "תוקף{suffix}", + "scope": "היקף{suffix}", + "rules": "כללים{suffix}", + "downloads": "הורדות{suffix}", + "submit": "התחבר{suffix}", + "navigation": "ניווט{suffix}", + "metadata": "מטא-נתונים{suffix}", + "loading": "טוען{suffix}", + "add": "הוסף{suffix}", + "cancel": "ביטול{suffix}", + "verify": "אמת{suffix}", + "close": "סגור{suffix}", + "copy": "העתק{suffix}", + "create": "צור{suffix}", + "delete": "מחק{suffix}", + "download": "הורדה{suffix}", + "file": "קובץ{suffix}", + "folder": "תיקייה{suffix}", + "info": "מידע{suffix}", + "more": "עוד{suffix}", + "move": "העבר{suffix}", + "new": "חדש{suffix}", + "next": "הבא{suffix}", + "ok": "בסדר{suffix}", + "previous": "קודם{suffix}", + "publish": "פרסם{suffix}", + "rename": "שינוי שם{suffix}", + "replace": "החלף{suffix}", + "save": "שמור{suffix}", + "schedule": "לוח זמנים{suffix}", + "select": "בחר{suffix}", + "share": "שתף{suffix}", + "update": "עדכון{suffix}", + "upload": "העלה{suffix}", + "openFile": "פתח קובץ{suffix}", + "continue": "המשך{suffix}", + "edit": "ערוך{suffix}", + "pause": "השהה{suffix}", + "resume": "קורות חיים{suffix}", + "retry": "נסה שוב{suffix}", + "disable": "השבת{suffix}", + "confirm": "אשר{suffix}", + "stay": "הישאר{suffix}", + "scopes": "סקופים{suffix}", + "commands": "פקודות{suffix}", + "uploading": "העלאה{suffix}", + "paused": "בהשהיה{suffix}", + "conflict": "סכסוך{suffix}", + "change": "שינוי{suffix}" }, "access": { "rules": "כללי גישה", @@ -560,13 +617,15 @@ "enterName": "הזן שם משתמש או שם קבוצה", "deleted": "כלל הגישה נמחק!", "added": "כלל גישה נוסף!", - "name": "שם", "accessManagement": "ניהול גישה", "totalDenied": "נדחה", "totalAllowed": "מותר", "all": "דחה הכל", "defaultBehaviorDescription": "זה מראה מה קורה כאשר משתמש מנסה לגשת לנתיב שבו אין כללי גישה ספציפיים. 'אפשר' פירושו שמשתמשים יכולים לגשת כברירת מחדל, 'דחה' פירושו שמשתמשים נחסמים כברירת מחדל, אלא אם כן הותר להם במפורש.", - "defaultBehavior": "פעולה ברירת מחדל{suffix}" + "defaultBehavior": "פעולה ברירת מחדל{suffix}", + "deletedCascade": "כללי הגישה נמחקו מהנתיב ומכל הנתיבים המשניים!", + "cascadeDelete": "מחיקה רקורסיבית", + "cascadeDeleteDescription": "כאשר אפשרות זו מופעלת, מחיקת כלל גישה תסיר אותו גם מכל הספריות המשנה. כך תוכל להסיר משתמש או קבוצה לחלוטין מכל עץ הספריות." }, "fileLoading": { "title": "העלאות והורדות", @@ -644,16 +703,16 @@ "themeAndLanguage": "נושא ושפה", "previewFolder": "הצג תמונות ממוזערות של תיקיות, אם זמינות", "previewFolderDescription": "הצג תצוגה מקדימה של תמונות ממוזערות עבור תיקיות עם פריט משנה ראשון עם תמונה ממוזערת ככריכה.", - "disableFileExtensions": "הזן סיומות קבצים שיש להשבית", - "defaultLandingPage": "דף נחיתה ברירת מחדל", - "defaultLandingPageDescription": "לדוגמה, '/files/mysource/mysubpath' או '/settings' - הדף המוגדר כברירת מחדל הוא /files, המוביל לתצוגת רשימת המקורות הראשונה." + "disableFileExtensions": "הזן סיומות קבצים שיש להשבית" }, "editor": { "uninitialized": "לא ניתן לאתחל את העורך. אנא טען מחדש.", "saveFailed": "לא ניתן לשמור את הקובץ. אנא נסה שוב.", "saveAborted": "שמירה בוטלה. שם הקובץ אינו תואם לקובץ הפעיל.", "saveAbortedMessage": "פעולת השמירה בוטלה. הקובץ הפעיל של היישום ({activeFile}) אינו תואם לקובץ שאתה מנסה לשמור ({tryingToSave}).", - "syncFailed": "לא הצליח לסנכרן את המצב עם המסלול עבור \"{filename}\" לאחר 5 ניסיונות. מבטל את הגדרת העורך כדי למנוע פגיעה בנתונים." + "syncFailed": "לא הצליח לסנכרן את המצב עם המסלול עבור \"{filename}\" לאחר 5 ניסיונות. מבטל את הגדרת העורך כדי למנוע פגיעה בנתונים.", + "fileSaved": "הקובץ נשמר!", + "errorSavingFile": "שגיאה בשמירת הקובץ: {error}" }, "player": { "LoopEnabled": "לולאה מופעלת", @@ -666,5 +725,93 @@ "changePlaybackMode": "שנה מצב ניגון", "changePlaybackModeHint": "שנה מצב ניגון כדי לראות יותר קבצים", "emptyQueue": "התור ריק" + }, + "fileSizeAnalyzer": { + "title": "מנתח גודל קובץ", + "searchLocation": "חיפוש מיקום", + "selectPath": "בחר מיקום חיפוש", + "largerThan": "גדול מ- (MB)", + "includeFolders": "כלול תיקיות", + "includeFoldersDescription": "כלול ספריות בניתוח", + "totalFiles": "סך הקבצים{suffix}", + "totalSize": "גודל כולל{suffix}", + "emptyState": "הזן את קריטריוני החיפוש ולחץ על \"Analyze\" (נתח) כדי להציג את גודל הקבצים", + "completeResults": "תוצאות מלאות מוצגות!", + "incompleteResults": "התוצאות עשויות להיות חלקיות", + "incompleteResultsDetails": "הצגת תוצאות מקסימליות (100). נסה לצמצם את החיפוש כדי לקבל יותר מ-100 תוצאות.", + "relativePercentage": "אחוז יחסי{suffix}", + "percentageOfResults": "{percentage}אחוז התוצאות" + }, + "fileTypes": { + "video": "וידאו", + "image": "תמונה", + "audio": "אודיו", + "archive": "ארכיון", + "document": "מסמך", + "binary": "בינארי", + "directory": "ספרייה", + "other": "אחר" + }, + "tools": { + "description": "כלי עזר וכלי ניתוח לקבצים שלך", + "sizeAnalyzer": { + "name": "מנתח גודל קובץ", + "description": "הצג קבצים גדולים וספריות באמצעות מפת עץ אינטראקטיבית" + }, + "title": "כלים", + "duplicateFinder": { + "name": "מאתר קבצים כפולים", + "description": "מצא ונהל קבצים כפולים כדי לשחרר שטח אחסון" + }, + "materialIconPicker": { + "name": "בוחר סמלי חומר", + "description": "עיין וחפש סמלי חומרים עם תצוגה מקדימה חיה", + "searchPlaceholder": "סמלי חיפוש...", + "popularIcons": "הצגת {count} אייקונים פופולריים", + "showingResults": "הצגת תוצאות {count} ", + "noResults": "לא נמצאו סמלים", + "tryDifferentSearch": "נסה מונח חיפוש אחר", + "copiedToClipboard": "הועתק '{name}' ללוח!", + "copyFailed": "לא ניתן להעתיק ללוח", + "custom": "מותאם אישית", + "useCustomIcon": "השתמש בסמל מותאם אישית: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "עיין בספריית הסמלים המלאה" + }, + "toolNotFound": "הכלי לא נמצא", + "backToTools": "חזרה לכלים" + }, + "messages": { + "pathNotFound": "הנתיב אינו קיים במערכת הקבצים", + "pathNotFoundMessage": "הנתיב הזה כבר לא קיים במערכת הקבצים. ייתכן שהוא הועבר או נמחק.", + "reassignPath": "הקצאת נתיב מחדש", + "pathReassigned": "הנתיב עודכן בהצלחה!", + "pathReassignFailed": "לא ניתן לעדכן את הנתיב. אנא נסה שוב." + }, + "duplicateFinder": { + "title": "מאתר קבצים כפולים", + "minSize": "גודל מינימלי (MB){suffix}", + "minSizeHint": "לנתח רק קבצים שגודלם עולה על גודל זה (במגה-בייט)", + "useChecksums": "השוואת תוכן קבצים", + "useChecksumsDescription": "כלול גם את תוכן הקבצים בהשוואה. ללא זה, הקבצים יותאמו לפי גודל ודמיון שמות הקבצים.", + "findDuplicates": "מצא כפילויות", + "groupsFound": "נמצאו קבוצות כפולות{suffix}", + "totalWastedSpace": "סך השטח המבוזבז{suffix}", + "wasted": "מבוזבז{suffix}", + "emptyState": "הזן את קריטריוני החיפוש ולחץ על 'מצא כפילויות' כדי לזהות קבצים כפולים." + }, + "notifications": { + "title": "הודעות", + "description": "הצג את כל ההודעות מהפעלה הנוכחית שלך", + "empty": "אין עדיין הודעות", + "clearAll": "נקה הכל", + "clearConfirm": "האם אתה בטוח שברצונך למחוק את כל היסטוריית ההודעות?", + "total": "{count} הודעות" + }, + "events": { + "serverShutdown": "השרת כובה.", + "authenticationFailed": "האימות נכשל. אנא רענן את הדף כדי להתחבר שוב.", + "reconnected": "התחבר מחדש לשרת.", + "connectionLost": "החיבור לשרת אבד. מנסה להתחבר מחדש..." } } diff --git a/frontend/src/i18n/hu.json b/frontend/src/i18n/hu.json index ed82165164..e640bf1aa1 100644 --- a/frontend/src/i18n/hu.json +++ b/frontend/src/i18n/hu.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Mégse", - "close": "Bezárás", - "copy": "Másolás", "copyFile": "Fájl másolása", "copyToClipboard": "Másolás vágólapra", - "create": "Létrehozás", - "delete": "Törlése", - "download": "Letöltés", - "file": "Fájl", - "folder": "Mappa", - "info": "Infó", - "more": "További", - "move": "Mozgatás", "moveFile": "Fájl mozgatása", - "new": "Új", - "next": "Következő", - "ok": "OK", "permalink": "Állandó link lekérése", - "previous": "Előző", - "publish": "Publikálása", - "rename": "Átnevezés", - "replace": "Csere", "reportIssue": "Hiba jelentése", - "save": "Mentés", - "schedule": "Ütemezés", - "search": "Keresés", - "select": "Kijelölés", "selectMultiple": "Többszörös kijelölés", - "share": "Megosztás", "shell": "Parancsértelmező átváltása", - "submit": "Beküldés", "switchView": "Nézet váltása", "toggleSidebar": "Oldalsáv átváltása", - "update": "Frissítés", - "upload": "Feltöltés", - "openFile": "Fájl megnyitása", "copyDownloadLinkToClipboard": "Letöltési link másolása a vágólapra", - "continue": "Folytatás", - "edit": "Szerkesztés", "generateNewOtp": "Új kétfaktoros kód visszaállítása és generálása", - "verify": "Ellenőrizze a címet.", - "pause": "Szünet", - "resume": "Önéletrajz", - "retry": "Retry", "pauseAll": "Szünet minden", "resumeAll": "Folytassa az összes", "clearCompleted": "Tiszta befejezve", @@ -62,10 +29,8 @@ "discardAndExit": "Dobás és kilépés", "saveAndExit": "Mentés és kilépés", "keepEditing": "Szerkesztés folytatása", - "stayOnPrompt": "Maradj", "closeAnyway": "Egyébként bezárni", - "disable": "A letiltása", - "confirm": "Megerősítés" + "goToItem": "Tovább a tételhez" }, "download": { "downloadFile": "Fájl letöltése", @@ -77,31 +42,31 @@ "internal": "Valami nagyon elromlott.", "notFound": "Ez a hely nem érhető el.", "connection": "A kiszolgáló nem érhető el.", - "shareNotFound": "Érvénytelen vagy lejárt részvény." + "shareNotFound": "Érvénytelen vagy lejárt részvény.", + "failedToConnectToServer": "Nem sikerült csatlakozni a szerverhez, még mindig fut?" }, "files": { - "body": "Törzs", - "clear": "Törlése", "closePreview": "Előnézet bezárása", - "home": "Kezdőlap", "lastModified": "Utoljára módosítva", - "loading": "Betöltés…", "lonely": "Ez egy magányos érzés…", - "metadata": "Metaadat", "multipleSelectionEnabled": "Többszörös kijelölés aktiválva", - "name": "Név", - "size": "Méret", "sortByLastModified": "Rendezés utolsó módosítás szerint", "sortByName": "Rendezés név szerint", "sortBySize": "Rendezés méret szerint", "noPreview": "Ehhez a fájlhoz nincs előnézet.", - "noDownloadAccess": "A letöltés nem elérhető." + "noDownloadAccess": "A letöltés nem elérhető.", + "itemSelected": "kiválasztott elem", + "itemsSelected": "kiválasztott elemek", + "myFiles": "Az én fájljaim{suffix}", + "newFile": "Új fájl{suffix}", + "newFolder": "Új mappa{suffix}", + "duration": "Időtartam{suffix}", + "sortByDuration": "Rendezés időtartam szerint" }, "help": { "functionKeys": "Funkcióbillentyűk", "mouseActions": "Egérműveletek", "fileOperations": "Fájlműveletek", - "navigation": "Navigáció", "click": "mappa vagy fájl kijelölése", "ctrl": { "click": "több mappa vagy fájl kijelölése", @@ -115,11 +80,11 @@ "del": "kijelölt elemek törlése", "esc": "kijelölés törlése és/vagy parancssor bezárása", "f2": "fájl átnevezése", - "help": "Súgó", "f1": "show help prompt", "description": "Az alábbiakban megtekintheti az alapvető navigációs lehetőségeket. További információkért kérjük, látogasson el a következő weboldalra", "slash": "keresés aktiválása", - "wiki": "FileBrowser Quantum hivatalos dokumentumok" + "wiki": "FileBrowser Quantum hivatalos dokumentumok", + "marqueeSelect": "több fájl vagy könyvtár kiválasztása üres helyre történő húzással" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Már van fiókom", "passwordConfirm": "Jelszó megerősítése", "passwordsDontMatch": "A jelszavak nem egyeznek", - "submit": "Belépés", "usernameTaken": "A felhasználói név már foglalt", "wrongCredentials": "Hibás hitelesítő adatok", "or": "VAGY", @@ -208,7 +172,6 @@ "viewMode": "Nézet mód", "renameMessage": "Adjon meg egy új nevet:", "renameMessageInvalid": "Egy fájl nem tartalmazhat \"/\" vagy \"\\\" konténert.", - "source": "Forrás{suffix}", "deleteMessageMultiple": "Biztos, hogy törölni szeretné a {count} fájl(ok)at?", "deleteMessageShare": "Biztos, hogy törölni szeretné ezt a megosztást: {path} ?", "numberDirs": "A könyvtárak száma{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Üdvözöljük a FileBrowser Quantum-on!", "halloweenTitle": "Boldog Halloweent!", "halloweenBody": "A Halloween témát alkalmazták. Ha nem tetszik, letilthatja, vagy véglegesen letilthatja a profilbeállításokban bármely más téma kiválasztásával.", - "firstLoadBody": "Az indításkor új adatbázis jött létre. Ha ez nem az, amire számított, kérjük, ellenőrizze kétszer is a konfigurációs fájlban a `server.database` elérési útvonalát, és győződjön meg róla, hogy létezik. Dockeren az adatbázis elérési útja lehet `./data/database.db` vagy `./database.db`." + "firstLoadBody": "Az indításkor új adatbázis jött létre. Ha ez nem az, amire számított, kérjük, ellenőrizze kétszer is a konfigurációs fájlban a `server.database` elérési útvonalát, és győződjön meg róla, hogy létezik. Dockeren az adatbázis elérési útja lehet `./data/database.db` vagy `./database.db`.", + "selectPath": "Útvonal kiválasztása", + "renameSuccess": "Az elem átnevezése sikeres volt!", + "newFileSuccess": "A fájl sikeresen létrehozva!", + "newDirSuccess": "A könyvtárat sikeresen létrehoztuk!", + "copyToClipboardFailed": "Nem lehet a vágólapra másolni" }, "search": { - "images": "Képek", - "music": "Zene", - "pdf": "PDF", - "search": "Keresés…", - "types": "Típusok", - "video": "Videó", - "path": "Útvonal:", "smallerThan": "Kisebb, mint:", "largerThan": "Nagyobb, mint:", "helpText1": "A keresés minden egyes beírt karakterre történik (minimum 3 karakteres keresőkifejezés).", @@ -267,18 +228,11 @@ "onlyFolders": "Csak mappák", "onlyFiles": "Csak fájlok", "showOptions": "Beállítások megjelenítése", - "photos": "Fotók", - "audio": "Audio", - "videos": "Videók", - "documents": "Dokumentumok", - "archives": "Archívum", - "number": "Szám", "searchContext": "Keresési kontextus: {context}", "notEnoughCharacters": "Nincs elég karakter a kereséshez (min {minSearchLength})", "typeToSearch": "A keresés megkezdéséhez írja be a {minSearchLength} vagy több karaktert." }, "settings": { - "admin": "Admin", "administrator": "Adminisztrátor", "allowCommands": "Parancsok futtatása", "allowEdit": "Fájlok és mappák szerkesztése, átnevezése és törlése", @@ -286,7 +240,6 @@ "allowPublish": "Új bejegyzések és oldalak létrehozása", "allowSignup": "Felhasználók regisztrációjának engedélyezése", "avoidChanges": "(üresen hagyva nincs változás)", - "branding": "Márkázás", "brandingDirectoryPath": "Márkázás mappaútvonala", "changePassword": "Jelszó módosítása", "commandRunner": "Parancsfuttató", @@ -298,8 +251,6 @@ "customStylesheet": "Egyéni stíluslap", "defaultUserDescription": "Ezek az alapértelmezett beállítások az új felhasználók számára.", "disableExternalLinks": "Külső linkek letiltása (kivéve a dokumentáció)", - "documentation": "dokumentáció", - "examples": "Példák", "executeOnShell": "Futtatás parancsértelmezőben", "executeOnShellDescription": "Alapértelmezés szerint a File Browser a parancsokat a binárisok közvetlen meghívásával hajtja végre. Ha ehelyett egy parancsértelmezőben (például Bash vagy PowerShell) szeretné futtatni őket, akkor itt definiálhatja azt a szükséges argumentumokkal és jelzőkkel. Ha be van állítva, akkor a végrehajtott parancs argumentumként hozzá lesz csatolva. Ez vonatkozik mind a felhasználói parancsokra, mind az eseményhorgokra.", "globalRules": "Ez egy globális engedélyezési és tiltási szabálykészlet. Ezek minden felhasználóra vonatkoznak. Az egyes felhasználók beállításainál egyedi szabályokat határozhat meg, amelyek felülbírálják ezeket.", @@ -307,14 +258,11 @@ "insertPath": "Elérési útvonal beszúrása", "insertRegex": "Reguláris kifejezés beszúrása", "instanceName": "Példány neve", - "language": "Nyelv", "lockPassword": "Felhasználói jelszó megváltoztatásának megakadályozása", "newPassword": "Új jelszó", "newPasswordConfirm": "Új jelszó ismét", "newUser": "Új felhasználó", - "password": "Jelszó", "passwordUpdated": "Jelszó frissítve!", - "path": "Elérési útvonal", "permissions": { "modify": "Fájlok szerkesztése", "share": "Fájlok megosztása", @@ -330,28 +278,17 @@ "profileSettings": "Profilbeállítások", "ruleExample1": "megakadályozza a hozzáférést bármely rejtett fájlhoz (pl. .git, .gitignore) bármely mappában.\n", "ruleExample2": "blokkolja a hozzáférést a Caddyfile nevű fájlhoz a hatókör gyökerében.", - "rules": "Szabályok", "rulesHelp": "Meghatározhat egy sor engedélyezési és tiltási szabályt az adott felhasználó számára. A letiltott fájlok nem jelennek meg a listákban, és nem lesznek elérhetőek a felhasználó számára. A reguláris kifejezések és a felhasználói hatókörhöz viszonyított elérési utak támogatottak.\n", - "scope": "Hatókör", "settingsUpdated": "Beállítások frissítve!", "shareManagement": "Megosztáskezelés", "shareDeleted": "Megosztás törölve!", "singleClick": "Fájlok és könyvtárak megnyitása egyetlen kattintással", - "themes": { - "dark": "Sötét", - "light": "Világos", - "title": "Téma" - }, - "user": "Felhasználó", - "userCommands": "Parancsok", "userCommandsHelp": "Egy szóközzel elválasztott lista az adott felhasználó számára elérhető parancsokkal. Példa:\n", "userCreated": "Felhasználó létrehozva!", "userDefaults": "Felhasználói alapértelmezett beállítások", "userDeleted": "Felhasználó törölve!", "userManagement": "Felhasználókezelés", "userUpdated": "Felhasználó frissítve!", - "username": "Felhasználói név", - "users": "Felhasználók", "modifyOtherUser": "Felhasználó módosítása:", "modifyCurrentUser": "Jelenlegi felhasználó módosítása", "themeColor": "Téma színe", @@ -373,9 +310,7 @@ "loginMethod": "Bejelentkezési módszer", "shareSettings": "Beállítások megosztása", "adminOptions": "Admin felhasználói beállítások", - "shareDuration": "Lejárat:", "searchOptions": "Keresési lehetőségek", - "downloads": "Letöltések", "systemAdmin": "Rendszer és adminisztráció", "configViewer": "Konfiguráció megtekintő", "configViewerShowFull": "Teljes konfiguráció megjelenítése", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "pl. '/subfolder' - üres az alapértelmezéshez", - "userScopes": "Területek" + "newUserHintSubFolder": "pl. '/subfolder' - üres az alapértelmezéshez" }, "sidebar": { - "help": "Súgó", - "hugoNew": "Új Hugo", - "login": "Belépés", - "logout": "Kilépés", - "myFiles": "Fájljaim", - "newFile": "Új fájl", - "newFolder": "Új mappa", - "preview": "Előnézet", - "settings": "Beállítások", - "signup": "Regisztráció", "siteSettings": "Oldalbeállítások", - "sources": "Források", "updateIsAvailable": "Elérhető a frissítés!", - "fileActions": "Fájl műveletek" + "fileActions": "Fájl műveletek", + "customizeLinks": "Oldalsávos hivatkozások testreszabása", + "customizeLinksDescription": "Az oldalsávban megjelenő linkek testreszabása. Húzza és ejtse át a sorrend átrendezéséhez.", + "currentLinks": "Jelenlegi linkek", + "addNewLink": "Új link hozzáadása", + "linkType": "Link típusa", + "selectLinkType": "Válassza ki a link típusát", + "customLink": "Egyéni link", + "selectSource": "Válassza ki a forrást", + "chooseSource": "Válasszon forrást", + "selectTool": "Eszköz kiválasztása", + "chooseTool": "Válasszon eszközt", + "linkName": "Link neve", + "linkNamePlaceholder": "Adja meg a link nevét", + "linkUrl": "Link URL", + "linkUrlPlaceholder": "Adja meg az URL-címet vagy elérési utat (pl. /files/path vagy https://example.com).", + "linkIcon": "Link ikon", + "linksUpdatedSuccess": "Oldalsáv linkek sikeresen frissítve!", + "linksUpdateFailed": "Nem sikerült frissíteni az oldalsáv linkjeit", + "sourceNotAccessible": "Ez a forrás már nem elérhető az Ön számára", + "noLinksYet": "Még nincsenek linkek konfigurálva. Adja hozzá az első linket alább.", + "customizeShareLinks": "Megosztás oldalsáv linkek testreszabása", + "customizeShareLinksDescription": "Az oldalsávban megjelenő linkek testreszabása ehhez a megosztáshoz. Húzza és ejtse át a sorrend átrendezéséhez.", + "editLink": "Link szerkesztése", + "selectShare": "Megosztás kiválasztása", + "chooseShare": "Válasszon részesedést", + "selectSharePath": "A megosztáson belüli elérési útvonal (opcionális)", + "sharePathPlaceholder": "pl. /subfolder vagy hagyja üresen a root esetében", + "browseIcons": "Ikonok böngészése", + "pickIcon": "Válasszon egy ikont", + "pickIconDescription": "Keressen és válasszon ki egy ikont az Anyagi ikonok könyvtárból.", + "shareLinksUpdatedSuccess": "Megosztás oldalsáv linkek sikeresen frissítve!", + "shareHome": "Megosztás", + "linkIconPlaceholder": "Opcionálisan megadhatja az anyag ikon nevét" }, "success": { "linkCopied": "Link másolva!" @@ -481,7 +437,12 @@ "allowReplacements": "Fájlok cseréjének engedélyezése", "allowReplacementsDescription": "Az azonos nevű fájlok feltöltésekor bárki helyettesítheti a meglévő fájlokat.", "allowCreate": "Fájlok és mappák létrehozásának és feltöltésének lehetővé tétele", - "allowCreateDescription": "Bárki létrehozhat és feltölthet új fájlokat és mappákat ezen a megosztáson." + "allowCreateDescription": "Bárki létrehozhat és feltölthet új fájlokat és mappákat ezen a megosztáson.", + "customizeSidebarLinks": "Oldalsávos hivatkozások testreszabása", + "customizeSidebarLinksButton": "Linkek testreszabása", + "shareInfo": "QR-kód és információ megosztása", + "shareInfoDescription": "Ez a link megjeleníti a megosztás adatait, beleértve a címet, a leírást, a bannert és a QR-kódot egy felugró ablakban.", + "downloadDescription": "Ez a link lehetővé teszi a teljes megosztás tartalmának tömörített fájlként történő letöltését." }, "api": { "title": "API-kulcsok:", @@ -505,21 +466,28 @@ "expires": "Lejárat:", "actions": "Tevékenységek", "enabled": "Engedélyezve", - "disabled": "Mozgáskorlátozottak" + "disabled": "Mozgáskorlátozottak", + "apiKeyDeleted": "API kulcs törölve!" }, "index": { - "status": "Állapot", "assessment": "Értékelés", "lastScanned": "Utoljára beolvasott", "quickScan": "Gyors beolvasás másodpercek", "fullScan": "Teljes letapogatás másodpercek", "settingsHover": "Felhasználói beállítások", - "logout": "Kijelentkezés", "toggleClick": "Egyetlen kattintás kapcsolása", "toggleDark": "Sötét üzemmód átkapcsolása", "toggleSticky": "Ragadós mód átkapcsolása", - "used": "használt", - "noSources": "Ehhez a felhasználóhoz nem állnak rendelkezésre források. Vagy adjon hozzá egy forrást ehhez a felhasználóhoz, vagy konfiguráljon egy forrást a defaultEnabled: true beállítással." + "noSources": "Ehhez a felhasználóhoz nem állnak rendelkezésre források. Vagy adjon hozzá egy forrást ehhez a felhasználóhoz, vagy konfiguráljon egy forrást a defaultEnabled: true beállítással.", + "unknown": "Ismeretlen", + "simple": "Egyszerű", + "normal": "Normál", + "complex": "Komplex", + "highlyComplex": "Nagyon összetett", + "ready": "Kész", + "indexing": "Indexelés", + "unavailable": "Nem elérhető", + "error": "Hiba" }, "otp": { "name": "Kétfaktoros hitelesítés", @@ -545,7 +513,96 @@ "exit": "Kilépés", "permanent": "Állandó", "hash": "Hash", - "of": "a" + "of": "a", + "source": "Forrás{suffix}", + "percentage": "{percentage}%", + "type": "Típus{suffix}", + "size": "Méret{suffix}", + "body": "Test{suffix}", + "home": "Home{suffix}", + "clear": "Tiszta{suffix}", + "help": "Segítség{suffix}", + "login": "Bejelentkezés{suffix}", + "logout": "Kijelentkezés{suffix}", + "preview": "Előnézet{suffix}", + "settings": "Beállítások{suffix}", + "sources": "Források{suffix}", + "links": "Linkek{suffix}", + "tool": "Szerszám{suffix}", + "used": "használt{suffix}", + "status": "Állapot{suffix}", + "analyze": "Elemezze{suffix}", + "results": "Eredmények{suffix}", + "users": "Felhasználók{suffix}", + "photos": "Fotók", + "audio": "Audio{suffix}", + "videos": "Videók{suffix}", + "documents": "Dokumentumok{suffix}", + "archives": "Archívum{suffix}", + "images": "Képek{suffix}", + "music": "Zene{suffix}", + "pdf": "PDF{suffix}", + "search": "Keresés{suffix}", + "number": "Szám{suffix}", + "types": "Típusok{suffix}", + "video": "Videó{suffix}", + "admin": "Admin{suffix}", + "branding": "Márkaépítés{suffix}", + "language": "Nyelv{suffix}", + "documentation": "dokumentáció{suffix}", + "examples": "Példák{suffix}", + "dark": "Sötét{suffix}", + "light": "Fény{suffix}", + "title": "Téma{suffix}", + "expires": "Lejárat:{suffix}", + "scope": "Terjedelem{suffix}", + "rules": "Szabályok{suffix}", + "downloads": "Letöltések{suffix}", + "submit": "Bejelentkezés{suffix}", + "navigation": "Navigáció{suffix}", + "metadata": "Metaadatok{suffix}", + "loading": "Betöltés{suffix}", + "add": "Add{suffix}", + "cancel": "Törölje{suffix}", + "verify": "Ellenőrizze a címet.{suffix}", + "close": "Zárja be a{suffix}", + "copy": "Másolás{suffix}", + "create": "Hozzon létre{suffix}", + "delete": "Törölje a címet.{suffix}", + "download": "Letöltés{suffix}", + "file": "Fájl{suffix}", + "folder": "Mappa{suffix}", + "info": "Info{suffix}", + "more": "További{suffix}", + "move": "Mozgás{suffix}", + "new": "Új{suffix}", + "next": "Következő{suffix}", + "ok": "OK{suffix}", + "previous": "Előző{suffix}", + "publish": "Közzététel{suffix}", + "rename": "Átnevezés{suffix}", + "replace": "Cserélje ki a címet.{suffix}", + "save": "Mentés{suffix}", + "schedule": "Ütemterv{suffix}", + "select": "Válassza ki a címet.{suffix}", + "share": "Megosztás{suffix}", + "update": "Frissítés{suffix}", + "upload": "Feltöltés{suffix}", + "openFile": "Megnyílt fájl{suffix}", + "continue": "Folytatás{suffix}", + "edit": "Szerkesztés{suffix}", + "pause": "Szünet{suffix}", + "resume": "Önéletrajz{suffix}", + "retry": "Retry{suffix}", + "disable": "A letiltása{suffix}", + "confirm": "Megerősítés{suffix}", + "stay": "Maradj{suffix}", + "scopes": "Területek{suffix}", + "commands": "Parancsok{suffix}", + "uploading": "A feltöltése{suffix}", + "paused": "Paused{suffix}", + "conflict": "Konfliktus{suffix}", + "change": "Változás{suffix}" }, "access": { "rules": "Hozzáférési szabályok", @@ -560,13 +617,15 @@ "enterName": "Adja meg a felhasználó vagy csoport nevét", "deleted": "Hozzáférési szabály törölve!", "added": "Hozzáférési szabály hozzáadva!", - "name": "Név", "accessManagement": "Hozzáférés-kezelés", "totalDenied": "Elutasítva", "totalAllowed": "Engedélyezett", "all": "Mindent megtagadni", "defaultBehaviorDescription": "Ez azt mutatja, hogy mi történik, ha egy felhasználó megpróbál hozzáférni egy olyan elérési útvonalhoz, ahol nincsenek speciális hozzáférési szabályok. Az 'Allow' azt jelenti, hogy a felhasználók alapértelmezés szerint hozzáférhetnek, a 'Deny' azt jelenti, hogy a felhasználók alapértelmezés szerint blokkolva vannak, kivéve, ha kifejezetten engedélyezik.", - "defaultBehavior": "Alapértelmezett cselekvés{suffix}" + "defaultBehavior": "Alapértelmezett cselekvés{suffix}", + "deletedCascade": "Hozzáférési szabályok törlése az elérési útvonalból és az összes alútvonalból!", + "cascadeDelete": "Rekurzív törlés", + "cascadeDeleteDescription": "Ha engedélyezve van, egy hozzáférési szabály törlése az összes alkönyvtárból is eltávolítja azt. Ez lehetővé teszi egy felhasználó vagy csoport teljes eltávolítását a teljes könyvtárfából." }, "fileLoading": { "title": "Feltöltések és letöltések", @@ -644,16 +703,16 @@ "themeAndLanguage": "Téma és nyelv", "previewFolder": "A mappák miniatűrjeinek megjelenítése, ha rendelkezésre állnak", "previewFolderDescription": "Miniatűr előnézetek megjelenítése olyan mappákhoz, amelyekben az első gyermekelem miniatűrrel borítóképként szerepel.", - "disableFileExtensions": "Adja meg a letiltandó fájlkiterjesztéseket", - "defaultLandingPage": "Alapértelmezett céloldal", - "defaultLandingPageDescription": "pl. '/files/mysource/mysubpath' vagy '/settings' - az alapértelmezett oldal a /files, amely az első forráslistázó nézethez vezet." + "disableFileExtensions": "Adja meg a letiltandó fájlkiterjesztéseket" }, "editor": { "uninitialized": "Nem sikerült inicializálni a szerkesztőt. Kérjük, töltse újra.", "saveFailed": "A fájl mentése sikertelen. Kérjük, próbálja újra.", "saveAborted": "A mentés megszakadt. A fájl neve nem egyezik az aktív fájléval.", "saveAbortedMessage": "A mentési művelet megszakadt. Az alkalmazás aktív fájlja ({activeFile}) nem egyezik meg a menteni kívánt fájllal ({tryingToSave}).", - "syncFailed": "5 próbálkozás után nem sikerült szinkronizálni az állapotot a \"{filename}\" útvonallal. A szerkesztő beállításának megszakítása az adatok sérülésének elkerülése érdekében." + "syncFailed": "5 próbálkozás után nem sikerült szinkronizálni az állapotot a \"{filename}\" útvonallal. A szerkesztő beállításának megszakítása az adatok sérülésének elkerülése érdekében.", + "fileSaved": "Fájl mentve!", + "errorSavingFile": "Hiba a fájl mentésében: {error}" }, "player": { "LoopEnabled": "Hurok engedélyezve", @@ -666,5 +725,93 @@ "changePlaybackMode": "Lejátszási mód változtatása", "changePlaybackModeHint": "Változtasd meg a lejátszási módot, hogy több fájlt láss", "emptyQueue": "A sor üres" + }, + "fileSizeAnalyzer": { + "title": "Fájlméret elemző", + "searchLocation": "Keresés helye", + "selectPath": "Keresés helyének kiválasztása", + "largerThan": "Nagyobb, mint (MB)", + "includeFolders": "Mappák felvétele", + "includeFoldersDescription": "Könyvtárak bevonása az elemzésbe", + "totalFiles": "Fájlok összesen{suffix}", + "totalSize": "Teljes méret{suffix}", + "emptyState": "Adja meg a keresési feltételeket, és kattintson az Elemzés gombra a fájlméretek megjelenítéséhez.", + "completeResults": "Teljes körű eredmények megjelenítése!", + "incompleteResults": "Az eredmények hiányosak lehetnek", + "incompleteResultsDetails": "Maximális eredmények megjelenítése (100). Próbálja szűkíteni a keresést, hogy több eredményt kapjon 100 alatt.", + "relativePercentage": "Relatív százalékos arány{suffix}", + "percentageOfResults": "{percentage}% az eredményekből" + }, + "fileTypes": { + "video": "Videó", + "image": "Kép", + "audio": "Audio", + "archive": "Archívum", + "document": "Dokumentum", + "binary": "Bináris", + "directory": "Címtár", + "other": "Egyéb" + }, + "tools": { + "description": "Segédprogramok és elemzőeszközök a fájlok számára", + "sizeAnalyzer": { + "name": "Fájlméret elemző", + "description": "Nagyméretű fájlok és könyvtárak megjelenítése interaktív falistával" + }, + "title": "Eszközök", + "duplicateFinder": { + "name": "Duplikátum fájl kereső", + "description": "Duplikált fájlok keresése és kezelése a tárhely visszanyerése érdekében" + }, + "materialIconPicker": { + "name": "Anyag ikon kiválasztó", + "description": "Böngésszen és keressen Material Icons élő előnézetben", + "searchPlaceholder": "Keresés ikonok...", + "popularIcons": "{count} népszerű ikonok megjelenítése", + "showingResults": "{count} eredmények megjelenítése", + "noResults": "Nem talált ikonok", + "tryDifferentSearch": "Próbáljon ki egy másik kereső kifejezést", + "copiedToClipboard": "Másolt '{name}' a vágólapra!", + "copyFailed": "Nem sikerült a vágólapra másolni", + "custom": "Custom", + "useCustomIcon": "Egyéni ikon használata: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Teljes ikonkönyvtár böngészése" + }, + "toolNotFound": "Eszköz nem található", + "backToTools": "Vissza az Eszközökhöz" + }, + "messages": { + "pathNotFound": "Az elérési útvonal nem létezik a fájlrendszerben", + "pathNotFoundMessage": "A fájlrendszerben már nem létezik az elérési útvonal. Lehet, hogy áthelyezték vagy törölték.", + "reassignPath": "Útvonal újbóli kijelölése", + "pathReassigned": "Az útvonal sikeresen frissült!", + "pathReassignFailed": "Nem sikerült frissíteni az elérési utat. Kérjük, próbálja újra." + }, + "duplicateFinder": { + "title": "Duplikátum fájl kereső", + "minSize": "Minimális méret (MB){suffix}", + "minSizeHint": "Csak a megadott méretnél (megabájtban) nagyobb fájlokat elemzi.", + "useChecksums": "Fájlok tartalmának összehasonlítása", + "useChecksumsDescription": "Az összehasonlításba a fájlok tartalmát is bevonja. Enélkül a fájlok összehasonlítása a méret és a fájlnév hasonlósága alapján történik.", + "findDuplicates": "Duplikátumok keresése", + "groupsFound": "Duplikált csoportokat találtak{suffix}", + "totalWastedSpace": "Teljes elpazarolt hely{suffix}", + "wasted": "Elpazarolt{suffix}", + "emptyState": "Adja meg a keresési feltételeket, és kattintson a Duplikátumok keresése gombra a duplikált fájlok azonosításához." + }, + "notifications": { + "title": "Értesítések", + "description": "Az aktuális munkamenet összes értesítésének megtekintése", + "empty": "Még nincsenek értesítések", + "clearAll": "Mindent törölni", + "clearConfirm": "Biztos, hogy törölni szeretné az összes értesítési előzményt?", + "total": "{count} értesítések" + }, + "events": { + "serverShutdown": "A kiszolgálót leállították.", + "authenticationFailed": "A hitelesítés sikertelen. Kérjük, frissítse az oldalt az újbóli bejelentkezéshez.", + "reconnected": "Újra csatlakozott a kiszolgálóhoz.", + "connectionLost": "Megszakadt a kapcsolat a kiszolgálóval. Próbáljuk újracsatlakoztatni..." } } diff --git a/frontend/src/i18n/is.json b/frontend/src/i18n/is.json index 914072b70d..a1a712fdf1 100644 --- a/frontend/src/i18n/is.json +++ b/frontend/src/i18n/is.json @@ -89,7 +89,9 @@ "sortByLastModified": "Raða eftir síðustu breytingu", "sortByName": "Raða eftir nafni", "sortBySize": "Raða eftir stærð", - "noPreview": "Forskoðun er ekki í boði fyrir þessa skrá." + "noPreview": "Forskoðun er ekki í boði fyrir þessa skrá.", + "itemSelected": "atriði valið", + "itemsSelected": "atriði valin" }, "help": { "functionKeys": "Virknislyklar", diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json index e8da9024b3..8bb15480ca 100644 --- a/frontend/src/i18n/it.json +++ b/frontend/src/i18n/it.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Annulla", - "close": "Chiudi", - "copy": "Copia", "copyFile": "Copia file", "copyToClipboard": "Copia negli appunti", - "create": "Crea", - "delete": "Elimina", - "download": "Scarica", - "info": "Informazioni", - "more": "Altro", - "move": "Sposta", "moveFile": "Sposta file", - "new": "Nuovo", - "next": "Successivo", - "ok": "OK", "permalink": "Ottieni link permanente", - "previous": "Precedente", - "publish": "Publica", - "rename": "Rinomina", - "replace": "Sostituisci", "reportIssue": "Segnala un problema", - "save": "Salva", - "schedule": "Programma", - "search": "Cerca", - "select": "Seleziona", "selectMultiple": "Seleziona molteplici", - "share": "Condividi", "shell": "Mostra/nascondi shell", "switchView": "Cambia vista", "toggleSidebar": "Mostra/nascondi la barra laterale", - "update": "Aggiorna", - "upload": "Carica", "copyDownloadLinkToClipboard": "Copiare il link di download negli appunti", - "file": "File", - "folder": "Cartella", - "submit": "Invia", - "openFile": "Aprire il file", - "continue": "Continua", - "edit": "Modifica", "generateNewOtp": "Reimpostare e generare un nuovo codice a due fattori", - "verify": "Verifica", - "pause": "Pausa", - "resume": "Il curriculum", - "retry": "Riprova", "pauseAll": "Mettere in pausa tutti", "resumeAll": "Riprendete tutti", "clearCompleted": "Completato il lavoro di pulizia", @@ -62,10 +29,8 @@ "discardAndExit": "Scartare e uscire", "saveAndExit": "Salvare e uscire", "keepEditing": "Continuare a modificare", - "stayOnPrompt": "Soggiorno", "closeAnyway": "Chiudere comunque", - "disable": "Disattivare", - "confirm": "Confermare" + "goToItem": "Vai all'articolo" }, "download": { "downloadFile": "Scarica file", @@ -77,31 +42,31 @@ "internal": "Qualcosa è andato veramente male.", "notFound": "Questo percorso non può essere raggiunto.", "connection": "Il server non è raggiungibile.", - "shareNotFound": "Azione non valida o scaduta." + "shareNotFound": "Azione non valida o scaduta.", + "failedToConnectToServer": "Impossibile connettersi al server, è ancora in esecuzione?" }, "files": { - "body": "Contenuto", - "clear": "Cancella", "closePreview": "Chiudi anteprima", - "home": "Home", "lastModified": "Ultima modifica", - "loading": "Caricamento...", "lonely": "Ci si sente soli qui...", - "metadata": "Metadati", "multipleSelectionEnabled": "Selezione multipla attivata", - "name": "Nome", - "size": "Dimensione", "sortByLastModified": "Ordina per ultima modifica", "sortByName": "Ordina per nome", "sortBySize": "Ordina per dimensione", "noPreview": "L'anteprima non è disponibile per questo file.", - "noDownloadAccess": "Il download non è disponibile." + "noDownloadAccess": "Il download non è disponibile.", + "itemSelected": "elemento selezionato", + "itemsSelected": "elementi selezionati", + "myFiles": "I miei file{suffix}", + "newFile": "Nuovo file{suffix}", + "newFolder": "Nuova cartella{suffix}", + "duration": "Durata{suffix}", + "sortByDuration": "Ordina per durata" }, "help": { "functionKeys": "Tasti Funzione", "mouseActions": "Azioni del Mouse", "fileOperations": "Operazioni sui File", - "navigation": "Navigazione", "click": "seleziona un file o una cartella", "ctrl": { "click": "seleziona più file o cartelle", @@ -115,11 +80,11 @@ "del": "elimina gli elementi selezionati", "esc": "annulla la selezione e/o chiude la finestra aperta", "f2": "rinomina un file", - "help": "Aiuto", "f1": "mostra la richiesta di aiuto", "description": "Le opzioni di navigazione di base sono riportate di seguito. Per ulteriori informazioni, visitate il sito", "slash": "attivare la ricerca", - "wiki": "Documenti ufficiali di FileBrowser Quantum" + "wiki": "Documenti ufficiali di FileBrowser Quantum", + "marqueeSelect": "selezionare più file o directory trascinando sullo spazio vuoto" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Hai già un account", "passwordConfirm": "Conferma password", "passwordsDontMatch": "Le password non corrispondono", - "submit": "Entra", "usernameTaken": "Username già usato", "wrongCredentials": "Credenziali errate", "or": "O", @@ -208,7 +172,6 @@ "viewMode": "Modalità di visualizzazione", "renameMessage": "Inserire un nuovo nome:", "renameMessageInvalid": "Un file non può contenere \"/\" o \"\\\".", - "source": "Fonte{suffix}", "deleteMessageMultiple": "Siete sicuri di voler eliminare i file {count}?", "deleteMessageShare": "Sei sicuro di voler eliminare questa condivisione: {path} ?", "numberDirs": "Numero di directory{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Benvenuti a FileBrowser Quantum!", "halloweenTitle": "Buon Halloween!", "halloweenBody": "Il tema di Halloween è stato applicato. È possibile disattivarlo se non piace, oppure disattivarlo definitivamente nelle impostazioni del profilo selezionando un altro tema.", - "firstLoadBody": "All'avvio è stato creato un nuovo database. Se questo non è quello che ci si aspettava, controllare due volte il file di configurazione per il percorso `server.database` e assicurarsi che esista. Su docker, il percorso del database può essere `./data/database.db` o `./database.db`." + "firstLoadBody": "All'avvio è stato creato un nuovo database. Se questo non è quello che ci si aspettava, controllare due volte il file di configurazione per il percorso `server.database` e assicurarsi che esista. Su docker, il percorso del database può essere `./data/database.db` o `./database.db`.", + "selectPath": "Selezionare il percorso", + "renameSuccess": "Articolo rinominato con successo!", + "newFileSuccess": "File creato con successo!", + "newDirSuccess": "Directory creata con successo!", + "copyToClipboardFailed": "Impossibile copiare negli appunti" }, "search": { - "images": "Immagini", - "music": "Musica", - "pdf": "PDF", - "search": "Cerca...", - "types": "Tipi", - "video": "Video", - "path": "Percorso:", "smallerThan": "Più piccolo di:", "largerThan": "Più grande di:", "helpText1": "La ricerca avviene per ogni carattere digitato (minimo 3 caratteri per i termini di ricerca).", @@ -267,18 +228,11 @@ "onlyFolders": "Solo cartelle", "onlyFiles": "Solo file", "showOptions": "Mostra opzioni", - "photos": "Foto", - "audio": "Audio", - "videos": "Video", - "documents": "Documenti", - "archives": "Archivio", - "number": "Numero", "searchContext": "Contesto di ricerca: {context}", "notEnoughCharacters": "Non ci sono abbastanza caratteri per la ricerca (min {minSearchLength})", "typeToSearch": "Iniziare a digitare {minSearchLength} o più caratteri per avviare la ricerca." }, "settings": { - "admin": "Admin", "administrator": "Amministratore", "allowCommands": "Esegui comandi", "allowEdit": "Modifica, rinomina ed elimina file o cartelle", @@ -286,7 +240,6 @@ "allowPublish": "Pubblica nuovi post e pagine", "allowSignup": "Permetti agli utenti di registrarsi", "avoidChanges": "(lascia vuoto per evitare cambiamenti)", - "branding": "Branding", "brandingDirectoryPath": "Directory del branding", "changePassword": "Modifica password", "commandRunner": "Esecutore di comandi", @@ -296,8 +249,6 @@ "defaultUserDescription": "Queste sono le impostazioni predefinite per i nuovi utenti.", "disableExternalLinks": "Disabilita link esterni (tranne per la documentazione)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "documentazione", - "examples": "Esempi", "executeOnShell": "Esegui nella shell", "executeOnShellDescription": "Di default File Browser esegue i comandi chiamando direttamente i loro binari. Se invece vuoi eseguirli su una shell (come Bash o PowerShell), puoi definirli qui con gli argomenti e i flag richiesti. Se impostato, il comando che esegui sarà concatenato come argomento. Questo si applica sia ai comandi utente che agli hook di eventi.", "globalRules": "Questo è un insieme globale di regole permetti/nega, che si applicano ad ogni utente. Puoi definire regole specifiche per ogni utente, per sovrascrivere queste.", @@ -305,14 +256,11 @@ "insertPath": "Inserisci il percorso", "insertRegex": "Inserisci la regex", "instanceName": "Nome dell'istanza", - "language": "Lingua", "lockPassword": "Impedisci all'utente di modificare la password", "newPassword": "La tua nuova password", "newPasswordConfirm": "Conferma la password", "newUser": "Nuovo utente", - "password": "Password", "passwordUpdated": "Password aggiornata!", - "path": "Percorso", "permissions": { "modify": "Modificare file", "share": "Condividere file", @@ -328,27 +276,16 @@ "profileSettings": "Impostazioni del profilo", "ruleExample1": "impedisci l'accesso a qualsiasi file avente come prefisso un punto\n (ad esempio .git, .gitignore) presente in ogni cartella.\n", "ruleExample2": "blocca l'accesso al file denominato Caddyfile nella radice del campo di applicazione.", - "rules": "Regole", "rulesHelp": "Qui è possibile definire una serie di regole e permessi per questo specifico utente. I file bloccati non appariranno negli elenchi e non saranno accessibili dagli utenti. all'utente. Sia regex che i percorsi relativi all'ambito di applicazione degli utenti sono supportati.\n", - "scope": "Scope", "settingsUpdated": "Impostazioni aggiornate!", "shareManagement": "Gestione delle condivisioni", "singleClick": "Usa un singolo click per aprire file e cartelle", - "themes": { - "dark": "Scuro", - "light": "Chiaro", - "title": "Tema" - }, - "user": "Utente", - "userCommands": "Comandi", "userCommandsHelp": "Una lista separata dal spazi con i comandi disponibili per questo utente. Example:\n", "userCreated": "Utente creato!", "userDefaults": "Impostazioni predefinite utente", "userDeleted": "Utente eliminato!", "userManagement": "Gestione degli utenti", "userUpdated": "Utente aggiornato!", - "username": "Nome utente", - "users": "Utenti", "modifyOtherUser": "Modificare l'utente:", "modifyCurrentUser": "Modificare l'utente corrente", "themeColor": "Colore del tema", @@ -373,9 +310,7 @@ "loginMethod": "Metodo di accesso", "shareSettings": "Condividi le impostazioni", "adminOptions": "Opzioni dell'utente amministratore", - "shareDuration": "Scadenza", "searchOptions": "Opzioni di ricerca", - "downloads": "Scaricamento", "systemAdmin": "Sistema e amministrazione", "configViewer": "Visualizzatore di configurazione", "configViewerShowFull": "Mostra la configurazione completa", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "es. '/sottocartella' - vuoto per l'impostazione predefinita", - "userScopes": "Cannocchiali" + "newUserHintSubFolder": "es. '/sottocartella' - vuoto per l'impostazione predefinita" }, "sidebar": { - "help": "Aiuto", - "hugoNew": "Hugo New", - "login": "Login", - "logout": "Esci", - "myFiles": "I miei file", - "newFile": "Nuovo file", - "newFolder": "Nuova cartella", - "preview": "Anteprima", - "settings": "Impostazioni", - "signup": "Registrati", "siteSettings": "Impostazioni del sito", - "sources": "Fonti", "updateIsAvailable": "È disponibile un aggiornamento!", - "fileActions": "Azioni sui file" + "fileActions": "Azioni sui file", + "customizeLinks": "Personalizzare i link della barra laterale", + "customizeLinksDescription": "Personalizzate i link visualizzati nella vostra barra laterale. Trascinare e rilasciare per riordinare.", + "currentLinks": "Link attuali", + "addNewLink": "Aggiungi nuovo link", + "linkType": "Tipo di collegamento", + "selectLinkType": "Selezionare un tipo di collegamento", + "customLink": "Collegamento personalizzato", + "selectSource": "Seleziona la fonte", + "chooseSource": "Scegliere una fonte", + "selectTool": "Selezionare lo strumento", + "chooseTool": "Scegliere uno strumento", + "linkName": "Nome del collegamento", + "linkNamePlaceholder": "Inserire il nome del collegamento", + "linkUrl": "URL di collegamento", + "linkUrlPlaceholder": "Inserire l'URL o il percorso (ad esempio, /files/path o https://example.com).", + "linkIcon": "Icona del link", + "linksUpdatedSuccess": "Link della barra laterale aggiornati con successo!", + "linksUpdateFailed": "Impossibile aggiornare i link della barra laterale", + "sourceNotAccessible": "Questa fonte non è più accessibile all'utente", + "noLinksYet": "Non ci sono ancora collegamenti configurati. Aggiungete il vostro primo link qui sotto.", + "customizeShareLinks": "Personalizzare i link della barra laterale di condivisione", + "customizeShareLinksDescription": "Personalizzare i link visualizzati nella barra laterale per questa condivisione. Trascinare e rilasciare per riordinare.", + "editLink": "Modifica del link", + "selectShare": "Selezionare la quota", + "chooseShare": "Scegliere una quota", + "selectSharePath": "Percorso all'interno della condivisione (facoltativo)", + "sharePathPlaceholder": "ad esempio, /sottocartella o lasciare vuoto per la radice", + "browseIcons": "Sfogliare le icone", + "pickIcon": "Scegliere un'icona", + "pickIconDescription": "Cercare e selezionare un'icona dalla libreria Material Icons.", + "shareLinksUpdatedSuccess": "I link della barra laterale di condivisione sono stati aggiornati con successo!", + "shareHome": "Condividi Casa", + "linkIconPlaceholder": "Specificare facoltativamente il nome dell'icona del materiale" }, "success": { "linkCopied": "Link copiato!" @@ -481,7 +437,12 @@ "allowReplacements": "Consentire la sostituzione dei file", "allowReplacementsDescription": "Chiunque può sostituire i file esistenti quando carica file con lo stesso nome.", "allowCreate": "Consente la creazione e il caricamento di file e cartelle.", - "allowCreateDescription": "Chiunque può creare e caricare nuovi file e cartelle in questa condivisione." + "allowCreateDescription": "Chiunque può creare e caricare nuovi file e cartelle in questa condivisione.", + "customizeSidebarLinks": "Personalizzare i link della barra laterale", + "customizeSidebarLinksButton": "Personalizzare i link", + "shareInfo": "Condividi il codice QR e le informazioni", + "shareInfoDescription": "Questo link visualizza le informazioni sulla condivisione, compresi titolo, descrizione, banner e codice QR in un popup.", + "downloadDescription": "Questo link consente di scaricare l'intero contenuto della condivisione come file compresso." }, "api": { "title": "Chiavi API:", @@ -505,21 +466,28 @@ "expires": "Scadenza", "actions": "Azioni", "enabled": "Abilitato", - "disabled": "Disabili" + "disabled": "Disabili", + "apiKeyDeleted": "Chiave API cancellata!" }, "index": { - "status": "Stato", "assessment": "Valutazione", "lastScanned": "Ultima scansione", "quickScan": "Scansione rapida Secondi", "fullScan": "Secondi di scansione completa", "settingsHover": "Impostazioni per l'utente", - "logout": "Disconnessione", "toggleClick": "Alterna il clic singolo", "toggleDark": "Alterna la modalità scura", "toggleSticky": "Alterna la modalità appiccicosa", - "used": "usato", - "noSources": "Non ci sono fonti disponibili per questo utente. Aggiungere una fonte per questo utente o configurare una fonte con defaultEnabled: true." + "noSources": "Non ci sono fonti disponibili per questo utente. Aggiungere una fonte per questo utente o configurare una fonte con defaultEnabled: true.", + "unknown": "Sconosciuto", + "simple": "Semplice", + "normal": "Normale", + "complex": "Complesso", + "highlyComplex": "Altamente complesso", + "ready": "Pronto", + "indexing": "Indicizzazione", + "unavailable": "Non disponibile", + "error": "Errore" }, "otp": { "name": "Autenticazione a due fattori", @@ -545,7 +513,96 @@ "exit": "Uscita", "permanent": "Permanente", "hash": "Hash", - "of": "di" + "of": "di", + "source": "Fonte{suffix}", + "percentage": "{percentage}%", + "type": "Tipo{suffix}", + "size": "Dimensione{suffix}", + "body": "Corpo{suffix}", + "home": "Casa{suffix}", + "clear": "Libero{suffix}", + "help": "Aiuto{suffix}", + "login": "Accesso{suffix}", + "logout": "Disconnessione{suffix}", + "preview": "Anteprima{suffix}", + "settings": "Impostazioni{suffix}", + "sources": "Fonti{suffix}", + "links": "Collegamenti{suffix}", + "tool": "Strumento{suffix}", + "used": "usato{suffix}", + "status": "Stato{suffix}", + "analyze": "Analizzare{suffix}", + "results": "Risultati{suffix}", + "users": "Utenti{suffix}", + "photos": "Foto", + "audio": "Audio{suffix}", + "videos": "Video{suffix}", + "documents": "Documenti{suffix}", + "archives": "Archivio{suffix}", + "images": "Immagini{suffix}", + "music": "Musica{suffix}", + "pdf": "PDF{suffix}", + "search": "Ricerca{suffix}", + "number": "Numero{suffix}", + "types": "Tipi{suffix}", + "video": "Video{suffix}", + "admin": "Admin{suffix}", + "branding": "Branding{suffix}", + "language": "Lingua{suffix}", + "documentation": "documentazione{suffix}", + "examples": "Esempi{suffix}", + "dark": "Scuro{suffix}", + "light": "Luce{suffix}", + "title": "Tema{suffix}", + "expires": "Scadenza{suffix}", + "scope": "Ambito di applicazione{suffix}", + "rules": "Regole{suffix}", + "downloads": "Download{suffix}", + "submit": "Accesso{suffix}", + "navigation": "Navigazione{suffix}", + "metadata": "Metadati{suffix}", + "loading": "Caricamento{suffix}", + "add": "Aggiungi{suffix}", + "cancel": "Annullamento{suffix}", + "verify": "Verifica{suffix}", + "close": "Chiudere{suffix}", + "copy": "Copia{suffix}", + "create": "Creare{suffix}", + "delete": "Cancellare{suffix}", + "download": "Scaricare{suffix}", + "file": "File{suffix}", + "folder": "Cartella{suffix}", + "info": "Info{suffix}", + "more": "Di più{suffix}", + "move": "Muoversi{suffix}", + "new": "Nuovo{suffix}", + "next": "Avanti{suffix}", + "ok": "OK{suffix}", + "previous": "Precedente{suffix}", + "publish": "Pubblicare{suffix}", + "rename": "Rinominare{suffix}", + "replace": "Sostituire{suffix}", + "save": "Risparmiare{suffix}", + "schedule": "Programma{suffix}", + "select": "Selezionare{suffix}", + "share": "Condividi{suffix}", + "update": "Aggiornamento{suffix}", + "upload": "Caricare{suffix}", + "openFile": "Aprire il file{suffix}", + "continue": "Continua{suffix}", + "edit": "Modifica{suffix}", + "pause": "Pausa{suffix}", + "resume": "Il curriculum{suffix}", + "retry": "Riprova{suffix}", + "disable": "Disattivare{suffix}", + "confirm": "Confermare{suffix}", + "stay": "Soggiorno{suffix}", + "scopes": "Cannocchiali{suffix}", + "commands": "Comandi{suffix}", + "uploading": "Caricamento{suffix}", + "paused": "In pausa{suffix}", + "conflict": "Conflitto{suffix}", + "change": "Cambiamento{suffix}" }, "access": { "rules": "Regole di accesso", @@ -560,13 +617,15 @@ "enterName": "Inserire il nome dell'utente o del gruppo", "deleted": "Regola di accesso cancellata!", "added": "Regola di accesso aggiunta!", - "name": "Nome", "accessManagement": "Gestione degli accessi", "totalDenied": "Negato", "totalAllowed": "Consentito", "all": "Rifiuta tutto", "defaultBehaviorDescription": "Questo mostra cosa succede quando un utente cerca di accedere a un percorso per il quale non esistono regole di accesso specifiche. 'Consenti' significa che gli utenti possono accedere per impostazione predefinita, 'Rifiuta' significa che gli utenti sono bloccati per impostazione predefinita, a meno che non siano esplicitamente autorizzati.", - "defaultBehavior": "Azione predefinita{suffix}" + "defaultBehavior": "Azione predefinita{suffix}", + "deletedCascade": "Regole di accesso cancellate dal percorso e da tutti i sottopercorsi!", + "cascadeDelete": "Eliminazione ricorsiva", + "cascadeDeleteDescription": "Se abilitata, l'eliminazione di una regola di accesso la rimuove anche da tutte le sottodirectory. In questo modo è possibile rimuovere completamente un utente o un gruppo dall'intera struttura delle directory." }, "fileLoading": { "title": "Caricamenti e download", @@ -644,16 +703,16 @@ "themeAndLanguage": "Tema e linguaggio", "previewFolder": "Mostra le miniature delle cartelle, se disponibili.", "previewFolderDescription": "Mostra le anteprime per le cartelle con il primo elemento figlio con miniatura come copertina.", - "disableFileExtensions": "Immettere le estensioni dei file da disabilitare", - "defaultLandingPage": "Pagina di destinazione predefinita", - "defaultLandingPageDescription": "es. '/files/mysource/mysubpath' o '/settings' - la pagina predefinita è /files, che va alla prima vista dell'elenco delle sorgenti." + "disableFileExtensions": "Immettere le estensioni dei file da disabilitare" }, "editor": { "uninitialized": "Impossibile inizializzare l'editor. Ricaricare.", "saveFailed": "Impossibile salvare il file. Riprovare.", "saveAborted": "Salvataggio interrotto. Il nome del file non corrisponde al file attivo.", "saveAbortedMessage": "Operazione di salvataggio interrotta. Il file attivo dell'applicazione ({activeFile}) non corrisponde al file che si sta cercando di salvare ({tryingToSave}).", - "syncFailed": "non è riuscito a sincronizzare lo stato con il percorso per \"{filename}\" dopo 5 tentativi. Interruzione dell'impostazione dell'editor per evitare la corruzione dei dati." + "syncFailed": "non è riuscito a sincronizzare lo stato con il percorso per \"{filename}\" dopo 5 tentativi. Interruzione dell'impostazione dell'editor per evitare la corruzione dei dati.", + "fileSaved": "File salvato!", + "errorSavingFile": "Errore nel salvataggio del file: {error}" }, "player": { "LoopEnabled": "Loop abilitato", @@ -666,5 +725,93 @@ "changePlaybackMode": "Cambia modalità di riproduzione", "changePlaybackModeHint": "Cambia modalità di riproduzione per vedere più file", "emptyQueue": "La coda è vuota" + }, + "fileSizeAnalyzer": { + "title": "Analizzatore delle dimensioni dei file", + "searchLocation": "Posizione di ricerca", + "selectPath": "Selezionare la posizione di ricerca", + "largerThan": "Più grande di (MB)", + "includeFolders": "Includere le cartelle", + "includeFoldersDescription": "Includere le directory nell'analisi", + "totalFiles": "Totale file{suffix}", + "totalSize": "Dimensione totale{suffix}", + "emptyState": "Immettere i criteri di ricerca e fare clic su Analizza per visualizzare le dimensioni dei file.", + "completeResults": "Mostra i risultati completi!", + "incompleteResults": "I risultati possono essere incompleti", + "incompleteResultsDetails": "Risultati massimi (100). Provi a restringere la ricerca per ottenere più risultati al di sotto di 100.", + "relativePercentage": "Percentuale relativa{suffix}", + "percentageOfResults": "{percentage}% dei risultati" + }, + "fileTypes": { + "video": "Video", + "image": "Immagine", + "audio": "Audio", + "archive": "Archivio", + "document": "Documento", + "binary": "Binario", + "directory": "Elenco", + "other": "Altro" + }, + "tools": { + "description": "Utilità e strumenti di analisi per i vostri file", + "sizeAnalyzer": { + "name": "Analizzatore delle dimensioni dei file", + "description": "Visualizzate file e directory di grandi dimensioni con una mappa interattiva a forma di albero" + }, + "title": "Strumenti", + "duplicateFinder": { + "name": "Trova file duplicati", + "description": "Trovare e gestire i file duplicati per recuperare spazio di archiviazione" + }, + "materialIconPicker": { + "name": "Selezionatore di icone di materiali", + "description": "Sfogliare e cercare le icone dei materiali con l'anteprima dal vivo", + "searchPlaceholder": "Icone di ricerca...", + "popularIcons": "Mostra {count} icone popolari", + "showingResults": "Mostra i risultati di {count} ", + "noResults": "Nessuna icona trovata", + "tryDifferentSearch": "Provate a utilizzare un termine di ricerca diverso", + "copiedToClipboard": "Copiato '{name}' negli appunti!", + "copyFailed": "Impossibile copiare negli appunti", + "custom": "Personalizzato", + "useCustomIcon": "Utilizzare un'icona personalizzata: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Sfoglia la libreria di icone completa" + }, + "toolNotFound": "Strumento non trovato", + "backToTools": "Torna a Strumenti" + }, + "messages": { + "pathNotFound": "Il percorso non esiste nel filesystem", + "pathNotFoundMessage": "Il percorso di questo file non esiste più nel filesystem. Potrebbe essere stato spostato o cancellato.", + "reassignPath": "Riassegnare il percorso", + "pathReassigned": "Il percorso è stato aggiornato con successo!", + "pathReassignFailed": "Non è stato possibile aggiornare il percorso. Riprovare." + }, + "duplicateFinder": { + "title": "Trova file duplicati", + "minSize": "Dimensione minima (MB){suffix}", + "minSizeHint": "Analizza solo i file di dimensioni superiori a questa grandezza (in megabyte)", + "useChecksums": "Confronto dei contenuti dei file", + "useChecksumsDescription": "Include anche il contenuto dei file nel confronto. In caso contrario, i file vengono confrontati in base alle dimensioni e alla somiglianza del nome del file.", + "findDuplicates": "Trova i duplicati", + "groupsFound": "Gruppi duplicati trovati{suffix}", + "totalWastedSpace": "Spazio totale sprecato{suffix}", + "wasted": "Sprecato{suffix}", + "emptyState": "Immettere i criteri di ricerca e fare clic su Trova duplicati per identificare i file duplicati." + }, + "notifications": { + "title": "Notifiche", + "description": "Visualizzare tutte le notifiche della sessione in corso", + "empty": "Non ci sono ancora notifiche", + "clearAll": "Cancella tutto", + "clearConfirm": "Siete sicuri di voler cancellare tutta la cronologia delle notifiche?", + "total": "{count} notifiche" + }, + "events": { + "serverShutdown": "Il server è stato spento.", + "authenticationFailed": "Autenticazione fallita. Aggiornare la pagina per accedere nuovamente.", + "reconnected": "Ricollegato al server.", + "connectionLost": "La connessione al server è stata persa. Cerco di riconnettermi..." } } diff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.json index fa343c9b9d..6d7ec57fcc 100644 --- a/frontend/src/i18n/ja.json +++ b/frontend/src/i18n/ja.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "キャンセル", - "close": "閉じる", - "copy": "コピー", "copyFile": "ファイルをコピー", "copyToClipboard": "クリップボードにコピー", - "create": "作成", - "delete": "削除", - "download": "ダウンロード", - "info": "情報", - "more": "詳細", - "move": "移動", "moveFile": "ファイルを移動", - "new": "新規", - "next": "次", - "ok": "OK", "permalink": "固定リンク", - "previous": "前", - "publish": "公開", - "rename": "名前を変更", - "replace": "置き換える", "reportIssue": "問題を報告", - "save": "保存", - "schedule": "スケジュール", - "search": "検索", - "select": "選択", "selectMultiple": "複数選択", - "share": "共有", "shell": "シェルの切り替え", "switchView": "表示を切り替える", "toggleSidebar": "サイドバーを切り替える", - "update": "更新", - "upload": "アップロード", "copyDownloadLinkToClipboard": "ダウンロードリンクをクリップボードにコピーする", - "file": "ファイル", - "folder": "フォルダ", - "submit": "送信", - "openFile": "ファイルを開く", - "continue": "続ける", - "edit": "編集", "generateNewOtp": "リセットして新しい2ファクタコードを生成する", - "verify": "検証", - "pause": "一時停止", - "resume": "再開", - "retry": "再試行", "pauseAll": "すべて一時停止", "resumeAll": "すべて再開", "clearCompleted": "完了済みをクリア", @@ -62,10 +29,8 @@ "discardAndExit": "破棄と終了", "saveAndExit": "保存して終了する", "keepEditing": "編集を続ける", - "stayOnPrompt": "滞在", "closeAnyway": "とにかく閉じる", - "disable": "無効", - "confirm": "確認" + "goToItem": "アイテムへ" }, "download": { "downloadFile": "ファイルをダウンロード", @@ -77,31 +42,31 @@ "internal": "内部エラーが発生しました。", "notFound": "リソースが見つかりませんでした。", "connection": "サーバーにアクセスできません。", - "shareNotFound": "無効または期限切れの共有です。" + "shareNotFound": "無効または期限切れの共有です。", + "failedToConnectToServer": "サーバーへの接続に失敗しました。" }, "files": { - "body": "本文", - "clear": "クリアー", "closePreview": "プレビューを閉じる", - "home": "ホーム", "lastModified": "最終変更", - "loading": "ローディング...", "lonely": "ここには何もない...", - "metadata": "メタデータ", "multipleSelectionEnabled": "複数選択有効", - "name": "名前", - "size": "サイズ", "sortByLastModified": "最終変更日付によるソート", "sortByName": "名前によるソート", "sortBySize": "サイズによるソート", "noPreview": "このファイルではプレビューは利用できません。", - "noDownloadAccess": "ダウンロードはできません。" + "noDownloadAccess": "ダウンロードはできません。", + "itemSelected": "項目選択済み", + "itemsSelected": "項目選択済み", + "myFiles": "私のファイル{suffix}", + "newFile": "新規ファイル{suffix}", + "newFolder": "新しいフォルダ{suffix}", + "duration": "期間{suffix}", + "sortByDuration": "期間順" }, "help": { "functionKeys": "ファンクションキー", "mouseActions": "マウス操作", "fileOperations": "ファイル操作", - "navigation": "ナビゲーション", "click": "ファイルやディレクトリを選択", "ctrl": { "click": "複数のファイルやディレクトリを選択", @@ -115,11 +80,11 @@ "del": "選択した項目を削除", "esc": "選択をクリアーまたはプロンプトを閉じる", "f2": "ファイルの名前を変更", - "help": "ヘルプ", "f1": "ヘルプ画面を表示する", "description": "基本的なナビゲーションオプションは以下の通りです。その他の情報については", "slash": "検索をアクティブにする", - "wiki": "FileBrowser Quantum 公式ドキュメント" + "wiki": "FileBrowser Quantum 公式ドキュメント", + "marqueeSelect": "空いているスペースにドラッグして、複数のファイルやディレクトリを選択する。" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "すでにアカウントをお持ちの場合", "passwordConfirm": "パスワード確認", "passwordsDontMatch": "パスワードが一致しません", - "submit": "ログイン", "usernameTaken": "ユーザー名はすでに使用されています", "wrongCredentials": "ユーザー名またはパスワードが間違っています。", "or": "または", @@ -208,7 +172,6 @@ "viewMode": "表示モード", "renameMessage": "新しい名前を入力してください:", "renameMessageInvalid": "ファイル名に\"/\"や\"\\\"を含めることはできません。", - "source": "送信元{suffix}", "deleteMessageMultiple": "本当に{count}個のファイルを削除しますか?", "deleteMessageShare": "この共有を削除してもよろしいですか? {path}", "numberDirs": "ディレクトリ数{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "FileBrowser Quantumへようこそ!", "halloweenTitle": "ハッピー・ハロウィーン", "halloweenBody": "ハロウィーンのテーマが適用されました。気に入らなければ無効にするか、プロフィール設定で他のテーマを選択して永久に無効にすることができます。", - "firstLoadBody": "起動時に新しいデータベースが作成されました。これが期待したものでない場合は、設定ファイルの `server.database` パスを再確認し、それが存在することを確認してください。docker では、データベースのパスは `./data/database.db` または `./database.db` になります。" + "firstLoadBody": "起動時に新しいデータベースが作成されました。これが期待したものでない場合は、設定ファイルの `server.database` パスを再確認し、それが存在することを確認してください。docker では、データベースのパスは `./data/database.db` または `./database.db` になります。", + "selectPath": "パスを選択", + "renameSuccess": "アイテム名の変更に成功しました!", + "newFileSuccess": "ファイルは正常に作成されました!", + "newDirSuccess": "ディレクトリは正常に作成されました!", + "copyToClipboardFailed": "クリップボードにコピーできない" }, "search": { - "images": "画像", - "music": "音楽", - "pdf": "PDF", - "search": "検索...", - "types": "ファイルの種類", - "video": "動画", - "path": "パス", "smallerThan": "より小さい:", "largerThan": "より大きい:", "helpText1": "検索は入力した文字ごとに行われます(検索語は最低3文字必要)。", @@ -267,18 +228,11 @@ "onlyFolders": "フォルダのみ", "onlyFiles": "ファイルのみ", "showOptions": "オプションを表示", - "photos": "写真", - "audio": "音声", - "videos": "動画", - "documents": "文書", - "archives": "アーカイブ", - "number": "番号", "searchContext": "検索コンテキスト:{context}", "notEnoughCharacters": "検索する文字数が不足しています(最小:{minSearchLength}文字)", "typeToSearch": "検索を開始するには、{minSearchLength}文字以上を入力してください。" }, "settings": { - "admin": "管理者", "administrator": "管理者", "allowCommands": "コマンドの実行", "allowEdit": "ファイルやディレクトリの編集、名前変更と削除", @@ -286,7 +240,6 @@ "allowPublish": "ポストとぺーじの発表", "allowSignup": "ユーザーの新規登録を許可", "avoidChanges": "(変更を避けるために空白にしてください)", - "branding": "ブランディング", "brandingDirectoryPath": "ブランディングディレクトリのパス", "changePassword": "パスワードを変更", "commandRunner": "コマンドランナー", @@ -296,8 +249,6 @@ "defaultUserDescription": "これは新しいユーザーのデフォルト設定です。", "disableExternalLinks": "外部リンクを無効にする(ドキュメントを除く)", "disableUsedDiskPercentage": "使用ディスク容量のパーセンテージグラフを無効にする", - "documentation": "ドキュメント", - "examples": "例", "executeOnShell": "シェルで実行", "executeOnShellDescription": "デフォルトでは、File Browserはバイナリを直接呼び出すことでコマンドを実行します。代わりにシェル(BashやPowerShellなど)で実行したい場合は、必要な引数とフラグを指定してここで定義できます。設定されている場合、実行するコマンドは引数として追加されます。これはユーザーコマンドとイベントフックの両方に適用されます。", "globalRules": "これは許可・拒否ルールのグローバルセットです。すべてのユーザーに適用されます。これらをオーバーライドするために、各ユーザーの設定で特定のルールを定義できます。", @@ -305,14 +256,11 @@ "insertPath": "パスを挿入", "insertRegex": "正規表現を挿入", "instanceName": "インスタンス名", - "language": "言語", "lockPassword": "パスワード変更を禁止", "newPassword": "新しいパスワード", "newPasswordConfirm": "新しいパスワードを確認", "newUser": "新しいユーザー", - "password": "パスワード", "passwordUpdated": "パスワードが更新されました!", - "path": "パス", "permissions": { "modify": "ファイルを編集", "share": "ファイルを共有", @@ -328,27 +276,16 @@ "profileSettings": "プロファイル設定", "ruleExample1": "各フォルダ内で名前がドットで始まるファイル(例:.git、.gitignore)へのアクセスを制限します。", "ruleExample2": "スコープのルートパスで名前がCaddyfileのファイルへのアクセスを制限します。", - "rules": "ルール", "rulesHelp": "ここで、このユーザーの許可または拒否ルールを設定できます。ブロックされたファイルはリストに表示されず、アクセスも制限されます。正規表現(regex)がサポートされ、スコープに対する相対パスが提供されています。", - "scope": "スコープ", "settingsUpdated": "設定が更新されました!", "shareManagement": "共有管理", "singleClick": "シングルクリックでファイルやディレクトリを開く", - "themes": { - "dark": "ダーク", - "light": "ライト", - "title": "テーマ" - }, - "user": "ユーザー", - "userCommands": "ユーザーコマンド", "userCommandsHelp": "スペース区切りで有効なコマンドのリストを指定してください。例:", "userCreated": "ユーザーが作成されました!", "userDefaults": "ユーザーデフォルト設定", "userDeleted": "ユーザーが削除されました!", "userManagement": "ユーザー管理", "userUpdated": "ユーザーが更新されました!", - "username": "ユーザー名", - "users": "ユーザー", "modifyOtherUser": "ユーザーを変更:", "modifyCurrentUser": "現在のユーザーを変更", "themeColor": "テーマカラー", @@ -373,9 +310,7 @@ "loginMethod": "ログイン方法", "shareSettings": "共有設定", "adminOptions": "管理者ユーザーオプション", - "shareDuration": "有効期限", "searchOptions": "検索オプション", - "downloads": "ダウンロード", "systemAdmin": "システム&管理", "configViewer": "設定ビューア", "configViewerShowFull": "全設定を表示", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "プロキシ" }, - "newUserHintSubFolder": "例 '/subfolder' - デフォルトは空白", - "userScopes": "スコープ" + "newUserHintSubFolder": "例 '/subfolder' - デフォルトは空白" }, "sidebar": { - "help": "ヘルプ", - "hugoNew": "Hugo New", - "login": "ログイン", - "logout": "ログアウト", - "myFiles": "マイファイル", - "newFile": "新しいファイルを作成", - "newFolder": "新しいフォルダを作成", - "preview": "プレビュー", - "settings": "設定", - "signup": "新規登録", "siteSettings": "サイト設定", - "sources": "ソース", "updateIsAvailable": "アップデートが利用可能です!", - "fileActions": "ファイル操作" + "fileActions": "ファイル操作", + "customizeLinks": "サイドバーリンクのカスタマイズ", + "customizeLinksDescription": "サイドバーに表示されるリンクをカスタマイズ。ドラッグ&ドロップで並び替えができます。", + "currentLinks": "現在のリンク", + "addNewLink": "新しいリンクを追加する", + "linkType": "リンクタイプ", + "selectLinkType": "リンクタイプを選択", + "customLink": "カスタムリンク", + "selectSource": "ソースを選択", + "chooseSource": "ソースを選ぶ", + "selectTool": "ツール選択", + "chooseTool": "ツールを選ぶ", + "linkName": "リンク名", + "linkNamePlaceholder": "リンク名を入力", + "linkUrl": "リンクURL", + "linkUrlPlaceholder": "URLまたはパスを入力してください(例:/files/pathまたはhttps://example.com)。", + "linkIcon": "リンクアイコン", + "linksUpdatedSuccess": "サイドバーのリンクが正常に更新されました!", + "linksUpdateFailed": "サイドバーリンクの更新に失敗しました", + "sourceNotAccessible": "このソースにはもうアクセスできません", + "noLinksYet": "まだリンクは設定されていません。以下に最初のリンクを追加してください。", + "customizeShareLinks": "共有サイドバーリンクのカスタマイズ", + "customizeShareLinksDescription": "この共有のサイドバーに表示されるリンクをカスタマイズします。ドラッグ&ドロップで並び替えができます。", + "editLink": "リンクの編集", + "selectShare": "シェアを選択", + "chooseShare": "シェアを選ぶ", + "selectSharePath": "共有内のパス (オプション)", + "sharePathPlaceholder": "例:/subfolder、rootの場合は空のまま", + "browseIcons": "アイコンを見る", + "pickIcon": "アイコンを選ぶ", + "pickIconDescription": "マテリアル・アイコン・ライブラリからアイコンを検索して選択します。", + "shareLinksUpdatedSuccess": "サイドバーの共有リンクが正常に更新されました!", + "shareHome": "シェア・ホーム", + "linkIconPlaceholder": "オプションで素材アイコン名を指定" }, "success": { "linkCopied": "リンクがコピーされました!" @@ -481,7 +437,12 @@ "allowReplacements": "ファイルの置き換えを許可する", "allowReplacementsDescription": "同じ名前のファイルをアップロードすれば、誰でも既存のファイルを置き換えることができます。", "allowCreate": "ファイルやフォルダの作成とアップロードが可能", - "allowCreateDescription": "誰でもこの共有に新しいファイルやフォルダを作成し、アップロードすることができます。" + "allowCreateDescription": "誰でもこの共有に新しいファイルやフォルダを作成し、アップロードすることができます。", + "customizeSidebarLinks": "サイドバーリンクのカスタマイズ", + "customizeSidebarLinksButton": "リンクのカスタマイズ", + "shareInfo": "QRコードと情報を共有する", + "shareInfoDescription": "このリンクは、タイトル、説明、バナー、QRコードなどの共有情報をポップアップで表示します。", + "downloadDescription": "このリンクをクリックすると、共有コンテンツ全体を圧縮ファイルとしてダウンロードできます。" }, "api": { "title": "APIキー:", @@ -505,21 +466,28 @@ "expires": "有効期限", "actions": "操作", "enabled": "有効", - "disabled": "無効" + "disabled": "無効", + "apiKeyDeleted": "APIキーが削除されました!" }, "index": { - "status": "ステータス", "assessment": "評価", "lastScanned": "最終スキャン", "quickScan": "クイックスキャン(秒)", "fullScan": "フルスキャン(秒)", "settingsHover": "ユーザー設定", - "logout": "ログアウト", "toggleClick": "シングルクリックモードの切り替え", "toggleDark": "ダークモードの切り替え", "toggleSticky": "スティッキーモードの切り替え", - "used": "使用済み", - "noSources": "このユーザーが使用できるソースはありません。このユーザーのソースを追加するか、defaultEnabled: trueでソースを設定してください。" + "noSources": "このユーザーが使用できるソースはありません。このユーザーのソースを追加するか、defaultEnabled: trueでソースを設定してください。", + "unknown": "不明", + "simple": "シンプル", + "normal": "ノーマル", + "complex": "コンプレックス", + "highlyComplex": "非常に複雑", + "ready": "準備完了", + "indexing": "インデックス作成", + "unavailable": "使用不可", + "error": "エラー" }, "otp": { "name": "二要素認証", @@ -545,7 +513,96 @@ "exit": "終了", "permanent": "永続", "hash": "ハッシュ", - "of": "の" + "of": "の", + "source": "ソース{suffix}", + "percentage": "{percentage}%", + "type": "タイプ{suffix}", + "size": "サイズ{suffix}", + "body": "ボディ{suffix}", + "home": "ホーム{suffix}", + "clear": "クリア{suffix}", + "help": "ヘルプ{suffix}", + "login": "ログイン{suffix}", + "logout": "ログアウト{suffix}", + "preview": "プレビュー{suffix}", + "settings": "設定{suffix}", + "sources": "情報源{suffix}", + "links": "リンク{suffix}", + "tool": "工具{suffix}", + "used": "中古{suffix}", + "status": "ステータス{suffix}", + "analyze": "分析する{suffix}", + "results": "結果{suffix}", + "users": "ユーザー{suffix}", + "photos": "写真", + "audio": "オーディオ{suffix}", + "videos": "ビデオ{suffix}", + "documents": "資料{suffix}", + "archives": "アーカイブス{suffix}", + "images": "画像{suffix}", + "music": "音楽{suffix}", + "pdf": "PDF{suffix}", + "search": "検索{suffix}", + "number": "番号{suffix}", + "types": "種類{suffix}", + "video": "ビデオ{suffix}", + "admin": "管理者{suffix}", + "branding": "ブランディング{suffix}", + "language": "言語{suffix}", + "documentation": "ドキュメンテーション{suffix}", + "examples": "例{suffix}", + "dark": "暗い{suffix}", + "light": "ライト{suffix}", + "title": "テーマ{suffix}", + "expires": "期限切れ{suffix}", + "scope": "スコープ{suffix}", + "rules": "ルール{suffix}", + "downloads": "ダウンロード{suffix}", + "submit": "ログイン{suffix}", + "navigation": "ナビゲーション{suffix}", + "metadata": "メタデータ{suffix}", + "loading": "ローディング{suffix}", + "add": "追加{suffix}", + "cancel": "キャンセル{suffix}", + "verify": "ベリファイ{suffix}", + "close": "閉じる{suffix}", + "copy": "コピー{suffix}", + "create": "作成{suffix}", + "delete": "削除{suffix}", + "download": "ダウンロード{suffix}", + "file": "ファイル{suffix}", + "folder": "フォルダ{suffix}", + "info": "インフォメーション{suffix}", + "more": "もっと見る{suffix}", + "move": "移動{suffix}", + "new": "新しい{suffix}", + "next": "次のページ{suffix}", + "ok": "OK{suffix}", + "previous": "前へ{suffix}", + "publish": "出版{suffix}", + "rename": "名前変更{suffix}", + "replace": "交換{suffix}", + "save": "セーブ{suffix}", + "schedule": "スケジュール{suffix}", + "select": "選択{suffix}", + "share": "シェア{suffix}", + "update": "更新{suffix}", + "upload": "アップロード{suffix}", + "openFile": "ファイルを開く{suffix}", + "continue": "続ける{suffix}", + "edit": "編集{suffix}", + "pause": "ポーズ{suffix}", + "resume": "履歴書{suffix}", + "retry": "リトライ{suffix}", + "disable": "無効{suffix}", + "confirm": "確認{suffix}", + "stay": "滞在{suffix}", + "scopes": "スコープ{suffix}", + "commands": "コマンド{suffix}", + "uploading": "アップロード{suffix}", + "paused": "休止{suffix}", + "conflict": "紛争{suffix}", + "change": "変更{suffix}" }, "access": { "rules": "アクセスルール", @@ -560,13 +617,15 @@ "enterName": "ユーザー名またはグループ名を入力してください", "deleted": "アクセスルールが削除されました!", "added": "アクセスルールが追加されました!", - "name": "名前", "accessManagement": "アクセス管理", "totalDenied": "拒否済み", "totalAllowed": "許可済み", "all": "すべて拒否", "defaultBehaviorDescription": "これは、特定のアクセスルールが存在しないパスにユーザーがアクセスしようとした時の動作を示しています。「許可」はユーザーがデフォルトでアクセスできることを意味し、「拒否」は明示的に許可されない限り、ユーザーがデフォルトでブロックされることを意味します。", - "defaultBehavior": "デフォルト動作{suffix}" + "defaultBehavior": "デフォルト動作{suffix}", + "deletedCascade": "パスとすべてのサブパスからアクセスルールが削除されました!", + "cascadeDelete": "再帰的削除", + "cascadeDeleteDescription": "有効な場合、アクセスルールを削除すると、すべてのサブディレクトリからも削除される。これにより、ディレクトリツリー全体からユーザーまたはグループを 完全に削除することができる。" }, "fileLoading": { "title": "アップロードとダウンロード", @@ -644,16 +703,16 @@ "themeAndLanguage": "テーマと言語", "previewFolder": "利用可能であれば、フォルダのサムネイルを表示する", "previewFolderDescription": "サムネイルを持つ最初の子アイテムをカバーとするフォルダのサムネイルプレビューを表示します。", - "disableFileExtensions": "無効にするファイル拡張子を入力", - "defaultLandingPage": "デフォルトのランディングページ", - "defaultLandingPageDescription": "例えばfiles/mysource/mysubpath'または'/settings' - デフォルトのページは/filesで、最初のソース・リスティング・ビューに移動します。" + "disableFileExtensions": "無効にするファイル拡張子を入力" }, "editor": { "uninitialized": "エディタの初期化に失敗しました。再読み込みしてください。", "saveFailed": "ファイルの保存に失敗しました。もう一度お試しください。", "saveAborted": "保存が中止されました。ファイル名がアクティブなファイルと一致しません。", "saveAbortedMessage": "保存操作が中断されました。アプリケーションのアクティブファイル({activeFile})と保存しようとしているファイル({tryingToSave})が一致しません。", - "syncFailed": "\"{filename}\"のルートとステートの同期に失敗しました。データの破損を防ぐためにエディタのセットアップを中止しています。" + "syncFailed": "\"{filename}\"のルートとステートの同期に失敗しました。データの破損を防ぐためにエディタのセットアップを中止しています。", + "fileSaved": "ファイルが保存された!", + "errorSavingFile": "ファイルの保存でエラーが発生しました:{error}" }, "player": { "LoopEnabled": "ループ有効", @@ -666,5 +725,93 @@ "changePlaybackMode": "再生モードを変更", "changePlaybackModeHint": "再生モードを変更してより多くのファイルを表示", "emptyQueue": "キューは空です" + }, + "fileSizeAnalyzer": { + "title": "ファイル・サイズ・アナライザー", + "searchLocation": "検索場所", + "selectPath": "検索場所を選択", + "largerThan": "より大きい (MB)", + "includeFolders": "フォルダを含む", + "includeFoldersDescription": "分析にディレクトリを含める", + "totalFiles": "ファイル数{suffix}", + "totalSize": "合計サイズ{suffix}", + "emptyState": "検索条件を入力し、「分析」をクリックするとファイルサイズが可視化されます。", + "completeResults": "完全な結果を示す!", + "incompleteResults": "結果は不完全かもしれない", + "incompleteResultsDetails": "最大結果(100)を表示しています。検索結果を100件以下に絞り込んでください。", + "relativePercentage": "相対パーセンテージ{suffix}", + "percentageOfResults": "{percentage}結果の割合" + }, + "fileTypes": { + "video": "ビデオ", + "image": "画像", + "audio": "オーディオ", + "archive": "アーカイブ", + "document": "ドキュメント", + "binary": "バイナリ", + "directory": "ディレクトリ", + "other": "その他" + }, + "tools": { + "description": "ファイルのユーティリティと分析ツール", + "sizeAnalyzer": { + "name": "ファイル・サイズ・アナライザー", + "description": "大規模なファイルやディレクトリをインタラクティブなツリーマップで視覚化" + }, + "title": "ツール", + "duplicateFinder": { + "name": "重複ファイルファインダー", + "description": "重複ファイルを検索・管理し、ストレージスペースを取り戻す" + }, + "materialIconPicker": { + "name": "素材アイコンピッカー", + "description": "ライブプレビューでマテリアルアイコンを閲覧・検索", + "searchPlaceholder": "検索アイコン...", + "popularIcons": "{count} 人気のアイコンを表示", + "showingResults": "{count} の結果を表示", + "noResults": "アイコンが見つかりません", + "tryDifferentSearch": "別の検索語を試す", + "copiedToClipboard": "{name}' をクリップボードにコピー!", + "copyFailed": "クリップボードへのコピーに失敗しました", + "custom": "カスタム", + "useCustomIcon": "カスタムアイコンを使用する:{name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "アイコンライブラリをすべて見る" + }, + "toolNotFound": "ツールが見つかりません", + "backToTools": "ツールに戻る" + }, + "messages": { + "pathNotFound": "パスがファイルシステムに存在しない", + "pathNotFoundMessage": "このパスはファイルシステム上に存在しません。移動または削除された可能性があります。", + "reassignPath": "パスの再割り当て", + "pathReassigned": "パスは正常に更新されました!", + "pathReassignFailed": "パスの更新に失敗しました。再試行してください。" + }, + "duplicateFinder": { + "title": "重複ファイルファインダー", + "minSize": "最小サイズ (MB){suffix}", + "minSizeHint": "このサイズ(メガバイト単位)以上のファイルのみを分析する。", + "useChecksums": "ファイルの内容を比較する", + "useChecksumsDescription": "ファイルの内容も比較に含める。これをしないと、ファイルはサイズとファイル名の類似性でマッチングされる。", + "findDuplicates": "重複検索", + "groupsFound": "重複グループが見つかりました{suffix}", + "totalWastedSpace": "無駄なスペース{suffix}", + "wasted": "無駄{suffix}", + "emptyState": "検索条件を入力し、「重複ファイルの検索」をクリックすると、重複ファイルが特定されます。" + }, + "notifications": { + "title": "お知らせ", + "description": "現在のセッションのすべての通知を表示する", + "empty": "まだ通知なし", + "clearAll": "すべてクリア", + "clearConfirm": "通知履歴をすべて消去してもよろしいですか?", + "total": "{count} 通知" + }, + "events": { + "serverShutdown": "サーバーはシャットダウンされた。", + "authenticationFailed": "認証に失敗しました。ページを更新して再度ログインしてください。", + "reconnected": "サーバーに再接続しました。", + "connectionLost": "サーバーへの接続が失われました。再接続を試みます..." } } diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.json index 23aa94b330..76887446aa 100644 --- a/frontend/src/i18n/ko.json +++ b/frontend/src/i18n/ko.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "취소", - "close": "닫기", - "copy": "복사", "copyFile": "파일 복사", "copyToClipboard": "클립보드 복사", - "create": "생성", - "delete": "삭제", - "download": "다운로드", - "info": "정보", - "more": "더보기", - "move": "이동", "moveFile": "파일 이동", - "new": "신규", - "next": "다음", - "ok": "확인", "permalink": "링크 얻기", - "previous": "이전", - "publish": "게시", - "rename": "이름 바꾸기", - "replace": "대체", "reportIssue": "이슈 보내기", - "save": "저장", - "schedule": "일정", - "search": "검색", - "select": "선택", "selectMultiple": "다중 선택", - "share": "공유", "shell": "쉘 전환", "switchView": "보기 전환", "toggleSidebar": "사이드바 전환", - "update": "업데이트", - "upload": "업로드", "copyDownloadLinkToClipboard": "다운로드 링크를 클립보드에 복사", - "file": "파일", - "folder": "폴더", - "submit": "제출하기", - "openFile": "파일 열기", - "continue": "계속하기", - "edit": "편집", "generateNewOtp": "새로운 2단계 인증 코드 재설정 및 생성", - "verify": "확인", - "pause": "일시 중지", - "resume": "이력서", - "retry": "다시 시도", "pauseAll": "모두 일시 중지", "resumeAll": "모두 다시 시작", "clearCompleted": "완료 지우기", @@ -62,10 +29,8 @@ "discardAndExit": "삭제 및 종료", "saveAndExit": "저장 및 종료", "keepEditing": "계속 편집", - "stayOnPrompt": "Stay", "closeAnyway": "어쨌든 닫기", - "disable": "비활성화", - "confirm": "확인" + "goToItem": "항목으로 이동" }, "download": { "downloadFile": "파일 다운로드", @@ -77,31 +42,31 @@ "internal": "오류가 발생하였습니다.", "notFound": "해당 경로를 찾을 수 없습니다.", "connection": "서버에 연결할 수 없습니다.", - "shareNotFound": "유효하지 않거나 만료된 공유입니다." + "shareNotFound": "유효하지 않거나 만료된 공유입니다.", + "failedToConnectToServer": "서버에 연결하지 못했는데 서버가 아직 실행 중인가요?" }, "files": { - "body": "본문", - "clear": "지우기", "closePreview": "미리보기 닫기", - "home": "홈", "lastModified": "최종 수정", - "loading": "로딩중...", "lonely": "폴더가 비어 있습니다...", - "metadata": "메타데이터", "multipleSelectionEnabled": "다중 선택 켜짐", - "name": "이름", - "size": "크기", "sortByLastModified": "수정시간순 정렬", "sortByName": "이름순", "sortBySize": "크기순", "noPreview": "이 파일에는 미리 보기를 사용할 수 없습니다.", - "noDownloadAccess": "다운로드할 수 없습니다." + "noDownloadAccess": "다운로드할 수 없습니다.", + "itemSelected": "항목 선택됨", + "itemsSelected": "항목 선택됨", + "myFiles": "내 파일{suffix}", + "newFile": "새 파일{suffix}", + "newFolder": "새 폴더{suffix}", + "duration": "기간{suffix}", + "sortByDuration": "기간별로 정렬" }, "help": { "functionKeys": "기능 키", "mouseActions": "마우스 작업", "fileOperations": "파일 작업", - "navigation": "탐색", "click": "파일이나 디렉토리를 선택해주세요.", "ctrl": { "click": "여러 개의 파일이나 디렉토리를 선택해주세요.", @@ -115,11 +80,11 @@ "del": "선택된 파일 삭제", "esc": "선택 취소/프롬프트 닫기", "f2": "파일 이름 변경", - "help": "도움말", "f1": "도움말 프롬프트 표시", "description": "아래에서 기본 탐색 옵션을 확인할 수 있습니다. 자세한 내용은 다음을 참조하세요.", "slash": "검색 활성화", - "wiki": "FileBrowser 퀀텀 공식 문서" + "wiki": "FileBrowser 퀀텀 공식 문서", + "marqueeSelect": "빈 공간에 드래그하여 여러 파일 또는 디렉토리를 선택합니다." }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "이미 계정이 있습니다", "passwordConfirm": "비밀번호 확인", "passwordsDontMatch": "비밀번호가 일치하지 않습니다", - "submit": "로그인", "usernameTaken": "사용자 이름이 존재합니다", "wrongCredentials": "사용자 이름 또는 비밀번호를 확인하십시오", "or": "또는", @@ -208,7 +172,6 @@ "viewMode": "보기 모드", "renameMessage": "새 이름을 입력합니다:", "renameMessageInvalid": "파일은 \"/\" 또는 \"\\\"를 포함할 수 없습니다.", - "source": "출처{suffix}", "deleteMessageMultiple": "{count} 파일을 정말 삭제하시겠습니까?", "deleteMessageShare": "이 공유를 삭제하시겠습니까? {path} ?", "numberDirs": "디렉터리 수{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "파일브라우저 퀀텀에 오신 것을 환영합니다!", "halloweenTitle": "해피 할로윈!", "halloweenBody": "할로윈 테마가 적용되었습니다. 마음에 들지 않으면 비활성화하거나 프로필 설정에서 다른 테마를 선택하여 영구적으로 비활성화할 수 있습니다.", - "firstLoadBody": "시작 시 새 데이터베이스가 생성되었습니다. 예상한 것과 다른 경우 구성 파일에서 `server.database` 경로가 존재하는지 다시 확인하세요. 도커에서 데이터베이스 경로는 './데이터/데이터베이스.db' 또는 './데이터베이스.db'일 수 있습니다." + "firstLoadBody": "시작 시 새 데이터베이스가 생성되었습니다. 예상한 것과 다른 경우 구성 파일에서 `server.database` 경로가 존재하는지 다시 확인하세요. 도커에서 데이터베이스 경로는 './데이터/데이터베이스.db' 또는 './데이터베이스.db'일 수 있습니다.", + "selectPath": "경로 선택", + "renameSuccess": "아이템 이름 변경에 성공했습니다!", + "newFileSuccess": "파일이 성공적으로 생성되었습니다!", + "newDirSuccess": "디렉토리가 성공적으로 생성되었습니다!", + "copyToClipboardFailed": "클립보드에 복사할 수 없습니다." }, "search": { - "images": "이미지", - "music": "음악", - "pdf": "PDF", - "search": "검색...", - "types": "Types", - "video": "비디오", - "path": "경로:", "smallerThan": "보다 작습니다:", "largerThan": "보다 큽니다:", "helpText1": "검색은 입력하는 각 문자(검색어의 경우 최소 3자)에 대해 이루어집니다.", @@ -267,18 +228,11 @@ "onlyFolders": "폴더만", "onlyFiles": "파일만", "showOptions": "옵션 표시", - "photos": "사진", - "audio": "오디오", - "videos": "동영상", - "documents": "문서", - "archives": "아카이브", - "number": "번호", "searchContext": "컨텍스트 검색: {context}", "notEnoughCharacters": "검색할 문자가 부족합니다(최소 {minSearchLength})", "typeToSearch": "검색을 시작하려면 {minSearchLength} 을 입력하세요." }, "settings": { - "admin": "관리자", "administrator": "관리자", "allowCommands": "명령 실행", "allowEdit": "파일/디렉토리의 수정/변경/삭제 허용", @@ -286,7 +240,6 @@ "allowPublish": "새 포스트/페이지 생성 허용", "allowSignup": "사용자 가입 허용", "avoidChanges": "(수정하지 않으면 비워두세요)", - "branding": "브랜딩", "brandingDirectoryPath": "브랜드 디렉토리 경로", "changePassword": "비밀번호 변경", "commandRunner": "명령 실행기", @@ -296,8 +249,6 @@ "defaultUserDescription": "아래 사항은 신규 사용자들에 대한 기본 설정입니다.", "disableExternalLinks": "외부 링크 감추기", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "문서", - "examples": "예", "executeOnShell": "쉘에서 실행", "executeOnShellDescription": "기본적으로 File Browser 는 바이너리를 명령어로 호출하여 실행합니다. 쉘을 통해 실행하기를 원한다면, Bash 또는 PowerShell 에 필요한 인수와 플래그를 설정하세요. 사용자 명령어와 이벤트 훅에 모두 적용됩니다.", "globalRules": "규칙에 대한 전역설정으로 모든 사용자에게 적용됩니다. 지정된 규칙은 사용자 설정을 덮어쓰기 합니다.", @@ -305,14 +256,11 @@ "insertPath": "경로 입력", "insertRegex": "정규식 입력", "instanceName": "인스턴스 이름", - "language": "언어", "lockPassword": "사용자에 의한 비밀번호 변경을 허용하지 않음", "newPassword": "새로운 비밀번호", "newPasswordConfirm": "새로운 비밀번호 확인", "newUser": "새로운 사용자", - "password": "비밀번호", "passwordUpdated": "비밀번호 수정 완료!", - "path": "경로", "permissions": { "modify": "파일 편집", "share": "파일 공유하기", @@ -328,27 +276,16 @@ "profileSettings": "프로필 설정", "ruleExample1": "점(.)으로 시작하는 모든 파일의 접근을 방지합니다.(예 .git, .gitignore)\n", "ruleExample2": "Caddyfile파일의 접근을 방지합니다.", - "rules": "룰", "rulesHelp": "사용자별로 규칙을 허용/방지를 지정할 수 있습니다. 방지된 파일은 보이지 않고 사용자들은 접근할 수 없습니다. 사용자의 접근 허용 범위와 관련해 정규표현식(regex)과 경로를 지원합니다.\n", - "scope": "범위", "settingsUpdated": "설정 수정됨!", "shareManagement": "공유 관리", "singleClick": "클릭 한 번으로 파일과 디렉터리 열기", - "themes": { - "dark": "Dark", - "light": "빛", - "title": "테마" - }, - "user": "사용자", - "userCommands": "명령어", "userCommandsHelp": "사용에게 허용할 명령어를 공백으로 구분하여 입력하세요. 예:\n", "userCreated": "사용자 생성됨!", "userDefaults": "사용자 기본 설정", "userDeleted": "사용자 삭제됨!", "userManagement": "사용자 관리", "userUpdated": "사용자 수정됨!", - "username": "사용자 이름", - "users": "사용자", "modifyOtherUser": "사용자를 수정합니다:", "modifyCurrentUser": "현재 사용자 수정", "themeColor": "테마 색상", @@ -373,9 +310,7 @@ "loginMethod": "로그인 방법", "shareSettings": "공유 설정", "adminOptions": "관리자 사용자 옵션", - "shareDuration": "만료", "searchOptions": "검색 옵션", - "downloads": "다운로드", "systemAdmin": "시스템 및 관리자", "configViewer": "구성 뷰어", "configViewerShowFull": "전체 구성 표시", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "프록시" }, - "newUserHintSubFolder": "예: '/subfolder' - 기본값은 비어 있습니다.", - "userScopes": "범위" + "newUserHintSubFolder": "예: '/subfolder' - 기본값은 비어 있습니다." }, "sidebar": { - "help": "도움말", - "hugoNew": "Hugo New", - "login": "로그인", - "logout": "로그아웃", - "myFiles": "내 파일", - "newFile": "새로운 파일", - "newFolder": "새로운 폴더", - "preview": "미리보기", - "settings": "설정", - "signup": "가입하기", "siteSettings": "사이트 설정", - "sources": "출처", "updateIsAvailable": "업데이트를 사용할 수 있습니다!", - "fileActions": "파일 작업" + "fileActions": "파일 작업", + "customizeLinks": "사이드바 링크 사용자 지정", + "customizeLinksDescription": "사이드바에 표시되는 링크를 사용자 지정합니다. 드래그 앤 드롭하여 순서를 변경합니다.", + "currentLinks": "현재 링크", + "addNewLink": "새 링크 추가", + "linkType": "링크 유형", + "selectLinkType": "링크 유형 선택", + "customLink": "사용자 지정 링크", + "selectSource": "소스 선택", + "chooseSource": "소스 선택", + "selectTool": "도구 선택", + "chooseTool": "도구 선택", + "linkName": "링크 이름", + "linkNamePlaceholder": "링크 이름 입력", + "linkUrl": "링크 URL", + "linkUrlPlaceholder": "URL 또는 경로 입력(예: /files/path 또는 https://example.com)", + "linkIcon": "링크 아이콘", + "linksUpdatedSuccess": "사이드바 링크가 성공적으로 업데이트되었습니다!", + "linksUpdateFailed": "사이드바 링크를 업데이트하지 못했습니다.", + "sourceNotAccessible": "이 소스에 더 이상 액세스할 수 없습니다.", + "noLinksYet": "아직 구성된 링크가 없습니다. 아래에 첫 번째 링크를 추가하세요.", + "customizeShareLinks": "공유 사이드바 링크 사용자 지정", + "customizeShareLinksDescription": "이 공유의 사이드바에 표시되는 링크를 사용자 지정합니다. 드래그 앤 드롭하여 순서를 변경합니다.", + "editLink": "링크 편집", + "selectShare": "공유를 선택합니다.", + "chooseShare": "공유 선택", + "selectSharePath": "공유 내 경로(선택 사항)", + "sharePathPlaceholder": "예: /subfolder 또는 루트의 경우 비워 둡니다.", + "browseIcons": "찾아보기 아이콘", + "pickIcon": "아이콘 선택", + "pickIconDescription": "머티리얼 아이콘 라이브러리에서 아이콘을 검색하고 선택합니다.", + "shareLinksUpdatedSuccess": "공유 사이드바 링크가 성공적으로 업데이트되었습니다!", + "shareHome": "홈 공유", + "linkIconPlaceholder": "선택적으로 머티리얼 아이콘 이름을 지정합니다." }, "success": { "linkCopied": "링크가 복사되었습니다!" @@ -481,7 +437,12 @@ "allowReplacements": "파일 교체 허용", "allowReplacementsDescription": "같은 이름의 파일을 업로드할 때 누구나 기존 파일을 대체할 수 있습니다.", "allowCreate": "파일 및 폴더 생성 및 업로드 허용", - "allowCreateDescription": "누구나 이 공유 폴더에 새 파일과 폴더를 만들고 업로드할 수 있습니다." + "allowCreateDescription": "누구나 이 공유 폴더에 새 파일과 폴더를 만들고 업로드할 수 있습니다.", + "customizeSidebarLinks": "사이드바 링크 사용자 지정", + "customizeSidebarLinksButton": "링크 사용자 지정", + "shareInfo": "QR코드 및 정보 공유", + "shareInfoDescription": "이 링크는 제목, 설명, 배너 및 QR 코드를 포함한 공유의 정보를 팝업으로 표시합니다.", + "downloadDescription": "이 링크를 통해 전체 공유 콘텐츠를 압축 파일로 다운로드할 수 있습니다." }, "api": { "title": "API 키:", @@ -505,21 +466,28 @@ "expires": "만료", "actions": "작업", "enabled": "활성화됨", - "disabled": "장애인" + "disabled": "장애인", + "apiKeyDeleted": "API 키가 삭제되었습니다!" }, "index": { - "status": "상태", "assessment": "평가", "lastScanned": "마지막 스캔", "quickScan": "빠른 스캔 초", "fullScan": "전체 스캔 시간(초)", "settingsHover": "사용자 설정", - "logout": "로그아웃", "toggleClick": "클릭 한 번으로 토글", "toggleDark": "다크 모드 전환", "toggleSticky": "고정 모드 토글", - "used": "사용됨", - "noSources": "이 사용자에 대해 사용할 수 있는 소스가 없습니다. 이 사용자에 대한 소스를 추가하거나 defaultEnabled: true로 소스를 구성하세요." + "noSources": "이 사용자에 대해 사용할 수 있는 소스가 없습니다. 이 사용자에 대한 소스를 추가하거나 defaultEnabled: true로 소스를 구성하세요.", + "unknown": "알 수 없음", + "simple": "Simple", + "normal": "보통", + "complex": "복잡한", + "highlyComplex": "매우 복잡한", + "ready": "준비", + "indexing": "인덱싱", + "unavailable": "사용 불가", + "error": "오류" }, "otp": { "name": "2단계 인증", @@ -545,7 +513,96 @@ "exit": "종료", "permanent": "영구", "hash": "해시", - "of": "의" + "of": "의", + "source": "출처{suffix}", + "percentage": "{percentage}%", + "type": "유형{suffix}", + "size": "크기{suffix}", + "body": "본문{suffix}", + "home": "홈{suffix}", + "clear": "지우기{suffix}", + "help": "도움말{suffix}", + "login": "로그인{suffix}", + "logout": "로그아웃{suffix}", + "preview": "미리 보기{suffix}", + "settings": "설정{suffix}", + "sources": "출처{suffix}", + "links": "링크{suffix}", + "tool": "도구{suffix}", + "used": "사용됨{suffix}", + "status": "상태{suffix}", + "analyze": "분석{suffix}", + "results": "결과{suffix}", + "users": "사용자{suffix}", + "photos": "사진", + "audio": "오디오{suffix}", + "videos": "동영상{suffix}", + "documents": "문서{suffix}", + "archives": "아카이브{suffix}", + "images": "이미지{suffix}", + "music": "음악{suffix}", + "pdf": "PDF{suffix}", + "search": "검색{suffix}", + "number": "번호{suffix}", + "types": "유형{suffix}", + "video": "비디오{suffix}", + "admin": "관리자{suffix}", + "branding": "브랜딩{suffix}", + "language": "언어{suffix}", + "documentation": "문서{suffix}", + "examples": "예제{suffix}", + "dark": "Dark{suffix}", + "light": "빛{suffix}", + "title": "테마{suffix}", + "expires": "만료{suffix}", + "scope": "범위{suffix}", + "rules": "규칙{suffix}", + "downloads": "다운로드{suffix}", + "submit": "로그인{suffix}", + "navigation": "탐색{suffix}", + "metadata": "메타데이터{suffix}", + "loading": "로드 중{suffix}", + "add": "추가{suffix}", + "cancel": "취소{suffix}", + "verify": "확인{suffix}", + "close": "닫기{suffix}", + "copy": "복사{suffix}", + "create": "만들기{suffix}", + "delete": "삭제{suffix}", + "download": "다운로드{suffix}", + "file": "파일{suffix}", + "folder": "폴더{suffix}", + "info": "정보{suffix}", + "more": "자세히 보기{suffix}", + "move": "이동{suffix}", + "new": "신규{suffix}", + "next": "다음{suffix}", + "ok": "확인{suffix}", + "previous": "이전 게시물{suffix}", + "publish": "게시{suffix}", + "rename": "이름 바꾸기{suffix}", + "replace": "교체{suffix}", + "save": "저장{suffix}", + "schedule": "일정{suffix}", + "select": "선택{suffix}", + "share": "공유{suffix}", + "update": "업데이트{suffix}", + "upload": "업로드{suffix}", + "openFile": "파일 열기{suffix}", + "continue": "계속하기{suffix}", + "edit": "편집{suffix}", + "pause": "일시 중지{suffix}", + "resume": "이력서{suffix}", + "retry": "다시 시도{suffix}", + "disable": "비활성화{suffix}", + "confirm": "확인{suffix}", + "stay": "Stay{suffix}", + "scopes": "범위{suffix}", + "commands": "명령{suffix}", + "uploading": "업로드{suffix}", + "paused": "일시 중지됨{suffix}", + "conflict": "충돌{suffix}", + "change": "변경{suffix}" }, "access": { "rules": "액세스 규칙", @@ -560,13 +617,15 @@ "enterName": "사용자 또는 그룹 이름 입력", "deleted": "액세스 규칙이 삭제되었습니다!", "added": "액세스 규칙이 추가되었습니다!", - "name": "이름", "accessManagement": "액세스 관리", "totalDenied": "거부됨", "totalAllowed": "허용됨", "all": "모두 거부", "defaultBehaviorDescription": "사용자가 특정 액세스 규칙이 없는 경로에 액세스하려고 할 때 어떤 일이 발생하는지 보여줍니다. '허용'은 사용자가 기본적으로 액세스할 수 있음을 의미하며, '거부'는 명시적으로 허용되지 않는 한 기본적으로 차단됨을 의미합니다.", - "defaultBehavior": "기본 작업{suffix}" + "defaultBehavior": "기본 작업{suffix}", + "deletedCascade": "경로 및 모든 하위 경로에서 액세스 규칙이 삭제되었습니다!", + "cascadeDelete": "재귀적 삭제", + "cascadeDeleteDescription": "이 기능을 활성화하면 액세스 규칙을 삭제하면 모든 하위 디렉터리에서도 해당 규칙이 제거됩니다. 이렇게 하면 전체 디렉터리 트리에서 사용자 또는 그룹을 완전히 제거할 수 있습니다." }, "fileLoading": { "title": "업로드 및 다운로드", @@ -644,16 +703,16 @@ "themeAndLanguage": "테마 및 언어", "previewFolder": "가능한 경우 폴더의 썸네일 표시", "previewFolderDescription": "썸네일을 표지로 사용하는 첫 번째 하위 항목이 있는 폴더의 썸네일 미리 보기를 표시합니다.", - "disableFileExtensions": "비활성화할 파일 확장명을 입력합니다.", - "defaultLandingPage": "기본 랜딩 페이지", - "defaultLandingPageDescription": "예. '/파일/마이소스/마이서브경로' 또는 '/설정' - 기본 페이지는 첫 번째 소스 목록 보기로 이동하는 /파일입니다." + "disableFileExtensions": "비활성화할 파일 확장명을 입력합니다." }, "editor": { "uninitialized": "편집기를 초기화하지 못했습니다. 다시 로드하세요.", "saveFailed": "파일을 저장하지 못했습니다. 다시 시도하세요.", "saveAborted": "저장이 중단되었습니다. 파일 이름이 활성 파일과 일치하지 않습니다.", "saveAbortedMessage": "저장 작업이 중단되었습니다. 애플리케이션의 활성 파일({activeFile})이 저장하려는 파일({tryingToSave})과 일치하지 않습니다.", - "syncFailed": "5번 시도 후 \"{filename}\"의 경로와 상태를 동기화하지 못했습니다. 데이터 손상을 방지하기 위해 편집기 설정을 중단합니다." + "syncFailed": "5번 시도 후 \"{filename}\"의 경로와 상태를 동기화하지 못했습니다. 데이터 손상을 방지하기 위해 편집기 설정을 중단합니다.", + "fileSaved": "파일이 저장되었습니다!", + "errorSavingFile": "파일 저장 중 오류가 발생했습니다: {error}" }, "player": { "LoopEnabled": "반복 활성화", @@ -666,5 +725,93 @@ "changePlaybackMode": "재생 모드 변경", "changePlaybackModeHint": "더 많은 파일을 보려면 재생 모드를 변경하세요", "emptyQueue": "대기열이 비어 있습니다" + }, + "fileSizeAnalyzer": { + "title": "파일 크기 분석기", + "searchLocation": "위치 검색", + "selectPath": "검색 위치 선택", + "largerThan": "보다 큰 (MB)", + "includeFolders": "폴더 포함", + "includeFoldersDescription": "분석에 디렉터리 포함", + "totalFiles": "총 파일 수{suffix}", + "totalSize": "총 크기{suffix}", + "emptyState": "검색 기준을 입력하고 분석을 클릭하여 파일 크기를 시각화합니다.", + "completeResults": "전체 결과가 표시됩니다!", + "incompleteResults": "결과가 불완전할 수 있습니다.", + "incompleteResultsDetails": "최대 결과 표시(100개). 검색 범위를 좁히면 100개 미만의 결과를 더 많이 볼 수 있습니다.", + "relativePercentage": "상대 백분율{suffix}", + "percentageOfResults": "{percentage}결과의 %" + }, + "fileTypes": { + "video": "비디오", + "image": "이미지", + "audio": "오디오", + "archive": "아카이브", + "document": "문서", + "binary": "바이너리", + "directory": "디렉토리", + "other": "기타" + }, + "tools": { + "description": "파일을 위한 유틸리티 및 분석 도구", + "sizeAnalyzer": { + "name": "파일 크기 분석기", + "description": "대화형 트리맵으로 대용량 파일과 디렉터리 시각화하기" + }, + "title": "도구", + "duplicateFinder": { + "name": "중복 파일 찾기", + "description": "중복 파일을 찾아 관리하여 저장 공간을 확보하세요." + }, + "materialIconPicker": { + "name": "머티리얼 아이콘 선택기", + "description": "실시간 미리보기로 머티리얼 아이콘 찾아보기 및 검색하기", + "searchPlaceholder": "검색 아이콘...", + "popularIcons": "{count} 인기 아이콘 표시", + "showingResults": "{count} 결과 표시", + "noResults": "아이콘을 찾을 수 없습니다.", + "tryDifferentSearch": "다른 검색어를 사용해 보세요.", + "copiedToClipboard": "'{name}' 클립보드에 복사했습니다!", + "copyFailed": "클립보드에 복사하지 못했습니다.", + "custom": "사용자 지정", + "useCustomIcon": "사용자 지정 아이콘을 사용합니다: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "전체 아이콘 라이브러리 찾아보기" + }, + "toolNotFound": "도구를 찾을 수 없습니다.", + "backToTools": "도구로 돌아가기" + }, + "messages": { + "pathNotFound": "파일 시스템에 경로가 없습니다.", + "pathNotFoundMessage": "이 경로가 더 이상 파일 시스템에 존재하지 않습니다. 이동되었거나 삭제되었을 수 있습니다.", + "reassignPath": "경로 재할당", + "pathReassigned": "경로가 성공적으로 업데이트되었습니다!", + "pathReassignFailed": "경로를 업데이트하지 못했습니다. 다시 시도하세요." + }, + "duplicateFinder": { + "title": "중복 파일 찾기", + "minSize": "최소 크기(MB){suffix}", + "minSizeHint": "이 크기(메가바이트)보다 큰 파일만 분석합니다.", + "useChecksums": "파일 내용 비교", + "useChecksumsDescription": "또한 파일 내용도 비교에 포함하세요. 이 기능이 없으면 파일은 크기와 파일 이름 유사성을 기준으로 비교됩니다.", + "findDuplicates": "중복 찾기", + "groupsFound": "중복 그룹 발견{suffix}", + "totalWastedSpace": "낭비되는 총 공간{suffix}", + "wasted": "낭비{suffix}", + "emptyState": "검색 기준을 입력하고 중복 파일 찾기를 클릭하여 중복 파일을 식별합니다." + }, + "notifications": { + "title": "알림", + "description": "현재 세션의 모든 알림 보기", + "empty": "아직 알림이 없습니다.", + "clearAll": "모두 지우기", + "clearConfirm": "모든 알림 기록을 지우시겠습니까?", + "total": "{count} 알림" + }, + "events": { + "serverShutdown": "서버가 종료되었습니다.", + "authenticationFailed": "인증에 실패했습니다. 페이지를 새로고침하여 다시 로그인하세요.", + "reconnected": "서버에 다시 연결되었습니다.", + "connectionLost": "서버에 대한 연결이 끊어졌습니다. 다시 연결하려고 합니다..." } } diff --git a/frontend/src/i18n/nl-be.json b/frontend/src/i18n/nl-be.json index 038861ea4e..2ab06966b9 100644 --- a/frontend/src/i18n/nl-be.json +++ b/frontend/src/i18n/nl-be.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Annuleren", - "close": "Sluiten", - "copy": "Kopiëren", "copyFile": "Bestand kopiëren", "copyToClipboard": "Kopiëren naar klembord", - "create": "Aanmaken", - "delete": "Verwijderen", - "download": "Downloaden", - "info": "Info", - "more": "Meer", - "move": "Verplaatsen", "moveFile": "Verplaats bestand", - "new": "Nieuw", - "next": "Volgende", - "ok": "OK", "permalink": "Maak permanente link", - "previous": "Vorige", - "publish": "Publiceren", - "rename": "Hernoemen", - "replace": "Vervangen", "reportIssue": "Fout rapporteren", - "save": "Opslaan", - "schedule": "Plannen", - "search": "Zoeken", - "select": "Selecteren", "selectMultiple": "Meerdere selecteren", - "share": "Delen", "shell": "Open shell", "switchView": "Beeld wisselen", "toggleSidebar": "Zijbalk tonen", - "update": "Updaten", - "upload": "Uploaden", "generateNewOtp": "Reset en genereer nieuwe twee-factorcode", - "verify": "Controleer", "copyDownloadLinkToClipboard": "Downloadlink naar klembord kopiëren", - "file": "Bestand", - "folder": "Map", - "submit": "Stuur in", - "openFile": "Bestand openen", - "continue": "Ga verder", - "edit": "Bewerk", - "pause": "Pauze", - "resume": "CV", - "retry": "Opnieuw proberen", "pauseAll": "Alles onderbreken", "resumeAll": "Alles hervatten", "clearCompleted": "Gereed", @@ -62,10 +29,8 @@ "discardAndExit": "Weggooien en afsluiten", "saveAndExit": "Opslaan en afsluiten", "keepEditing": "Blijven bewerken", - "stayOnPrompt": "Blijf", "closeAnyway": "Sluiten", - "disable": "uitschakelen", - "confirm": "Bevestig" + "goToItem": "Ga naar item" }, "download": { "downloadFile": "Bestand downloaden", @@ -77,31 +42,31 @@ "internal": "Er ging iets mis.", "notFound": "Deze locatie kan niet worden bereikt.", "connection": "De server kan niet worden bereikt.", - "shareNotFound": "Ongeldig of verlopen aandeel." + "shareNotFound": "Ongeldig of verlopen aandeel.", + "failedToConnectToServer": "Kan geen verbinding maken met de server, draait deze nog?" }, "files": { - "body": "Body", - "clear": "Wissen", "closePreview": "Voorvertoon sluiten", - "home": "Home", "lastModified": "Laatst bewerkt", - "loading": "Laden...", "lonely": "Het is hier wat leeg...", - "metadata": "Metadata", "multipleSelectionEnabled": "Meerdere items selecteren ingeschakeld", - "name": "Naam", - "size": "Grootte", "sortByLastModified": "Sorteren op laatst bewerkt", "sortByName": "Sorteren op naam", "sortBySize": "Sorteren op grootte", "noPreview": "Preview is niet beschikbaar voor dit bestand.", - "noDownloadAccess": "Download is niet beschikbaar." + "noDownloadAccess": "Download is niet beschikbaar.", + "itemSelected": "item geselecteerd", + "itemsSelected": "items geselecteerd", + "myFiles": "Mijn bestanden{suffix}", + "newFile": "Nieuw bestand{suffix}", + "newFolder": "Nieuwe map{suffix}", + "duration": "Duur{suffix}", + "sortByDuration": "Sorteren op duur" }, "help": { "functionKeys": "Functietoetsen", "mouseActions": "Muisacties", "fileOperations": "Bestandsbewerkingen", - "navigation": "Navigatie", "click": "selecteer bestand of map", "ctrl": { "click": "selecteer meerdere bestanden of mappen", @@ -115,11 +80,11 @@ "del": "verwijder geselecteerde items", "esc": "Wis selectie en/of sluit de prompt", "f2": "bestand herbenoemen", - "help": "Help", "f1": "help prompt tonen", "description": "Je kunt de basisnavigatieopties hieronder bekijken. Ga voor aanvullende informatie naar", "slash": "Zoeken activeren", - "wiki": "FileBrowser Quantum Officiële documenten" + "wiki": "FileBrowser Quantum Officiële documenten", + "marqueeSelect": "meerdere bestanden of mappen selecteren door ze over lege ruimte te slepen" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Heeft al een account", "passwordConfirm": "Wachtwoordbevestiging ", "passwordsDontMatch": "Wachtwoorden komen niet overeen", - "submit": "Log in", "usernameTaken": "Gebruikersnaam reeds in gebruik", "wrongCredentials": "Verkeerde inloggegevens", "or": "OF", @@ -208,7 +172,6 @@ "viewMode": "Weergavemodus", "renameMessage": "Voer een nieuwe naam in:", "renameMessageInvalid": "Een bestand kan geen \"/\" of \"\\\" bevatten.", - "source": "Bron{suffix}", "deleteMessageMultiple": "Weet je zeker dat je {count} bestand(en) wilt verwijderen?", "deleteMessageShare": "Weet je zeker dat je deze share wilt verwijderen: {path} ?", "numberDirs": "Aantal mappen{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Welkom bij FileBrowser Quantum!", "halloweenTitle": "Gelukkig Halloween!", "halloweenBody": "Het Halloween-thema is toegepast. Je kunt het uitschakelen als je het niet leuk vindt, of permanent uitschakelen in de profielinstellingen door een ander thema te selecteren.", - "firstLoadBody": "Er is een nieuwe database aangemaakt bij het opstarten. Als dit niet is wat je verwachtte, controleer dan je configuratiebestand voor het `server.database` pad en zorg ervoor dat het bestaat. Op docker kan het databasepad `./data/database.db` of `./database.db` zijn." + "firstLoadBody": "Er is een nieuwe database aangemaakt bij het opstarten. Als dit niet is wat je verwachtte, controleer dan je configuratiebestand voor het `server.database` pad en zorg ervoor dat het bestaat. Op docker kan het databasepad `./data/database.db` of `./database.db` zijn.", + "selectPath": "Pad kiezen", + "renameSuccess": "Item hernoemd succesvol!", + "newFileSuccess": "Bestand succesvol aangemaakt!", + "newDirSuccess": "Directory succesvol aangemaakt!", + "copyToClipboardFailed": "Kan niet naar klembord kopiëren" }, "search": { - "images": "Afbeeldingen", - "music": "Muziek", - "pdf": "PDF", - "search": "Zoeken...", - "types": "Types", - "video": "Video", - "path": "Pad:", "smallerThan": "Kleiner dan:", "largerThan": "Groter dan:", "helpText1": "Er wordt gezocht op elk teken dat je typt (minimaal 3 tekens voor zoektermen).", @@ -267,18 +228,11 @@ "onlyFolders": "Alleen mappen", "onlyFiles": "Alleen bestanden", "showOptions": "Opties weergeven", - "photos": "Foto's", - "audio": "Audio", - "videos": "Video's", - "documents": "Documenten", - "archives": "Archief", - "number": "Aantal", "searchContext": "Zoek context: {context}", "notEnoughCharacters": "Niet genoeg tekens om te zoeken (min {minSearchLength})", "typeToSearch": "Begin met het typen van {minSearchLength} of meer tekens om te beginnen met zoeken." }, "settings": { - "admin": "Admin", "administrator": "Administrator", "allowCommands": "Commando's uitvoeren", "allowEdit": "Bestanden of mappen aanpassen, hernoemen of verwijderen", @@ -286,7 +240,6 @@ "allowPublish": "Publiceer nieuwe berichten en pagina's", "allowSignup": "Sta gebruikers toe om zich te registreren", "avoidChanges": "(laat leeg om wijzigingen te voorkomen)", - "branding": "Branding", "brandingDirectoryPath": "Branding directory path", "changePassword": "Wijzig Wachtwoord", "commandRunner": "Command runner", @@ -296,8 +249,6 @@ "defaultUserDescription": "Dit zijn de standaardinstellingen voor nieuwe gebruikers.", "disableExternalLinks": "Schakel externe links uit (behalve documentatie)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "Documentatie", - "examples": "Voorbeelden", "executeOnShell": "Uitvoeren in de shell", "executeOnShellDescription": "File Browser voert de opdrachten standaard uit door hun binaire bestanden rechtstreeks op te roepen. Als u ze in plaats daarvan wilt uitvoeren op een shell (zoals Bash of PowerShell), kunt u dit hier definiëren met de vereiste argumenten en vlaggen. Indien ingesteld, wordt de opdracht die u uitvoert, toegevoegd als een argument. Dit is van toepassing op zowel gebruikersopdrachten als event hooks.", "globalRules": "Dit is een algemene reeks toegestane en niet toegestane regels. Ze zijn van toepassing op elke gebruiker. U kunt specifieke regels voor de instellingen van elke gebruiker definiëren om deze te overschrijven.", @@ -305,14 +256,11 @@ "insertPath": "Voeg een pad toe", "insertRegex": "Regex expressie invoeren", "instanceName": "Instantienaam", - "language": "Taal", "lockPassword": "Voorkom dat de gebruiker het wachtwoord wijzigt", "newPassword": "Uw nieuw wachtwoord", "newPasswordConfirm": "Bevestig uw nieuw wachtwoord", "newUser": "Nieuwe gebruiker", - "password": "Wachtwoord", "passwordUpdated": "Wachtwoord bijgewerkt!", - "path": "Pad", "permissions": { "modify": "Bestanden aanpassen", "share": "Bestanden delen", @@ -328,27 +276,16 @@ "profileSettings": "Profielinstellingen", "ruleExample1": "voorkomt de toegang tot elk puntbestand (zoals .git, .gitignore) in elke map.\n", "ruleExample2": "blokkeert de toegang tot het bestand met de naam Caddyfile in de hoofdmap van het bereik.", - "rules": "Regels", "rulesHelp": "Hier kunt u een reeks regels voor toestaan en niet toestaan voor deze specifieke gebruiker definiëren. De geblokkeerde bestanden verschijnen niet in de lijsten en zijn niet toegankelijk voor de gebruiker. We ondersteunen regex en paden relatief ten opzichte van het bereik van gebruikers. \n", - "scope": "Scope", "settingsUpdated": "Instellingen bijgewerkt!", "shareManagement": "Beheer van aandelen", "singleClick": "Gebruik één klik om bestanden en mappen te openen", - "themes": { - "dark": "Donker", - "light": "Licht", - "title": "Thema" - }, - "user": "Gebruiker", - "userCommands": "Commando's", "userCommandsHelp": "Een lijst met beschikbare commando's voor de gebruiker gescheiden door spaties. Voorbeeld: \n", "userCreated": "Gebruiker aangemaakt!", "userDefaults": "Standaardinstellingen gebruiker", "userDeleted": "Gebruiker verwijderd!", "userManagement": "Gebruikersbeheer", "userUpdated": "Gebruiker bijgewerkt!", - "username": "Gebruikersnaam", - "users": "Gebruikers", "enterPassword": "Wachtwoord invoeren", "enterPasswordAgain": "Voer het wachtwoord opnieuw in", "passwordsDoNotMatch": "Wachtwoorden komen niet overeen", @@ -373,9 +310,7 @@ "api": "API-sleutels", "shareDeleted": "Deel verwijderd!", "adminOptions": "Opties voor beheerders", - "shareDuration": "Verloopt op", "searchOptions": "Zoekopties", - "downloads": "Downloads", "systemAdmin": "Systeem & Beheer", "configViewer": "Configuratiescherm", "configViewerShowFull": "Volledige configuratie weergeven", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "bijv. '/submap' - leeg voor standaard", - "userScopes": "Richtkijkers" + "newUserHintSubFolder": "bijv. '/submap' - leeg voor standaard" }, "sidebar": { - "help": "Help", - "hugoNew": "Hugo nieuw", - "login": "Log in", - "logout": "Uitloggen", - "myFiles": "Mijn bestanden", - "newFile": "Nieuw bestand", - "newFolder": "Nieuwe map", - "preview": "Voorbeeld", - "settings": "Instellingen", - "signup": "Registeren", "siteSettings": "Site-instellingen", - "sources": "Bronnen", "updateIsAvailable": "Er is een update beschikbaar!", - "fileActions": "Bestandsacties" + "fileActions": "Bestandsacties", + "customizeLinks": "Zijbalk koppelingen aanpassen", + "customizeLinksDescription": "Pas de links in je zijbalk aan. Slepen en neerzetten om te herschikken.", + "currentLinks": "Huidige koppelingen", + "addNewLink": "Nieuwe link toevoegen", + "linkType": "Type koppeling", + "selectLinkType": "Selecteer een linktype", + "customLink": "Aangepaste link", + "selectSource": "Bron selecteren", + "chooseSource": "Kies een bron", + "selectTool": "Selecteer gereedschap", + "chooseTool": "Kies een hulpmiddel", + "linkName": "Link Naam", + "linkNamePlaceholder": "Naam koppeling invoeren", + "linkUrl": "Link URL", + "linkUrlPlaceholder": "Voer een URL of pad in (bijvoorbeeld /files/path of https://example.com)", + "linkIcon": "Link pictogram", + "linksUpdatedSuccess": "Zijbalk links succesvol bijgewerkt!", + "linksUpdateFailed": "Het bijwerken van links in de zijbalk is mislukt", + "sourceNotAccessible": "Deze bron is niet langer toegankelijk voor jou", + "noLinksYet": "Er zijn nog geen links geconfigureerd. Voeg hieronder uw eerste link toe.", + "customizeShareLinks": "Zijbalkkoppelingen delen aanpassen", + "customizeShareLinksDescription": "Pas de links aan die worden weergegeven in de zijbalk voor deze share. Slepen en neerzetten om te herschikken.", + "editLink": "Link bewerken", + "selectShare": "Selecteer aandeel", + "chooseShare": "Kies een aandeel", + "selectSharePath": "Pad binnen share (optioneel)", + "sharePathPlaceholder": "bijvoorbeeld /submap of leeg laten voor root", + "browseIcons": "Bladeren door pictogrammen", + "pickIcon": "Kies een pictogram", + "pickIconDescription": "Zoek en selecteer een pictogram uit de bibliotheek met materiaalpictogrammen", + "shareLinksUpdatedSuccess": "Zijbalk links delen succesvol bijgewerkt!", + "shareHome": "Thuis delen", + "linkIconPlaceholder": "Geef optioneel een materiaalpictogramnaam op" }, "success": { "linkCopied": "Link gekopieerd!" @@ -481,7 +437,12 @@ "allowReplacements": "Bestandsvervangingen toestaan", "allowReplacementsDescription": "Iedereen kan bestaande bestanden vervangen door bestanden met dezelfde naam te uploaden.", "allowCreate": "Bestanden en mappen maken en uploaden", - "allowCreateDescription": "Iedereen kan nieuwe bestanden en mappen aanmaken en uploaden in deze share." + "allowCreateDescription": "Iedereen kan nieuwe bestanden en mappen aanmaken en uploaden in deze share.", + "customizeSidebarLinks": "Zijbalk koppelingen aanpassen", + "customizeSidebarLinksButton": "Koppelingen aanpassen", + "shareInfo": "QR Code en info delen", + "shareInfoDescription": "Deze link toont de informatie van de share, inclusief titel, beschrijving, banner en QR code in een popup.", + "downloadDescription": "Met deze link kun je de volledige inhoud van de share downloaden als een gecomprimeerd bestand." }, "api": { "title": "API-sleutels", @@ -505,21 +466,28 @@ "expires": "Verloopt op", "actions": "Acties", "enabled": "Ingeschakeld", - "disabled": "Uitgeschakeld" + "disabled": "Uitgeschakeld", + "apiKeyDeleted": "API-sleutel verwijderd!" }, "index": { - "status": "Status", "assessment": "Beoordeling", "lastScanned": "Laatst gescand", "quickScan": "Snelle scan Seconden", "fullScan": "Seconden voor volledig scannen", "settingsHover": "Instellingen voor gebruiker", - "logout": "Afmelden", "toggleClick": "Schakelen Enkele klik", "toggleDark": "Donkere modus inschakelen", "toggleSticky": "Kleefmodus schakelen", - "used": "tweedehands", - "noSources": "Geen bronnen beschikbaar voor deze gebruiker. Voeg een bron toe voor deze gebruiker of configureer een bron met defaultEnabled: true" + "noSources": "Geen bronnen beschikbaar voor deze gebruiker. Voeg een bron toe voor deze gebruiker of configureer een bron met defaultEnabled: true", + "unknown": "Onbekend", + "simple": "Eenvoudig", + "normal": "Normaal", + "complex": "Complex", + "highlyComplex": "Zeer complex", + "ready": "Klaar", + "indexing": "Indexering", + "unavailable": "Niet beschikbaar", + "error": "Fout" }, "otp": { "name": "Authenticatie met twee factoren", @@ -608,9 +576,7 @@ "themeAndLanguage": "Thema & Taal", "previewFolder": "Toon miniaturen voor mappen indien beschikbaar", "previewFolderDescription": "Toon miniatuurafbeeldingen voor mappen met het eerste kinditem met miniatuurafbeelding als omslag.", - "disableFileExtensions": "Voer bestandsextensies in om uit te schakelen", - "defaultLandingPage": "Standaard landingspagina", - "defaultLandingPageDescription": "bijv. /files/mysource/mysubpath' of '/settings' - standaardpagina is /files die naar de eerste bronweergave gaat." + "disableFileExtensions": "Voer bestandsextensies in om uit te schakelen" }, "general": { "name": "Naam", @@ -625,7 +591,96 @@ "exit": "Ga naar", "permanent": "Permanent", "hash": "Hash", - "of": "van" + "of": "van", + "source": "Bron{suffix}", + "percentage": "{percentage}%", + "type": "Type{suffix}", + "size": "Maat{suffix}", + "body": "Lichaam{suffix}", + "home": "Home{suffix}", + "clear": "Duidelijk{suffix}", + "help": "Help{suffix}", + "login": "Inloggen{suffix}", + "logout": "Afmelden{suffix}", + "preview": "Voorbeeld{suffix}", + "settings": "Instellingen{suffix}", + "sources": "Bronnen{suffix}", + "links": "Links{suffix}", + "tool": "Gereedschap{suffix}", + "used": "tweedehands{suffix}", + "status": "Status{suffix}", + "analyze": "Analyseren{suffix}", + "results": "Resultaten{suffix}", + "users": "Gebruikers{suffix}", + "photos": "Foto's", + "audio": "Audio{suffix}", + "videos": "Video's{suffix}", + "documents": "Documenten{suffix}", + "archives": "Archief{suffix}", + "images": "Afbeeldingen{suffix}", + "music": "Muziek{suffix}", + "pdf": "PDF{suffix}", + "search": "Zoek op{suffix}", + "number": "Aantal{suffix}", + "types": "Soorten{suffix}", + "video": "Video{suffix}", + "admin": "Admin{suffix}", + "branding": "Branding{suffix}", + "language": "Taal{suffix}", + "documentation": "documentatie{suffix}", + "examples": "Voorbeelden{suffix}", + "dark": "Donker{suffix}", + "light": "Licht{suffix}", + "title": "Thema{suffix}", + "expires": "Verloopt op{suffix}", + "scope": "Toepassingsgebied{suffix}", + "rules": "Regels{suffix}", + "downloads": "Downloads{suffix}", + "submit": "Inloggen{suffix}", + "navigation": "Navigatie{suffix}", + "metadata": "Metagegevens{suffix}", + "loading": "Laden{suffix}", + "add": "Voeg toe{suffix}", + "cancel": "Annuleren{suffix}", + "verify": "Controleer{suffix}", + "close": "Sluit{suffix}", + "copy": "Kopie{suffix}", + "create": "Maak{suffix}", + "delete": "Verwijder{suffix}", + "download": "Downloaden{suffix}", + "file": "Bestand{suffix}", + "folder": "Map{suffix}", + "info": "Info{suffix}", + "more": "Meer{suffix}", + "move": "Verplaats{suffix}", + "new": "Nieuw{suffix}", + "next": "Volgende{suffix}", + "ok": "OK{suffix}", + "previous": "Vorige{suffix}", + "publish": "Publiceer{suffix}", + "rename": "Hernoem{suffix}", + "replace": "vervangen{suffix}", + "save": "Sla{suffix}", + "schedule": "Schema{suffix}", + "select": "Selecteer{suffix}", + "share": "Deel{suffix}", + "update": "Update{suffix}", + "upload": "Uploaden{suffix}", + "openFile": "Bestand openen{suffix}", + "continue": "Ga verder{suffix}", + "edit": "Bewerk{suffix}", + "pause": "Pauze{suffix}", + "resume": "CV{suffix}", + "retry": "Opnieuw proberen{suffix}", + "disable": "uitschakelen{suffix}", + "confirm": "Bevestig{suffix}", + "stay": "Blijf{suffix}", + "scopes": "Richtkijkers{suffix}", + "commands": "Opdrachten{suffix}", + "uploading": "uploaden{suffix}", + "paused": "Gepauzeerd{suffix}", + "conflict": "Conflict{suffix}", + "change": "Verander{suffix}" }, "access": { "rules": "Toegangsregels", @@ -642,18 +697,22 @@ "enterName": "Voer de naam van de gebruiker of groep in", "deleted": "Toegangsregel verwijderd!", "added": "Toegangsregel toegevoegd!", - "name": "Naam", "accessManagement": "Toegangsbeheer", "all": "Alles weigeren", "defaultBehaviorDescription": "Dit laat zien wat er gebeurt als een gebruiker toegang probeert te krijgen tot een pad waarvoor geen specifieke toegangsregels bestaan. Toestaan' betekent dat gebruikers standaard toegang hebben, 'Weigeren' betekent dat gebruikers standaard worden geblokkeerd tenzij ze expliciet toestemming krijgen.", - "defaultBehavior": "Standaardactie{suffix}" + "defaultBehavior": "Standaardactie{suffix}", + "deletedCascade": "Toegangsregels verwijderd van pad en alle subpaden!", + "cascadeDelete": "Recursief verwijderen", + "cascadeDeleteDescription": "Indien ingeschakeld, zal het verwijderen van een toegangsregel deze ook verwijderen uit alle submappen. Hierdoor kun je een gebruiker of groep volledig verwijderen uit de hele mappenstructuur." }, "editor": { "uninitialized": "Het is niet gelukt de editor te initialiseren. Gelieve opnieuw te laden.", "saveFailed": "Het is niet gelukt om het bestand op te slaan. Probeer het opnieuw.", "saveAborted": "Opslaan afgebroken. De bestandsnaam komt niet overeen met het actieve bestand.", "saveAbortedMessage": "Opslaan afgebroken. Het actieve bestand van de toepassing ({activeFile}) komt niet overeen met het bestand dat u probeert op te slaan ({tryingToSave}).", - "syncFailed": "Na 5 pogingen is het niet gelukt om de status te synchroniseren met de route voor \"{filename}\". Installatie van editor afgebroken om gegevensbeschadiging te voorkomen." + "syncFailed": "Na 5 pogingen is het niet gelukt om de status te synchroniseren met de route voor \"{filename}\". Installatie van editor afgebroken om gegevensbeschadiging te voorkomen.", + "fileSaved": "Bestand opgeslagen!", + "errorSavingFile": "Fout bij het opslaan van bestand: {error}" }, "player": { "LoopEnabled": "Herhaling ingeschakeld", @@ -666,5 +725,93 @@ "changePlaybackMode": "Afspeelmodus wijzigen", "changePlaybackModeHint": "Wijzig afspeelmodus om meer bestanden te zien", "emptyQueue": "Wachtrij is leeg" + }, + "fileSizeAnalyzer": { + "title": "Bestandsgrootte analyzer", + "searchLocation": "Locatie zoeken", + "selectPath": "Zoeklocatie selecteren", + "largerThan": "Groter dan (MB)", + "includeFolders": "Mappen opnemen", + "includeFoldersDescription": "Directories opnemen in de analyse", + "totalFiles": "Totaal Bestanden{suffix}", + "totalSize": "Totale grootte{suffix}", + "emptyState": "Voer zoekcriteria in en klik op Analyseren om bestandsgroottes te visualiseren", + "completeResults": "Volledige resultaten getoond!", + "incompleteResults": "Resultaten kunnen onvolledig zijn", + "incompleteResultsDetails": "Max. resultaten (100). Probeer je zoekopdracht te verfijnen om meer resultaten onder de 100 te krijgen.", + "relativePercentage": "Relatief percentage{suffix}", + "percentageOfResults": "{percentage}% resultaten" + }, + "fileTypes": { + "video": "Video", + "image": "Afbeelding", + "audio": "Audio", + "archive": "Archief", + "document": "Document", + "binary": "Binair", + "directory": "Directory", + "other": "Andere" + }, + "tools": { + "description": "Hulpprogramma's en analysetools voor je bestanden", + "sizeAnalyzer": { + "name": "Bestandsgrootte analyzer", + "description": "Visualiseer grote bestanden en mappen met een interactieve treemap" + }, + "title": "Gereedschap", + "duplicateFinder": { + "name": "Duplicaat bestand zoeken", + "description": "Dubbele bestanden vinden en beheren om opslagruimte terug te winnen" + }, + "materialIconPicker": { + "name": "Materiaal pictogrammenkiezer", + "description": "Bladeren en zoeken in materiële pictogrammen met live voorbeeld", + "searchPlaceholder": "Pictogrammen zoeken...", + "popularIcons": "Toon {count} populaire pictogrammen", + "showingResults": "Resultaten tonen {count} ", + "noResults": "Geen pictogrammen gevonden", + "tryDifferentSearch": "Probeer een andere zoekterm", + "copiedToClipboard": "Gekopieerd '{name}' naar klembord!", + "copyFailed": "Kopiëren naar klembord mislukt", + "custom": "Aangepast", + "useCustomIcon": "Gebruik een aangepast pictogram: {name}", + "iconLibraryUrl": "lettertypen.google.com/iconen", + "browseFullLibrary": "Blader door de volledige pictogrammenbibliotheek" + }, + "toolNotFound": "Gereedschap niet gevonden", + "backToTools": "Terug naar Gereedschap" + }, + "messages": { + "pathNotFound": "Pad bestaat niet op bestandssysteem", + "pathNotFoundMessage": "Het pad hiervoor bestaat niet meer op het bestandssysteem. Het kan verplaatst of verwijderd zijn.", + "reassignPath": "Pad opnieuw toewijzen", + "pathReassigned": "Pad succesvol bijgewerkt!", + "pathReassignFailed": "Het bijwerken van het pad is mislukt. Probeer het opnieuw." + }, + "duplicateFinder": { + "title": "Duplicaat bestand zoeken", + "minSize": "Minimale grootte (MB){suffix}", + "minSizeHint": "Alleen bestanden analyseren die groter zijn dan deze grootte (in megabytes)", + "useChecksums": "Bestandsinhoud vergelijken", + "useChecksumsDescription": "Neem ook de inhoud van bestanden op in de vergelijking. Zonder dit worden bestanden vergeleken op basis van grootte en bestandsnaam overeenkomst.", + "findDuplicates": "Duplicaten zoeken", + "groupsFound": "Dubbele groepen gevonden{suffix}", + "totalWastedSpace": "Totale verspilde ruimte{suffix}", + "wasted": "Verspild{suffix}", + "emptyState": "Voer zoekcriteria in en klik op Duplicaten zoeken om dubbele bestanden te identificeren" + }, + "notifications": { + "title": "Meldingen", + "description": "Alle meldingen van je huidige sessie bekijken", + "empty": "Nog geen meldingen", + "clearAll": "Alles wissen", + "clearConfirm": "Weet je zeker dat je alle meldingsgeschiedenis wilt wissen?", + "total": "{count} meldingen" + }, + "events": { + "serverShutdown": "De server is uitgeschakeld.", + "authenticationFailed": "Authenticatie mislukt. Vernieuw de pagina om opnieuw in te loggen.", + "reconnected": "Opnieuw verbinding gemaakt met server.", + "connectionLost": "De verbinding met de server is verbroken. Probeer opnieuw verbinding te maken..." } } diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.json index e6cedd1333..18571f665c 100644 --- a/frontend/src/i18n/pl.json +++ b/frontend/src/i18n/pl.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Anuluj", - "close": "Zamknij", - "copy": "Kopiuj", "copyFile": "Kopiuj plik", "copyToClipboard": "kopiuj do schowka", - "create": "Utwórz", - "delete": "Usuń", - "download": "Pobierz", - "info": "Informacja", - "more": "Więce", - "move": "Przenieś", "moveFile": "Przenieś plik", - "new": "Nowy", - "next": "Następny", - "ok": "OK", "permalink": "Uzyskaj link bezpośredni (permalink)", - "previous": "Poprzedni", - "publish": "Opublikuj", - "rename": "Zmień nazwę", - "replace": "Zamień", "reportIssue": "Zgłoś problem", - "save": "Zapisz", - "schedule": "Grafik", - "search": "Szukaj", - "select": "Wybierz", "selectMultiple": "Zaznacz wiele", - "share": "Udostępnij", "shell": "Pokaż/ukryj powłokę", "switchView": "Zmień widok", "toggleSidebar": "Pokaż/ukryj panel boczny", - "update": "Aktualizuj", - "upload": "Wgraj", "copyDownloadLinkToClipboard": "Skopiuj łącze pobierania do schowka", - "file": "Plik", - "folder": "Folder", - "submit": "Prześlij", - "openFile": "Otwórz plik", - "continue": "Kontynuuj", - "edit": "Edytuj", "generateNewOtp": "Resetowanie i generowanie nowego kodu dwuskładnikowego", - "verify": "Weryfikacja", - "pause": "Pauza", - "resume": "Wznowienie", - "retry": "Ponów próbę", "pauseAll": "Wstrzymaj wszystko", "resumeAll": "Resume all", "clearCompleted": "Czyszczenie zakończone", @@ -62,10 +29,8 @@ "discardAndExit": "Odrzuć i wyjdź", "saveAndExit": "Zapisz i wyjdź", "keepEditing": "Kontynuuj edycję", - "stayOnPrompt": "Zostań", "closeAnyway": "W każdym razie blisko", - "disable": "Wyłącz", - "confirm": "Potwierdzenie" + "goToItem": "Przejdź do pozycji" }, "download": { "downloadFile": "Pobierz plik", @@ -77,31 +42,31 @@ "internal": "Pojawił się poważny problem.", "notFound": "Ten adres nie jest poprawny.", "connection": "Nie można uzyskać dostępu do serwera.", - "shareNotFound": "Nieprawidłowy lub wygasły udział." + "shareNotFound": "Nieprawidłowy lub wygasły udział.", + "failedToConnectToServer": "Nie udało się połączyć z serwerem, czy nadal działa?" }, "files": { - "body": "Body", - "clear": "Wyczyść", "closePreview": "Zamknij poprzednie", - "home": "Katalog domowy", "lastModified": "Ostatnio modyfikowane", - "loading": "Ładowanie...", "lonely": "Smutno gdy tak pusto...", - "metadata": "Metadane", "multipleSelectionEnabled": "Zaznaczenie wielu włączone", - "name": "Nazwa", - "size": "Rozmiar", "sortByLastModified": "Sortuj wg. daty modyfikacji", "sortByName": "Sortuj wg. nazwy", "sortBySize": "Sortuj wg. rozmiaru", "noPreview": "Podgląd nie jest dostępny dla tego pliku.", - "noDownloadAccess": "Pobieranie nie jest dostępne." + "noDownloadAccess": "Pobieranie nie jest dostępne.", + "itemSelected": "element wybrany", + "itemsSelected": "elementy wybrane", + "myFiles": "Moje pliki{suffix}", + "newFile": "Nowy plik{suffix}", + "newFolder": "Nowy folder{suffix}", + "duration": "Czas trwania{suffix}", + "sortByDuration": "Sortuj według czasu trwania" }, "help": { "functionKeys": "Klawisze Funkcji", "mouseActions": "Akcje Myszy", "fileOperations": "Operacje na Plikach", - "navigation": "Nawigacja", "click": "wybierz plik lub foler", "ctrl": { "click": "wybierz wiele plików lub folderów", @@ -115,11 +80,11 @@ "del": "usuń zaznaczone", "esc": "wyczyść zaznaczenie i/lub zamknij okno z powiadomieniem", "f2": "zmień nazwę pliku", - "help": "Pomoc", "f1": "pokaż monit pomocy", "description": "Poniżej znajdują się podstawowe opcje nawigacji. Dodatkowe informacje można znaleźć na stronie", "slash": "aktywuj wyszukiwanie", - "wiki": "Oficjalne dokumenty FileBrowser Quantum" + "wiki": "Oficjalne dokumenty FileBrowser Quantum", + "marqueeSelect": "wybór wielu plików lub katalogów poprzez przeciągnięcie na puste miejsce" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Takie konto już istnieje", "passwordConfirm": "Potwierdzenie hasła", "passwordsDontMatch": "Hasła różnią się", - "submit": "Logowanie", "usernameTaken": "Nazwa użytkownika już zajęta", "wrongCredentials": "Błędne dane logowania", "or": "LUB", @@ -208,7 +172,6 @@ "viewMode": "Tryb widoku", "renameMessage": "Wprowadź nową nazwę:", "renameMessageInvalid": "Plik nie może być kontenerem \"/\" lub \"\\\"", - "source": "Źródło{suffix}", "deleteMessageMultiple": "Czy na pewno chcesz usunąć plik(i) {count}?", "deleteMessageShare": "Czy na pewno chcesz usunąć ten udział: {path} ?", "numberDirs": "Liczba katalogów{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Witamy w FileBrowser Quantum!", "halloweenTitle": "Wesołego Halloween!", "halloweenBody": "Motyw Halloween został zastosowany. Możesz go wyłączyć, jeśli Ci się nie podoba, lub wyłączyć go na stałe w ustawieniach profilu, wybierając inny motyw.", - "firstLoadBody": "Nowa baza danych została utworzona podczas uruchamiania. Jeśli nie jest to to, czego oczekiwałeś, sprawdź dokładnie plik konfiguracyjny pod kątem ścieżki `server.database` i upewnij się, że istnieje. W dockerze ścieżka bazy danych może być `./data/database.db` lub `./database.db`." + "firstLoadBody": "Nowa baza danych została utworzona podczas uruchamiania. Jeśli nie jest to to, czego oczekiwałeś, sprawdź dokładnie plik konfiguracyjny pod kątem ścieżki `server.database` i upewnij się, że istnieje. W dockerze ścieżka bazy danych może być `./data/database.db` lub `./database.db`.", + "selectPath": "Wybierz ścieżkę", + "renameSuccess": "Nazwa elementu została zmieniona pomyślnie!", + "newFileSuccess": "Plik został utworzony pomyślnie!", + "newDirSuccess": "Katalog utworzony pomyślnie!", + "copyToClipboardFailed": "Nie można skopiować do schowka" }, "search": { - "images": "Zdjęcia", - "music": "Muzyka", - "pdf": "PDF", - "search": "Szukaj...", - "types": "Typy", - "video": "Wideo", - "path": "Ścieżka:", "smallerThan": "Mniejszy niż:", "largerThan": "Większy niż:", "helpText1": "Wyszukiwanie odbywa się po każdym wpisanym znaku (minimum 3 znaki dla wyszukiwanych haseł).", @@ -267,18 +228,11 @@ "onlyFolders": "Tylko foldery", "onlyFiles": "Tylko pliki", "showOptions": "Pokaż opcje", - "photos": "Zdjęcia", - "audio": "Audio", - "videos": "Filmy", - "documents": "Dokumenty", - "archives": "Archiwa", - "number": "Liczba", "searchContext": "Kontekst wyszukiwania: {context}", "notEnoughCharacters": "Za mało znaków do wyszukania (min. {minSearchLength})", "typeToSearch": "Zacznij wpisywać {minSearchLength} lub więcej znaków, aby rozpocząć wyszukiwanie." }, "settings": { - "admin": "Admin", "administrator": "Administrator", "allowCommands": "Wykonaj polecenie", "allowEdit": "Edycja, zmiana nazwy i usuniecie plików lub folderów", @@ -286,7 +240,6 @@ "allowPublish": "Tworzenie nowych wpisów i stron", "allowSignup": "Zezwól na rejestrację użytkowników", "avoidChanges": "(pozostaw puste aby nie zosatało zmienione)", - "branding": "Branding", "brandingDirectoryPath": "Folder brandingowy", "changePassword": "Zmień Hasło", "commandRunner": "Narzędzie do wykonywania poleceń", @@ -296,8 +249,6 @@ "defaultUserDescription": "Oto domyślne ustawienia dla nowych użytkowników.", "disableExternalLinks": "Wyłącz linki zewnętrzne (z wyjątkiem dokumentacji)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "dokumentacja", - "examples": "Przykłady", "executeOnShell": "Wykonaj w powłoce", "executeOnShellDescription": "Domyślnie File Browser wykonuje polecenia wywołując ich pliki binarne bezpośrednio. Jesli preferujesz wykonywanie ich w powłoce (jak np. Bash czy PowerShell), możesz zdefiniować to tutaj wraz z wymaganymi flagami i argumentami. Jeśli to ustawienie jest aktywne, polecenie które wykonarz zostanie dodane jako argument. Stosuje się to zarówno do poleceń użytkownika jak i zaczepów zdarzeń.", "globalRules": "To jest globalne zestawienie reguł zezwalających i zabraniających. Stosują się one do każdego użytkownika. Możesz zdefiniować indywidualne zasady w ustawieniach każdego użytkownika, by zignorować te reguły.", @@ -305,14 +256,11 @@ "insertPath": "Wstaw ścieżkę", "insertRegex": "Wstaw wyrażenie regularne", "instanceName": "Nazwa instancji", - "language": "Język", "lockPassword": "Zablokuj użytkownikowi możliwość zmiany hasła", "newPassword": "Twoje nowe hasło", "newPasswordConfirm": "Potwierdź swoje hasło", "newUser": "Nowy Użytkownik", - "password": "Hasło", "passwordUpdated": "Hasło zostało zapisane!", - "path": "Ścieżka", "permissions": { "modify": "Edycja plików", "share": "Udostępnianie plików", @@ -328,27 +276,16 @@ "profileSettings": "Twój profil", "ruleExample1": "uniemożliwia dostęp do któregokolwiek z ukrytych plików (takich jak .git, .gitignore) w każdym folderze.\n", "ruleExample2": "blokuje dostęp do pliku Caddyfile w głównym katalogu zakresu.", - "rules": "Uprawnienia", "rulesHelp": "Tu możesz zdefiniować zestawienie reguł zezwalających i zabraniających dla tego konkretnego użytkownika. Zablokowane pliki nie będą widoczne na listach i nie będą dostępne dla użytkownika. Wspierane są wyrażenia regularne i ścieżki względne wobec zakresu użytkownika.\n", - "scope": "Zakres", "settingsUpdated": "Uprawnienia Zapisane!", "shareManagement": "Zarządzanie udostępnianiem", "singleClick": "Pojedyncze kliknięcie", - "themes": { - "dark": "ciemny", - "light": "jasny", - "title": "Motywy" - }, - "user": "Użytkownik", - "userCommands": "Polecenia", "userCommandsHelp": "Lista oddzielonych spacjami poleceń dostępnych dla tego użytkownika. Przykład:\n", "userCreated": "Użytkownik zapisany!", "userDefaults": "Domyślne ustawienia użytkownika", "userDeleted": "Użytkownik usunięty!", "userManagement": "Zarządzanie użytkownikami", "userUpdated": "Użytkownik zapisany!", - "username": "Nazwa użytkownika", - "users": "Użytkownicy", "modifyOtherUser": "Modyfikacja użytkownika:", "modifyCurrentUser": "Modyfikacja bieżącego użytkownika", "themeColor": "Kolor motywu", @@ -373,9 +310,7 @@ "loginMethod": "Metoda logowania", "shareSettings": "Ustawienia udostępniania", "adminOptions": "Opcje użytkownika administratora", - "shareDuration": "Wygasa", "searchOptions": "Opcje wyszukiwania", - "downloads": "Pliki do pobrania", "systemAdmin": "System i administrator", "configViewer": "Przeglądarka konfiguracji", "configViewerShowFull": "Pokaż pełną konfigurację", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Pełnomocnik" }, - "newUserHintSubFolder": "np. '/subfolder' - domyślnie puste", - "userScopes": "Lunety" + "newUserHintSubFolder": "np. '/subfolder' - domyślnie puste" }, "sidebar": { - "help": "Pomoc", - "hugoNew": "Hugo New", - "login": "Login", - "logout": "Wyloguj", - "myFiles": "Moje pliki", - "newFile": "Nowy plik", - "newFolder": "Nowy folder", - "preview": "Podgląd", - "settings": "Ustawienia", - "signup": "Rejestracja", "siteSettings": "Ustawienia Strony", - "sources": "Źródła", "updateIsAvailable": "Aktualizacja jest już dostępna!", - "fileActions": "Działania na plikach" + "fileActions": "Działania na plikach", + "customizeLinks": "Dostosowywanie linków paska bocznego", + "customizeLinksDescription": "Dostosuj linki wyświetlane na pasku bocznym. Przeciągnij i upuść, aby zmienić kolejność.", + "currentLinks": "Aktualne linki", + "addNewLink": "Dodaj nowy link", + "linkType": "Typ łącza", + "selectLinkType": "Wybierz typ łącza", + "customLink": "Łącze niestandardowe", + "selectSource": "Wybierz źródło", + "chooseSource": "Wybierz źródło", + "selectTool": "Wybierz narzędzie", + "chooseTool": "Wybierz narzędzie", + "linkName": "Nazwa łącza", + "linkNamePlaceholder": "Wprowadź nazwę łącza", + "linkUrl": "Link URL", + "linkUrlPlaceholder": "Wprowadź adres URL lub ścieżkę (np. /files/path lub https://example.com).", + "linkIcon": "Ikona łącza", + "linksUpdatedSuccess": "Linki na pasku bocznym zostały pomyślnie zaktualizowane!", + "linksUpdateFailed": "Nie udało się zaktualizować linków paska bocznego", + "sourceNotAccessible": "To źródło nie jest już dostępne", + "noLinksYet": "Nie skonfigurowano jeszcze żadnych linków. Dodaj swój pierwszy link poniżej.", + "customizeShareLinks": "Dostosuj łącza udostępniania na pasku bocznym", + "customizeShareLinksDescription": "Dostosuj łącza wyświetlane na pasku bocznym dla tego udziału. Przeciągnij i upuść, aby zmienić kolejność.", + "editLink": "Edytuj łącze", + "selectShare": "Wybierz udział", + "chooseShare": "Wybierz udział", + "selectSharePath": "Ścieżka w folderze udostępnionym (opcjonalnie)", + "sharePathPlaceholder": "np. /subfolder lub pozostawić puste dla roota", + "browseIcons": "Przeglądaj ikony", + "pickIcon": "Wybierz ikonę", + "pickIconDescription": "Wyszukaj i wybierz ikonę z biblioteki Material Icons", + "shareLinksUpdatedSuccess": "Linki do paska bocznego zostały pomyślnie zaktualizowane!", + "shareHome": "Share Home", + "linkIconPlaceholder": "Opcjonalnie można określić nazwę ikony materiału" }, "success": { "linkCopied": "Link Skopiowany!" @@ -481,7 +437,12 @@ "allowReplacements": "Zezwalaj na zastępowanie plików", "allowReplacementsDescription": "Każdy może zastąpić istniejące pliki podczas przesyłania plików o tej samej nazwie.", "allowCreate": "Zezwalanie na tworzenie i przesyłanie plików i folderów", - "allowCreateDescription": "Każdy może tworzyć i przesyłać nowe pliki i foldery w tym udziale." + "allowCreateDescription": "Każdy może tworzyć i przesyłać nowe pliki i foldery w tym udziale.", + "customizeSidebarLinks": "Dostosowywanie linków paska bocznego", + "customizeSidebarLinksButton": "Dostosuj łącza", + "shareInfo": "Udostępnij kod QR i informacje", + "shareInfoDescription": "To łącze wyświetla informacje o udostępnieniu, w tym tytuł, opis, baner i kod QR w wyskakującym okienku.", + "downloadDescription": "Łącze to umożliwia pobranie całej zawartości folderu udostępnionego w postaci skompresowanego pliku." }, "api": { "title": "Klucze API:", @@ -505,21 +466,28 @@ "expires": "Wygasa", "actions": "Działania", "enabled": "Włączone", - "disabled": "Wyłączony" + "disabled": "Wyłączony", + "apiKeyDeleted": "Klucz API został usunięty!" }, "index": { - "status": "Status", "assessment": "Ocena", "lastScanned": "Ostatnio skanowane", "quickScan": "Sekundy szybkiego skanowania", "fullScan": "Sekundy pełnego skanowania", "settingsHover": "Ustawienia dla użytkownika", - "logout": "Wylogowanie", "toggleClick": "Przełączanie jednym kliknięciem", "toggleDark": "Przełączanie trybu ciemnego", "toggleSticky": "Przełączanie trybu samoprzylepnego", - "used": "używany", - "noSources": "Brak dostępnych źródeł dla tego użytkownika. Dodaj źródło dla tego użytkownika lub skonfiguruj źródło z defaultEnabled: true." + "noSources": "Brak dostępnych źródeł dla tego użytkownika. Dodaj źródło dla tego użytkownika lub skonfiguruj źródło z defaultEnabled: true.", + "unknown": "Nieznany", + "simple": "Prosty", + "normal": "Normalny", + "complex": "Kompleks", + "highlyComplex": "Wysoka złożoność", + "ready": "Gotowy", + "indexing": "Indeksowanie", + "unavailable": "Niedostępne", + "error": "Błąd" }, "otp": { "name": "Uwierzytelnianie dwuskładnikowe", @@ -545,7 +513,96 @@ "exit": "Wyjście", "permanent": "Na stałe", "hash": "Hash", - "of": "z" + "of": "z", + "source": "Źródło{suffix}", + "percentage": "{percentage}%", + "type": "Typ{suffix}", + "size": "Rozmiar{suffix}", + "body": "Ciało{suffix}", + "home": "Strona główna{suffix}", + "clear": "Wyczyść{suffix}", + "help": "Pomoc{suffix}", + "login": "Logowanie{suffix}", + "logout": "Wylogowanie{suffix}", + "preview": "Podgląd{suffix}", + "settings": "Ustawienia{suffix}", + "sources": "Źródła{suffix}", + "links": "Linki{suffix}", + "tool": "Narzędzie{suffix}", + "used": "używany{suffix}", + "status": "Status{suffix}", + "analyze": "Analiza{suffix}", + "results": "Wyniki{suffix}", + "users": "Użytkownicy{suffix}", + "photos": "Zdjęcia", + "audio": "Audio{suffix}", + "videos": "Filmy{suffix}", + "documents": "Dokumenty{suffix}", + "archives": "Archiwa{suffix}", + "images": "Obrazy{suffix}", + "music": "Muzyka{suffix}", + "pdf": "PDF{suffix}", + "search": "Wyszukiwanie{suffix}", + "number": "Liczba{suffix}", + "types": "Rodzaje{suffix}", + "video": "Wideo{suffix}", + "admin": "Administrator{suffix}", + "branding": "Branding{suffix}", + "language": "Język{suffix}", + "documentation": "dokumentacja{suffix}", + "examples": "Przykłady{suffix}", + "dark": "Ciemny{suffix}", + "light": "Światło{suffix}", + "title": "Temat{suffix}", + "expires": "Wygasa{suffix}", + "scope": "Zakres{suffix}", + "rules": "Zasady{suffix}", + "downloads": "Pliki do pobrania{suffix}", + "submit": "Logowanie{suffix}", + "navigation": "Nawigacja{suffix}", + "metadata": "Metadane{suffix}", + "loading": "Ładowanie{suffix}", + "add": "Dodaj{suffix}", + "cancel": "Anuluj{suffix}", + "verify": "Weryfikacja{suffix}", + "close": "Zamknij{suffix}", + "copy": "Kopia{suffix}", + "create": "Utwórz{suffix}", + "delete": "Usuń{suffix}", + "download": "Pobierz{suffix}", + "file": "Plik{suffix}", + "folder": "Folder{suffix}", + "info": "Info{suffix}", + "more": "Więcej{suffix}", + "move": "Przeprowadzka{suffix}", + "new": "Nowość{suffix}", + "next": "Następny{suffix}", + "ok": "OK{suffix}", + "previous": "Poprzedni{suffix}", + "publish": "Publikować{suffix}", + "rename": "Zmiana nazwy{suffix}", + "replace": "Wymiana{suffix}", + "save": "Zapisz{suffix}", + "schedule": "Harmonogram{suffix}", + "select": "Wybierz{suffix}", + "share": "Udział{suffix}", + "update": "Aktualizacja{suffix}", + "upload": "Przesyłanie{suffix}", + "openFile": "Otwórz plik{suffix}", + "continue": "Kontynuuj{suffix}", + "edit": "Edytuj{suffix}", + "pause": "Pauza{suffix}", + "resume": "Wznowienie{suffix}", + "retry": "Ponów próbę{suffix}", + "disable": "Wyłącz{suffix}", + "confirm": "Potwierdzenie{suffix}", + "stay": "Zostań{suffix}", + "scopes": "Lunety{suffix}", + "commands": "Polecenia{suffix}", + "uploading": "Przesyłanie{suffix}", + "paused": "Wstrzymane{suffix}", + "conflict": "Konflikt{suffix}", + "change": "Zmiana{suffix}" }, "access": { "rules": "Zasady dostępu", @@ -560,13 +617,15 @@ "enterName": "Wprowadź nazwę użytkownika lub grupy", "deleted": "Reguła dostępu usunięta!", "added": "Dodano regułę dostępu!", - "name": "Nazwa", "accessManagement": "Zarządzanie dostępem", "totalDenied": "Odmowa", "totalAllowed": "Dozwolone", "all": "Odmów wszystkim", "defaultBehaviorDescription": "To pokazuje, co się dzieje, gdy użytkownik próbuje uzyskać dostęp do ścieżki, dla której nie istnieją określone reguły dostępu. \"Zezwól\" oznacza, że użytkownicy mogą uzyskać dostęp domyślnie, \"Odmów\" oznacza, że użytkownicy są domyślnie blokowani, chyba że wyraźnie na to zezwolono.", - "defaultBehavior": "Działanie domyślne{suffix}" + "defaultBehavior": "Działanie domyślne{suffix}", + "deletedCascade": "Reguły dostępu usunięte ze ścieżki i wszystkich podścieżek!", + "cascadeDelete": "Usuwanie rekursywne", + "cascadeDeleteDescription": "Po włączeniu tej opcji usunięcie reguły dostępu spowoduje również usunięcie jej ze wszystkich podkatalogów. Pozwala to na całkowite usunięcie użytkownika lub grupy z całego drzewa katalogów." }, "fileLoading": { "title": "Przesyłanie i pobieranie", @@ -644,16 +703,16 @@ "themeAndLanguage": "Temat i język", "previewFolder": "Wyświetlanie miniatur folderów, jeśli są dostępne.", "previewFolderDescription": "Wyświetlanie podglądu miniatur dla folderów z pierwszym elementem podrzędnym z miniaturą jako okładką.", - "disableFileExtensions": "Wprowadź rozszerzenia plików do wyłączenia", - "defaultLandingPage": "Domyślna strona docelowa", - "defaultLandingPageDescription": "np. '/files/mysource/mysubpath' lub '/settings' - domyślną stroną jest /files, która przechodzi do pierwszego widoku listy źródeł." + "disableFileExtensions": "Wprowadź rozszerzenia plików do wyłączenia" }, "editor": { "uninitialized": "Nie udało się zainicjować edytora. Przeładuj ponownie.", "saveFailed": "Nie udało się zapisać pliku. Spróbuj ponownie.", "saveAborted": "Zapisywanie przerwane. Nazwa pliku nie pasuje do aktywnego pliku.", "saveAbortedMessage": "Operacja zapisywania została przerwana. Aktywny plik aplikacji ({activeFile}) nie jest zgodny z plikiem, który próbujesz zapisać ({tryingToSave}).", - "syncFailed": "Nie udało się zsynchronizować stanu z trasą dla \"{filename}\" po 5 próbach. Przerwano konfigurację edytora, aby zapobiec uszkodzeniu danych." + "syncFailed": "Nie udało się zsynchronizować stanu z trasą dla \"{filename}\" po 5 próbach. Przerwano konfigurację edytora, aby zapobiec uszkodzeniu danych.", + "fileSaved": "Plik zapisany!", + "errorSavingFile": "Błąd zapisu pliku: {error}" }, "player": { "LoopEnabled": "Pętla włączona", @@ -666,5 +725,93 @@ "changePlaybackMode": "Zmień tryb odtwarzania", "changePlaybackModeHint": "Zmień tryb odtwarzania, aby zobaczyć więcej plików", "emptyQueue": "Kolejka jest pusta" + }, + "fileSizeAnalyzer": { + "title": "Analizator rozmiaru plików", + "searchLocation": "Lokalizacja wyszukiwania", + "selectPath": "Wybierz lokalizację wyszukiwania", + "largerThan": "Większy niż (MB)", + "includeFolders": "Dołącz foldery", + "includeFoldersDescription": "Uwzględnienie katalogów w analizie", + "totalFiles": "Pliki ogółem{suffix}", + "totalSize": "Całkowity rozmiar{suffix}", + "emptyState": "Wprowadź kryteria wyszukiwania i kliknij przycisk Analizuj, aby wyświetlić rozmiary plików.", + "completeResults": "Wyświetlono pełne wyniki!", + "incompleteResults": "Wyniki mogą być niekompletne", + "incompleteResultsDetails": "Wyświetlanie maksymalnych wyników (100). Spróbuj zawęzić wyszukiwanie, aby uzyskać więcej wyników poniżej 100.", + "relativePercentage": "Procent względny{suffix}", + "percentageOfResults": "{percentage}% wyników" + }, + "fileTypes": { + "video": "Wideo", + "image": "Obraz", + "audio": "Audio", + "archive": "Archiwum", + "document": "Dokument", + "binary": "Binarny", + "directory": "Katalog", + "other": "Inne" + }, + "tools": { + "description": "Narzędzia i narzędzia do analizy plików", + "sizeAnalyzer": { + "name": "Analizator rozmiaru plików", + "description": "Wizualizacja dużych plików i katalogów za pomocą interaktywnej mapy drzewa" + }, + "title": "Narzędzia", + "duplicateFinder": { + "name": "Wyszukiwarka duplikatów plików", + "description": "Znajdowanie i zarządzanie zduplikowanymi plikami w celu odzyskania przestrzeni dyskowej" + }, + "materialIconPicker": { + "name": "Selektor ikon materiałów", + "description": "Przeglądaj i wyszukuj ikony materiałów z podglądem na żywo", + "searchPlaceholder": "Ikony wyszukiwania...", + "popularIcons": "Wyświetlanie {count} popularnych ikon", + "showingResults": "Wyświetlanie wyników {count} ", + "noResults": "Nie znaleziono ikon", + "tryDifferentSearch": "Wypróbuj inne wyszukiwane hasło", + "copiedToClipboard": "Skopiowano '{name}' do schowka!", + "copyFailed": "Nie udało się skopiować do schowka", + "custom": "Niestandardowe", + "useCustomIcon": "Użyj niestandardowej ikony: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Przeglądaj pełną bibliotekę ikon" + }, + "toolNotFound": "Nie znaleziono narzędzia", + "backToTools": "Powrót do Narzędzi" + }, + "messages": { + "pathNotFound": "Ścieżka nie istnieje w systemie plików", + "pathNotFoundMessage": "Ścieżka do tego pliku nie istnieje już w systemie plików. Mogła zostać przeniesiona lub usunięta.", + "reassignPath": "Ponowne przypisanie ścieżki", + "pathReassigned": "Ścieżka została pomyślnie zaktualizowana!", + "pathReassignFailed": "Nie udało się zaktualizować ścieżki. Spróbuj ponownie." + }, + "duplicateFinder": { + "title": "Wyszukiwarka duplikatów plików", + "minSize": "Minimalny rozmiar (MB){suffix}", + "minSizeHint": "Analizuj tylko pliki większe niż podany rozmiar (w megabajtach).", + "useChecksums": "Porównanie zawartości pliku", + "useChecksumsDescription": "Uwzględnia również zawartość pliku w porównaniu. Bez tego, pliki są dopasowywane według rozmiaru i podobieństwa nazwy pliku.", + "findDuplicates": "Znajdź duplikaty", + "groupsFound": "Znaleziono zduplikowane grupy{suffix}", + "totalWastedSpace": "Całkowita zmarnowana przestrzeń{suffix}", + "wasted": "Zmarnowany{suffix}", + "emptyState": "Wprowadź kryteria wyszukiwania i kliknij Znajdź duplikaty, aby zidentyfikować zduplikowane pliki." + }, + "notifications": { + "title": "Powiadomienia", + "description": "Wyświetlanie wszystkich powiadomień z bieżącej sesji", + "empty": "Brak powiadomień", + "clearAll": "Wyczyść wszystko", + "clearConfirm": "Czy na pewno chcesz wyczyścić całą historię powiadomień?", + "total": "{count} powiadomienia" + }, + "events": { + "serverShutdown": "Serwer został wyłączony.", + "authenticationFailed": "Uwierzytelnianie nie powiodło się. Odśwież stronę, aby zalogować się ponownie.", + "reconnected": "Ponowne połączenie z serwerem.", + "connectionLost": "Połączenie z serwerem zostało utracone. Próba ponownego połączenia..." } } diff --git a/frontend/src/i18n/pt-br.json b/frontend/src/i18n/pt-br.json index 98b651cedf..bc53be7559 100644 --- a/frontend/src/i18n/pt-br.json +++ b/frontend/src/i18n/pt-br.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Cancelar", - "close": "Fechar", - "copy": "Copiar", "copyFile": "Copiar arquivo", "copyToClipboard": "Copiar", - "create": "Criar", - "delete": "Apagar", - "download": "Baixar", - "file": "Arquivo", - "folder": "Pasta", - "info": "Informações", - "more": "Mais", - "move": "Mover", "moveFile": "Mover arquivo", - "new": "Novo", - "next": "Próximo", - "ok": "OK", "permalink": "Obter link permanente", - "previous": "Anterior", - "publish": "Publicar", - "rename": "Renomear", - "replace": "Substituir", "reportIssue": "Relatar erro", - "save": "Salvar", - "schedule": "Agendar", - "search": "Pesquisar", - "select": "Selecionar", "selectMultiple": "Selecionar múltiplos", - "share": "Compartilhar", "shell": "Alternar console", - "submit": "Enviar", "switchView": "Alterar modo de visão", "toggleSidebar": "Alternar barra lateral", - "update": "Atualizar", - "upload": "Enviar", - "openFile": "Abrir", "copyDownloadLinkToClipboard": "Copiar o link de download para a área de transferência", - "continue": "Continuar", - "edit": "Editar", "generateNewOtp": "Redefinir e gerar um novo código de dois fatores", - "verify": "Verificar", - "pause": "Pausa", - "resume": "Currículo", - "retry": "Repetir", "pauseAll": "Pausar tudo", "resumeAll": "Retomar tudo", "clearCompleted": "Limpar concluído", @@ -62,10 +29,8 @@ "discardAndExit": "Descartar e sair", "saveAndExit": "Salvar e sair", "keepEditing": "Continuar editando", - "stayOnPrompt": "Permanecer", "closeAnyway": "Fechar de qualquer maneira", - "disable": "Desativar", - "confirm": "Confirmar" + "goToItem": "Ir para o item" }, "download": { "downloadFile": "Baixar arquivo", @@ -77,31 +42,31 @@ "internal": "Ops! Algum erro ocorreu.", "notFound": "Ops! Nada foi encontrado.", "connection": "O servidor não pode ser alcançado.", - "shareNotFound": "Compartilhamento inválido ou expirado." + "shareNotFound": "Compartilhamento inválido ou expirado.", + "failedToConnectToServer": "Falha ao conectar-se ao servidor, ele ainda está em execução?" }, "files": { - "body": "Corpo", - "clear": "Limpar", "closePreview": "Fechar pré-visualização", - "home": "Início", "lastModified": "Última modificação", - "loading": "Carregando. Aguarde, por favor.", "lonely": "Não existe nada aqui.", - "metadata": "Metadados", "multipleSelectionEnabled": "Seleção múltipla ativada", - "name": "Nome", - "size": "Tamanho", "sortByLastModified": "Ordenar pela última modificação", "sortByName": "Ordenar pelo nome", "sortBySize": "Ordenar pelo tamanho", "noPreview": "Pré-visualização não disponível para este arquivo.", - "noDownloadAccess": "O download não está disponível." + "noDownloadAccess": "O download não está disponível.", + "itemSelected": "item selecionado", + "itemsSelected": "itens selecionados", + "myFiles": "Meus arquivos{suffix}", + "newFile": "Novo arquivo{suffix}", + "newFolder": "Nova pasta{suffix}", + "duration": "Duração{suffix}", + "sortByDuration": "Ordenar por duração" }, "help": { "functionKeys": "Teclas de Função", "mouseActions": "Ações do Mouse", "fileOperations": "Operações de Arquivos", - "navigation": "Navegação", "click": "selecionar pasta ou arquivo", "ctrl": { "click": "selecionar várias pastas e arquivos", @@ -115,11 +80,11 @@ "del": "apagar os arquivos selecionados", "esc": "limpar seleção e/ou fechar menu", "f2": "renomear arquivo", - "help": "Ajuda", "f1": "mostrar prompt de ajuda", "description": "Você pode ver as opções básicas de navegação abaixo. Para obter informações adicionais, visite", "slash": "ativar a pesquisa", - "wiki": "Documentos oficiais do FileBrowser Quantum" + "wiki": "Documentos oficiais do FileBrowser Quantum", + "marqueeSelect": "selecionar vários arquivos ou diretórios arrastando-os para o espaço vazio" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Já possui uma conta", "passwordConfirm": "Confirmação de senha", "passwordsDontMatch": "As senhas não coincidem", - "submit": "Login", "usernameTaken": "Nome de usuário já existe", "wrongCredentials": "Ops! Dados incorretos.", "or": "OU", @@ -208,7 +172,6 @@ "viewMode": "Modo de exibição", "renameMessage": "Digite um novo nome:", "renameMessageInvalid": "Um arquivo não pode ter o contêiner \"/\" ou \"\\\"", - "source": "Fonte{suffix}", "deleteMessageMultiple": "Tem certeza de que deseja excluir o(s) arquivo(s) {count}?", "deleteMessageShare": "Tem certeza de que deseja excluir esse compartilhamento: {path} ?", "numberDirs": "Número de diretórios{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Bem-vindo ao FileBrowser Quantum!", "halloweenTitle": "Feliz Dia das Bruxas!", "halloweenBody": "O tema Halloween foi aplicado. Você pode desativá-lo se não gostar dele ou desativá-lo permanentemente nas configurações de perfil, selecionando qualquer outro tema.", - "firstLoadBody": "Um novo banco de dados foi criado na inicialização. Se isso não for o que você esperava, verifique novamente em seu arquivo de configuração o caminho `server.database` e certifique-se de que ele exista. No docker, o caminho do banco de dados pode ser `./data/database.db` ou `./database.db`." + "firstLoadBody": "Um novo banco de dados foi criado na inicialização. Se isso não for o que você esperava, verifique novamente em seu arquivo de configuração o caminho `server.database` e certifique-se de que ele exista. No docker, o caminho do banco de dados pode ser `./data/database.db` ou `./database.db`.", + "selectPath": "Selecionar caminho", + "renameSuccess": "Item renomeado com sucesso!", + "newFileSuccess": "Arquivo criado com sucesso!", + "newDirSuccess": "Diretório criado com sucesso!", + "copyToClipboardFailed": "Não é possível copiar para a área de transferência" }, "search": { - "images": "Imagens", - "music": "Músicas", - "pdf": "PDF", - "search": "Pesquise...", - "types": "Tipos", - "video": "Vídeos", - "path": "Caminho:", "smallerThan": "Menor que:", "largerThan": "Maior que:", "helpText1": "A pesquisa ocorre em cada caractere que você digita (mínimo de 3 caracteres para termos de pesquisa).", @@ -267,18 +228,11 @@ "onlyFolders": "Somente pastas", "onlyFiles": "Somente arquivos", "showOptions": "Mostrar opções", - "photos": "Fotos", - "audio": "Áudio", - "videos": "Vídeos", - "documents": "Documentos", - "archives": "Arquivos", - "number": "Número", "searchContext": "Contexto da pesquisa: {context}", "notEnoughCharacters": "Não há caracteres suficientes para pesquisar (mín. {minSearchLength})", "typeToSearch": "Comece a digitar {minSearchLength} ou mais caracteres para iniciar a busca." }, "settings": { - "admin": "Admin", "administrator": "Administrador", "allowCommands": "Executar comandos", "allowEdit": "Editar, renomear e apagar arquivos ou pastas", @@ -286,7 +240,6 @@ "allowPublish": "Publicar novas páginas e conteúdos", "allowSignup": "Permitir cadastro de usuários", "avoidChanges": "(deixe em branco para manter)", - "branding": "Customização", "brandingDirectoryPath": "Diretório de customização", "changePassword": "Alterar senha", "commandRunner": "Execução de comandos", @@ -299,8 +252,6 @@ "defaultUserDescription": "Estas são as configurações padrão para novos usuários.", "disableExternalLinks": "Desabilitar links externos (exceto documentação)", "disableUsedDiskPercentage": "Desabilitar gráfico de porcentagem de disco usado", - "documentation": "documentação", - "examples": "Exemplos", "executeOnShell": "Executar no console", "executeOnShellDescription": "Por padrão, o File Browser executa os comandos chamando os binários diretamente. Se ao invés disso desejar executá-los em um console (como Bash ou PowerShell), você pode defini-los aqui com os argumentos e flags necessários. Se definido, o comando que executar será acrescentado como um argumento. Isto se aplica a comandos de usuário e eventos hook.", "globalRules": "Este é um conjunto global de regras de permissão e restrição que se aplicam a todos os usuários. Você pode definir regras específicas em cada usuário para sobrepor estas.", @@ -308,14 +259,11 @@ "insertPath": "Inserir o caminho", "insertRegex": "Inserir expressão regular", "instanceName": "Nome da instância", - "language": "Idioma", "lockPassword": "Não permitir que o usuário altere a senha", "newPassword": "Nova senha", "newPasswordConfirm": "Confirme a nova senha", "newUser": "Novo usuário", - "password": "Senha", "passwordUpdated": "Senha atualizada!", - "path": "Caminho", "permissions": { "modify": "Editar arquivos", "share": "Compartilhar arquivos", @@ -331,28 +279,17 @@ "profileSettings": "Configurações do usuário", "ruleExample1": "previne o acesso a qualquer \"dotfile\" (como .git, .gitignore) em qualquer pasta\n", "ruleExample2": "bloqueia o acesso ao arquivo chamado Caddyfile.", - "rules": "Regras", "rulesHelp": "Aqui você pode definir um conjunto de regras para permitir ou bloquear o acesso do usuário a determinados arquivos ou pastas. Os arquivos bloqueados não irão aparecer durante a navegação. Suportamos expressões regulares e os caminhos dos arquivos devem ser relativos à base do usuário.\n", - "scope": "Escopo", "settingsUpdated": "Configurações atualizadas!", "shareManagement": "Gerenciamento do compartilhamento", "shareDeleted": "Compartilhamento apagado!", "singleClick": "Usar clique único para abrir arquivos e diretórios", - "themes": { - "dark": "Escuro", - "light": "Claro", - "title": "Tema" - }, - "user": "Usuário", - "userCommands": "Comandos", "userCommandsHelp": "Uma lista, separada com espaços, de comandos disponíveis para este usuário. Exemplo:", "userCreated": "Usuário criado!", "userDefaults": "Configurações padrão de usuário", "userDeleted": "Usuário apagado!", "userManagement": "Gerenciamento de usuários", "userUpdated": "Usuário atualizado!", - "username": "Nome do usuário", - "users": "Usuários", "modifyOtherUser": "Modificar usuário:", "modifyCurrentUser": "Modificar o usuário atual", "themeColor": "Cor do tema", @@ -373,9 +310,7 @@ "loginMethod": "Método de login", "shareSettings": "Compartilhar configurações", "adminOptions": "Opções do usuário administrador", - "shareDuration": "Expirações", "searchOptions": "Opções de pesquisa", - "downloads": "Downloads", "systemAdmin": "Sistema e administração", "configViewer": "Visualizador de configuração", "configViewerShowFull": "Mostrar configuração completa", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "Por exemplo, '/subfolder' - em branco para o padrão", - "userScopes": "Escopos" + "newUserHintSubFolder": "Por exemplo, '/subfolder' - em branco para o padrão" }, "sidebar": { - "help": "Ajuda", - "hugoNew": "Hugo New", - "login": "Login", - "logout": "Sair", - "myFiles": "Arquivos", - "newFile": "Novo arquivo", - "newFolder": "Nova pasta", - "preview": "Pré-visualizar", - "settings": "Configurações", - "signup": "Cadastrar", "siteSettings": "Configurações do site", - "sources": "Fontes", "updateIsAvailable": "Uma atualização está disponível!", - "fileActions": "Ações de arquivo" + "fileActions": "Ações de arquivo", + "customizeLinks": "Personalizar links da barra lateral", + "customizeLinksDescription": "Personalize os links exibidos em sua barra lateral. Arraste e solte para reordenar.", + "currentLinks": "Links atuais", + "addNewLink": "Adicionar novo link", + "linkType": "Tipo de link", + "selectLinkType": "Selecione um tipo de link", + "customLink": "Link personalizado", + "selectSource": "Selecionar fonte", + "chooseSource": "Escolha uma fonte", + "selectTool": "Selecionar ferramenta", + "chooseTool": "Escolha uma ferramenta", + "linkName": "Nome do link", + "linkNamePlaceholder": "Digite o nome do link", + "linkUrl": "URL do link", + "linkUrlPlaceholder": "Insira o URL ou o caminho (por exemplo, /files/path ou https://example.com)", + "linkIcon": "Ícone de link", + "linksUpdatedSuccess": "Os links da barra lateral foram atualizados com sucesso!", + "linksUpdateFailed": "Falha ao atualizar os links da barra lateral", + "sourceNotAccessible": "Essa fonte não está mais acessível para você", + "noLinksYet": "Ainda não há links configurados. Adicione seu primeiro link abaixo.", + "customizeShareLinks": "Personalizar os links da barra lateral de compartilhamento", + "customizeShareLinksDescription": "Personalize os links mostrados na barra lateral para esse compartilhamento. Arraste e solte para reordenar.", + "editLink": "Editar link", + "selectShare": "Selecionar compartilhamento", + "chooseShare": "Escolha uma ação", + "selectSharePath": "Caminho dentro do compartilhamento (opcional)", + "sharePathPlaceholder": "Por exemplo, /subpasta ou deixar em branco para a raiz", + "browseIcons": "Procurar ícones", + "pickIcon": "Escolha um ícone", + "pickIconDescription": "Pesquise e selecione um ícone na biblioteca de ícones de materiais", + "shareLinksUpdatedSuccess": "Os links da barra lateral de compartilhamento foram atualizados com sucesso!", + "shareHome": "Compartilhar casa", + "linkIconPlaceholder": "Opcionalmente, especifique um nome de ícone de material" }, "success": { "linkCopied": "Link copiado!" @@ -481,7 +437,12 @@ "allowReplacements": "Permitir substituições de arquivos", "allowReplacementsDescription": "Qualquer pessoa pode substituir arquivos existentes ao fazer upload de arquivos com o mesmo nome.", "allowCreate": "Permitir a criação e o upload de arquivos e pastas", - "allowCreateDescription": "Qualquer pessoa pode criar e carregar novos arquivos e pastas nesse compartilhamento." + "allowCreateDescription": "Qualquer pessoa pode criar e carregar novos arquivos e pastas nesse compartilhamento.", + "customizeSidebarLinks": "Personalizar links da barra lateral", + "customizeSidebarLinksButton": "Personalizar links", + "shareInfo": "Compartilhar código QR e informações", + "shareInfoDescription": "Esse link exibe as informações do compartilhamento, incluindo título, descrição, banner e código QR em um pop-up.", + "downloadDescription": "Esse link permite o download de todo o conteúdo do compartilhamento como um arquivo compactado." }, "api": { "title": "Chaves de API:", @@ -505,21 +466,28 @@ "expires": "Expirações", "actions": "Ações", "enabled": "Ativado", - "disabled": "Desativado" + "disabled": "Desativado", + "apiKeyDeleted": "Chave de API excluída!" }, "index": { - "status": "Status", "assessment": "Avaliação", "lastScanned": "Última varredura", "quickScan": "Segundos de varredura rápida", "fullScan": "Segundos de varredura completa", "settingsHover": "Configurações para o usuário", - "logout": "Sair", "toggleClick": "Alternar clique único", "toggleDark": "Alternar o modo escuro", "toggleSticky": "Alternar o modo de aderência", - "used": "usado", - "noSources": "Não há fontes disponíveis para esse usuário. Adicione uma fonte para esse usuário ou configure uma fonte com defaultEnabled: true" + "noSources": "Não há fontes disponíveis para esse usuário. Adicione uma fonte para esse usuário ou configure uma fonte com defaultEnabled: true", + "unknown": "Desconhecido", + "simple": "Simples", + "normal": "Normal", + "complex": "Complexo", + "highlyComplex": "Altamente complexo", + "ready": "Pronto", + "indexing": "Indexação", + "unavailable": "Não disponível", + "error": "Erro" }, "otp": { "name": "Autenticação de dois fatores", @@ -545,7 +513,96 @@ "exit": "Sair", "permanent": "Permanente", "hash": "Hash", - "of": "de" + "of": "de", + "source": "Fonte{suffix}", + "percentage": "{percentage}%", + "type": "Tipo{suffix}", + "size": "Tamanho{suffix}", + "body": "Corpo{suffix}", + "home": "Início{suffix}", + "clear": "Limpo{suffix}", + "help": "Ajuda{suffix}", + "login": "Login{suffix}", + "logout": "Sair{suffix}", + "preview": "Prévia{suffix}", + "settings": "Configurações{suffix}", + "sources": "Fontes{suffix}", + "links": "Links{suffix}", + "tool": "Ferramenta{suffix}", + "used": "usado{suffix}", + "status": "Status{suffix}", + "analyze": "Analisar{suffix}", + "results": "Resultados{suffix}", + "users": "Usuários{suffix}", + "photos": "Fotos", + "audio": "Áudio{suffix}", + "videos": "Vídeos{suffix}", + "documents": "Documentos{suffix}", + "archives": "Arquivos{suffix}", + "images": "Imagens{suffix}", + "music": "Música{suffix}", + "pdf": "PDF{suffix}", + "search": "Pesquisa{suffix}", + "number": "Número{suffix}", + "types": "Tipos{suffix}", + "video": "Vídeo{suffix}", + "admin": "Administrador{suffix}", + "branding": "Marca{suffix}", + "language": "Idioma{suffix}", + "documentation": "documentação{suffix}", + "examples": "Exemplos{suffix}", + "dark": "Escuro{suffix}", + "light": "Luz{suffix}", + "title": "Tema{suffix}", + "expires": "Expirações{suffix}", + "scope": "Escopo{suffix}", + "rules": "Regras{suffix}", + "downloads": "Downloads{suffix}", + "submit": "Login{suffix}", + "navigation": "Navegação{suffix}", + "metadata": "Metadados{suffix}", + "loading": "Carregamento{suffix}", + "add": "Adicionar{suffix}", + "cancel": "Cancelar{suffix}", + "verify": "Verificar{suffix}", + "close": "Fechar{suffix}", + "copy": "Cópia{suffix}", + "create": "Criar{suffix}", + "delete": "Excluir{suffix}", + "download": "Baixar{suffix}", + "file": "Arquivo{suffix}", + "folder": "Pasta{suffix}", + "info": "Informações{suffix}", + "more": "Mais informações{suffix}", + "move": "Mover{suffix}", + "new": "Novo{suffix}", + "next": "Próximo{suffix}", + "ok": "OK{suffix}", + "previous": "Anterior{suffix}", + "publish": "Publicar{suffix}", + "rename": "Renomear{suffix}", + "replace": "Substituir{suffix}", + "save": "Salvar{suffix}", + "schedule": "Cronograma{suffix}", + "select": "Selecione{suffix}", + "share": "Compartilhar{suffix}", + "update": "Atualização{suffix}", + "upload": "Carregar{suffix}", + "openFile": "Abrir arquivo{suffix}", + "continue": "Continuar{suffix}", + "edit": "Editar{suffix}", + "pause": "Pausa{suffix}", + "resume": "Currículo{suffix}", + "retry": "Repetir{suffix}", + "disable": "Desativar{suffix}", + "confirm": "Confirmar{suffix}", + "stay": "Permanecer{suffix}", + "scopes": "Escopos{suffix}", + "commands": "Comandos{suffix}", + "uploading": "Carregamento{suffix}", + "paused": "Em pausa{suffix}", + "conflict": "Conflito{suffix}", + "change": "Mudança{suffix}" }, "access": { "rules": "Regras de acesso", @@ -560,13 +617,15 @@ "enterName": "Digite o nome do usuário ou do grupo", "deleted": "Regra de acesso excluída!", "added": "Regra de acesso adicionada!", - "name": "Nome", "accessManagement": "Gerenciamento de acesso", "totalDenied": "Negado", "totalAllowed": "Permitido", "all": "Negar tudo", "defaultBehaviorDescription": "Isso mostra o que acontece quando um usuário tenta acessar um caminho em que não existem regras de acesso específicas. \"Permitir\" significa que os usuários podem acessar por padrão, \"Negar\" significa que os usuários são bloqueados por padrão, a menos que sejam explicitamente permitidos.", - "defaultBehavior": "Ação padrão{suffix}" + "defaultBehavior": "Ação padrão{suffix}", + "deletedCascade": "Regras de acesso excluídas do caminho e de todos os subcaminhos!", + "cascadeDelete": "Exclusão recursiva", + "cascadeDeleteDescription": "Quando ativada, a exclusão de uma regra de acesso também a removerá de todos os subdiretórios. Isso permite remover completamente um usuário ou grupo de toda a árvore de diretórios." }, "fileLoading": { "title": "Uploads e downloads", @@ -644,16 +703,16 @@ "themeAndLanguage": "Tema e linguagem", "previewFolder": "Mostrar miniaturas das pastas, se disponíveis", "previewFolderDescription": "Mostrar visualizações em miniatura para pastas com o primeiro item filho com miniatura como capa.", - "disableFileExtensions": "Digite as extensões de arquivo a serem desativadas", - "defaultLandingPage": "Página de destino padrão", - "defaultLandingPageDescription": "Por exemplo. '/files/mysource/mysubpath' ou '/settings' - a página padrão é /files, que vai para a primeira exibição de listagem de fontes" + "disableFileExtensions": "Digite as extensões de arquivo a serem desativadas" }, "editor": { "uninitialized": "Falha ao inicializar o editor. Favor recarregar.", "saveFailed": "Falha ao salvar o arquivo. Tente novamente.", "saveAborted": "Salvamento abortado. O nome do arquivo não corresponde ao arquivo ativo.", "saveAbortedMessage": "Operação de salvamento abortada. O arquivo ativo do aplicativo ({activeFile}) não corresponde ao arquivo que você está tentando salvar ({tryingToSave}).", - "syncFailed": "Falha ao sincronizar o estado com a rota para \"{filename}\" após 5 tentativas. Abortar a configuração do editor para evitar a corrupção de dados." + "syncFailed": "Falha ao sincronizar o estado com a rota para \"{filename}\" após 5 tentativas. Abortar a configuração do editor para evitar a corrupção de dados.", + "fileSaved": "Arquivo salvo!", + "errorSavingFile": "Erro ao salvar o arquivo: {error}" }, "player": { "LoopEnabled": "Repetição ativada", @@ -666,5 +725,93 @@ "changePlaybackMode": "Alterar modo de reprodução", "changePlaybackModeHint": "Altere o modo de reprodução para ver mais arquivos", "emptyQueue": "A fila está vazia" + }, + "fileSizeAnalyzer": { + "title": "Analisador de tamanho de arquivo", + "searchLocation": "Localização da pesquisa", + "selectPath": "Selecione o local da pesquisa", + "largerThan": "Maior que (MB)", + "includeFolders": "Incluir pastas", + "includeFoldersDescription": "Incluir diretórios na análise", + "totalFiles": "Total de arquivos{suffix}", + "totalSize": "Tamanho total{suffix}", + "emptyState": "Insira os critérios de pesquisa e clique em Analyze para visualizar os tamanhos dos arquivos", + "completeResults": "Resultados completos mostrados!", + "incompleteResults": "Os resultados podem estar incompletos", + "incompleteResultsDetails": "Mostrando resultados máximos (100). Tente restringir sua pesquisa para obter mais resultados abaixo de 100.", + "relativePercentage": "Porcentagem relativa{suffix}", + "percentageOfResults": "{percentage}% de resultados" + }, + "fileTypes": { + "video": "Vídeo", + "image": "Imagem", + "audio": "Áudio", + "archive": "Arquivo", + "document": "Documento", + "binary": "Binário", + "directory": "Diretório", + "other": "Outros" + }, + "tools": { + "description": "Utilitários e ferramentas de análise para seus arquivos", + "sizeAnalyzer": { + "name": "Analisador de tamanho de arquivo", + "description": "Visualize arquivos e diretórios grandes com um mapa de árvore interativo" + }, + "title": "Ferramentas", + "duplicateFinder": { + "name": "Localizador de arquivos duplicados", + "description": "Localize e gerencie arquivos duplicados para recuperar espaço de armazenamento" + }, + "materialIconPicker": { + "name": "Seletor de ícones de materiais", + "description": "Navegue e pesquise ícones de materiais com visualização ao vivo", + "searchPlaceholder": "Pesquisar ícones...", + "popularIcons": "Exibindo {count} ícones populares", + "showingResults": "Mostrando {count} resultados", + "noResults": "Nenhum ícone encontrado", + "tryDifferentSearch": "Tente um termo de pesquisa diferente", + "copiedToClipboard": "Copiou '{name}' para a área de transferência!", + "copyFailed": "Falha ao copiar para a área de transferência", + "custom": "Personalizado", + "useCustomIcon": "Usar ícone personalizado: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Navegue pela biblioteca completa de ícones" + }, + "toolNotFound": "Ferramenta não encontrada", + "backToTools": "Voltar para Ferramentas" + }, + "messages": { + "pathNotFound": "O caminho não existe no sistema de arquivos", + "pathNotFoundMessage": "O caminho para isso não existe mais no sistema de arquivos. Ele pode ter sido movido ou excluído.", + "reassignPath": "Reatribuir caminho", + "pathReassigned": "Caminho atualizado com sucesso!", + "pathReassignFailed": "Falha ao atualizar o caminho. Tente novamente." + }, + "duplicateFinder": { + "title": "Localizador de arquivos duplicados", + "minSize": "Tamanho mínimo (MB){suffix}", + "minSizeHint": "Analisar apenas arquivos maiores que este tamanho (em megabytes)", + "useChecksums": "Comparar o conteúdo do arquivo", + "useChecksumsDescription": "Inclua também o conteúdo do arquivo na comparação. Sem isso, os arquivos são comparados por semelhança de tamanho e nome de arquivo.", + "findDuplicates": "Localizar duplicatas", + "groupsFound": "Grupos duplicados encontrados{suffix}", + "totalWastedSpace": "Total de espaço desperdiçado{suffix}", + "wasted": "Desperdiçado{suffix}", + "emptyState": "Insira os critérios de pesquisa e clique em Find Duplicates para identificar arquivos duplicados" + }, + "notifications": { + "title": "Notificações", + "description": "Exibir todas as notificações de sua sessão atual", + "empty": "Ainda não há notificações", + "clearAll": "Limpar tudo", + "clearConfirm": "Tem certeza de que deseja limpar todo o histórico de notificações?", + "total": "{count} notificações" + }, + "events": { + "serverShutdown": "O servidor foi desligado.", + "authenticationFailed": "Falha na autenticação. Atualize a página para fazer login novamente.", + "reconnected": "Reconectado ao servidor.", + "connectionLost": "A conexão com o servidor foi perdida. Tentando se reconectar..." } } diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.json index dca6589399..ce8b0efa5b 100644 --- a/frontend/src/i18n/pt.json +++ b/frontend/src/i18n/pt.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Cancelar", - "close": "Fechar", - "copy": "Copiar", "copyFile": "Copiar ficheiro", "copyToClipboard": "Copiar", - "create": "Criar", - "delete": "Eliminar", - "download": "Descarregar", - "info": "Info", - "more": "Mais", - "move": "Mover", "moveFile": "Mover ficheiro", - "new": "Novo", - "next": "Próximo", - "ok": "OK", "permalink": "Obter link permanente", - "previous": "Anterior", - "publish": "Publicar", - "rename": "Alterar nome", - "replace": "Substituir", "reportIssue": "Reportar erro", - "save": "Guardar", - "schedule": "Agendar", - "search": "Pesquisar", - "select": "Selecionar", "selectMultiple": "Selecionar vários", - "share": "Partilhar", "shell": "Alternar shell", "switchView": "Alterar vista", "toggleSidebar": "Alternar barra lateral", - "update": "Atualizar", - "upload": "Enviar", "generateNewOtp": "Repor e gerar um novo código de dois factores", - "verify": "Verificar", "copyDownloadLinkToClipboard": "Copiar a ligação de transferência para a área de transferência", - "file": "Ficheiro", - "folder": "Pasta", - "submit": "Enviar", - "openFile": "Abrir ficheiro", - "continue": "Continuar", - "edit": "Editar", - "pause": "Pausa", - "resume": "Currículo", - "retry": "Repetir", "pauseAll": "Pausa tudo", "resumeAll": "Retomar tudo", "clearCompleted": "Limpar concluído", @@ -62,10 +29,8 @@ "discardAndExit": "Descartar e sair", "saveAndExit": "Guardar e sair", "keepEditing": "Continuar a editar", - "stayOnPrompt": "Ficar", "closeAnyway": "Fechar de qualquer maneira", - "disable": "Desativar", - "confirm": "Confirmar" + "goToItem": "Ir para o item" }, "download": { "downloadFile": "Descarregar ficheiro", @@ -77,31 +42,31 @@ "internal": "Algo correu bastante mal.", "notFound": "Esta localização não é alcançável.", "connection": "O servidor não pode ser contactado.", - "shareNotFound": "Ação inválida ou expirada." + "shareNotFound": "Ação inválida ou expirada.", + "failedToConnectToServer": "Falha na ligação ao servidor, ainda está a funcionar?" }, "files": { - "body": "Corpo", - "clear": "Limpar", "closePreview": "Fechar pré-visualização", - "home": "Início", "lastModified": "Última alteração", - "loading": "A carregar...", "lonely": "Sinto-me sozinho...", - "metadata": "Metadados", "multipleSelectionEnabled": "Seleção múltipla ativada", - "name": "Nome", - "size": "Tamanho", "sortByLastModified": "Ordenar pela última alteração", "sortByName": "Ordenar pelo nome", "sortBySize": "Ordenar pelo tamanho", "noPreview": "A pré-visualização não está disponível para este ficheiro.", - "noDownloadAccess": "A transferência não está disponível." + "noDownloadAccess": "A transferência não está disponível.", + "itemSelected": "item selecionado", + "itemsSelected": "itens selecionados", + "myFiles": "Os meus ficheiros{suffix}", + "newFile": "Novo ficheiro{suffix}", + "newFolder": "Nova pasta{suffix}", + "duration": "Duração{suffix}", + "sortByDuration": "Ordenar por duração" }, "help": { "functionKeys": "Teclas de Função", "mouseActions": "Ações do Rato", "fileOperations": "Operações de Ficheiros", - "navigation": "Navegação", "click": "selecionar pasta ou ficheiro", "ctrl": { "click": "selecionar várias pastas e ficheiros", @@ -115,11 +80,11 @@ "del": "eliminar os ficheiros selecionados", "esc": "limpar seleção e/ou fechar menu", "f2": "alterar nome do ficheiro", - "help": "Ajuda", "f1": "mostrar prompt de ajuda", "description": "Pode ver as opções básicas de navegação abaixo. Para obter informações adicionais, visite", "slash": "ativar a pesquisa", - "wiki": "Documentos oficiais do FileBrowser Quantum" + "wiki": "Documentos oficiais do FileBrowser Quantum", + "marqueeSelect": "selecionar vários ficheiros ou diretórios arrastando-os para o espaço vazio" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Já tenho uma conta", "passwordConfirm": "Confirmação da palavra-passe", "passwordsDontMatch": "As palavras-passe não coincidem", - "submit": "Entrar na conta", "usernameTaken": "O nome de utilizador já está registado", "wrongCredentials": "Dados errados", "or": "OU", @@ -208,7 +172,6 @@ "viewMode": "Modo de visualização", "renameMessage": "Introduzir um novo nome:", "renameMessageInvalid": "Um ficheiro não pode conter \"/\" ou \"\\\"", - "source": "Fonte{suffix}", "deleteMessageMultiple": "Tem a certeza de que pretende apagar o(s) ficheiro(s) {count}?", "deleteMessageShare": "Tem a certeza de que pretende apagar esta partilha: {path} ?", "numberDirs": "Número de diretórios{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Bem-vindo ao FileBrowser Quantum!", "halloweenTitle": "Feliz Dia das Bruxas!", "halloweenBody": "O tema do Dia das Bruxas foi aplicado. Pode desactivá-lo se não gostar dele, ou desactivá-lo permanentemente nas definições do perfil, selecionando qualquer outro tema.", - "firstLoadBody": "Foi criada uma nova base de dados no arranque. Se isso não for o que você esperava, verifique novamente seu arquivo de configuração para o caminho `server.database` e certifique-se de que ele existe. No docker, o caminho do banco de dados pode ser `./data/database.db` ou `./database.db`." + "firstLoadBody": "Foi criada uma nova base de dados no arranque. Se isso não for o que você esperava, verifique novamente seu arquivo de configuração para o caminho `server.database` e certifique-se de que ele existe. No docker, o caminho do banco de dados pode ser `./data/database.db` ou `./database.db`.", + "selectPath": "Selecionar caminho", + "renameSuccess": "Item renomeado com sucesso!", + "newFileSuccess": "Ficheiro criado com sucesso!", + "newDirSuccess": "Diretório criado com sucesso!", + "copyToClipboardFailed": "Não é possível copiar para a área de transferência" }, "search": { - "images": "Imagens", - "music": "Música", - "pdf": "PDF", - "search": "Pesquisar...", - "types": "Tipos", - "video": "Vídeos", - "path": "Caminho:", "smallerThan": "Mais pequeno do que:", "largerThan": "Maior do que:", "helpText1": "A pesquisa ocorre em cada caractere digitado (mínimo de 3 caracteres para termos de pesquisa).", @@ -267,18 +228,11 @@ "onlyFolders": "Apenas pastas", "onlyFiles": "Apenas ficheiros", "showOptions": "Mostrar opções", - "photos": "Fotos", - "audio": "Áudio", - "videos": "Vídeos", - "documents": "Documentos", - "archives": "Arquivos", - "number": "Número", "searchContext": "Contexto de pesquisa: {context}", "notEnoughCharacters": "Não há caracteres suficientes para pesquisar (min {minSearchLength})", "typeToSearch": "Comece a escrever {minSearchLength} ou mais caracteres para iniciar a pesquisa." }, "settings": { - "admin": "Admin", "administrator": "Administrador", "allowCommands": "Executar comandos", "allowEdit": "Editar, renomear e eliminar ficheiros ou pastas", @@ -286,7 +240,6 @@ "allowPublish": "Publicar novas páginas e conteúdos", "allowSignup": "Permitir que os utilizadores criem contas", "avoidChanges": "(deixe em branco para manter)", - "branding": "Marca", "brandingDirectoryPath": "Caminho da pasta de marca", "changePassword": "Alterar palavra-passe", "commandRunner": "Execução de comandos", @@ -296,8 +249,6 @@ "defaultUserDescription": "Estas são as configurações padrão para novos utilizadores.", "disableExternalLinks": "Desativar links externos (exceto documentação)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "documentação", - "examples": "Exemplos", "executeOnShell": "Executar na shell", "executeOnShellDescription": "Por padrão, o Navegador de Ficheiros executa os comandos chamando os seus binários diretamente. Se em vez disso, quiser executá-los numa shell (como Bash ou PowerShell), pode definir isso aqui com os argumentos e bandeiras necessários. Se definido, o comando que executa será anexado como um argumento. Isto aplica-se tanto a comandos do utilizador como a hooks de eventos.", "globalRules": "Isto é um conjunto global de regras de permissão e negação. Elas aplicam-se a todos os utilizadores. Pode especificar regras específicas para cada configuração do utilizador para sobreporem-se a estas.", @@ -305,14 +256,11 @@ "insertPath": "Inserir o caminho", "insertRegex": "Inserir expressão regular", "instanceName": "Nome da instância", - "language": "Linguagem", "lockPassword": "Não permitir que o utilizador altere a palavra-passe", "newPassword": "Nova palavra-passe", "newPasswordConfirm": "Confirme a nova palavra-passe", "newUser": "Novo utilizador", - "password": "Palavra-passe", "passwordUpdated": "Palavra-passe atualizada!", - "path": "Caminho", "permissions": { "modify": "Editar ficheiros", "share": "Partilhar ficheiros", @@ -328,27 +276,16 @@ "profileSettings": "Configurações do utilizador", "ruleExample1": "previne o acesso a qualquer \"dotfile\" (como .git, .gitignore) em qualquer pasta\n", "ruleExample2": "bloqueia o acesso ao ficheiro chamado Caddyfile na raiz.", - "rules": "Regras", "rulesHelp": "Aqui pode definir um conjunto de regras para permitir ou bloquear o acesso do utilizador a determinados ficheiros ou pastas. Os ficheiros bloqueados não irão aparecer durante a navegação. Suportamos expressões regulares e os caminhos dos ficheiros devem ser relativos à base do utilizador.\n", - "scope": "Base", "settingsUpdated": "Configurações atualizadas!", "shareManagement": "Gestão de acções", "singleClick": "Utilizar cliques únicos para abrir ficheiros e diretórios", - "themes": { - "dark": "Escuro", - "light": "Luz", - "title": "Tema" - }, - "user": "Utilizador", - "userCommands": "Comandos", "userCommandsHelp": "Uma lista, separada com espaços, de comandos disponíveis para este utilizados. Exemplo:", "userCreated": "Utilizador criado!", "userDefaults": "Configurações padrão do utilizador", "userDeleted": "Utilizador eliminado!", "userManagement": "Gestão de utilizadores", "userUpdated": "Utilizador atualizado!", - "username": "Nome de utilizador", - "users": "Utilizadores", "enterPassword": "Introduzir a palavra-passe", "enterPasswordAgain": "Introduzir novamente a palavra-passe", "passwordsDoNotMatch": "As palavras-passe não coincidem", @@ -373,9 +310,7 @@ "api": "Chaves da API", "shareDeleted": "Partilhar eliminado!", "adminOptions": "Opções do utilizador administrador", - "shareDuration": "Expirações", "searchOptions": "Opções de pesquisa", - "downloads": "Transferências", "systemAdmin": "Sistema e administração", "configViewer": "Visualizador de configuração", "configViewerShowFull": "Mostrar configuração completa", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "por exemplo, '/subpasta' - em branco por defeito", - "userScopes": "Escopos" + "newUserHintSubFolder": "por exemplo, '/subpasta' - em branco por defeito" }, "sidebar": { - "help": "Ajuda", - "hugoNew": "Hugo New", - "login": "Entrar", - "logout": "Sair", - "myFiles": "Meus ficheiros", - "newFile": "Novo ficheiro", - "newFolder": "Nova pasta", - "preview": "Pré-visualizar", - "settings": "Configurações", - "signup": "Registar", "siteSettings": "Configurações do site", - "sources": "Fontes", "updateIsAvailable": "Está disponível uma atualização!", - "fileActions": "Acções do ficheiro" + "fileActions": "Acções do ficheiro", + "customizeLinks": "Personalizar ligações da barra lateral", + "customizeLinksDescription": "Personalize os links apresentados na sua barra lateral. Arraste e largue para reordenar.", + "currentLinks": "Ligações actuais", + "addNewLink": "Adicionar nova ligação", + "linkType": "Tipo de ligação", + "selectLinkType": "Selecionar um tipo de ligação", + "customLink": "Ligação personalizada", + "selectSource": "Selecionar fonte", + "chooseSource": "Selecionar uma fonte", + "selectTool": "Selecionar ferramenta", + "chooseTool": "Selecionar uma ferramenta", + "linkName": "Nome da ligação", + "linkNamePlaceholder": "Introduzir o nome da ligação", + "linkUrl": "Ligação URL", + "linkUrlPlaceholder": "Introduzir URL ou caminho (por exemplo, /files/path ou https://example.com)", + "linkIcon": "Ícone de ligação", + "linksUpdatedSuccess": "Ligações da barra lateral actualizadas com sucesso!", + "linksUpdateFailed": "Falha ao atualizar as ligações da barra lateral", + "sourceNotAccessible": "Esta fonte já não está acessível para si", + "noLinksYet": "Ainda não existem ligações configuradas. Adicione a sua primeira ligação abaixo.", + "customizeShareLinks": "Personalizar as ligações da barra lateral de partilha", + "customizeShareLinksDescription": "Personalize as ligações apresentadas na barra lateral para esta partilha. Arraste e largue para reordenar.", + "editLink": "Editar ligação", + "selectShare": "Selecionar Partilha", + "chooseShare": "Escolher uma ação", + "selectSharePath": "Caminho dentro da partilha (opcional)", + "sharePathPlaceholder": "por exemplo, /subpasta ou deixar vazio para a raiz", + "browseIcons": "Procurar ícones", + "pickIcon": "Escolher um ícone", + "pickIconDescription": "Procurar e selecionar um ícone na biblioteca de ícones de materiais", + "shareLinksUpdatedSuccess": "As ligações da barra lateral de partilha foram actualizadas com êxito!", + "shareHome": "Partilhar casa", + "linkIconPlaceholder": "Especificar opcionalmente um nome de ícone de material" }, "success": { "linkCopied": "Link copiado!" @@ -481,7 +437,12 @@ "allowReplacements": "Permitir substituições de ficheiros", "allowReplacementsDescription": "Qualquer pessoa pode substituir ficheiros existentes ao carregar ficheiros com o mesmo nome.", "allowCreate": "Permitir a criação e o carregamento de ficheiros e pastas", - "allowCreateDescription": "Qualquer pessoa pode criar e carregar novos ficheiros e pastas nesta partilha." + "allowCreateDescription": "Qualquer pessoa pode criar e carregar novos ficheiros e pastas nesta partilha.", + "customizeSidebarLinks": "Personalizar ligações da barra lateral", + "customizeSidebarLinksButton": "Personalizar ligações", + "shareInfo": "Partilhar código QR e informações", + "shareInfoDescription": "Esta ligação apresenta as informações da partilha, incluindo o título, a descrição, o banner e o código QR num pop-up.", + "downloadDescription": "Esta ligação permite descarregar todo o conteúdo da partilha como um ficheiro comprimido." }, "api": { "title": "Chaves da API", @@ -505,21 +466,28 @@ "expires": "Expirações", "actions": "Acções", "enabled": "Ativado", - "disabled": "Desativado" + "disabled": "Desativado", + "apiKeyDeleted": "Chave API eliminada!" }, "index": { - "status": "Estado", "assessment": "Avaliação", "lastScanned": "Última digitalização", "quickScan": "Segundos de leitura rápida", "fullScan": "Segundos de varrimento completo", "settingsHover": "Definições para o utilizador", - "logout": "Terminar sessão", "toggleClick": "Alternar clique único", "toggleDark": "Alternar o modo escuro", "toggleSticky": "Alternar o modo de aderência", - "used": "utilizado", - "noSources": "Não existem fontes disponíveis para este utilizador. Adicione uma fonte para este utilizador ou configure uma fonte com defaultEnabled: true" + "noSources": "Não existem fontes disponíveis para este utilizador. Adicione uma fonte para este utilizador ou configure uma fonte com defaultEnabled: true", + "unknown": "Desconhecido", + "simple": "Simples", + "normal": "Normal", + "complex": "Complexo", + "highlyComplex": "Altamente complexo", + "ready": "Pronto", + "indexing": "Indexação", + "unavailable": "Não disponível", + "error": "Erro" }, "otp": { "name": "Autenticação de dois factores", @@ -608,9 +576,7 @@ "themeAndLanguage": "Tema e linguagem", "previewFolder": "Mostrar miniaturas das pastas, se disponíveis", "previewFolderDescription": "Mostrar pré-visualizações em miniatura para pastas com o primeiro item filho com miniatura como capa.", - "disableFileExtensions": "Introduzir as extensões de ficheiros a desativar", - "defaultLandingPage": "Página de destino predefinida", - "defaultLandingPageDescription": "por exemplo. '/files/mysource/mysubpath' ou '/settings' - a página predefinida é /files que vai para a primeira vista de listagem de fontes" + "disableFileExtensions": "Introduzir as extensões de ficheiros a desativar" }, "general": { "name": "Nome", @@ -625,7 +591,96 @@ "exit": "Sair", "permanent": "Permanente", "hash": "Haxixe", - "of": "de" + "of": "de", + "source": "Fonte{suffix}", + "percentage": "{percentage}%", + "type": "Tipo{suffix}", + "size": "Tamanho{suffix}", + "body": "Corpo{suffix}", + "home": "Início{suffix}", + "clear": "Limpo{suffix}", + "help": "Ajuda{suffix}", + "login": "Iniciar sessão{suffix}", + "logout": "Terminar sessão{suffix}", + "preview": "Pré-visualização{suffix}", + "settings": "Definições{suffix}", + "sources": "Fontes{suffix}", + "links": "Ligações{suffix}", + "tool": "Ferramenta{suffix}", + "used": "utilizado{suffix}", + "status": "Estado{suffix}", + "analyze": "Analisar{suffix}", + "results": "Resultados{suffix}", + "users": "Utilizadores{suffix}", + "photos": "Fotos", + "audio": "Áudio{suffix}", + "videos": "Vídeos{suffix}", + "documents": "Documentos{suffix}", + "archives": "Arquivos{suffix}", + "images": "Imagens{suffix}", + "music": "Música{suffix}", + "pdf": "PDF{suffix}", + "search": "Pesquisar{suffix}", + "number": "Número{suffix}", + "types": "Tipos{suffix}", + "video": "Vídeo{suffix}", + "admin": "Administrador{suffix}", + "branding": "Marca{suffix}", + "language": "Língua{suffix}", + "documentation": "documentação{suffix}", + "examples": "Exemplos{suffix}", + "dark": "Escuro{suffix}", + "light": "Luz{suffix}", + "title": "Tema{suffix}", + "expires": "Expirações{suffix}", + "scope": "Âmbito de aplicação{suffix}", + "rules": "Regras{suffix}", + "downloads": "Transferências{suffix}", + "submit": "Iniciar sessão{suffix}", + "navigation": "Navegação{suffix}", + "metadata": "Metadados{suffix}", + "loading": "Carregamento{suffix}", + "add": "Adicionar{suffix}", + "cancel": "Cancelar{suffix}", + "verify": "Verificar{suffix}", + "close": "Fechar{suffix}", + "copy": "Cópia{suffix}", + "create": "Criar{suffix}", + "delete": "Eliminar{suffix}", + "download": "Descarregar{suffix}", + "file": "Ficheiro{suffix}", + "folder": "Pasta{suffix}", + "info": "Informações{suffix}", + "more": "Mais{suffix}", + "move": "Mover{suffix}", + "new": "Novo{suffix}", + "next": "Seguinte{suffix}", + "ok": "OK{suffix}", + "previous": "Anterior{suffix}", + "publish": "Publicar{suffix}", + "rename": "Mudar o nome{suffix}", + "replace": "Substituir{suffix}", + "save": "Guardar{suffix}", + "schedule": "Horário{suffix}", + "select": "Selecionar{suffix}", + "share": "Partilhar{suffix}", + "update": "Atualização{suffix}", + "upload": "Carregar{suffix}", + "openFile": "Abrir ficheiro{suffix}", + "continue": "Continuar{suffix}", + "edit": "Editar{suffix}", + "pause": "Pausa{suffix}", + "resume": "Currículo{suffix}", + "retry": "Repetir{suffix}", + "disable": "Desativar{suffix}", + "confirm": "Confirmar{suffix}", + "stay": "Ficar{suffix}", + "scopes": "Escopos{suffix}", + "commands": "Comandos{suffix}", + "uploading": "Carregamento{suffix}", + "paused": "Em pausa{suffix}", + "conflict": "Conflito{suffix}", + "change": "Alterar{suffix}" }, "access": { "rules": "Regras de acesso", @@ -642,18 +697,22 @@ "enterName": "Introduzir o nome do utilizador ou do grupo", "deleted": "Regra de acesso eliminada!", "added": "Regra de acesso adicionada!", - "name": "Nome", "accessManagement": "Gestão do acesso", "all": "Recusar tudo", "defaultBehaviorDescription": "Isto mostra o que acontece quando um utilizador tenta aceder a um caminho onde não existem regras de acesso específicas. \"Permitir\" significa que os utilizadores podem aceder por predefinição, \"Negar\" significa que os utilizadores são bloqueados por predefinição, a menos que sejam explicitamente autorizados.", - "defaultBehavior": "Ação por defeito{suffix}" + "defaultBehavior": "Ação por defeito{suffix}", + "deletedCascade": "Regras de acesso eliminadas do caminho e de todos os subcaminhos!", + "cascadeDelete": "Eliminação recursiva", + "cascadeDeleteDescription": "Quando activada, a eliminação de uma regra de acesso também a removerá de todos os subdirectórios. Isto permite-lhe remover completamente um utilizador ou grupo de toda a árvore de diretórios." }, "editor": { "uninitialized": "Falha ao inicializar o editor. Por favor, recarregue.", "saveFailed": "Falha ao guardar o ficheiro. Por favor, tente novamente.", "saveAborted": "Gravação abortada. O nome do ficheiro não corresponde ao ficheiro ativo.", "saveAbortedMessage": "Operação de gravação abortada. O ficheiro ativo da aplicação ({activeFile}) não corresponde ao ficheiro que está a tentar guardar ({tryingToSave}).", - "syncFailed": "não conseguiu sincronizar o estado com a rota para \"{filename}\" após 5 tentativas. Abortar a configuração do editor para evitar a corrupção de dados." + "syncFailed": "não conseguiu sincronizar o estado com a rota para \"{filename}\" após 5 tentativas. Abortar a configuração do editor para evitar a corrupção de dados.", + "fileSaved": "Ficheiro guardado!", + "errorSavingFile": "Erro ao guardar o ficheiro: {error}" }, "player": { "LoopEnabled": "Repetição ativada", @@ -666,5 +725,93 @@ "changePlaybackMode": "Alterar modo de reprodução", "changePlaybackModeHint": "Altere o modo de reprodução para ver mais arquivos", "emptyQueue": "A fila está vazia" + }, + "fileSizeAnalyzer": { + "title": "Analisador de tamanho de ficheiro", + "searchLocation": "Localização da pesquisa", + "selectPath": "Selecionar o local de pesquisa", + "largerThan": "Maior do que (MB)", + "includeFolders": "Incluir pastas", + "includeFoldersDescription": "Incluir diretórios na análise", + "totalFiles": "Total de ficheiros{suffix}", + "totalSize": "Tamanho total{suffix}", + "emptyState": "Introduza os critérios de pesquisa e clique em Analisar para visualizar os tamanhos dos ficheiros", + "completeResults": "Resultados completos apresentados!", + "incompleteResults": "Os resultados podem ser incompletos", + "incompleteResultsDetails": "Mostrar resultados máximos (100). Tente restringir a sua pesquisa para obter mais resultados abaixo de 100.", + "relativePercentage": "Percentagem relativa{suffix}", + "percentageOfResults": "{percentage}% de resultados" + }, + "fileTypes": { + "video": "Vídeo", + "image": "Imagem", + "audio": "Áudio", + "archive": "Arquivo", + "document": "Documento", + "binary": "Binário", + "directory": "Diretório", + "other": "Outros" + }, + "tools": { + "description": "Utilitários e ferramentas de análise para os seus ficheiros", + "sizeAnalyzer": { + "name": "Analisador de tamanho de ficheiro", + "description": "Visualize ficheiros e diretórios grandes com um mapa em árvore interativo" + }, + "title": "Ferramentas", + "duplicateFinder": { + "name": "Localizador de ficheiros duplicados", + "description": "Localizar e gerir ficheiros duplicados para recuperar espaço de armazenamento" + }, + "materialIconPicker": { + "name": "Selecionador de ícones de materiais", + "description": "Navegue e procure ícones de materiais com pré-visualização em direto", + "searchPlaceholder": "Procurar ícones...", + "popularIcons": "Mostrar {count} ícones populares", + "showingResults": "Mostrando {count} resultados", + "noResults": "Não foram encontrados ícones", + "tryDifferentSearch": "Experimente um termo de pesquisa diferente", + "copiedToClipboard": "Copiou '{name}' para a área de transferência!", + "copyFailed": "Falha ao copiar para a área de transferência", + "custom": "Personalizado", + "useCustomIcon": "Utilizar um ícone personalizado: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Navegar na biblioteca completa de ícones" + }, + "toolNotFound": "Ferramenta não encontrada", + "backToTools": "Voltar a Ferramentas" + }, + "messages": { + "pathNotFound": "O caminho não existe no sistema de ficheiros", + "pathNotFoundMessage": "O caminho para isto já não existe no sistema de ficheiros. Pode ter sido movido ou eliminado.", + "reassignPath": "Reatribuir trajetória", + "pathReassigned": "Caminho atualizado com sucesso!", + "pathReassignFailed": "Falha ao atualizar o caminho. Por favor, tente novamente." + }, + "duplicateFinder": { + "title": "Localizador de ficheiros duplicados", + "minSize": "Tamanho mínimo (MB){suffix}", + "minSizeHint": "Analisar apenas ficheiros maiores do que este tamanho (em megabytes)", + "useChecksums": "Comparar o conteúdo dos ficheiros", + "useChecksumsDescription": "Incluir também o conteúdo do ficheiro na comparação. Sem isto, os ficheiros são comparados por semelhança de tamanho e nome de ficheiro.", + "findDuplicates": "Procurar duplicados", + "groupsFound": "Grupos duplicados encontrados{suffix}", + "totalWastedSpace": "Total de espaço desperdiçado{suffix}", + "wasted": "Desperdiçado{suffix}", + "emptyState": "Introduza os critérios de pesquisa e clique em Encontrar Duplicados para identificar ficheiros duplicados" + }, + "notifications": { + "title": "Notificações", + "description": "Ver todas as notificações da sua sessão atual", + "empty": "Ainda não há notificações", + "clearAll": "Limpar tudo", + "clearConfirm": "Tem a certeza de que pretende limpar todo o histórico de notificações?", + "total": "{count} notificações" + }, + "events": { + "serverShutdown": "O servidor foi desligado.", + "authenticationFailed": "A autenticação falhou. Actualize a página para iniciar sessão novamente.", + "reconnected": "Ligado novamente ao servidor.", + "connectionLost": "A ligação ao servidor perdeu-se. Estou a tentar restabelecer a ligação..." } } diff --git a/frontend/src/i18n/ro.json b/frontend/src/i18n/ro.json index ef16e9d283..43576a1fb7 100644 --- a/frontend/src/i18n/ro.json +++ b/frontend/src/i18n/ro.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Anulează", - "close": "Închide", - "copy": "Copiază", "copyFile": "Copiază fișier", "copyToClipboard": "Copiază în clipboard", - "create": "Crează", - "delete": "Șterge", - "download": "Descarcă", - "info": "Info", - "more": "Mai mult", - "move": "Mută", "moveFile": "Mută fișier", - "new": "Nou", - "next": "Următor", - "ok": "OK", "permalink": "Obține legătura permanentă", - "previous": "Precedent", - "publish": "Puplică", - "rename": "Redenumește", - "replace": "Înlocuiește", "reportIssue": "Raportează problemă", - "save": "Salvează", - "schedule": "Programare", - "search": "Caută", - "select": "Selectează", "selectMultiple": "Selecție multiplă", - "share": "Distribuie", "shell": "Comută linia de comandă", "switchView": "Schimba vizualizarea", "toggleSidebar": "Comută bara laterală", - "update": "Actualizează", - "upload": "Încarcă", "copyDownloadLinkToClipboard": "Copiați link-ul de descărcare în clipboard", - "file": "Fișier", - "folder": "Dosar", - "submit": "Trimite", - "openFile": "Deschideți fișierul", - "continue": "Continuați", - "edit": "Editare", "generateNewOtp": "Resetați și generați un nou cod cu doi factori", - "verify": "Verificare", - "pause": "Pauză", - "resume": "CV", - "retry": "Reîncercare", "pauseAll": "Pauză toate", "resumeAll": "CV toate", "clearCompleted": "Golire finalizată", @@ -62,10 +29,8 @@ "discardAndExit": "Renunțare și ieșire", "saveAndExit": "Salvare și ieșire", "keepEditing": "Continuă editarea", - "stayOnPrompt": "Ședere", "closeAnyway": "Închide oricum", - "disable": "Dezactivare", - "confirm": "Confirmați" + "goToItem": "Du-te la articol" }, "download": { "downloadFile": "Descarcă fișier", @@ -77,31 +42,31 @@ "internal": "Ceva nu a funcționat corect.", "notFound": "Aceasta locație nu poate fi accesată.", "connection": "Serverul nu poate fi accesat.", - "shareNotFound": "Acțiune invalidă sau expirată." + "shareNotFound": "Acțiune invalidă sau expirată.", + "failedToConnectToServer": "Nu a reușit să se conecteze la server, mai funcționează?" }, "files": { - "body": "Corp", - "clear": "Curăță", "closePreview": "Închide previzualizarea", - "home": "Acasă", "lastModified": "Ultima modificare", - "loading": "Se încarcă...", "lonely": "Nu este nimic aici...", - "metadata": "Meta informații", "multipleSelectionEnabled": "Selecție multiplă activată", - "name": "Nume", - "size": "Dimensiune", "sortByLastModified": "Ordonează dup ultima modificare", "sortByName": "Ordonează după nume", "sortBySize": "Ordonează după dimensiune", "noPreview": "Previzualizarea nu este disponibilă pentru acest fișier.", - "noDownloadAccess": "Descărcarea nu este disponibilă." + "noDownloadAccess": "Descărcarea nu este disponibilă.", + "itemSelected": "element selectat", + "itemsSelected": "elemente selectate", + "myFiles": "Fișierele mele{suffix}", + "newFile": "Fișier nou{suffix}", + "newFolder": "Dosar nou{suffix}", + "duration": "Durată{suffix}", + "sortByDuration": "Sortare după durată" }, "help": { "functionKeys": "Taste Funcție", "mouseActions": "Acțiuni Mouse", "fileOperations": "Operații Fișiere", - "navigation": "Navigare", "click": "alege fișier sau director", "ctrl": { "click": "alege multiple fișiere sau directoare", @@ -115,11 +80,11 @@ "del": "șterge elementele selectate", "esc": "elibereaza selecția și/sau închide fereastra", "f2": "redenumește fișierul", - "help": "Ajutor", "f1": "arată ajutor prompt", "description": "Puteți vizualiza mai jos opțiunile de navigație de bază. Pentru informații suplimentare, vă rugăm să vizitați", "slash": "activați căutarea", - "wiki": "FileBrowser Quantum Documente oficiale" + "wiki": "FileBrowser Quantum Documente oficiale", + "marqueeSelect": "selectați mai multe fișiere sau directoare prin glisarea pe spațiul gol" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Am deja cont", "passwordConfirm": "Confirmă parola", "passwordsDontMatch": "Parolele nu se potrivesc", - "submit": "Autentificare", "usernameTaken": "Utilizatorul există", "wrongCredentials": "Informații greșite", "or": "SAU", @@ -208,7 +172,6 @@ "viewMode": "Mod de vizualizare", "renameMessage": "Introduceți un nume nou:", "renameMessageInvalid": "Un fișier nu poate conține \"/\" sau \"\\\"", - "source": "Sursa{suffix}", "deleteMessageMultiple": "Sunteți sigur că doriți să eliminați fișierul (fișierele) {count}?", "deleteMessageShare": "Sunteți sigur că doriți să ștergeți această partajare: {path} ?", "numberDirs": "Număr de directoare{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Bine ați venit la FileBrowser Quantum!", "halloweenTitle": "Halloween fericit!", "halloweenBody": "Tema Halloween a fost aplicată. Puteți să o dezactivați dacă nu vă place sau să o dezactivați permanent în setările profilului selectând orice altă temă.", - "firstLoadBody": "O nouă bază de date a fost creată la pornire. Dacă acest lucru nu este ceea ce vă așteptați, vă rugăm să verificați fișierul de configurare pentru calea `server.database` și asigurați-vă că există. Pe docker, calea bazei de date poate fi `./data/database.db` sau `./database.db`." + "firstLoadBody": "O nouă bază de date a fost creată la pornire. Dacă acest lucru nu este ceea ce vă așteptați, vă rugăm să verificați fișierul de configurare pentru calea `server.database` și asigurați-vă că există. Pe docker, calea bazei de date poate fi `./data/database.db` sau `./database.db`.", + "selectPath": "Selectați calea", + "renameSuccess": "Element redenumit cu succes!", + "newFileSuccess": "Fișier creat cu succes!", + "newDirSuccess": "Director creat cu succes!", + "copyToClipboardFailed": "Imposibilitatea de a copia în clipboard" }, "search": { - "images": "Imagini", - "music": "Muzică", - "pdf": "PDF", - "search": "Caută...", - "types": "Tipuri", - "video": "Video", - "path": "Calea:", "smallerThan": "Mai mic decât:", "largerThan": "Mai mare decât:", "helpText1": "Căutarea are loc pe fiecare caracter tastat (minim 3 caractere pentru termenii de căutare).", @@ -267,18 +228,11 @@ "onlyFolders": "Numai foldere", "onlyFiles": "Numai fișiere", "showOptions": "Afișare opțiuni", - "photos": "Fotografii", - "audio": "Audio", - "videos": "Video", - "documents": "Documente", - "archives": "Arhive", - "number": "Număr", "searchContext": "Context de căutare: {context}", "notEnoughCharacters": "Nu sunt suficiente caractere pentru căutare (min {minSearchLength})", "typeToSearch": "Începeți să tastați {minSearchLength} sau mai multe caractere pentru a începe căutarea." }, "settings": { - "admin": "Admin", "administrator": "Administrator", "allowCommands": "Execută comenzi", "allowEdit": "Modifică, redenumește și șterge fișiere sau directoare", @@ -286,7 +240,6 @@ "allowPublish": "Publică noi pagini și postări", "allowSignup": "Permite utilizatorilor să se înregistreze", "avoidChanges": "(lasă gol pentru a nu schimba)", - "branding": "Branding", "brandingDirectoryPath": "Calea către directorul de branding", "changePassword": "Schimbă parola", "commandRunner": "Rulează comenzi", @@ -296,8 +249,6 @@ "defaultUserDescription": "Acestea sunt setările implicite pentru noii utilizatori.", "disableExternalLinks": "Dezactivează linkurile externe (exceptând documentația)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "documentație", - "examples": "Exemple", "executeOnShell": "Execută in linia de comandă", "executeOnShellDescription": "Implicit, File Browser execută comenzile prin apelare directă a binarelor. Daca vrei sa le rulezi într-un shell (cum ar fi Bash sau PowerShell), le poți defini aici cu argumentele necesare. Daca este setata, comanda va fi adăugată ca argument. Se aplică pentru comenzi si hookuri.", "globalRules": "Acesta este un set global de reguli. Se aplică tuturor utilizatorilor. Poți defini reguli specifice din setările fiecărui utilizator pentru a le suprascrie pe acestea.", @@ -305,14 +256,11 @@ "insertPath": "Redactează calea", "insertRegex": "Redactează expresia regulată", "instanceName": "Numele instanței", - "language": "Limba", "lockPassword": "Împiedică utilizatorul să-și schimbe parola", "newPassword": "Noua ta parolă", "newPasswordConfirm": "Confirmă noua parolă", "newUser": "Utilizator nou", - "password": "Parola", "passwordUpdated": "Parola actualizată!", - "path": "Calea", "permissions": { "modify": "Modifică fișiere", "share": "Distribuie fișiere", @@ -328,27 +276,16 @@ "profileSettings": "Setări profil", "ruleExample1": "împiedică accesul la fisiere cu punct in față (.), cum ar fi .git, .gitignore în orice director.\n", "ruleExample2": "împiedică accesul la fișierul Caddyfile din rădăcina domeniului.", - "rules": "Reguli", "rulesHelp": "Aici poți defini un set de reguli pentru acest utilizator. Fișierele blocate nu vor apărea in lista și nici nu vor putea fi accesate de utilizator. Expresiile regulate si căile relative la domeniul utilizatorului sunt permise.\n", - "scope": "Domeniu", "settingsUpdated": "Setări actualizate!", "shareManagement": "Gestionarea acțiunilor", "singleClick": "Utilizați un singur clic pentru a deschide fișiere și directoare", - "themes": { - "dark": "Întuneric", - "light": "Lumină", - "title": "Tema" - }, - "user": "Utilizator", - "userCommands": "Comenzi", "userCommandsHelp": "O lista de comenzi disponibile acestui utilizator separate de spații. Exemplu:\n", "userCreated": "Utilizator creat!", "userDefaults": "Setări implicite", "userDeleted": "Utilizator șters!", "userManagement": "Gestionare utilizatori", "userUpdated": "Utilizator actualizat!", - "username": "Utilizator", - "users": "Utilizatori", "modifyOtherUser": "Modificați utilizatorul:", "modifyCurrentUser": "Modificarea utilizatorului curent", "themeColor": "Culoare temă", @@ -373,9 +310,7 @@ "loginMethod": "Metoda de conectare", "shareSettings": "Setări de partajare", "adminOptions": "Opțiuni utilizator administrator", - "shareDuration": "Expiră", "searchOptions": "Opțiuni de căutare", - "downloads": "Descărcări", "systemAdmin": "Sistem și administrare", "configViewer": "Vizualizator de configurare", "configViewerShowFull": "Afișați configurația completă", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "de exemplu \"/subfolder\" - gol pentru implicit", - "userScopes": "Scopuri" + "newUserHintSubFolder": "de exemplu \"/subfolder\" - gol pentru implicit" }, "sidebar": { - "help": "Ajutor", - "hugoNew": "Hugo nou", - "login": "Autentificare", - "logout": "Logout", - "myFiles": "Fișierele mele", - "newFile": "Fișier nou", - "newFolder": "Director nou", - "preview": "Previzualizare", - "settings": "Setări", - "signup": "Înregistrare", "siteSettings": "Setări site", - "sources": "Surse", "updateIsAvailable": "O actualizare este disponibilă!", - "fileActions": "Acțiuni de fișier" + "fileActions": "Acțiuni de fișier", + "customizeLinks": "Personalizarea linkurilor din bara laterală", + "customizeLinksDescription": "Personalizați legăturile afișate în bara dvs. laterală. Glisați și fixați pentru a le reordona.", + "currentLinks": "Legături actuale", + "addNewLink": "Adăugați o legătură nouă", + "linkType": "Tip de legătură", + "selectLinkType": "Selectați un tip de legătură", + "customLink": "Legătură personalizată", + "selectSource": "Selectați sursa", + "chooseSource": "Alegeți o sursă", + "selectTool": "Selectați instrumentul", + "chooseTool": "Alegeți un instrument", + "linkName": "Numele legăturii", + "linkNamePlaceholder": "Introduceți numele linkului", + "linkUrl": "Link URL", + "linkUrlPlaceholder": "Introduceți adresa URL sau calea (de exemplu, /files/path sau https://example.com)", + "linkIcon": "Pictograma de legătură", + "linksUpdatedSuccess": "Legăturile din bara laterală au fost actualizate cu succes!", + "linksUpdateFailed": "A eșuat actualizarea linkurilor din bara laterală", + "sourceNotAccessible": "Această sursă nu vă mai este accesibilă", + "noLinksYet": "Nicio legătură configurată încă. Adăugați primul dvs. link mai jos.", + "customizeShareLinks": "Personalizați linkurile din bara laterală de partajare", + "customizeShareLinksDescription": "Personalizați linkurile afișate în bara laterală pentru această partajare. Glisați și fixați pentru a le reordona.", + "editLink": "Editare link", + "selectShare": "Selectați Partajare", + "chooseShare": "Alegeți o acțiune", + "selectSharePath": "Calea în cadrul partajului (opțional)", + "sharePathPlaceholder": "de exemplu, /subfolder sau lăsați gol pentru rădăcină", + "browseIcons": "Răsfoire icoane", + "pickIcon": "Alegeți o pictogramă", + "pickIconDescription": "Căutați și selectați o pictogramă din biblioteca Material Icons", + "shareLinksUpdatedSuccess": "Link-urile din bara laterală de partajare au fost actualizate cu succes!", + "shareHome": "Share Home", + "linkIconPlaceholder": "Opțional, specificați un nume de pictogramă de material" }, "success": { "linkCopied": "Legătură copiată!" @@ -481,7 +437,12 @@ "allowReplacements": "Permiteți înlocuirea fișierelor", "allowReplacementsDescription": "Oricine poate înlocui fișierele existente atunci când încarcă fișiere cu același nume.", "allowCreate": "Permiteți crearea și încărcarea de fișiere și foldere", - "allowCreateDescription": "Oricine poate crea și încărca fișiere și foldere noi în această partajare." + "allowCreateDescription": "Oricine poate crea și încărca fișiere și foldere noi în această partajare.", + "customizeSidebarLinks": "Personalizarea linkurilor din bara laterală", + "customizeSidebarLinksButton": "Personalizați linkurile", + "shareInfo": "Partajați codul QR și informații", + "shareInfoDescription": "Acest link afișează informațiile despre acțiune, inclusiv titlul, descrierea, bannerul și codul QR într-o fereastră pop-up.", + "downloadDescription": "Acest link permite descărcarea întregului conținut partajat ca fișier comprimat." }, "api": { "title": "Chei API:", @@ -505,21 +466,28 @@ "expires": "Expiră", "actions": "Acțiuni", "enabled": "Activat", - "disabled": "Dezactivat" + "disabled": "Dezactivat", + "apiKeyDeleted": "Cheie API ștearsă!" }, "index": { - "status": "Statut", "assessment": "Evaluare", "lastScanned": "Ultima scanare", "quickScan": "Scanare rapidă secunde", "fullScan": "Scanare completă secunde", "settingsHover": "Setări pentru utilizator", - "logout": "Ieșire", "toggleClick": "Comutare clic unic", "toggleDark": "Comutarea modului întunecat", "toggleSticky": "Schimbarea modului lipicios", - "used": "utilizate", - "noSources": "Nu există surse disponibile pentru acest utilizator. Adăugați o sursă pentru acest utilizator sau configurați o sursă cu defaultEnabled: true" + "noSources": "Nu există surse disponibile pentru acest utilizator. Adăugați o sursă pentru acest utilizator sau configurați o sursă cu defaultEnabled: true", + "unknown": "Necunoscut", + "simple": "Simplu", + "normal": "Normal", + "complex": "Complex", + "highlyComplex": "Foarte complex", + "ready": "Gata", + "indexing": "Indexare", + "unavailable": "Nu este disponibil", + "error": "Eroare" }, "otp": { "name": "Autentificare cu doi factori", @@ -545,7 +513,96 @@ "exit": "Ieșire", "permanent": "Permanent", "hash": "Hash", - "of": "de" + "of": "de", + "source": "Sursa{suffix}", + "percentage": "{percentage}%", + "type": "Tip{suffix}", + "size": "Mărime{suffix}", + "body": "Corp{suffix}", + "home": "Acasă{suffix}", + "clear": "Clar{suffix}", + "help": "Ajutor{suffix}", + "login": "Autentificare{suffix}", + "logout": "Ieșire{suffix}", + "preview": "Previzualizare{suffix}", + "settings": "Setări{suffix}", + "sources": "Surse{suffix}", + "links": "Legături{suffix}", + "tool": "Instrument{suffix}", + "used": "utilizate{suffix}", + "status": "Statut{suffix}", + "analyze": "Analizați{suffix}", + "results": "Rezultate{suffix}", + "users": "Utilizatori{suffix}", + "photos": "Fotografii", + "audio": "Audio{suffix}", + "videos": "Video{suffix}", + "documents": "Documente{suffix}", + "archives": "Arhive{suffix}", + "images": "Imagini{suffix}", + "music": "Muzică{suffix}", + "pdf": "PDF{suffix}", + "search": "Căutare{suffix}", + "number": "Număr{suffix}", + "types": "Tipuri{suffix}", + "video": "Video{suffix}", + "admin": "Administrator{suffix}", + "branding": "Branding{suffix}", + "language": "Limba{suffix}", + "documentation": "documentație{suffix}", + "examples": "Exemple{suffix}", + "dark": "Întuneric{suffix}", + "light": "Lumină{suffix}", + "title": "Tema{suffix}", + "expires": "Expiră{suffix}", + "scope": "Domeniul de aplicare{suffix}", + "rules": "Reguli{suffix}", + "downloads": "Descărcări{suffix}", + "submit": "Autentificare{suffix}", + "navigation": "Navigație{suffix}", + "metadata": "Metadate{suffix}", + "loading": "Încărcare{suffix}", + "add": "Adaugă{suffix}", + "cancel": "Anulează{suffix}", + "verify": "Verificare{suffix}", + "close": "Închidere{suffix}", + "copy": "Copiați{suffix}", + "create": "Creați{suffix}", + "delete": "Ștergeți{suffix}", + "download": "Descărcare{suffix}", + "file": "Fișier{suffix}", + "folder": "Dosar{suffix}", + "info": "Info{suffix}", + "more": "Mai mult{suffix}", + "move": "Mutare{suffix}", + "new": "Nou{suffix}", + "next": "Următorul{suffix}", + "ok": "OK{suffix}", + "previous": "Articolul precedent{suffix}", + "publish": "Publicare{suffix}", + "rename": "Redenumire{suffix}", + "replace": "Înlocuiți{suffix}", + "save": "Salvați{suffix}", + "schedule": "Program{suffix}", + "select": "Selectați{suffix}", + "share": "Share{suffix}", + "update": "Actualizare{suffix}", + "upload": "Încărcare{suffix}", + "openFile": "Deschideți fișierul{suffix}", + "continue": "Continuați{suffix}", + "edit": "Editare{suffix}", + "pause": "Pauză{suffix}", + "resume": "CV{suffix}", + "retry": "Reîncercare{suffix}", + "disable": "Dezactivare{suffix}", + "confirm": "Confirmați{suffix}", + "stay": "Ședere{suffix}", + "scopes": "Scopuri{suffix}", + "commands": "Comenzi{suffix}", + "uploading": "Încărcare{suffix}", + "paused": "Pauză{suffix}", + "conflict": "Conflict{suffix}", + "change": "Schimbare{suffix}" }, "access": { "rules": "Reguli de acces", @@ -560,13 +617,15 @@ "enterName": "Introduceți numele utilizatorului sau al grupului", "deleted": "Regula de acces ștearsă!", "added": "Regula de acces adăugată!", - "name": "Nume și prenume", "accessManagement": "Gestionarea accesului", "totalDenied": "Refuzat", "totalAllowed": "Permise", "all": "Refuzați toate", "defaultBehaviorDescription": "Aceasta arată ce se întâmplă atunci când un utilizator încearcă să acceseze o cale unde nu există reguli specifice de acces. \"Allow\" înseamnă că utilizatorii pot accesa în mod implicit, \"Deny\" înseamnă că utilizatorii sunt blocați în mod implicit dacă nu li se permite în mod explicit.", - "defaultBehavior": "Acțiune implicită{suffix}" + "defaultBehavior": "Acțiune implicită{suffix}", + "deletedCascade": "Reguli de acces șterse din traseu și din toate subtratamentele!", + "cascadeDelete": "Ștergere recursivă", + "cascadeDeleteDescription": "Atunci când este activată, ștergerea unei reguli de acces o va elimina și din toate subdirectoarele. Acest lucru vă permite să eliminați complet un utilizator sau un grup din întregul arbore de directoare." }, "fileLoading": { "title": "Încărcări și descărcări", @@ -644,16 +703,16 @@ "themeAndLanguage": "Temă și limbaj", "previewFolder": "Afișați miniaturi pentru foldere, dacă sunt disponibile", "previewFolderDescription": "Afișează previzualizări ale miniaturilor pentru folderele cu primul element copil cu miniatură ca copertă.", - "disableFileExtensions": "Introduceți extensiile de fișier pe care doriți să le dezactivați", - "defaultLandingPage": "Pagina de destinație implicită", - "defaultLandingPageDescription": "de ex. \"/files/mysource/mysubpath\" sau \"/settings\" - pagina implicită este /files care duce la prima vizualizare a listei de surse" + "disableFileExtensions": "Introduceți extensiile de fișier pe care doriți să le dezactivați" }, "editor": { "uninitialized": "Nu s-a reușit inițializarea editorului. Vă rugăm să reîncărcați.", "saveFailed": "Nu ați reușit să salvați fișierul. Vă rugăm să încercați din nou.", "saveAborted": "Salvare întreruptă. Numele fișierului nu corespunde fișierului activ.", "saveAbortedMessage": "Operațiunea de salvare a fost întreruptă. Fișierul activ al aplicației ({activeFile}) nu corespunde cu fișierul pe care încercați să îl salvați ({tryingToSave}).", - "syncFailed": "nu a reușit să sincronizeze starea cu ruta pentru \"{filename}\" după 5 încercări. Întreruperea configurării editorului pentru a preveni coruperea datelor." + "syncFailed": "nu a reușit să sincronizeze starea cu ruta pentru \"{filename}\" după 5 încercări. Întreruperea configurării editorului pentru a preveni coruperea datelor.", + "fileSaved": "Fișier salvat!", + "errorSavingFile": "Eroare la salvarea fișierului: {error}" }, "player": { "LoopEnabled": "Buclă activată", @@ -666,5 +725,93 @@ "changePlaybackMode": "Schimbă modul de redare", "changePlaybackModeHint": "Schimbă modul de redare pentru a vedea mai multe fișiere", "emptyQueue": "Coada este goală" + }, + "fileSizeAnalyzer": { + "title": "Analizor dimensiune fișier", + "searchLocation": "Locație de căutare", + "selectPath": "Selectați locația de căutare", + "largerThan": "Mai mare decât (MB)", + "includeFolders": "Includeți foldere", + "includeFoldersDescription": "Includerea directoarelor în analiză", + "totalFiles": "Total fișiere{suffix}", + "totalSize": "Dimensiune totală{suffix}", + "emptyState": "Introduceți criteriile de căutare și faceți clic pe Analiză pentru a vizualiza dimensiunile fișierelor", + "completeResults": "Rezultatele complete sunt afișate!", + "incompleteResults": "Rezultatele pot fi incomplete", + "incompleteResultsDetails": "Afișarea rezultatelor maxime (100). Încercați să restrângeți căutarea pentru a obține mai multe rezultate sub 100.", + "relativePercentage": "Procentaj relativ{suffix}", + "percentageOfResults": "{percentage}% din rezultate" + }, + "fileTypes": { + "video": "Video", + "image": "Imagine", + "audio": "Audio", + "archive": "Arhiva", + "document": "Document", + "binary": "Binare", + "directory": "Director", + "other": "Altele" + }, + "tools": { + "description": "Utilități și instrumente de analiză pentru fișierele dvs.", + "sizeAnalyzer": { + "name": "Analizor dimensiune fișier", + "description": "Vizualizați fișiere și directoare mari cu o hartă interactivă" + }, + "title": "Instrumente", + "duplicateFinder": { + "name": "Duplicate fișier Finder", + "description": "Găsiți și gestionați fișierele duplicate pentru a recupera spațiul de stocare" + }, + "materialIconPicker": { + "name": "Picker de pictograme de materiale", + "description": "Răsfoiți și căutați Material Icons cu previzualizare live", + "searchPlaceholder": "Căutați pictograme...", + "popularIcons": "Afișarea {count} pictograme populare", + "showingResults": "Afișarea rezultatelor {count} ", + "noResults": "Nu s-au găsit pictograme", + "tryDifferentSearch": "Încercați un alt termen de căutare", + "copiedToClipboard": "Copiat '{name}' în clipboard!", + "copyFailed": "A eșuat copierea în clipboard", + "custom": "Personalizat", + "useCustomIcon": "Utilizați pictograma personalizată: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Răsfoiți biblioteca completă de pictograme" + }, + "toolNotFound": "Instrumentul nu a fost găsit", + "backToTools": "Înapoi la Instrumente" + }, + "messages": { + "pathNotFound": "Calea nu există pe sistemul de fișiere", + "pathNotFoundMessage": "Calea pentru acest lucru nu mai există pe sistemul de fișiere. Este posibil să fi fost mutat sau șters.", + "reassignPath": "Reatribuiți calea", + "pathReassigned": "Calea a fost actualizată cu succes!", + "pathReassignFailed": "A eșuat actualizarea căii. Vă rugăm să încercați din nou." + }, + "duplicateFinder": { + "title": "Duplicate fișier Finder", + "minSize": "Dimensiune minimă (MB){suffix}", + "minSizeHint": "Analizați numai fișiere mai mari decât această dimensiune (în megabytes)", + "useChecksums": "Comparați conținutul fișierelor", + "useChecksumsDescription": "Includeți și conținutul fișierelor în comparație. Fără aceasta, fișierele sunt comparate în funcție de dimensiunea și similaritatea numelui de fișier.", + "findDuplicates": "Găsiți duplicate", + "groupsFound": "Grupuri duplicate găsite{suffix}", + "totalWastedSpace": "Spațiu total irosit{suffix}", + "wasted": "irosit{suffix}", + "emptyState": "Introduceți criteriile de căutare și faceți clic pe Find Duplicates pentru a identifica fișierele duplicate" + }, + "notifications": { + "title": "Notificări", + "description": "Vizualizați toate notificările din sesiunea curentă", + "empty": "Nu există încă notificări", + "clearAll": "Ștergeți tot", + "clearConfirm": "Sunteți sigur că doriți să ștergeți tot istoricul notificărilor?", + "total": "{count} notificări" + }, + "events": { + "serverShutdown": "Serverul a fost închis.", + "authenticationFailed": "Autentificarea a eșuat. Vă rugăm să reîmprospătați pagina pentru a vă conecta din nou.", + "reconnected": "Reconectat la server.", + "connectionLost": "Conexiunea la server a fost pierdută. Încercați să vă reconectați..." } } diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.json index 85592e6feb..77f8ac8d5a 100644 --- a/frontend/src/i18n/ru.json +++ b/frontend/src/i18n/ru.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Отмена", - "close": "Закрыть", - "copy": "Копировать", "copyFile": "Скопировать файл", "copyToClipboard": "Скопировать в буфер", - "create": "Создать", - "delete": "Удалить", - "download": "Скачать", - "file": "Файл", - "folder": "Папка", - "info": "Инфо", - "more": "Еще", - "move": "Переместить", "moveFile": "Переместить файл", - "new": "Новый", - "next": "Вперед", - "ok": "OK", "permalink": "Получить постоянную ссылку", - "previous": "Назад", - "publish": "Опубликовать", - "rename": "Переименовать", - "replace": "Перезаписать", "reportIssue": "Сообщить о проблеме", - "save": "Сохранить", - "schedule": "Планировка", - "search": "Поиск", - "select": "Выбрать", "selectMultiple": "Мультивыбор", - "share": "Поделиться", "shell": "Командная строка", - "submit": "Отправить", "switchView": "Вид", "toggleSidebar": "Боковая панель", - "update": "Обновить", - "upload": "Загрузить", - "openFile": "Открыть файл", "copyDownloadLinkToClipboard": "Скопировать ссылку для скачивания в буфер обмена", - "continue": "Продолжить", - "edit": "Редактировать", "generateNewOtp": "Сброс и генерация нового двухфакторного кода", - "verify": "Проверить", - "pause": "Пауза", - "resume": "Возобновить", - "retry": "Повторная попытка", "pauseAll": "Приостановить все", "resumeAll": "Возобновить все", "clearCompleted": "Очистить завершенные", @@ -62,10 +29,8 @@ "discardAndExit": "Отменить и выйти", "saveAndExit": "Сохранить и выйти", "keepEditing": "Продолжить редактирование", - "stayOnPrompt": "Остаться", "closeAnyway": "Закрыть в любом случае", - "disable": "Отключить", - "confirm": "Подтвердите" + "goToItem": "Перейти к пункту" }, "download": { "downloadFile": "Скачать файл", @@ -77,31 +42,31 @@ "internal": "Что-то пошло не так.", "notFound": "Неправильная ссылка.", "connection": "Нет подключения к серверу.", - "shareNotFound": "Недействительный или истекший ресурс." + "shareNotFound": "Недействительный или истекший ресурс.", + "failedToConnectToServer": "Не удалось подключиться к серверу, он все еще работает?" }, "files": { - "body": "Тело", - "clear": "Очистить", "closePreview": "Закрыть", - "home": "Главная", "lastModified": "Последнее изменение", - "loading": "Загрузка...", "lonely": "Здесь пусто...", - "metadata": "Метаданные", "multipleSelectionEnabled": "Мультивыбор включен", - "name": "Имя", - "size": "Размер", "sortByLastModified": "Сортировка по дате изменения", "sortByName": "Сортировка по имени", "sortBySize": "Сортировка по размеру", "noPreview": "Предварительный просмотр для этого файла недоступен.", - "noDownloadAccess": "Загрузка недоступна." + "noDownloadAccess": "Загрузка недоступна.", + "itemSelected": "элемент выбран", + "itemsSelected": "элементы выбраны", + "myFiles": "Мои файлы{suffix}", + "newFile": "Новый файл{suffix}", + "newFolder": "Новая папка{suffix}", + "duration": "Продолжительность{suffix}", + "sortByDuration": "Сортировать по продолжительности" }, "help": { "functionKeys": "Функциональные Клавиши", "mouseActions": "Действия Мыши", "fileOperations": "Операции с Файлами", - "navigation": "Навигация", "click": "выбрать файл или папку", "ctrl": { "click": "выбрать несколько файлов или папок", @@ -115,11 +80,11 @@ "del": "удалить выбранные элементы", "esc": "очистить выделение и/или закрыть окно", "f2": "переименовать файл", - "help": "Помощь", "f1": "показать подсказку", "description": "Ниже представлены основные варианты навигации. Для получения дополнительной информации, пожалуйста, посетите", "slash": "активировать поиск", - "wiki": "Официальные документы FileBrowser Quantum" + "wiki": "Официальные документы FileBrowser Quantum", + "marqueeSelect": "выбор нескольких файлов или каталогов путем перетаскивания на свободное место" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Уже есть аккаунт", "passwordConfirm": "Подтверждение пароля", "passwordsDontMatch": "Пароли не совпадают", - "submit": "Войти", "usernameTaken": "Это имя пользователя уже занято", "wrongCredentials": "Неверные данные", "or": "ИЛИ", @@ -208,7 +172,6 @@ "viewMode": "Режим просмотра", "renameMessage": "Введите новое имя:", "renameMessageInvalid": "Файл не может содержать \"/\" или \"\\\".", - "source": "Источник{suffix}", "deleteMessageMultiple": "Вы уверены, что хотите удалить файл(ы) {count}?", "deleteMessageShare": "Вы уверены, что хотите удалить эту общую ссылку: {path} ?", "numberDirs": "Количество папок{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Добро пожаловать в FileBrowser Quantum!", "halloweenTitle": "Счастливого Хэллоуина!", "halloweenBody": "Тема Хэллоуина была применена. Вы можете отключить ее, если она вам не нравится, или навсегда отключить ее в настройках профиля, выбрав любую другую тему.", - "firstLoadBody": "При запуске была создана новая база данных. Если это не то, что вы ожидали, проверьте путь к базе данных `server.database в вашем конфигурационном файле и убедитесь, что он существует. В docker путь к базе данных может быть `./data/database.db` или `./database.db`." + "firstLoadBody": "При запуске была создана новая база данных. Если это не то, что вы ожидали, проверьте путь к базе данных `server.database в вашем конфигурационном файле и убедитесь, что он существует. В docker путь к базе данных может быть `./data/database.db` или `./database.db`.", + "selectPath": "Выберите путь", + "renameSuccess": "Элемент успешно переименован!", + "newFileSuccess": "Файл создан успешно!", + "newDirSuccess": "Каталог создан успешно!", + "copyToClipboardFailed": "Невозможно скопировать в буфер обмена" }, "search": { - "images": "Изображения", - "music": "Музыка", - "pdf": "PDF", - "search": "Поиск...", - "types": "Типы", - "video": "Видео", - "path": "Путь:", "smallerThan": "Меньше, чем:", "largerThan": "Больше, чем:", "helpText1": "Поиск осуществляется по каждому введенному символу (минимум 3 символа для поисковых запросов).", @@ -267,18 +228,11 @@ "onlyFolders": "Только папки", "onlyFiles": "Только файлы", "showOptions": "Показать параметры", - "photos": "Фотографии", - "audio": "Аудио", - "videos": "Видео", - "documents": "Документы", - "archives": "Архивы", - "number": "Номер", "searchContext": "Контекст поиска: {context}", "notEnoughCharacters": "Недостаточно символов для поиска (мин. {minSearchLength})", "typeToSearch": "Начните вводить {minSearchLength} или более символов, чтобы начать поиск." }, "settings": { - "admin": "Админ", "administrator": "Администратор", "allowCommands": "Запуск команд", "allowEdit": "Редактирование, переименование и удаление файлов или папок", @@ -286,7 +240,6 @@ "allowPublish": "Публикация новых записей и страниц", "allowSignup": "Разрешить пользователям регистрироваться", "avoidChanges": "(оставьте поле пустым, чтобы избежать изменений)", - "branding": "Брендинг", "brandingDirectoryPath": "Путь к папке с файлами брендинга", "changePassword": "Изменение пароля", "commandRunner": "Запуск команд", @@ -296,8 +249,6 @@ "defaultUserDescription": "Это настройки по умолчанию для новых пользователей.", "disableExternalLinks": "Отключить внешние ссылки (кроме документации)", "disableUsedDiskPercentage": "Отключить график использования диска", - "documentation": "документация", - "examples": "Примеры", "executeOnShell": "Выполнить в командной строке", "executeOnShellDescription": "По умолчанию File Browser выполняет команды, напрямую вызывая их бинарные файлы. Если вы хотите вместо этого запускать их в оболочке (например, Bash или PowerShell), вы можете определить их здесь с необходимыми аргументами и флагами. Если установлено, выполняемая вами команда будет добавлена в качестве аргумента. Это относится как к пользовательским командам, так и к обработчикам событий.", "globalRules": "Это глобальный набор разрешающих и запрещающих правил. Они применимы к каждому пользователю. Вы можете определить определенные правила для настроек каждого пользователя, чтобы переопределить их.", @@ -305,14 +256,11 @@ "insertPath": "Вставьте путь", "insertRegex": "Вставить регулярное выражение", "instanceName": "Текущее название программы", - "language": "Язык", "lockPassword": "Запретить пользователю менять пароль", "newPassword": "Новый пароль", "newPasswordConfirm": "Повтор нового пароля", "newUser": "Новый пользователь", - "password": "Пароль", "passwordUpdated": "Пароль обновлен!", - "path": "Путь", "permissions": { "modify": "Редактировать файлы", "share": "Поделиться файлами", @@ -328,28 +276,17 @@ "profileSettings": "Настройки профиля", "ruleExample1": "Запретить доступ к любому скрытому файлу (например: .git, .gitignore) в каждой папке.\n", "ruleExample2": "блокирует доступ к файлу с именем Caddyfile в корневой области.", - "rules": "Права", "rulesHelp": "Здесь вы можете определить набор разрешающих и запрещающих правил для этого конкретного пользователь. Блокированные файлы не будут отображаться в списках, и не будут доступны для пользователя. Есть поддержка регулярных выражений и относительных путей.\n", - "scope": "Корень", "settingsUpdated": "Настройки применены!", "shareManagement": "Управление расшаренными ссылками", "shareDeleted": "Расшаренная ссылка удалена!", "singleClick": "Открытие файлов и папок одним кликом", - "themes": { - "dark": "Темная", - "light": "Светлая", - "title": "Тема" - }, - "user": "Пользователь", - "userCommands": "Команды", "userCommandsHelp": "Список команд доступных пользователю, разделенный пробелами. Пример:\n", "userCreated": "Пользователь создан!", "userDefaults": "Настройки пользователя по умолчанию", "userDeleted": "Пользователь удален!", "userManagement": "Управление пользователями", "userUpdated": "Пользователь изменен!", - "username": "Имя пользователя", - "users": "Пользователи", "modifyOtherUser": "Измените пользователя:", "modifyCurrentUser": "Изменить текущего пользователя", "themeColor": "Цвет темы", @@ -373,9 +310,7 @@ "loginMethod": "Метод входа в систему", "shareSettings": "Настройки ссылок доступа", "adminOptions": "Параметры пользователя администратора", - "shareDuration": "Срок действия:", "searchOptions": "Параметры поиска", - "downloads": "Загрузки", "systemAdmin": "Система и администрирование", "configViewer": "Программа просмотра конфигурации", "configViewerShowFull": "Показать полную конфигурацию", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Прокси-сервер" }, - "newUserHintSubFolder": "например, '/subfolder' - пустое место по умолчанию", - "userScopes": "Область доступа" + "newUserHintSubFolder": "например, '/subfolder' - пустое место по умолчанию" }, "sidebar": { - "help": "Помощь", - "hugoNew": "Hugo New", - "login": "Войти", - "logout": "Выйти", - "myFiles": "Файлы", - "newFile": "Новый файл", - "newFolder": "Новая папка", - "preview": "Предпросмотр", - "settings": "Настройки", - "signup": "Зарегистрироваться", "siteSettings": "Настройки сайта", - "sources": "Хранилище", "updateIsAvailable": "Обновление доступно!", - "fileActions": "Действия с файлами" + "fileActions": "Действия с файлами", + "customizeLinks": "Настройка ссылок в боковой панели", + "customizeLinksDescription": "Настройте ссылки, отображаемые в боковой панели. Перетаскивайте ссылки, чтобы изменить их порядок.", + "currentLinks": "Текущие ссылки", + "addNewLink": "Добавить новую ссылку", + "linkType": "Тип ссылки", + "selectLinkType": "Выберите тип ссылки", + "customLink": "Пользовательская ссылка", + "selectSource": "Выберите источник", + "chooseSource": "Выберите источник", + "selectTool": "Выберите инструмент", + "chooseTool": "Выберите инструмент", + "linkName": "Название ссылки", + "linkNamePlaceholder": "Введите имя ссылки", + "linkUrl": "Ссылка URL", + "linkUrlPlaceholder": "Введите URL-адрес или путь (например, /files/path или https://example.com).", + "linkIcon": "Значок ссылки", + "linksUpdatedSuccess": "Ссылки в сайдбаре успешно обновлены!", + "linksUpdateFailed": "Не удалось обновить ссылки боковой панели", + "sourceNotAccessible": "Этот источник больше недоступен для вас", + "noLinksYet": "Пока нет настроенных ссылок. Добавьте свою первую ссылку ниже.", + "customizeShareLinks": "Настройка ссылок боковой панели Share", + "customizeShareLinksDescription": "Настройте ссылки, отображаемые в боковой панели для этого ресурса. Перетащите ссылки, чтобы изменить их порядок.", + "editLink": "Редактировать ссылку", + "selectShare": "Выберите долю", + "chooseShare": "Выберите акцию", + "selectSharePath": "Путь внутри ресурса (необязательно)", + "sharePathPlaceholder": "например, /subfolder или оставьте пустым для root", + "browseIcons": "Просмотр значков", + "pickIcon": "Выберите иконку", + "pickIconDescription": "Найдите и выберите значок в библиотеке Material Icons.", + "shareLinksUpdatedSuccess": "Ссылки на боковой панели успешно обновлены!", + "shareHome": "Поделиться Домой", + "linkIconPlaceholder": "Опционально укажите имя значка материала" }, "success": { "linkCopied": "Ссылка скопирована!" @@ -481,7 +437,12 @@ "allowReplacements": "Разрешить замену файлов", "allowReplacementsDescription": "Любой человек может заменить существующие файлы при загрузке файлов с тем же именем.", "allowCreate": "Позволяет создавать и загружать файлы и папки", - "allowCreateDescription": "Любой желающий может создавать и загружать новые файлы и папки в этот ресурс." + "allowCreateDescription": "Любой желающий может создавать и загружать новые файлы и папки в этот ресурс.", + "customizeSidebarLinks": "Настройка ссылок в боковой панели", + "customizeSidebarLinksButton": "Настроить ссылки", + "shareInfo": "Поделиться QR-кодом и информацией", + "shareInfoDescription": "Эта ссылка отображает информацию о ресурсе, включая название, описание, баннер и QR-код во всплывающем окне.", + "downloadDescription": "Эта ссылка позволяет загрузить все содержимое ресурса в виде сжатого файла." }, "api": { "title": "Ключи API", @@ -505,21 +466,28 @@ "expires": "Срок действия:", "actions": "Действия", "enabled": "Включено", - "disabled": "Отключено" + "disabled": "Отключено", + "apiKeyDeleted": "Ключ API удален!" }, "index": { - "status": "Статус", "assessment": "Оценка", "lastScanned": "Последнее сканирование", "quickScan": "Секунды быстрого сканирования", "fullScan": "Секунды полного сканирования", "settingsHover": "Пользовательские настройки", - "logout": "Выход из системы", "toggleClick": "Переключить режим клика", "toggleDark": "Переключить темный режим", "toggleSticky": "Переключить фиксированный режим", - "used": "используется", - "noSources": "Для этого пользователя нет доступных источников. Либо добавьте источник для этого пользователя, либо настройте источник с параметром defaultEnabled: true" + "noSources": "Для этого пользователя нет доступных источников. Либо добавьте источник для этого пользователя, либо настройте источник с параметром defaultEnabled: true", + "unknown": "Неизвестный", + "simple": "Простой", + "normal": "Нормальный", + "complex": "Комплекс", + "highlyComplex": "Очень сложный", + "ready": "Готовые", + "indexing": "Индексирование", + "unavailable": "Недоступно", + "error": "Ошибка" }, "otp": { "name": "Двухфакторная аутентификация", @@ -545,7 +513,96 @@ "exit": "Выход", "permanent": "Постоянно", "hash": "Хэш", - "of": "из" + "of": "из", + "source": "Источник{suffix}", + "percentage": "{percentage}%", + "type": "Тип{suffix}", + "size": "Размер{suffix}", + "body": "Тело{suffix}", + "home": "Главная{suffix}", + "clear": "Очистить{suffix}", + "help": "Помощь{suffix}", + "login": "Вход в систему{suffix}", + "logout": "Выход из системы{suffix}", + "preview": "Предварительный просмотр{suffix}", + "settings": "Настройки{suffix}", + "sources": "Источники{suffix}", + "links": "Ссылки{suffix}", + "tool": "Инструмент{suffix}", + "used": "используется{suffix}", + "status": "Статус{suffix}", + "analyze": "Анализируйте{suffix}", + "results": "Результаты{suffix}", + "users": "Пользователи{suffix}", + "photos": "Фотографии", + "audio": "Аудио{suffix}", + "videos": "Видео{suffix}", + "documents": "Документы{suffix}", + "archives": "Архивы{suffix}", + "images": "Изображения{suffix}", + "music": "Музыка{suffix}", + "pdf": "PDF{suffix}", + "search": "Поиск{suffix}", + "number": "Номер{suffix}", + "types": "Типы{suffix}", + "video": "Видео{suffix}", + "admin": "Администратор{suffix}", + "branding": "Брендинг{suffix}", + "language": "Язык{suffix}", + "documentation": "документация{suffix}", + "examples": "Примеры{suffix}", + "dark": "Темнота{suffix}", + "light": "Свет{suffix}", + "title": "Тема{suffix}", + "expires": "Срок действия:{suffix}", + "scope": "Область применения{suffix}", + "rules": "Правила{suffix}", + "downloads": "Скачать{suffix}", + "submit": "Вход в систему{suffix}", + "navigation": "Навигация{suffix}", + "metadata": "Метаданные{suffix}", + "loading": "Загрузка{suffix}", + "add": "Добавить{suffix}", + "cancel": "Отмена{suffix}", + "verify": "Проверьте{suffix}", + "close": "Закрыть{suffix}", + "copy": "Копировать{suffix}", + "create": "Создать{suffix}", + "delete": "Удалить{suffix}", + "download": "Скачать{suffix}", + "file": "Файл{suffix}", + "folder": "Папка{suffix}", + "info": "Информация{suffix}", + "more": "Подробнее{suffix}", + "move": "Переместить{suffix}", + "new": "Новый{suffix}", + "next": "Следующий{suffix}", + "ok": "OK{suffix}", + "previous": "Предыдущий{suffix}", + "publish": "Опубликовать{suffix}", + "rename": "Переименовать{suffix}", + "replace": "Заменить{suffix}", + "save": "Сохранить{suffix}", + "schedule": "Расписание{suffix}", + "select": "Выберите{suffix}", + "share": "Поделиться{suffix}", + "update": "Обновление{suffix}", + "upload": "Загрузить{suffix}", + "openFile": "Открыть файл{suffix}", + "continue": "Продолжить{suffix}", + "edit": "Редактировать{suffix}", + "pause": "Пауза{suffix}", + "resume": "Резюме{suffix}", + "retry": "Повторная попытка{suffix}", + "disable": "Отключить{suffix}", + "confirm": "Подтвердите{suffix}", + "stay": "Оставайтесь{suffix}", + "scopes": "Прицелы{suffix}", + "commands": "Команды{suffix}", + "uploading": "Загрузка{suffix}", + "paused": "Пауза{suffix}", + "conflict": "Конфликт{suffix}", + "change": "Изменить{suffix}" }, "access": { "rules": "Правила доступа", @@ -560,13 +617,15 @@ "enterName": "Введите имя пользователя или группы", "deleted": "Правило доступа удалено!", "added": "Правило доступа добавлено!", - "name": "Имя", "accessManagement": "Управление доступом", "totalDenied": "Отказано", "totalAllowed": "Разрешено", "all": "Запретить все", "defaultBehaviorDescription": "Здесь показано, что происходит, когда пользователь пытается получить доступ к пути, для которого не существует специальных правил доступа. 'Allow' означает, что пользователи могут получить доступ по умолчанию, 'Deny' означает, что пользователи блокируются по умолчанию, если только они не разрешены явным образом.", - "defaultBehavior": "Действие по умолчанию{suffix}" + "defaultBehavior": "Действие по умолчанию{suffix}", + "deletedCascade": "Правила доступа удалены из пути и всех подпутей!", + "cascadeDelete": "Рекурсивное удаление", + "cascadeDeleteDescription": "Если эта функция включена, удаление правила доступа также удалит его из всех подкаталогов. Это позволяет полностью удалить пользователя или группу из всего дерева каталогов." }, "fileLoading": { "title": "Загрузки и скачивания", @@ -644,16 +703,16 @@ "themeAndLanguage": "Тема и язык", "previewFolder": "Показывать миниатюры для папок, если они доступны", "previewFolderDescription": "Показывать предварительный просмотр миниатюр для папок, в которых первый дочерний элемент с миниатюрой является обложкой.", - "disableFileExtensions": "Введите расширения файлов, которые необходимо отключить", - "defaultLandingPage": "Целевая страница по умолчанию", - "defaultLandingPageDescription": "например. '/files/mysource/mysubpath' или '/settings' - страницей по умолчанию является /files, которая переходит к первому представлению листинга источника" + "disableFileExtensions": "Введите расширения файлов, которые необходимо отключить" }, "editor": { "uninitialized": "Не удалось инициализировать редактор. Пожалуйста, перезагрузитесь.", "saveFailed": "Не удалось сохранить файл. Пожалуйста, попробуйте еще раз.", "saveAborted": "Сохранение прервано. Имя файла не совпадает с именем активного файла.", "saveAbortedMessage": "Операция сохранения прервана. Активный файл приложения ({activeFile}) не совпадает с файлом, который вы пытаетесь сохранить ({tryingToSave}).", - "syncFailed": "не удалось синхронизировать состояние с маршрутом для \"{filename}\" после 5 попыток. Прерываю настройку редактора, чтобы предотвратить повреждение данных." + "syncFailed": "не удалось синхронизировать состояние с маршрутом для \"{filename}\" после 5 попыток. Прерываю настройку редактора, чтобы предотвратить повреждение данных.", + "fileSaved": "Файл сохранен!", + "errorSavingFile": "Ошибка при сохранении файла: {error}" }, "player": { "LoopEnabled": "Повтор включен", @@ -666,5 +725,93 @@ "changePlaybackMode": "Изменить режим воспроизведения", "changePlaybackModeHint": "Измените режим воспроизведения, чтобы увидеть больше файлов", "emptyQueue": "Очередь пуста" + }, + "fileSizeAnalyzer": { + "title": "Анализатор размера файлов", + "searchLocation": "Место поиска", + "selectPath": "Выберите место поиска", + "largerThan": "Больше, чем (МБ)", + "includeFolders": "Включить папки", + "includeFoldersDescription": "Включите каталоги в анализ", + "totalFiles": "Всего файлов{suffix}", + "totalSize": "Общий размер{suffix}", + "emptyState": "Введите критерии поиска и нажмите \"Анализ\", чтобы визуализировать размеры файлов.", + "completeResults": "Показаны полные результаты!", + "incompleteResults": "Результаты могут быть неполными", + "incompleteResultsDetails": "Показано максимальное количество результатов (100). Попробуйте сузить поиск, чтобы получить больше результатов ниже 100.", + "relativePercentage": "Относительный процент{suffix}", + "percentageOfResults": "{percentage}% от результатов" + }, + "fileTypes": { + "video": "Видео", + "image": "Изображение", + "audio": "Аудио", + "archive": "Архив", + "document": "Документ", + "binary": "Бинарные", + "directory": "Каталог", + "other": "Другие" + }, + "tools": { + "description": "Утилиты и инструменты для анализа ваших файлов", + "sizeAnalyzer": { + "name": "Анализатор размера файлов", + "description": "Визуализация больших файлов и каталогов с помощью интерактивной карты деревьев" + }, + "title": "Инструменты", + "duplicateFinder": { + "name": "Поиск дубликатов файлов", + "description": "Находите дубликаты файлов и управляйте ими, чтобы освободить место для хранения." + }, + "materialIconPicker": { + "name": "Выбор значка материала", + "description": "Просмотр и поиск значков материалов с предварительным просмотром в реальном времени", + "searchPlaceholder": "Поисковые значки...", + "popularIcons": "Показывать {count} популярные иконки", + "showingResults": "Показать результаты {count} ", + "noResults": "Значки не найдены", + "tryDifferentSearch": "Попробуйте использовать другой поисковый запрос", + "copiedToClipboard": "Скопировано '{name}' в буфер обмена!", + "copyFailed": "Не удалось скопировать в буфер обмена", + "custom": "Пользовательское", + "useCustomIcon": "Используйте пользовательский значок: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Просмотр полной библиотеки иконок" + }, + "toolNotFound": "Инструмент не найден", + "backToTools": "Назад к инструментам" + }, + "messages": { + "pathNotFound": "Путь не существует в файловой системе", + "pathNotFoundMessage": "Путь для этого больше не существует в файловой системе. Возможно, он был перемещен или удален.", + "reassignPath": "Переназначить путь", + "pathReassigned": "Путь успешно обновлен!", + "pathReassignFailed": "Не удалось обновить путь. Пожалуйста, попробуйте еще раз." + }, + "duplicateFinder": { + "title": "Поиск дубликатов файлов", + "minSize": "Минимальный размер (МБ){suffix}", + "minSizeHint": "Анализируйте только файлы, размер которых превышает указанный (в мегабайтах).", + "useChecksums": "Сравнить содержимое файла", + "useChecksumsDescription": "Также включите в сравнение содержимое файла. Без этого файлы сопоставляются по размеру и сходству имен файлов.", + "findDuplicates": "Поиск дубликатов", + "groupsFound": "Найдены дублирующие группы{suffix}", + "totalWastedSpace": "Общая потерянная площадь{suffix}", + "wasted": "Впустую{suffix}", + "emptyState": "Введите критерии поиска и нажмите кнопку Найти дубликаты, чтобы выявить дубликаты файлов." + }, + "notifications": { + "title": "Уведомления", + "description": "Просмотр всех уведомлений в текущем сеансе", + "empty": "Уведомлений пока нет", + "clearAll": "Очистить все", + "clearConfirm": "Вы уверены, что хотите очистить всю историю уведомлений?", + "total": "{count} уведомления" + }, + "events": { + "serverShutdown": "Сервер был выключен.", + "authenticationFailed": "Аутентификация не удалась. Пожалуйста, обновите страницу, чтобы войти снова.", + "reconnected": "Снова подключился к серверу.", + "connectionLost": "Соединение с сервером было потеряно. Пытаемся восстановить соединение..." } } diff --git a/frontend/src/i18n/sk.json b/frontend/src/i18n/sk.json index 5c9c5b63c6..7e6e611912 100644 --- a/frontend/src/i18n/sk.json +++ b/frontend/src/i18n/sk.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Zrušiť", - "close": "Zavrieť", - "copy": "Kopírovať", "copyFile": "Kopírovať súbor", "copyToClipboard": "Kopírovať do schránky", - "create": "Vytvoriť", - "delete": "Odstrániť", - "download": "Stiahnuť", - "file": "Súbor", - "folder": "Priečinok", - "info": "Info", - "more": "Viac", - "move": "Presunúť", "moveFile": "Presunúť súbory", - "new": "Nový", - "next": "Ďalšie", - "ok": "OK", "permalink": "Získať trvalý odkaz", - "previous": "Predošlé", - "publish": "Zverejniť", - "rename": "Premenovať", - "replace": "Nahradiť", "reportIssue": "Nahlásiť problém", - "save": "Uložiť", - "schedule": "Naplánovať", - "search": "Hľadať", - "select": "Vybrať", "selectMultiple": "Vybrať viaceré", - "share": "Zdieľať", "shell": "Prepnúť shell", - "submit": "Poslať", "switchView": "Prepnúť pohľad", "toggleSidebar": "Prepnúť sidebar", - "update": "Aktualizovať", - "upload": "Nahrať", - "openFile": "Otvoriť súbor", "copyDownloadLinkToClipboard": "Skopírujte odkaz na stiahnutie do schránky", - "continue": "Pokračovať", - "edit": "Upraviť", "generateNewOtp": "Obnovenie a generovanie nového dvojfaktorového kódu", - "verify": "Overiť", - "pause": "Pauza", - "resume": "Životopis", - "retry": "Opakovanie", "pauseAll": "Pozastavenie všetkých", "resumeAll": "Obnoviť všetko", "clearCompleted": "Vyčistiť dokončené", @@ -62,10 +29,8 @@ "discardAndExit": "Vyradenie a ukončenie", "saveAndExit": "Uložiť a ukončiť", "keepEditing": "Pokračujte v úpravách", - "stayOnPrompt": "Zostaňte na", "closeAnyway": "Zavrieť Tak či onak", - "disable": "Zakázať", - "confirm": "Potvrďte" + "goToItem": "Prejsť na položku" }, "download": { "downloadFile": "Stiahnuť súbor", @@ -77,31 +42,31 @@ "internal": "Something really went wrong.", "notFound": "This location can't be reached.", "connection": "The server can't be reached.", - "shareNotFound": "Neplatná alebo neplatná akcia." + "shareNotFound": "Neplatná alebo neplatná akcia.", + "failedToConnectToServer": "Nepodarilo sa pripojiť k serveru, je stále spustený?" }, "files": { - "body": "Telo", - "clear": "Zrušiť výber", "closePreview": "Zavrieť náhľad", - "home": "Domov", "lastModified": "Posledná zmena", - "loading": "Načítanie...", "lonely": "Je tu tak pusto...", - "metadata": "Metadata", "multipleSelectionEnabled": "Zapnutý viacnásobný výber", - "name": "Názov", - "size": "Veľkosť", "sortByLastModified": "Zoradiť podľa dátumu", "sortByName": "Zoradiť podľa názvu", "sortBySize": "Zoradiť podľa veľkosti", "noPreview": "Pre tento súbor nie je dostupný náhľad.", - "noDownloadAccess": "Stiahnutie nie je k dispozícii." + "noDownloadAccess": "Stiahnutie nie je k dispozícii.", + "itemSelected": "položka vybraná", + "itemsSelected": "položky vybrané", + "myFiles": "Moje súbory{suffix}", + "newFile": "Nový súbor{suffix}", + "newFolder": "Nový priečinok{suffix}", + "duration": "Trvanie{suffix}", + "sortByDuration": "Zoradiť podľa trvania" }, "help": { "functionKeys": "Funkčné Klávesy", "mouseActions": "Akcie Myši", "fileOperations": "Operácie so Súbormi", - "navigation": "Navigácia", "click": "vyberie súbor alebo priečinok", "ctrl": { "click": "vyberie viac súborov alebo priečinkov", @@ -115,11 +80,11 @@ "del": "odstráni vybraté položky", "esc": "zruší výber a/alebo zavrie okno", "f2": "premenuje súbor", - "help": "Pomoc", "f1": "zobraziť výzvu na pomoc", "description": "Základné možnosti navigácie si môžete pozrieť nižšie. Ďalšie informácie nájdete na stránke", "slash": "aktivovať vyhľadávanie", - "wiki": "Oficiálne dokumenty FileBrowser Quantum" + "wiki": "Oficiálne dokumenty FileBrowser Quantum", + "marqueeSelect": "výber viacerých súborov alebo adresárov ťahaním na prázdne miesto" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Už mám účet", "passwordConfirm": "Potvrdenie hesla", "passwordsDontMatch": "Heslá nesúhlasia", - "submit": "Prihlásiť", "usernameTaken": "Meno je už obsadené", "wrongCredentials": "Nesprávne prihlasovacie údaje", "or": "ALEBO", @@ -208,7 +172,6 @@ "viewMode": "Režim zobrazenia", "renameMessage": "Zadajte nový názov:", "renameMessageInvalid": "Súbor nemôže obsahovať \"/\" alebo \"\\\"", - "source": "Zdroj{suffix}", "deleteMessageMultiple": "Ste si istí, že chcete odstrániť súbor(y) {count}?", "deleteMessageShare": "Ste si istí, že chcete odstrániť toto zdieľanie: {path} ?", "numberDirs": "Počet adresárov{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Vitajte v programe FileBrowser Quantum!", "halloweenTitle": "Šťastný Halloween!", "halloweenBody": "Bola použitá téma Halloween. Ak sa vám nepáči, môžete ju vypnúť, alebo ju natrvalo zakázať v nastaveniach profilu výberom akejkoľvek inej témy.", - "firstLoadBody": "Pri spustení bola vytvorená nová databáza. Ak to nie je to, čo ste očakávali, dvakrát skontrolujte konfiguračný súbor pre cestu `server.database` a uistite sa, že existuje. V dockeri môže byť cesta k databáze `./data/database.db` alebo `./database.db`." + "firstLoadBody": "Pri spustení bola vytvorená nová databáza. Ak to nie je to, čo ste očakávali, dvakrát skontrolujte konfiguračný súbor pre cestu `server.database` a uistite sa, že existuje. V dockeri môže byť cesta k databáze `./data/database.db` alebo `./database.db`.", + "selectPath": "Vyberte cestu", + "renameSuccess": "Položka bola úspešne premenovaná!", + "newFileSuccess": "Súbor bol úspešne vytvorený!", + "newDirSuccess": "Adresár bol úspešne vytvorený!", + "copyToClipboardFailed": "Nemožnosť kopírovania do schránky" }, "search": { - "images": "Obrázky", - "music": "Hudba", - "pdf": "PDF", - "search": "Hľadať...", - "types": "Typy", - "video": "Video", - "path": "Cesta:", "smallerThan": "Menšie ako:", "largerThan": "Väčšie ako:", "helpText1": "Vyhľadávanie prebieha na základe každého zadaného znaku (minimálne 3 znaky pre hľadané výrazy).", @@ -267,18 +228,11 @@ "onlyFolders": "Iba priečinky", "onlyFiles": "Iba súbory", "showOptions": "Zobraziť možnosti", - "photos": "Fotografie", - "audio": "Audio", - "videos": "Videá", - "documents": "Dokumenty", - "archives": "Archív", - "number": "Číslo", "searchContext": "Kontext vyhľadávania: {context}", "notEnoughCharacters": "Nedostatok znakov na vyhľadávanie (min. {minSearchLength})", "typeToSearch": "Začnite písať {minSearchLength} alebo viac znakov, aby ste začali vyhľadávať." }, "settings": { - "admin": "Admin", "administrator": "Administrátor", "allowCommands": "Vykonávať príkazy", "allowEdit": "Upravovať, premenovať a odstraňovať súbory a priečinky", @@ -286,7 +240,6 @@ "allowPublish": "Zverejňovať nové príspevky a stránky", "allowSignup": "Povoliť registráciu používateľov", "avoidChanges": "(nechajte prázdne, aby sa nezmenilo)", - "branding": "Vlastný vzhľad", "brandingDirectoryPath": "Cesta k priečinku s vlastným vzhľadom", "changePassword": "Zmeniť heslo", "commandRunner": "Spúšťač príkazov", @@ -296,8 +249,6 @@ "defaultUserDescription": "Toto sú predvolané nastavenia nového používateľa.", "disableExternalLinks": "Vypnúť externé odkazy (okrem dokumentácie)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "dokumentácia", - "examples": "Príklady", "executeOnShell": "Vykonať cez shell", "executeOnShellDescription": "Predvolene File Browser vykonáva príkazy volaním priamo ich binárok. Ak ich chcete spúšťať cez shell (napr. Bash alebo PowerShell), môžete ho napísať sem a pridať potrebné argumenty a flagy. Ak je nastavený, tak sa príkazy budú spúšťať pridaním na koniec ako argument. Toto sa týka používateľských príkazov aj udalostí.", "globalRules": "Toto je globálne nastavenie pravidiel. Aplikujú sa na všetkých používateľov. Môžete definovať špecifické pravidlá pre každého používateľa a prekryť tak pravidlá nastavené tu.", @@ -305,14 +256,11 @@ "insertPath": "Vložte cestu", "insertRegex": "Vložte regex výraz", "instanceName": "Názov inštalácie", - "language": "Jazyk", "lockPassword": "Zabrániť používateľovi meniť heslo", "newPassword": "Nové heslo", "newPasswordConfirm": "Potvrdenie nového hesla", "newUser": "Nový používateľ", - "password": "Heslo", "passwordUpdated": "Heslo zmenené!", - "path": "Cesta", "permissions": { "modify": "Upravovať súbory", "share": "Zdieľať súbory", @@ -328,28 +276,17 @@ "profileSettings": "Nastavenia profilu", "ruleExample1": "blokuje prístup ku všetkým súborom začínajúcim bodkou (napríklad .git, .gitignore) v každom priečinku.\n", "ruleExample2": "blokuje prístup k súborom s názvom Caddyfile v koreňovom priečinku.", - "rules": "Pravidlá", "rulesHelp": "Tu môžete definovať pravidlá pre konkrétneho používateľa. Blokované súbory používateľ nebude vidieť a ani nebude k nim mať prístup. Podporujeme regex a cesty relatívne k používateľovi.\n", - "scope": "Scope", "settingsUpdated": "Nastavenia upravené!", "shareManagement": "Správa zdieľania", "shareDeleted": "Zdieľanie odstránené!", "singleClick": "Používať jeden klik na otváranie súborov a priečinkov", - "themes": { - "dark": "Tmavá", - "light": "Svetlá", - "title": "Téma" - }, - "user": "Používateľ", - "userCommands": "Príkazy", "userCommandsHelp": "Zoznam povolených príkazov oddelených medzerou pre tohoto používateľa. Napríklad:\n", "userCreated": "Používateľ vytvorený!", "userDefaults": "Predvolené nastavenia používateľa", "userDeleted": "Používateľ odstránený!", "userManagement": "Správa používateľov", "userUpdated": "Používateľ upravený!", - "username": "Meno používateľa", - "users": "Používatelia", "modifyOtherUser": "Upravte používateľa:", "modifyCurrentUser": "Úprava aktuálneho používateľa", "themeColor": "Farba témy", @@ -373,9 +310,7 @@ "loginMethod": "Spôsob prihlásenia", "shareSettings": "Zdieľať nastavenia", "adminOptions": "Možnosti používateľa správcu", - "shareDuration": "Platnosť končí na", "searchOptions": "Možnosti vyhľadávania", - "downloads": "Na stiahnutie", "systemAdmin": "Systém a administrátor", "configViewer": "Prehliadač konfigurácie", "configViewerShowFull": "Zobraziť úplnú konfiguráciu", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "napr. '/subfolder' - prázdne pre predvolené nastavenie", - "userScopes": "Rozsahy" + "newUserHintSubFolder": "napr. '/subfolder' - prázdne pre predvolené nastavenie" }, "sidebar": { - "help": "Pomoc", - "hugoNew": "Nový Hugo", - "login": "Prihlásiť", - "logout": "Odhlásiť", - "myFiles": "Moje súbory", - "newFile": "Nový súbor", - "newFolder": "Nový priečinok", - "preview": "Náhľad", - "settings": "Nastavenia", - "signup": "Registrovať", "siteSettings": "Nastavenia stránky", - "sources": "Zdroje", "updateIsAvailable": "K dispozícii je aktualizácia!", - "fileActions": "Akcie so súbormi" + "fileActions": "Akcie so súbormi", + "customizeLinks": "Prispôsobenie odkazov na bočnom paneli", + "customizeLinksDescription": "Prispôsobenie odkazov zobrazených na bočnom paneli. Ťahaním a púšťaním môžete meniť poradie.", + "currentLinks": "Aktuálne odkazy", + "addNewLink": "Pridať nové prepojenie", + "linkType": "Typ prepojenia", + "selectLinkType": "Vyberte typ prepojenia", + "customLink": "Vlastné prepojenie", + "selectSource": "Vyberte zdroj", + "chooseSource": "Výber zdroja", + "selectTool": "Vybrať nástroj", + "chooseTool": "Výber nástroja", + "linkName": "Názov prepojenia", + "linkNamePlaceholder": "Zadajte názov odkazu", + "linkUrl": "Adresa URL prepojenia", + "linkUrlPlaceholder": "Zadajte adresu URL alebo cestu (napr. /files/path alebo https://example.com).", + "linkIcon": "Ikona prepojenia", + "linksUpdatedSuccess": "Odkazy na bočnom paneli úspešne aktualizované!", + "linksUpdateFailed": "Nepodarilo sa aktualizovať odkazy na bočnom paneli", + "sourceNotAccessible": "Tento zdroj už nie je prístupný", + "noLinksYet": "Zatiaľ nie sú nakonfigurované žiadne odkazy. Pridajte svoj prvý odkaz nižšie.", + "customizeShareLinks": "Prispôsobenie zdieľania odkazov na bočnom paneli", + "customizeShareLinksDescription": "Prispôsobte si odkazy zobrazené na bočnom paneli pre túto akciu. Ťahaním a púšťaním môžete zmeniť poradie.", + "editLink": "Upraviť odkaz", + "selectShare": "Vyberte položku Zdieľať", + "chooseShare": "Vyberte si podiel", + "selectSharePath": "Cesta v rámci zdieľanej zložky (nepovinné)", + "sharePathPlaceholder": "napr. /subfolder alebo nechajte prázdny pre root", + "browseIcons": "Prehľadávať ikony", + "pickIcon": "Výber ikony", + "pickIconDescription": "Vyhľadajte a vyberte ikonu z knižnice Material Icons", + "shareLinksUpdatedSuccess": "Zdieľanie bočného panela odkazy úspešne aktualizované!", + "shareHome": "Zdieľať Domov", + "linkIconPlaceholder": "Voliteľne zadajte názov ikony materiálu" }, "success": { "linkCopied": "Odkaz skopírovaný!" @@ -481,7 +437,12 @@ "allowReplacements": "Povolenie výmeny súborov", "allowReplacementsDescription": "Pri nahrávaní súborov s rovnakým názvom môže ktokoľvek nahradiť existujúce súbory.", "allowCreate": "Umožniť vytváranie a nahrávanie súborov a priečinkov", - "allowCreateDescription": "V tomto zdieľanom úložisku môže ktokoľvek vytvárať a nahrávať nové súbory a priečinky." + "allowCreateDescription": "V tomto zdieľanom úložisku môže ktokoľvek vytvárať a nahrávať nové súbory a priečinky.", + "customizeSidebarLinks": "Prispôsobenie odkazov na bočnom paneli", + "customizeSidebarLinksButton": "Prispôsobenie odkazov", + "shareInfo": "Zdieľanie kódu QR a informácií", + "shareInfoDescription": "Toto prepojenie zobrazí informácie o zdieľaní vrátane názvu, opisu, banneru a QR kódu vo vyskakovacom okne.", + "downloadDescription": "Toto prepojenie umožňuje stiahnuť celý obsah zdieľania ako komprimovaný súbor." }, "api": { "title": "Kľúče API:", @@ -505,21 +466,28 @@ "expires": "Platnosť končí na", "actions": "Činnosti", "enabled": "Povolené", - "disabled": "Bezbariérový" + "disabled": "Bezbariérový", + "apiKeyDeleted": "Kľúč API odstránený!" }, "index": { - "status": "Stav", "assessment": "Hodnotenie", "lastScanned": "Posledné skenovanie", "quickScan": "Sekundy rýchleho skenovania", "fullScan": "Sekundy úplného skenovania", "settingsHover": "Nastavenia pre používateľa", - "logout": "Odhlásenie", "toggleClick": "Prepínanie jedným kliknutím", "toggleDark": "Prepínanie tmavého režimu", "toggleSticky": "Prepnutie režimu Sticky", - "used": "použité", - "noSources": "Pre tohto používateľa nie sú k dispozícii žiadne zdroje. Buď pridajte zdroj pre tohto používateľa, alebo nakonfigurujte zdroj s defaultEnabled: true" + "noSources": "Pre tohto používateľa nie sú k dispozícii žiadne zdroje. Buď pridajte zdroj pre tohto používateľa, alebo nakonfigurujte zdroj s defaultEnabled: true", + "unknown": "Neznáme", + "simple": "Jednoduché", + "normal": "Normálne", + "complex": "Komplex", + "highlyComplex": "Vysoko komplexné", + "ready": "Pripravené", + "indexing": "Indexovanie", + "unavailable": "Nedostupné", + "error": "Chyba" }, "otp": { "name": "Dvojfaktorové overovanie", @@ -545,7 +513,96 @@ "exit": "Exit", "permanent": "Trvalé", "hash": "Hash", - "of": "z" + "of": "z", + "source": "Zdroj{suffix}", + "percentage": "{percentage}%", + "type": "Typ{suffix}", + "size": "Veľkosť{suffix}", + "body": "Telo{suffix}", + "home": "Domov{suffix}", + "clear": "Jasné{suffix}", + "help": "Pomoc{suffix}", + "login": "Prihlásenie{suffix}", + "logout": "Odhlásenie{suffix}", + "preview": "Náhľad{suffix}", + "settings": "Nastavenia{suffix}", + "sources": "Zdroje{suffix}", + "links": "Odkazy{suffix}", + "tool": "Nástroj{suffix}", + "used": "použité{suffix}", + "status": "Stav{suffix}", + "analyze": "Analyzovať{suffix}", + "results": "Výsledky{suffix}", + "users": "Používatelia{suffix}", + "photos": "Fotografie", + "audio": "Audio{suffix}", + "videos": "Videá{suffix}", + "documents": "Dokumenty{suffix}", + "archives": "Archív{suffix}", + "images": "Obrázky{suffix}", + "music": "Hudba{suffix}", + "pdf": "PDF{suffix}", + "search": "Vyhľadávanie{suffix}", + "number": "Číslo{suffix}", + "types": "Typy{suffix}", + "video": "Video{suffix}", + "admin": "Administrátor{suffix}", + "branding": "Značkovanie{suffix}", + "language": "Jazyk{suffix}", + "documentation": "dokumentácia{suffix}", + "examples": "Príklady{suffix}", + "dark": "Dark{suffix}", + "light": "Svetlo{suffix}", + "title": "Téma{suffix}", + "expires": "Platnosť končí na{suffix}", + "scope": "Rozsah pôsobnosti{suffix}", + "rules": "Pravidlá{suffix}", + "downloads": "Na stiahnutie{suffix}", + "submit": "Prihlásenie{suffix}", + "navigation": "Navigácia{suffix}", + "metadata": "Metadáta{suffix}", + "loading": "Načítanie{suffix}", + "add": "Pridať{suffix}", + "cancel": "Zrušiť{suffix}", + "verify": "Overiť{suffix}", + "close": "Zatvoriť{suffix}", + "copy": "Kopírovať{suffix}", + "create": "Vytvoriť stránku{suffix}", + "delete": "Odstrániť{suffix}", + "download": "Stiahnite si{suffix}", + "file": "Súbor{suffix}", + "folder": "Priečinok{suffix}", + "info": "Informácie{suffix}", + "more": "Viac na{suffix}", + "move": "Presun{suffix}", + "new": "Nový{suffix}", + "next": "Ďalšie{suffix}", + "ok": "OK{suffix}", + "previous": "Predchádzajúci{suffix}", + "publish": "Publikovať{suffix}", + "rename": "Premenovať stránku{suffix}", + "replace": "Vymeňte stránku{suffix}", + "save": "Uložiť{suffix}", + "schedule": "Plán{suffix}", + "select": "Vyberte{suffix}", + "share": "Zdieľať{suffix}", + "update": "Aktualizácia{suffix}", + "upload": "Nahrať{suffix}", + "openFile": "Otvoriť súbor{suffix}", + "continue": "Pokračovať{suffix}", + "edit": "Upraviť{suffix}", + "pause": "Pauza{suffix}", + "resume": "Životopis{suffix}", + "retry": "Opakovanie{suffix}", + "disable": "Zakázať{suffix}", + "confirm": "Potvrďte{suffix}", + "stay": "Zostaňte na{suffix}", + "scopes": "Rozsahy{suffix}", + "commands": "Príkazy{suffix}", + "uploading": "Nahrávanie{suffix}", + "paused": "Pozastavenie{suffix}", + "conflict": "Konflikt{suffix}", + "change": "Zmena{suffix}" }, "access": { "rules": "Pravidlá prístupu", @@ -560,13 +617,15 @@ "enterName": "Zadajte meno používateľa alebo skupiny", "deleted": "Prístupové pravidlo odstránené!", "added": "Pridané pravidlo prístupu!", - "name": "Názov", "accessManagement": "Správa prístupu", "totalDenied": "Odmietnuté", "totalAllowed": "Povolené", "all": "Odmietnuť všetko", "defaultBehaviorDescription": "Toto ukazuje, čo sa stane, keď sa používateľ pokúsi získať prístup k ceste, kde neexistujú žiadne špecifické pravidlá prístupu. \"Allow\" (Povoliť) znamená, že používatelia majú predvolený prístup, \"Deny\" (Odmietnuť) znamená, že používatelia sú predvolene blokovaní, pokiaľ to nie je výslovne povolené.", - "defaultBehavior": "Predvolená akcia{suffix}" + "defaultBehavior": "Predvolená akcia{suffix}", + "deletedCascade": "Prístupové pravidlá odstránené z cesty a všetkých podcestí!", + "cascadeDelete": "Rekurzívne vymazanie", + "cascadeDeleteDescription": "Ak je táto možnosť povolená, odstránením pravidla prístupu sa odstráni aj zo všetkých podadresárov. To umožňuje úplne odstrániť používateľa alebo skupinu z celého stromu adresárov." }, "fileLoading": { "title": "Nahrávanie a sťahovanie", @@ -644,16 +703,16 @@ "themeAndLanguage": "Téma a jazyk", "previewFolder": "Zobrazenie miniatúr priečinkov, ak sú k dispozícii", "previewFolderDescription": "Zobrazenie náhľadov miniatúr pre priečinky s prvou podriadenou položkou s miniatúrou ako obálkou.", - "disableFileExtensions": "Zadajte prípony súborov, ktoré chcete zakázať", - "defaultLandingPage": "Predvolená vstupná stránka", - "defaultLandingPageDescription": "napr. '/files/mysource/mysubpath' alebo '/settings' - predvolená stránka je /files, ktorá prechádza do prvého zobrazenia zoznamu zdrojov" + "disableFileExtensions": "Zadajte prípony súborov, ktoré chcete zakázať" }, "editor": { "uninitialized": "Nepodarilo sa inicializovať editor. Prosím, načítajte ho znova.", "saveFailed": "Nepodarilo sa uložiť súbor. Skúste to prosím znova.", "saveAborted": "Uloženie prerušené. Názov súboru sa nezhoduje s aktívnym súborom.", "saveAbortedMessage": "Operácia uloženia sa prerušila. Aktívny súbor aplikácie ({activeFile}) sa nezhoduje so súborom, ktorý sa pokúšate uložiť ({tryingToSave}).", - "syncFailed": "sa nepodarilo synchronizovať stav s trasou pre \"{filename}\" po 5 pokusoch. Prerušenie nastavenia editora, aby sa zabránilo poškodeniu údajov." + "syncFailed": "sa nepodarilo synchronizovať stav s trasou pre \"{filename}\" po 5 pokusoch. Prerušenie nastavenia editora, aby sa zabránilo poškodeniu údajov.", + "fileSaved": "Súbor uložený!", + "errorSavingFile": "Chyba pri ukladaní súboru: {error}" }, "player": { "LoopEnabled": "Slučka povolená", @@ -666,5 +725,93 @@ "changePlaybackMode": "Zmeniť režim prehrávania", "changePlaybackModeHint": "Zmeňte režim prehrávania, aby ste videli viac súborov", "emptyQueue": "Front je prázdny" + }, + "fileSizeAnalyzer": { + "title": "Analyzátor veľkosti súborov", + "searchLocation": "Vyhľadávanie umiestnenia", + "selectPath": "Vyberte miesto vyhľadávania", + "largerThan": "Väčšie ako (MB)", + "includeFolders": "Zahrnúť priečinky", + "includeFoldersDescription": "Zahrnutie adresárov do analýzy", + "totalFiles": "Celkové súbory{suffix}", + "totalSize": "Celková veľkosť{suffix}", + "emptyState": "Zadajte kritériá vyhľadávania a kliknutím na tlačidlo Analyzovať zobrazte veľkosti súborov", + "completeResults": "Zobrazené kompletné výsledky!", + "incompleteResults": "Výsledky môžu byť neúplné", + "incompleteResultsDetails": "Zobrazené maximálne výsledky (100). Skúste zúžiť vyhľadávanie, aby ste získali viac výsledkov pod 100.", + "relativePercentage": "Relatívne percento{suffix}", + "percentageOfResults": "{percentage}% výsledkov" + }, + "fileTypes": { + "video": "Video", + "image": "Obrázok", + "audio": "Audio", + "archive": "Archív", + "document": "Dokument", + "binary": "Binárne", + "directory": "Adresár", + "other": "Iné" + }, + "tools": { + "description": "Nástroje a nástroje na analýzu vašich súborov", + "sizeAnalyzer": { + "name": "Analyzátor veľkosti súborov", + "description": "Vizualizácia veľkých súborov a adresárov pomocou interaktívnej mapy stromov" + }, + "title": "Nástroje", + "duplicateFinder": { + "name": "Vyhľadávač duplicitných súborov", + "description": "Vyhľadávanie a správa duplicitných súborov na obnovu úložného priestoru" + }, + "materialIconPicker": { + "name": "Výber ikony materiálu", + "description": "Prehľadávanie a vyhľadávanie ikon Material Icons so živým náhľadom", + "searchPlaceholder": "Vyhľadávanie ikon...", + "popularIcons": "Zobrazuje sa {count} populárne ikony", + "showingResults": "Zobrazené výsledky {count} ", + "noResults": "Nenašli sa žiadne ikony", + "tryDifferentSearch": "Skúste použiť iný vyhľadávací výraz", + "copiedToClipboard": "Skopírované '{name}' do schránky!", + "copyFailed": "Nepodarilo sa skopírovať do schránky", + "custom": "Vlastné", + "useCustomIcon": "Použite vlastnú ikonu: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Prehľadávať celú knižnicu ikon" + }, + "toolNotFound": "Nástroj nebol nájdený", + "backToTools": "Späť na Nástroje" + }, + "messages": { + "pathNotFound": "Cesta neexistuje v súborovom systéme", + "pathNotFoundMessage": "Cesta k nemu už v súborovom systéme neexistuje. Možno bola presunutá alebo odstránená.", + "reassignPath": "Opätovné priradenie cesty", + "pathReassigned": "Cesta bola úspešne aktualizovaná!", + "pathReassignFailed": "Nepodarilo sa aktualizovať cestu. Skúste to prosím znova." + }, + "duplicateFinder": { + "title": "Vyhľadávač duplicitných súborov", + "minSize": "Minimálna veľkosť (MB){suffix}", + "minSizeHint": "Analyzovať len súbory väčšie ako táto veľkosť (v megabajtoch)", + "useChecksums": "Porovnanie obsahu súboru", + "useChecksumsDescription": "Do porovnania zahrňte aj obsah súboru. Bez toho sa súbory porovnávajú podľa veľkosti a podobnosti názvov súborov.", + "findDuplicates": "Vyhľadávanie duplikátov", + "groupsFound": "Nájdené duplicitné skupiny{suffix}", + "totalWastedSpace": "Celkový premrhaný priestor{suffix}", + "wasted": "Plytvanie{suffix}", + "emptyState": "Zadajte kritériá vyhľadávania a kliknite na tlačidlo Nájsť duplikáty, aby ste identifikovali duplicitné súbory" + }, + "notifications": { + "title": "Oznámenia", + "description": "Zobrazenie všetkých oznámení z aktuálnej relácie", + "empty": "Zatiaľ žiadne oznámenia", + "clearAll": "Vymazať všetko", + "clearConfirm": "Ste si istí, že chcete vymazať celú históriu oznámení?", + "total": "{count} oznámenia" + }, + "events": { + "serverShutdown": "Server bol vypnutý.", + "authenticationFailed": "Autentifikácia zlyhala. Obnovte stránku a prihláste sa znova.", + "reconnected": "Opätovné pripojenie k serveru.", + "connectionLost": "Spojenie so serverom bolo stratené. Pri pokuse o opätovné pripojenie..." } } diff --git a/frontend/src/i18n/sv-se.json b/frontend/src/i18n/sv-se.json index 2d15ae40ea..fa0b707e09 100644 --- a/frontend/src/i18n/sv-se.json +++ b/frontend/src/i18n/sv-se.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Avbryt", - "close": "Stäng", - "copy": "Kopiera", "copyFile": "Kopiera fil", "copyToClipboard": "Kopiera till urklipp", - "create": "Skapa", - "delete": "Ta bort", - "download": "Ladda ner", - "info": "Info", - "more": "Mer", - "move": "Flytta", "moveFile": "Flytta fil", - "new": "Nytt", - "next": "Nästa", - "ok": "OK", "permalink": "Skapa en permanent länk", - "previous": "Föregående", - "publish": "Publisera", - "rename": "Ändra namn", - "replace": "Ersätt", "reportIssue": "Rapportera problem", - "save": "Spara", - "schedule": "Schema", - "search": "Sök", - "select": "Välj", "selectMultiple": "Välj flera", - "share": "Dela", "shell": "Växla skal", "switchView": "Byt vy", "toggleSidebar": "Växla sidofält", - "update": "Uppdatera", - "upload": "Ladda upp", "generateNewOtp": "Återställ och skapa ny tvåfaktorkod", - "verify": "Verifiera", "copyDownloadLinkToClipboard": "Kopiera nedladdningslänken till urklipp", - "file": "Fil", - "folder": "Mapp", - "submit": "Skicka in", - "openFile": "Öppna fil", - "continue": "Fortsätt", - "edit": "Redigera", - "pause": "Paus", - "resume": "Meritförteckning", - "retry": "Försök igen", "pauseAll": "Pausa alla", "resumeAll": "Återuppta alla", "clearCompleted": "Klart avslutat", @@ -62,10 +29,8 @@ "discardAndExit": "Kassera och avsluta", "saveAndExit": "Spara och avsluta", "keepEditing": "Fortsätt redigera", - "stayOnPrompt": "Stanna kvar", "closeAnyway": "Stäng i alla fall", - "disable": "Avaktivera", - "confirm": "Bekräfta" + "goToItem": "Gå till artikel" }, "download": { "downloadFile": "Ladda ner fil", @@ -77,31 +42,31 @@ "internal": "Något gick fel", "notFound": "Det går inte att nå den här platsen.", "connection": "Det går inte att nå servern.", - "shareNotFound": "Ogiltig eller utgången andel." + "shareNotFound": "Ogiltig eller utgången andel.", + "failedToConnectToServer": "Det gick inte att ansluta till servern, är den fortfarande igång?" }, "files": { - "body": "Huvud", - "clear": "Rensa", "closePreview": "Stäng förhands granskningen", - "home": "Hem", "lastModified": "Senast ändrad", - "loading": "Laddar.....", "lonely": "Väldigt ensamt här....", - "metadata": "Metadata", "multipleSelectionEnabled": "Flerval är på", - "name": "Namn", - "size": "Storlek", "sortByLastModified": "Sortera på senast ändrad", "sortByName": "Sortera på namn", "sortBySize": "Sortera på storlek", "noPreview": "Förhandsgranskning är inte tillgänglig för den här filen.", - "noDownloadAccess": "Nedladdning är inte tillgänglig." + "noDownloadAccess": "Nedladdning är inte tillgänglig.", + "itemSelected": "objekt valt", + "itemsSelected": "objekt valda", + "myFiles": "Mina filer{suffix}", + "newFile": "Ny fil{suffix}", + "newFolder": "Ny folder{suffix}", + "duration": "Varaktighet{suffix}", + "sortByDuration": "Sortera efter varaktighet" }, "help": { "functionKeys": "Funktionstangenter", "mouseActions": "Musåtgärder", "fileOperations": "Filoperationer", - "navigation": "Navigering", "click": "välj fil eller mapp", "ctrl": { "click": "välj flera filer eller mappar", @@ -115,11 +80,11 @@ "del": "ta bort valda objekt", "esc": "Rensa markeringen och/eller stänga prompten", "f2": "ändra namnet på filen", - "help": "Hjälp", "f1": "visa hjälp prompt", "description": "Du kan se de grundläggande navigeringsalternativen nedan. För ytterligare information, vänligen besök", "slash": "aktivera sökning", - "wiki": "FileBrowser Quantum officiella dokument" + "wiki": "FileBrowser Quantum officiella dokument", + "marqueeSelect": "välj flera filer eller kataloger genom att dra på tomt utrymme" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Du har redan ett konto", "passwordConfirm": "Bekräfta lösenord", "passwordsDontMatch": "Lösenord matchar inte", - "submit": "Logga in", "usernameTaken": "Användarnamn upptaget", "wrongCredentials": "Fel inloggning", "or": "ELLER", @@ -208,7 +172,6 @@ "viewMode": "Visa läge", "renameMessage": "Ange ett nytt namn:", "renameMessageInvalid": "En fil kan inte innehålla \"/\" eller \"\\\"", - "source": "Källa{suffix}", "deleteMessageMultiple": "Är du säker att du vill ta bort {count} fil(er)?", "deleteMessageShare": "Är du säker på att du vill ta bort den här aktien: {path} ?", "numberDirs": "Antal kataloger{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Välkommen till FileBrowser Quantum!", "halloweenTitle": "Glad Halloween!", "halloweenBody": "Halloween-temat har lagts till. Du kan inaktivera det om du inte gillar det, eller inaktivera det permanent i profilinställningarna genom att välja ett annat tema.", - "firstLoadBody": "En ny databas skapades vid uppstart. Om detta inte är vad du förväntade dig, vänligen dubbelkolla din konfigurationsfil för `server.database` sökväg och se till att den finns. På docker kan databassökvägen vara `./data/database.db` eller `./database.db`." + "firstLoadBody": "En ny databas skapades vid uppstart. Om detta inte är vad du förväntade dig, vänligen dubbelkolla din konfigurationsfil för `server.database` sökväg och se till att den finns. På docker kan databassökvägen vara `./data/database.db` eller `./database.db`.", + "selectPath": "Välj sökväg", + "renameSuccess": "Objektet har bytt namn framgångsrikt!", + "newFileSuccess": "Filen skapades framgångsrikt!", + "newDirSuccess": "Katalog skapad framgångsrikt!", + "copyToClipboardFailed": "Det går inte att kopiera till urklipp" }, "search": { - "images": "Bilder", - "music": "Musik", - "pdf": "PDF", - "search": "Sök...", - "types": "Typ", - "video": "Video", - "path": "Väg:", "smallerThan": "Mindre än:", "largerThan": "Större än:", "helpText1": "Sökningen sker på varje tecken du skriver (minst 3 tecken för sökbegrepp).", @@ -267,18 +228,11 @@ "onlyFolders": "Endast mappar", "onlyFiles": "Endast filer", "showOptions": "Visa alternativ", - "photos": "Bilder", - "audio": "Ljud", - "videos": "Videor", - "documents": "Dokument", - "archives": "Arkiv", - "number": "Antal", "searchContext": "Sök kontext: {context}", "notEnoughCharacters": "Inte tillräckligt med tecken för att söka (min {minSearchLength})", "typeToSearch": "Börja skriva {minSearchLength} eller fler tecken för att påbörja sökningen." }, "settings": { - "admin": "Admin", "administrator": "Administratör", "allowCommands": "Exekvera kommandon", "allowEdit": "Ändra, döp om och ta bort filer eller mappar", @@ -286,7 +240,6 @@ "allowPublish": "Publicera nya inlägg och sidor", "allowSignup": "Tillåt användare att registrera sig", "avoidChanges": "(lämna blankt för att undvika ändringar)", - "branding": "Varumärke", "brandingDirectoryPath": "Sökväg till varumärkes katalog", "changePassword": "Ändra lösenord", "commandRunner": "Kommando körare", @@ -296,8 +249,6 @@ "defaultUserDescription": "Detta är standard inställningar för användare.", "disableExternalLinks": "Inaktivera externa länkar (förutom dokumentation)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "dokumentation", - "examples": "Exempel", "executeOnShell": "Exekvera på skal", "executeOnShellDescription": "Som standard kör fil bläddraren kommandona genom att anropa deras binärfiler direkt. Om du vill köra dem på ett skal i stället (till exempel bash eller PowerShell), kan du definiera det här med nödvändiga argument och flaggor. Om det är inställt kommer kommandot du kör att läggas till som ett argument. Detta gäller både användar kommandon och händelse krokar.", "globalRules": "Det här är en global uppsättning regler för att tillåta och inte tillåta. De gäller för alla användare. Du kan definiera specifika regler för varje användares inställningar för att åsidosätta de här inställningarna.", @@ -305,14 +256,11 @@ "insertPath": "Ange sökväg", "insertRegex": "Sätt in regex expression", "instanceName": "Instans namn", - "language": "Språk", "lockPassword": "Förhindra att användare kan byta lösenord", "newPassword": "Ditt nya lösenord", "newPasswordConfirm": "Bekräfta ditt nya lösenord", "newUser": "Ny användare", - "password": "Lösenord", "passwordUpdated": "Lösenord uppdaterat", - "path": "Väg", "permissions": { "modify": "Ändra fil", "share": "Dela filer", @@ -328,27 +276,16 @@ "profileSettings": "Profil inställningar", "ruleExample1": "förhindrar åtkomst till en dot-fil (till exempel. git,. gitignore) i varje mapp.\n", "ruleExample2": "blockerar åtkomsten till filen som heter Caddyfilen i roten av scopet.", - "rules": "Regler", "rulesHelp": "Här kan du definiera en uppsättning regler för godkänna och neka för den här specifika användaren. Den blockerade filen kommer inte upp i listningarna och kommer inte att vara tillgänglig till användaren. Vi stöder regex och sökvägar i förhållande till användarnas omfång.\n", - "scope": "Omfattning", "settingsUpdated": "Inställning uppdaterad!", "shareManagement": "Aktieförvaltning", "singleClick": "Öppna filer och kataloger med ett enda klick", - "themes": { - "dark": "Mörk", - "light": "Ljus", - "title": "Tema" - }, - "user": "Användare", - "userCommands": "Kommandon", "userCommandsHelp": "En utrymmesseparerad lista med tillgängliga kommandon för den här användaren. Exempel:\n", "userCreated": "Användare skapad", "userDefaults": "Standard inställning för användare", "userDeleted": "Användare borttagen", "userManagement": "Användarehantering", "userUpdated": "Användare uppdaterad!", - "username": "Användarnamn", - "users": "Användare", "enterPassword": "Ange lösenord", "enterPasswordAgain": "Ange lösenordet igen", "passwordsDoNotMatch": "Lösenorden stämmer inte överens", @@ -373,9 +310,7 @@ "api": "API-nycklar", "shareDeleted": "Dela borttaget!", "adminOptions": "Alternativ för administratörsanvändare", - "shareDuration": "Upphör att gälla", "searchOptions": "Sökalternativ", - "downloads": "Nedladdningar", "systemAdmin": "System & Administration", "configViewer": "Konfig-visare", "configViewerShowFull": "Visa fullständig konfiguration", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "t.ex. \"/undermapp\" - tom för standard", - "userScopes": "Omfattningar" + "newUserHintSubFolder": "t.ex. \"/undermapp\" - tom för standard" }, "sidebar": { - "help": "Hjälp", - "hugoNew": "Hugo ny", - "login": "Logga in", - "logout": "Logga ut", - "myFiles": "Mina filer", - "newFile": "Ny fil", - "newFolder": "Ny mapp", - "preview": "Visa", - "settings": "Inställningar", - "signup": "Registrera", "siteSettings": "System inställningar", - "sources": "Källor", "updateIsAvailable": "En uppdatering är tillgänglig!", - "fileActions": "Filåtgärder" + "fileActions": "Filåtgärder", + "customizeLinks": "Anpassa länkar i sidofältet", + "customizeLinksDescription": "Anpassa länkarna som visas i sidofältet. Dra och släpp för att ändra ordning.", + "currentLinks": "Aktuella länkar", + "addNewLink": "Lägg till ny länk", + "linkType": "Typ av länk", + "selectLinkType": "Välj en länktyp", + "customLink": "Anpassad länk", + "selectSource": "Välj källa", + "chooseSource": "Välj en källa", + "selectTool": "Välj verktyg", + "chooseTool": "Välj ett verktyg", + "linkName": "Länkens namn", + "linkNamePlaceholder": "Ange länkens namn", + "linkUrl": "Länk URL", + "linkUrlPlaceholder": "Ange URL eller sökväg (t.ex. /files/path eller https://example.com)", + "linkIcon": "Länk-ikon", + "linksUpdatedSuccess": "Sidofältets länkar uppdaterades framgångsrikt!", + "linksUpdateFailed": "Misslyckades med att uppdatera sidofältets länkar", + "sourceNotAccessible": "Denna källa är inte längre tillgänglig för dig", + "noLinksYet": "Inga länkar konfigurerade ännu. Lägg till din första länk nedan.", + "customizeShareLinks": "Anpassa sidofältets länkar för delning", + "customizeShareLinksDescription": "Anpassa länkarna som visas i sidofältet för den här aktien. Dra och släpp för att ändra ordning.", + "editLink": "Redigera länk", + "selectShare": "Välj Dela", + "chooseShare": "Välj en aktie", + "selectSharePath": "Väg inom andel (valfritt)", + "sharePathPlaceholder": "t.ex. /subfolder eller lämna tomt för root", + "browseIcons": "Bläddra i ikoner", + "pickIcon": "Välj en ikon", + "pickIconDescription": "Sök och välj en ikon från Material Icons-biblioteket", + "shareLinksUpdatedSuccess": "Dela sidofältets länkar uppdaterades framgångsrikt!", + "shareHome": "Dela hem", + "linkIconPlaceholder": "Ange eventuellt ett namn på materialikonen" }, "success": { "linkCopied": "Länk kopierad" @@ -481,7 +437,12 @@ "allowReplacements": "Tillåt filbyten", "allowReplacementsDescription": "Vem som helst kan ersätta befintliga filer när de laddar upp filer med samma namn.", "allowCreate": "Tillåt skapande och uppladdning av filer och mappar", - "allowCreateDescription": "Vem som helst kan skapa och ladda upp nya filer och mappar i den här delen." + "allowCreateDescription": "Vem som helst kan skapa och ladda upp nya filer och mappar i den här delen.", + "customizeSidebarLinks": "Anpassa länkar i sidofältet", + "customizeSidebarLinksButton": "Anpassa länkar", + "shareInfo": "Dela QR-kod och information", + "shareInfoDescription": "Den här länken visar information om aktien, inklusive titel, beskrivning, banner och QR-kod i en popup.", + "downloadDescription": "Den här länken gör det möjligt att ladda ner hela innehållet i aktien som en komprimerad fil." }, "api": { "title": "API-nycklar", @@ -505,21 +466,28 @@ "expires": "Upphör att gälla", "actions": "Åtgärder", "enabled": "Aktiverad", - "disabled": "Inaktiverad" + "disabled": "Inaktiverad", + "apiKeyDeleted": "API-nyckel raderad!" }, "index": { - "status": "Status", "assessment": "Bedömning", "lastScanned": "Senast skannad", "quickScan": "Snabbsökning Sekunder", "fullScan": "Fullständig skanning Sekunder", "settingsHover": "Inställningar för användare", - "logout": "Logga ut", "toggleClick": "Toggle Enkelklick", "toggleDark": "Växla till mörkt läge", "toggleSticky": "Växla klisterläge", - "used": "används", - "noSources": "Inga källor tillgängliga för den här användaren. Lägg antingen till en källa för den här användaren eller konfigurera en källa med defaultEnabled: true" + "noSources": "Inga källor tillgängliga för den här användaren. Lägg antingen till en källa för den här användaren eller konfigurera en källa med defaultEnabled: true", + "unknown": "Okänd", + "simple": "Enkel", + "normal": "Normal", + "complex": "Komplex", + "highlyComplex": "Mycket komplex", + "ready": "Redo", + "indexing": "Indexering", + "unavailable": "Ej tillgänglig", + "error": "Fel" }, "otp": { "name": "Tvåfaktorsautentisering", @@ -608,9 +576,7 @@ "themeAndLanguage": "Tema & språk", "previewFolder": "Visa miniatyrbilder för mappar om de är tillgängliga", "previewFolderDescription": "Visa förhandsvisningar av miniatyrbilder för mappar med första underordnade objekt med miniatyrbild som omslag.", - "disableFileExtensions": "Ange filändelser som ska inaktiveras", - "defaultLandingPage": "Standardlandningssida", - "defaultLandingPageDescription": "t.ex. \"/files/mysource/mysubpath\" eller \"/settings\" - standardsidan är /files som går till den första källförteckningsvyn" + "disableFileExtensions": "Ange filändelser som ska inaktiveras" }, "general": { "name": "Namn", @@ -625,7 +591,96 @@ "exit": "Avsluta", "permanent": "Permanent", "hash": "Hash", - "of": "av" + "of": "av", + "source": "Källa{suffix}", + "percentage": "{percentage}%", + "type": "Typ{suffix}", + "size": "Storlek{suffix}", + "body": "Kropp{suffix}", + "home": "Hem{suffix}", + "clear": "Klar{suffix}", + "help": "Hjälp{suffix}", + "login": "Logga in{suffix}", + "logout": "Logga ut{suffix}", + "preview": "Förhandsgranskning{suffix}", + "settings": "Inställningar{suffix}", + "sources": "Källor{suffix}", + "links": "Länkar{suffix}", + "tool": "Verktyg{suffix}", + "used": "används{suffix}", + "status": "Status{suffix}", + "analyze": "Analysera{suffix}", + "results": "Resultat{suffix}", + "users": "Användare{suffix}", + "photos": "Bilder", + "audio": "Ljud{suffix}", + "videos": "Videor{suffix}", + "documents": "Dokument{suffix}", + "archives": "Arkiv{suffix}", + "images": "Bilder{suffix}", + "music": "Musik{suffix}", + "pdf": "PDF{suffix}", + "search": "Sök{suffix}", + "number": "Antal{suffix}", + "types": "Typer{suffix}", + "video": "Video{suffix}", + "admin": "Administratör{suffix}", + "branding": "Varumärkesprofilering{suffix}", + "language": "Språk{suffix}", + "documentation": "dokumentation{suffix}", + "examples": "Exempel{suffix}", + "dark": "Mörk{suffix}", + "light": "Ljus{suffix}", + "title": "Tema{suffix}", + "expires": "Upphör att gälla{suffix}", + "scope": "Omfattning{suffix}", + "rules": "Regler{suffix}", + "downloads": "Nedladdningar{suffix}", + "submit": "Logga in{suffix}", + "navigation": "Navigering{suffix}", + "metadata": "Metadata{suffix}", + "loading": "Lastning{suffix}", + "add": "Lägg till{suffix}", + "cancel": "Avbryt{suffix}", + "verify": "Verifiera{suffix}", + "close": "Nära{suffix}", + "copy": "Kopia{suffix}", + "create": "Skapa{suffix}", + "delete": "Radera{suffix}", + "download": "Nedladdningar{suffix}", + "file": "Fil{suffix}", + "folder": "Mapp{suffix}", + "info": "Info{suffix}", + "more": "Mer om{suffix}", + "move": "Flytta{suffix}", + "new": "Ny{suffix}", + "next": "Nästa{suffix}", + "ok": "OK{suffix}", + "previous": "Föregående{suffix}", + "publish": "Publicera{suffix}", + "rename": "Byt namn på{suffix}", + "replace": "Byt ut{suffix}", + "save": "Spara{suffix}", + "schedule": "Schema{suffix}", + "select": "Välj{suffix}", + "share": "Aktie{suffix}", + "update": "Uppdatering{suffix}", + "upload": "Ladda upp{suffix}", + "openFile": "Öppna fil{suffix}", + "continue": "Fortsätt{suffix}", + "edit": "Redigera{suffix}", + "pause": "Paus{suffix}", + "resume": "Meritförteckning{suffix}", + "retry": "Försök igen{suffix}", + "disable": "Avaktivera{suffix}", + "confirm": "Bekräfta{suffix}", + "stay": "Stanna kvar{suffix}", + "scopes": "Omfattningar{suffix}", + "commands": "Kommandon{suffix}", + "uploading": "Uppladdning{suffix}", + "paused": "Pausad{suffix}", + "conflict": "Konflikt{suffix}", + "change": "Förändring{suffix}" }, "access": { "rules": "Regler för åtkomst", @@ -642,18 +697,22 @@ "enterName": "Ange användar- eller gruppnamn", "deleted": "Åtkomstregel raderad!", "added": "Tillträdesregel tillagd!", - "name": "Namn", "accessManagement": "Hantering av åtkomst", "all": "Avvisa alla", "defaultBehaviorDescription": "Detta visar vad som händer när en användare försöker komma åt en sökväg där det inte finns några specifika åtkomstregler. \"Allow\" innebär att användare kan komma åt som standard, \"Deny\" innebär att användare blockeras som standard om de inte uttryckligen tillåts.", - "defaultBehavior": "Standardåtgärd{suffix}" + "defaultBehavior": "Standardåtgärd{suffix}", + "deletedCascade": "Åtkomstregler raderade från sökvägen och alla undervägar!", + "cascadeDelete": "Rekursiv radering", + "cascadeDeleteDescription": "Om funktionen är aktiverad tas en åtkomstregel även bort från alla underkataloger. På så sätt kan du helt ta bort en användare eller grupp från hela katalogträdet." }, "editor": { "uninitialized": "Redigeraren kunde inte initieras. Vänligen ladda om.", "saveFailed": "Misslyckades med att spara filen. Vänligen försök igen.", "saveAborted": "Spara avbröts. Filnamnet stämmer inte överens med den aktiva filen.", "saveAbortedMessage": "Spara åtgärden avbröts. Programmets aktiva fil ({activeFile}) stämmer inte överens med den fil du försöker spara ({tryingToSave}).", - "syncFailed": "lyckades inte synkronisera tillstånd med rutten för \"{filename}\" efter 5 försök. Avbryter redigeringsinställningen för att förhindra datakorruption." + "syncFailed": "lyckades inte synkronisera tillstånd med rutten för \"{filename}\" efter 5 försök. Avbryter redigeringsinställningen för att förhindra datakorruption.", + "fileSaved": "Filen är sparad!", + "errorSavingFile": "Fel vid lagring av fil: {error}" }, "player": { "LoopEnabled": "Loop aktiverad", @@ -666,5 +725,93 @@ "changePlaybackMode": "Ändra uppspelningsläge", "changePlaybackModeHint": "Ändra uppspelningsläge för att se fler filer", "emptyQueue": "Kön är tom" + }, + "fileSizeAnalyzer": { + "title": "Analysator för filstorlek", + "searchLocation": "Sök plats", + "selectPath": "Välj sökplats", + "largerThan": "Större än (MB)", + "includeFolders": "Inkludera mappar", + "includeFoldersDescription": "Inkludera kataloger i analysen", + "totalFiles": "Totalt antal filer{suffix}", + "totalSize": "Total storlek{suffix}", + "emptyState": "Ange sökkriterier och klicka på Analyze för att visualisera filstorlekar", + "completeResults": "Fullständiga resultat visas!", + "incompleteResults": "Resultaten kan vara ofullständiga", + "incompleteResultsDetails": "Visar max resultat (100). Försök att begränsa din sökning för att få fler resultat under 100.", + "relativePercentage": "Relativ procentandel{suffix}", + "percentageOfResults": "{percentage}% av resultat" + }, + "fileTypes": { + "video": "Video", + "image": "Bild", + "audio": "Ljud", + "archive": "Arkiv", + "document": "Dokument", + "binary": "Binär", + "directory": "Katalog", + "other": "Övriga" + }, + "tools": { + "description": "Verktyg och analysverktyg för dina filer", + "sizeAnalyzer": { + "name": "Analysator för filstorlek", + "description": "Visualisera stora filer och kataloger med en interaktiv trädkarta" + }, + "title": "Verktyg", + "duplicateFinder": { + "name": "Hitta duplicerade filer", + "description": "Hitta och hantera dubbletter av filer för att återfå lagringsutrymme" + }, + "materialIconPicker": { + "name": "Väljare för materialikoner", + "description": "Bläddra bland och sök efter materialikoner med förhandsgranskning i realtid", + "searchPlaceholder": "Sök ikoner...", + "popularIcons": "Visar {count} populära ikoner", + "showingResults": "Visar resultat från {count} ", + "noResults": "Inga ikoner hittades", + "tryDifferentSearch": "Försök med en annan sökterm", + "copiedToClipboard": "Kopierade '{name}' till urklipp!", + "copyFailed": "Misslyckades med att kopiera till klippbordet", + "custom": "Anpassad", + "useCustomIcon": "Använd anpassad ikon: {name}", + "iconLibraryUrl": "teckensnitt.google.com/ikoner", + "browseFullLibrary": "Bläddra i hela ikonbiblioteket" + }, + "toolNotFound": "Verktyget hittades inte", + "backToTools": "Tillbaka till Verktyg" + }, + "messages": { + "pathNotFound": "Sökvägen finns inte i filsystemet", + "pathNotFoundMessage": "Sökvägen för detta finns inte längre på filsystemet. Den kan ha flyttats eller tagits bort.", + "reassignPath": "Omfördela sökväg", + "pathReassigned": "Sökvägen har uppdaterats!", + "pathReassignFailed": "Misslyckades med att uppdatera sökvägen. Vänligen försök igen." + }, + "duplicateFinder": { + "title": "Hitta duplicerade filer", + "minSize": "Minsta storlek (MB){suffix}", + "minSizeHint": "Analysera endast filer som är större än denna storlek (i megabyte)", + "useChecksums": "Jämför filinnehåll", + "useChecksumsDescription": "Inkludera även filinnehåll i jämförelsen. Utan detta matchas filerna efter storlek och likhet i filnamn.", + "findDuplicates": "Hitta dubbletter", + "groupsFound": "Duplicerade grupper hittades{suffix}", + "totalWastedSpace": "Totalt bortkastat utrymme{suffix}", + "wasted": "Bortkastad{suffix}", + "emptyState": "Ange sökkriterier och klicka på Find Duplicates för att identifiera dubbletter av filer" + }, + "notifications": { + "title": "Meddelanden", + "description": "Visa alla meddelanden från din aktuella session", + "empty": "Inga meddelanden ännu", + "clearAll": "Rensa alla", + "clearConfirm": "Är du säker på att du vill rensa all meddelandehistorik?", + "total": "{count} meddelanden" + }, + "events": { + "serverShutdown": "Servern stängdes av.", + "authenticationFailed": "Autentiseringen misslyckades. Uppdatera sidan för att logga in igen.", + "reconnected": "Återansluten till servern.", + "connectionLost": "Anslutningen till servern förlorades. Försöker återansluta..." } } diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.json index b2b65313db..49ae7a7334 100644 --- a/frontend/src/i18n/tr.json +++ b/frontend/src/i18n/tr.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Vazgeç", - "close": "Kapat", - "copy": "Kopyala", "copyFile": "Dosyayı kopyala", "copyToClipboard": "Panoya kopyala", - "create": "Oluştur", - "delete": "Sil", - "download": "İndir", - "info": "Bilgi", - "more": "Daha fazla", - "move": "Taşı", "moveFile": "Dosyayı taşı", - "new": "Yeni", - "next": "Sonraki", - "ok": "Tamam", "permalink": "Kalıcı Bağlantı Alın", - "previous": "Önceki", - "publish": "Yayınla", - "rename": "Yeniden anlandır", - "replace": "Değiştir", "reportIssue": "Sorun bildir", - "save": "Kaydet", - "schedule": "Planla", - "search": "Ara", - "select": "Seç", "selectMultiple": "Çoklu seçim", - "share": "Paylaş", "shell": "Komut satırı aç/kapat", - "submit": "Gönder", "switchView": "Görünümü değiştir", "toggleSidebar": "Menüyü aç/kapat", - "update": "Güncelle", - "upload": "Yükle", - "openFile": "Dosyayı aç", "copyDownloadLinkToClipboard": "İndirme bağlantısını panoya kopyala", - "file": "Dosya", - "folder": "Klasör", - "continue": "Devam et", - "edit": "Düzenle", "generateNewOtp": "Sıfırlama ve yeni iki faktörlü kod oluşturma", - "verify": "Doğrulama", - "pause": "Duraklat", - "resume": "Özgeçmiş", - "retry": "Yeniden Dene", "pauseAll": "Tümünü duraklat", "resumeAll": "Tümünü devam ettir", "clearCompleted": "Temizleme tamamlandı", @@ -62,10 +29,8 @@ "discardAndExit": "At ve Çık", "saveAndExit": "Kaydet ve Çık", "keepEditing": "Düzenlemeye Devam Et", - "stayOnPrompt": "Kalmak", "closeAnyway": "Her Neyse Kapat", - "disable": "Devre dışı bırak", - "confirm": "Onaylayın" + "goToItem": "Öğeye git" }, "download": { "downloadFile": "Dosyayı indir", @@ -77,31 +42,31 @@ "internal": "Bir şeyler ters gitti.", "notFound": "Bu konuma ulaşılamıyor.", "connection": "Sunucuya ulaşılamıyor.", - "shareNotFound": "Geçersiz veya süresi dolmuş paylaşım." + "shareNotFound": "Geçersiz veya süresi dolmuş paylaşım.", + "failedToConnectToServer": "Sunucuya bağlanılamadı, hala çalışıyor mu?" }, "files": { - "body": "Sayfa", - "clear": "Temizle", "closePreview": "Önizlemeyi kapat", - "home": "Ana dizin", "lastModified": "Son güncellenme", - "loading": "Yükleniyor...", "lonely": "Burada yalnızlık hissediyorum...", - "metadata": "meta veri", "multipleSelectionEnabled": "Çoklu seçim etkin", - "name": "İsim", - "size": "Boyut", "sortByLastModified": "Güncelleme tarihine göre sırala", "sortByName": "İsme göre sırala", "sortBySize": "Boyuta göre sırala", "noPreview": "Bu dosya için önizleme aktif değil", - "noDownloadAccess": "İndirme mevcut değil." + "noDownloadAccess": "İndirme mevcut değil.", + "itemSelected": "öge seçildi", + "itemsSelected": "öge seçildi", + "myFiles": "Benim dosyalarım{suffix}", + "newFile": "Yeni dosya{suffix}", + "newFolder": "Yeni klasör{suffix}", + "duration": "Süre{suffix}", + "sortByDuration": "Süreye göre sırala" }, "help": { "functionKeys": "Fonksiyon Tuşları", "mouseActions": "Fare İşlemleri", "fileOperations": "Dosya İşlemleri", - "navigation": "Gezinme", "click": "dosya veya klasör seçin", "ctrl": { "click": "çoklu dosya ve klasör seçin", @@ -115,11 +80,11 @@ "del": "seçilileri sil", "esc": "seçimi temizle veya kapatın", "f2": "dosyayı yeniden adlandır", - "help": "Yardım", "f1": "yardım istemini göster", "description": "Temel navigasyon seçeneklerini aşağıda görüntüleyebilirsiniz. Ek bilgi için lütfen şu adresi ziyaret edin", "slash": "aramayı etkinleştir", - "wiki": "FileBrowser Quantum Resmi Dokümanları" + "wiki": "FileBrowser Quantum Resmi Dokümanları", + "marqueeSelect": "boş alana sürükleyerek birden fazla dosya veya dizin seçme" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Zaten hesabınız var mı", "passwordConfirm": "Şifre tekrarı", "passwordsDontMatch": "Şifreler uyuşmuyor", - "submit": "Giriş", "usernameTaken": "Kullanıcı adı mevcut", "wrongCredentials": "Yanlış hesap bilgileri", "or": "VEYA", @@ -208,7 +172,6 @@ "viewMode": "Görünüm modu", "renameMessage": "Yeni bir ad girin:", "renameMessageInvalid": "Bir dosya \"/\" veya \"\\\" içeremez", - "source": "Kaynak{suffix}", "deleteMessageMultiple": "{count} dosya(lar)ını silmek istediğinizden emin misiniz?", "deleteMessageShare": "Bu paylaşımı silmek istediğinizden emin misiniz? {path} ?", "numberDirs": "Dizin sayısı{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "FileBrowser Quantum'a hoş geldiniz!", "halloweenTitle": "Mutlu Cadılar Bayramı!", "halloweenBody": "Cadılar Bayramı teması uygulanmıştır. Beğenmediyseniz devre dışı bırakabilir veya profil ayarlarından başka bir tema seçerek kalıcı olarak devre dışı bırakabilirsiniz.", - "firstLoadBody": "Başlangıçta yeni bir veritabanı oluşturuldu. Beklediğiniz bu değilse, lütfen `server.database` yolu için yapılandırma dosyanızı iki kez kontrol edin ve var olduğundan emin olun. Docker üzerinde, veritabanı yolu `./data/database.db` veya `./database.db` olabilir." + "firstLoadBody": "Başlangıçta yeni bir veritabanı oluşturuldu. Beklediğiniz bu değilse, lütfen `server.database` yolu için yapılandırma dosyanızı iki kez kontrol edin ve var olduğundan emin olun. Docker üzerinde, veritabanı yolu `./data/database.db` veya `./database.db` olabilir.", + "selectPath": "Yol Seçin", + "renameSuccess": "Öğe başarıyla yeniden adlandırıldı!", + "newFileSuccess": "Dosya başarıyla oluşturuldu!", + "newDirSuccess": "Dizin başarıyla oluşturuldu!", + "copyToClipboardFailed": "Panoya kopyalanamıyor" }, "search": { - "images": "Görseller", - "music": "Müzik", - "pdf": "PDF", - "search": "Ara...", - "types": "Türler", - "video": "Video", - "path": "Yol:", "smallerThan": "Daha küçük:", "largerThan": "Daha büyük:", "helpText1": "Arama, yazdığınız her karakterde gerçekleşir (arama terimleri için minimum 3 karakter).", @@ -267,18 +228,11 @@ "onlyFolders": "Yalnızca Klasörler", "onlyFiles": "Sadece Dosyalar", "showOptions": "Seçenekleri Göster", - "photos": "Fotoğraflar", - "audio": "Ses", - "videos": "Videolar", - "documents": "Belgeler", - "archives": "Arşivler", - "number": "Sayı", "searchContext": "Arama Bağlamı: {context}", "notEnoughCharacters": "Arama yapmak için yeterli karakter yok (min {minSearchLength})", "typeToSearch": "Aramaya başlamak için {minSearchLength} veya daha fazla karakter yazmaya başlayın." }, "settings": { - "admin": "Yönetim", "administrator": "Yönetici", "allowCommands": "Komutları çalıştır", "allowEdit": "Dosyaları veya dizinleri düzenleyin, yeniden adlandırın ve silin", @@ -286,7 +240,6 @@ "allowPublish": "Yeni linkler ve sayfaları yayınlayın", "allowSignup": "Kullanıcıların kaydolmasına izin ver", "avoidChanges": "(değişiklikleri önlemek için boş bırakın)", - "branding": "Marka", "brandingDirectoryPath": "Marka dizin yolu", "changePassword": "Şifre Değiştir", "commandRunner": "Komut satırı", @@ -296,8 +249,6 @@ "defaultUserDescription": "Bu, yeni kullanıcılar için varsayılan ayarlardır.", "disableExternalLinks": "Harici bağlantıları devre dışı bırakın (dökümantasyon hariç)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "dökümantasyon", - "examples": "Örnekler", "executeOnShell": "Komut satırında çalıştır", "executeOnShellDescription": "Varsayılan olarak, FileBrowser komutları doğrudan dosyaları çağırarak yürütür. Bunları komut satırında çalıştırmak istiyorsanız (Bash veya PowerShell gibi), burada gerekli argümanlar ve flagler tanımlayabilirsiniz. Ayarlanırsa, yürüttüğünüz komut argüman olarak eklenir. Bu, hem kullanıcı komutları hem de event hooklar için geçerlidir.", "globalRules": "Bu, genel bir izin verme ve izin vermeme kurallar bütünüdür. Her kullanıcı için geçerlidirler. Bunları geçersiz kılmak için her kullanıcının ayarlarında belirli kurallar tanımlayabilirsiniz.", @@ -305,14 +256,11 @@ "insertPath": "Dizini ekle", "insertRegex": "Regex ifadesini ekle", "instanceName": "Instance adı", - "language": "Dil", "lockPassword": "Kullanıcının parolayı değiştirmesini engelle", "newPassword": "Yeni şifre", "newPasswordConfirm": "Yeni şifre tekrarı", "newUser": "Yeni Kullanıcı", - "password": "Şifre", "passwordUpdated": "Şifre güncellendi", - "path": "Yol", "permissions": { "modify": "Dosyaları değiştir", "share": "Dosyaları paylaş", @@ -328,28 +276,17 @@ "profileSettings": "Profil ayarları", "ruleExample1": "her klasördeki herhangi bir noktalı dosyaya (.git, .gitignore gibi) erişimi engeller.\n", "ruleExample2": "Root erişimidenki CaddyFile dosyalarına erişimi engelle.", - "rules": "Kurallar", "rulesHelp": "Burada, bu belirli kullanıcı için bir dizi izin verme ve izin vermeme kuralı tanımlayabilirsiniz. Engellenen dosyalar listelerde görünmeyecek ve kullanıcı bunlara erişemeyecek. Kullanıcı erişimine göre regex ifadeleri destekliyoruz.\n", - "scope": "Kapsam", "settingsUpdated": "Ayarlar güncellendi!", "shareManagement": "Paylaşım yönetimi", "shareDeleted": "Paylaşım silindi!", "singleClick": "Dosyaları ve dizinleri açmak için tek tıklamayı kullanın", - "themes": { - "dark": "Dark", - "light": "Light", - "title": "Theme" - }, - "user": "Kullanıcı", - "userCommands": "Komutları", "userCommandsHelp": "Bu kullanıcı için mevcut komutları içeren boşlukla ayrılmış bir liste. Örnek:\n", "userCreated": "Kullanıcı oluşturuldu!", "userDefaults": "Kullanıcı varsayılan ayarları", "userDeleted": "Kullanıcı silindi!", "userManagement": "Kullanıcı yönetimi", "userUpdated": "Kullanıcı güncellendi!", - "username": "Kullanıcı adı", - "users": "Kullanıcılar", "modifyOtherUser": "Kullanıcıyı değiştir:", "modifyCurrentUser": "Geçerli kullanıcıyı değiştir", "themeColor": "Tema Rengi", @@ -373,9 +310,7 @@ "loginMethod": "Giriş yöntemi", "shareSettings": "Paylaşım Ayarları", "adminOptions": "Yönetici kullanıcı seçenekleri", - "shareDuration": "Sona erdi", "searchOptions": "Arama seçenekleri", - "downloads": "İndirmeler", "systemAdmin": "Sistem ve Yönetici", "configViewer": "Konfigürasyon Görüntüleyici", "configViewerShowFull": "Tam yapılandırmayı göster", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Proxy" }, - "newUserHintSubFolder": "örneğin '/subfolder' - varsayılan için boş", - "userScopes": "Dürbünler" + "newUserHintSubFolder": "örneğin '/subfolder' - varsayılan için boş" }, "sidebar": { - "help": "Yardım", - "hugoNew": "Yeni Hugo", - "login": "Giriş", - "logout": "Çıkış", - "myFiles": "Dosyalarım", - "newFile": "Yeni dosya", - "newFolder": "Yeni klasör", - "preview": "Önizleme", - "settings": "Ayarlar", - "signup": "Kayıt", "siteSettings": "Site ayarları!", - "sources": "Kaynaklar", "updateIsAvailable": "Bir güncelleme mevcut!", - "fileActions": "Dosya işlemleri" + "fileActions": "Dosya işlemleri", + "customizeLinks": "Kenar Çubuğu Bağlantılarını Özelleştirme", + "customizeLinksDescription": "Kenar çubuğunuzda gösterilen bağlantıları özelleştirin. Yeniden sıralamak için sürükleyip bırakın.", + "currentLinks": "Güncel Bağlantılar", + "addNewLink": "Yeni Bağlantı Ekle", + "linkType": "Bağlantı Türü", + "selectLinkType": "Bir bağlantı türü seçin", + "customLink": "Özel Bağlantı", + "selectSource": "Kaynak Seçiniz", + "chooseSource": "Bir kaynak seçin", + "selectTool": "Araç Seçin", + "chooseTool": "Bir araç seçin", + "linkName": "Bağlantı Adı", + "linkNamePlaceholder": "Bağlantı adını girin", + "linkUrl": "Bağlantı URL'si", + "linkUrlPlaceholder": "URL veya yol girin (örn. /files/path veya https://example.com)", + "linkIcon": "Bağlantı Simgesi", + "linksUpdatedSuccess": "Kenar çubuğu bağlantıları başarıyla güncellendi!", + "linksUpdateFailed": "Kenar çubuğu bağlantıları güncellenemedi", + "sourceNotAccessible": "Bu kaynak artık sizin için erişilebilir değil", + "noLinksYet": "Henüz yapılandırılmış bağlantı yok. İlk bağlantınızı aşağıya ekleyin.", + "customizeShareLinks": "Paylaşım Kenar Çubuğu Bağlantılarını Özelleştirme", + "customizeShareLinksDescription": "Bu paylaşım için kenar çubuğunda gösterilen bağlantıları özelleştirin. Yeniden sıralamak için sürükleyip bırakın.", + "editLink": "Bağlantıyı Düzenle", + "selectShare": "Paylaşımı Seçin", + "chooseShare": "Bir paylaşım seçin", + "selectSharePath": "Paylaşım içindeki yol (isteğe bağlı)", + "sharePathPlaceholder": "örneğin, /subfolder veya root için boş bırakın", + "browseIcons": "Simgelere Gözat", + "pickIcon": "Bir Simge Seçin", + "pickIconDescription": "Materyal Simgeleri kitaplığından bir simge arayın ve seçin", + "shareLinksUpdatedSuccess": "Kenar çubuğu bağlantılarını paylaşma başarıyla güncellendi!", + "shareHome": "Ev Paylaşımı", + "linkIconPlaceholder": "İsteğe bağlı olarak bir malzeme simgesi adı belirtin" }, "success": { "linkCopied": "Link kopyalandı!" @@ -481,7 +437,12 @@ "allowReplacements": "Dosya değiştirmelerine izin ver", "allowReplacementsDescription": "Aynı ada sahip dosyaları yüklerken herkes mevcut dosyaları değiştirebilir.", "allowCreate": "Dosya ve klasör oluşturmaya ve yüklemeye izin ver", - "allowCreateDescription": "Herkes bu paylaşımda yeni dosyalar ve klasörler oluşturabilir ve yükleyebilir." + "allowCreateDescription": "Herkes bu paylaşımda yeni dosyalar ve klasörler oluşturabilir ve yükleyebilir.", + "customizeSidebarLinks": "Kenar Çubuğu Bağlantılarını Özelleştirme", + "customizeSidebarLinksButton": "Bağlantıları Özelleştir", + "shareInfo": "QR Kodunu ve Bilgilerini Paylaş", + "shareInfoDescription": "Bu bağlantı, başlık, açıklama, başlık ve QR kodu dahil olmak üzere paylaşımın bilgilerini bir açılır pencerede görüntüler.", + "downloadDescription": "Bu bağlantı, tüm paylaşım içeriğinin sıkıştırılmış bir dosya olarak indirilmesini sağlar." }, "api": { "title": "API Anahtarları:", @@ -505,21 +466,28 @@ "expires": "Sona erdi", "actions": "Eylemler", "enabled": "Etkin", - "disabled": "Engelli" + "disabled": "Engelli", + "apiKeyDeleted": "API anahtarı silindi!" }, "index": { - "status": "Durum", "assessment": "Değerlendirme", "lastScanned": "Son Taranan", "quickScan": "Hızlı Tarama Saniyeleri", "fullScan": "Tam Tarama Saniyeleri", "settingsHover": "Kullanıcı Ayarları", - "logout": "Oturum Kapatma", "toggleClick": "Tek Tıklamayı Değiştir", "toggleDark": "Karanlık Modu Aç / Kapat", "toggleSticky": "Yapışkan Modunu Değiştir", - "used": "kullanılmış", - "noSources": "Bu kullanıcı için kullanılabilir kaynak yok. Ya bu kullanıcı için bir kaynak ekleyin ya da defaultEnabled: true ile bir kaynak yapılandırın" + "noSources": "Bu kullanıcı için kullanılabilir kaynak yok. Ya bu kullanıcı için bir kaynak ekleyin ya da defaultEnabled: true ile bir kaynak yapılandırın", + "unknown": "Bilinmiyor", + "simple": "Basit", + "normal": "Normal", + "complex": "Kompleks", + "highlyComplex": "Son Derece Karmaşık", + "ready": "Hazır", + "indexing": "İndeksleme", + "unavailable": "Kullanılamıyor", + "error": "Hata" }, "otp": { "name": "İki Faktörlü Kimlik Doğrulama", @@ -545,7 +513,96 @@ "exit": "Çıkış", "permanent": "Daimi", "hash": "Hash", - "of": "." + "of": ".", + "source": "Kaynak{suffix}", + "percentage": "{percentage}%", + "type": "Tip{suffix}", + "size": "Boyut{suffix}", + "body": "Vücut{suffix}", + "home": "Ev{suffix}", + "clear": "Temiz{suffix}", + "help": "Yardım{suffix}", + "login": "Giriş{suffix}", + "logout": "Oturum Kapatma{suffix}", + "preview": "Önizleme{suffix}", + "settings": "Ayarlar{suffix}", + "sources": "Kaynaklar{suffix}", + "links": "Bağlantılar{suffix}", + "tool": "Alet{suffix}", + "used": "kullanılmış{suffix}", + "status": "Durum{suffix}", + "analyze": "Analiz{suffix}", + "results": "Sonuçlar{suffix}", + "users": "Kullanıcılar{suffix}", + "photos": "Fotoğraflar", + "audio": "Ses{suffix}", + "videos": "Videolar{suffix}", + "documents": "Belgeler{suffix}", + "archives": "Arşivler{suffix}", + "images": "Görüntüler{suffix}", + "music": "Müzik{suffix}", + "pdf": "PDF{suffix}", + "search": "Arama{suffix}", + "number": "Sayı{suffix}", + "types": "Türleri{suffix}", + "video": "Video{suffix}", + "admin": "Yönetici{suffix}", + "branding": "Markalaşma{suffix}", + "language": "Dil{suffix}", + "documentation": "dokümantasyon{suffix}", + "examples": "Örnekler{suffix}", + "dark": "Karanlık{suffix}", + "light": "Işık{suffix}", + "title": "Tema{suffix}", + "expires": "Sona erdi{suffix}", + "scope": "Kapsam{suffix}", + "rules": "Kurallar{suffix}", + "downloads": "İndirmeler{suffix}", + "submit": "Giriş{suffix}", + "navigation": "Navigasyon{suffix}", + "metadata": "Metadata{suffix}", + "loading": "Yükleniyor{suffix}", + "add": "Ekle{suffix}", + "cancel": "İptal{suffix}", + "verify": "Doğrulama{suffix}", + "close": "Kapat{suffix}", + "copy": "Anlaşıldı{suffix}", + "create": "Oluştur{suffix}", + "delete": "Silme{suffix}", + "download": "İndir{suffix}", + "file": "Dosya{suffix}", + "folder": "Klasör{suffix}", + "info": "Bilgi{suffix}", + "more": "Daha fazla{suffix}", + "move": "Hareket{suffix}", + "new": "Yeni{suffix}", + "next": "Sonraki{suffix}", + "ok": "TAMAM.{suffix}", + "previous": "Önceki{suffix}", + "publish": "Yayınla{suffix}", + "rename": "Yeniden Adlandır{suffix}", + "replace": "Değiştirin{suffix}", + "save": "Kaydet{suffix}", + "schedule": "Program{suffix}", + "select": "Seçiniz{suffix}", + "share": "Paylaş{suffix}", + "update": "Güncelleme{suffix}", + "upload": "Yükle{suffix}", + "openFile": "Dosya aç{suffix}", + "continue": "Devam et{suffix}", + "edit": "Düzenle{suffix}", + "pause": "Duraklat{suffix}", + "resume": "Özgeçmiş{suffix}", + "retry": "Yeniden Dene{suffix}", + "disable": "Devre dışı bırak{suffix}", + "confirm": "Onaylayın{suffix}", + "stay": "Kalmak{suffix}", + "scopes": "Dürbünler{suffix}", + "commands": "Komutlar{suffix}", + "uploading": "Yükleme{suffix}", + "paused": "Duraklatıldı{suffix}", + "conflict": "Çatışma{suffix}", + "change": "Değişim{suffix}" }, "access": { "rules": "Erişim kuralları", @@ -560,13 +617,15 @@ "enterName": "Kullanıcı veya grup adını girin", "deleted": "Erişim kuralı silindi!", "added": "Erişim kuralı eklendi!", - "name": "İsim", "accessManagement": "Erişim Yönetimi", "totalDenied": "Reddedildi", "totalAllowed": "İzin verildi", "all": "Tümünü Reddet", "defaultBehaviorDescription": "Bu, bir kullanıcı belirli erişim kurallarının bulunmadığı bir yola erişmeye çalıştığında ne olacağını gösterir. 'Allow' kullanıcıların varsayılan olarak erişebileceği anlamına gelir, 'Deny' ise açıkça izin verilmediği sürece kullanıcıların varsayılan olarak engellendiği anlamına gelir.", - "defaultBehavior": "Varsayılan eylem{suffix}" + "defaultBehavior": "Varsayılan eylem{suffix}", + "deletedCascade": "Erişim kuralları yoldan ve tüm alt yollardan silindi!", + "cascadeDelete": "Yinelemeli Silme", + "cascadeDeleteDescription": "Etkinleştirildiğinde, bir erişim kuralı silindiğinde tüm alt dizinlerden de kaldırılır. Bu, bir kullanıcıyı veya grubu tüm dizin ağacından tamamen kaldırmanıza olanak tanır." }, "fileLoading": { "title": "Yüklemeler & İndirmeler", @@ -644,16 +703,16 @@ "themeAndLanguage": "Tema ve Dil", "previewFolder": "Varsa klasörler için küçük resimleri göster", "previewFolderDescription": "Kapak olarak küçük resmi olan ilk alt öğeye sahip klasörler için küçük resim önizlemelerini gösterin.", - "disableFileExtensions": "Devre dışı bırakılacak dosya uzantılarını girin", - "defaultLandingPage": "Varsayılan açılış sayfası", - "defaultLandingPageDescription": "örn. '/files/mysource/mysubpath' veya '/settings' - varsayılan sayfa /files olup ilk kaynak listeleme görünümüne gider" + "disableFileExtensions": "Devre dışı bırakılacak dosya uzantılarını girin" }, "editor": { "uninitialized": "Düzenleyici başlatılamadı. Lütfen yeniden yükleyin.", "saveFailed": "Dosya kaydedilemedi. Lütfen tekrar deneyin.", "saveAborted": "Kaydetme işlemi iptal edildi. Dosya adı etkin dosyayla eşleşmiyor.", "saveAbortedMessage": "Kaydetme işlemi iptal edildi. Uygulamanın etkin dosyası ({activeFile}) kaydetmeye çalıştığınız dosyayla ({tryingToSave}) eşleşmiyor.", - "syncFailed": "\"{filename}\" için 5 denemeden sonra rota ile durum senkronize edilemedi. Veri bozulmasını önlemek için düzenleyici kurulumu iptal ediliyor." + "syncFailed": "\"{filename}\" için 5 denemeden sonra rota ile durum senkronize edilemedi. Veri bozulmasını önlemek için düzenleyici kurulumu iptal ediliyor.", + "fileSaved": "Dosya kaydedildi!", + "errorSavingFile": "Dosya kaydedilirken hata oluştu: {error}" }, "player": { "LoopEnabled": "Döngü Etkin", @@ -666,5 +725,93 @@ "changePlaybackMode": "Oynatma modunu değiştir", "changePlaybackModeHint": "Daha fazla dosya görmek için oynatma modunu değiştirin", "emptyQueue": "Kuyruk boş" + }, + "fileSizeAnalyzer": { + "title": "Dosya Boyutu Analizörü", + "searchLocation": "Arama Konumu", + "selectPath": "Arama konumunu seçin", + "largerThan": "Daha Büyük (MB)", + "includeFolders": "Klasörleri Dahil Et", + "includeFoldersDescription": "Dizinleri analize dahil edin", + "totalFiles": "Toplam Dosya{suffix}", + "totalSize": "Toplam Boyut{suffix}", + "emptyState": "Arama kriterlerini girin ve dosya boyutlarını görselleştirmek için Analiz Et'e tıklayın", + "completeResults": "Tam sonuçlar gösterilmektedir!", + "incompleteResults": "Sonuçlar eksik olabilir", + "incompleteResultsDetails": "Maksimum sonuç gösteriliyor (100). 100'ün altında daha fazla sonuç almak için aramanızı daraltmayı deneyin.", + "relativePercentage": "Göreceli Yüzde{suffix}", + "percentageOfResults": "{percentage}Sonuçların %'si" + }, + "fileTypes": { + "video": "Video", + "image": "Resim", + "audio": "Ses", + "archive": "Arşiv", + "document": "Belge", + "binary": "İkili", + "directory": "Rehber", + "other": "Diğer" + }, + "tools": { + "description": "Dosyalarınız için yardımcı programlar ve analiz araçları", + "sizeAnalyzer": { + "name": "Dosya Boyutu Analizörü", + "description": "Etkileşimli ağaç haritası ile büyük dosya ve dizinleri görselleştirin" + }, + "title": "Araçlar", + "duplicateFinder": { + "name": "Yinelenen Dosya Bulucu", + "description": "Depolama alanını geri kazanmak için yinelenen dosyaları bulun ve yönetin" + }, + "materialIconPicker": { + "name": "Malzeme Simge Seçici", + "description": "Canlı önizleme ile Materyal Simgelerine göz atın ve arayın", + "searchPlaceholder": "Arama simgeleri...", + "popularIcons": "{count} popüler simgeler gösteriliyor", + "showingResults": "{count} sonuçları gösteriliyor", + "noResults": "Simge bulunamadı", + "tryDifferentSearch": "Farklı bir arama terimi deneyin", + "copiedToClipboard": "'{name}' panoya kopyalandı!", + "copyFailed": "Panoya kopyalanamadı", + "custom": "Özel", + "useCustomIcon": "Özel simge kullanın: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Simge kitaplığının tamamına göz atın" + }, + "toolNotFound": "Araç bulunamadı", + "backToTools": "Araçlara Geri Dön" + }, + "messages": { + "pathNotFound": "Yol dosya sisteminde mevcut değil", + "pathNotFoundMessage": "Bunun yolu artık dosya sisteminde mevcut değil. Taşınmış veya silinmiş olabilir.", + "reassignPath": "Yolu Yeniden Atayın", + "pathReassigned": "Yol başarıyla güncellendi!", + "pathReassignFailed": "Yol güncellenemedi. Lütfen tekrar deneyin." + }, + "duplicateFinder": { + "title": "Yinelenen Dosya Bulucu", + "minSize": "Minimum Boyut (MB){suffix}", + "minSizeHint": "Yalnızca bu boyuttan (megabayt cinsinden) büyük dosyaları analiz edin", + "useChecksums": "Dosya içeriklerini karşılaştırın", + "useChecksumsDescription": "Karşılaştırmaya dosya içeriklerini de dahil edin. Bu olmadan, dosyalar boyut ve dosya adı benzerliğine göre eşleştirilir.", + "findDuplicates": "Kopyaları Bul", + "groupsFound": "Yinelenen Gruplar Bulundu{suffix}", + "totalWastedSpace": "Toplam Boşa Harcanan Alan{suffix}", + "wasted": "Ziyan{suffix}", + "emptyState": "Yinelenen dosyaları belirlemek için arama kriterlerini girin ve Yinelenenleri Bul'a tıklayın" + }, + "notifications": { + "title": "Bildirimler", + "description": "Geçerli oturumunuzdaki tüm bildirimleri görüntüleyin", + "empty": "Henüz bildirim yok", + "clearAll": "Tümünü Temizle", + "clearConfirm": "Tüm bildirim geçmişini temizlemek istediğinizden emin misiniz?", + "total": "{count} BİLDİRİMLER" + }, + "events": { + "serverShutdown": "Sunucu kapatıldı.", + "authenticationFailed": "Kimlik doğrulama başarısız oldu. Tekrar giriş yapmak için lütfen sayfayı yenileyin.", + "reconnected": "Sunucuya yeniden bağlanıldı.", + "connectionLost": "Sunucu ile bağlantı kesildi. Yeniden bağlanmaya çalışıyorum..." } } diff --git a/frontend/src/i18n/ua.json b/frontend/src/i18n/ua.json index 6798d690f5..69b1caec24 100644 --- a/frontend/src/i18n/ua.json +++ b/frontend/src/i18n/ua.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "Відмінити", - "close": "Закрити", - "copy": "Копіювати", "copyFile": "Копіювати файл", "copyToClipboard": "Копіювати в буфер обміну", - "create": "Створити", - "delete": "Видалити", - "download": "Завантажити", - "file": "Файл", - "folder": "Папка", - "info": "Інфо", - "more": "Більше", - "move": "Перемістити", "moveFile": "Перемістити файл", - "new": "Новий", - "next": "Далі", - "ok": "ОК", "permalink": "Отримати постійне посилання", - "previous": "Назад", - "publish": "Опублікувати", - "rename": "Перейменувати", - "replace": "Замінити", "reportIssue": "Повідомити про помилку", - "save": "Зберегти", - "schedule": "Планування", - "search": "Пошук", - "select": "Вибрати", "selectMultiple": "Мультивибір", - "share": "Поділитися", "shell": "Командний рядок", - "submit": "Відправити", "switchView": "Вид", "toggleSidebar": "Бічна панель", - "update": "Оновити", - "upload": "Завантажити", - "openFile": "Відкрити файл", "generateNewOtp": "Скинути та згенерувати новий двофакторний код", - "verify": "Підтвердити", "copyDownloadLinkToClipboard": "Скопіюйте посилання для завантаження в буфер обміну", - "continue": "Продовжуйте", - "edit": "Редагувати", - "pause": "Пауза.", - "resume": "Резюме", - "retry": "Спробуйте ще раз.", "pauseAll": "Призупинити все", "resumeAll": "Відновити все", "clearCompleted": "Очищення завершено", @@ -62,10 +29,8 @@ "discardAndExit": "Викидання та вихід", "saveAndExit": "Зберегти та вийти", "keepEditing": "Продовжуйте редагувати", - "stayOnPrompt": "Залишайся.", "closeAnyway": "Все одно зачиняй.", - "disable": "Вимкнути", - "confirm": "Підтвердити" + "goToItem": "Перейти до пункту" }, "download": { "downloadFile": "Завантажити файл", @@ -77,31 +42,31 @@ "internal": "Щось пішло не так.", "notFound": "Неправильне посилання.", "connection": "Немає підключення до сервера.", - "shareNotFound": "Недійсна або прострочена акція." + "shareNotFound": "Недійсна або прострочена акція.", + "failedToConnectToServer": "Не вдалося підключитися до сервера, він все ще працює?" }, "files": { - "body": "Тіло", - "clear": "Очистити", "closePreview": "Закрити", - "home": "Домівка", "lastModified": "Останній раз змінено", - "loading": "Завантаження...", "lonely": "Тут пусто...", - "metadata": "Метадані", "multipleSelectionEnabled": "Мультивибір включений", - "name": "Ім'я", - "size": "Розмір", "sortByLastModified": "Сортувати за останнім зміненням", "sortByName": "Сортувати за іменем", "sortBySize": "Сортувати за розміром", "noPreview": "Попередній перегляд для цього файлу недоступний.", - "noDownloadAccess": "Завантаження недоступне." + "noDownloadAccess": "Завантаження недоступне.", + "itemSelected": "елемент вибрано", + "itemsSelected": "елементи вибрано", + "myFiles": "Мої файли.{suffix}", + "newFile": "Новий файл{suffix}", + "newFolder": "Нова папка{suffix}", + "duration": "Тривалість{suffix}", + "sortByDuration": "Сортувати за тривалістю" }, "help": { "functionKeys": "Функціональні Клавіші", "mouseActions": "Дії Миші", "fileOperations": "Операції з Файлами", - "navigation": "Навігація", "click": "вибрати файл чи каталог", "ctrl": { "click": "вибрати кілька файлів чи каталогів", @@ -115,11 +80,11 @@ "del": "видалити вибрані елементи", "esc": "очистити виділення та/або закрити вікно", "f2": "перейменувати файл", - "help": "Допомога", "f1": "показати запит на допомогу", "description": "Нижче ви можете переглянути основні параметри навігації. Для отримання додаткової інформації, будь ласка, відвідайте", "slash": "активувати пошук", - "wiki": "Офіційна документація FileBrowser Quantum" + "wiki": "Офіційна документація FileBrowser Quantum", + "marqueeSelect": "виділити кілька файлів або каталогів, перетягуючи на порожнє місце" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "Вже є обліковий запис", "passwordConfirm": "Підтвердження паролю", "passwordsDontMatch": "Паролі не співпадають", - "submit": "Увійти", "usernameTaken": "Ім'я користувача вже використовується", "wrongCredentials": "Невірне ім'я користувача або пароль", "or": "АБО", @@ -208,7 +172,6 @@ "viewMode": "Режим перегляду", "renameMessage": "Введіть нове ім'я:", "renameMessageInvalid": "Файл не може містити символи \"/\" або \"\\\"", - "source": "Джерело{suffix}", "deleteMessageMultiple": "Ви дійсно хочете видалити файл(и) {count}?", "deleteMessageShare": "Ви впевнені, що хочете видалити цей ресурс? {path} ?", "numberDirs": "Кількість каталогів{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "Ласкаво просимо до FileBrowser Quantum!", "halloweenTitle": "Щасливого Гелловіну!", "halloweenBody": "Застосовано тему Хеллоуїна. Ви можете вимкнути її, якщо вона вам не подобається, або назавжди вимкнути в налаштуваннях профілю, вибравши будь-яку іншу тему.", - "firstLoadBody": "Під час запуску було створено нову базу даних. Якщо це не те, що ви очікували, перевірте ваш конфігураційний файл на наявність шляху до `сервер.бази даних` і переконайтеся, що він існує. У докері шлях до бази даних може бути `./data/database.db` або `./database.db`." + "firstLoadBody": "Під час запуску було створено нову базу даних. Якщо це не те, що ви очікували, перевірте ваш конфігураційний файл на наявність шляху до `сервер.бази даних` і переконайтеся, що він існує. У докері шлях до бази даних може бути `./data/database.db` або `./database.db`.", + "selectPath": "Виберіть шлях", + "renameSuccess": "Елемент перейменовано успішно!", + "newFileSuccess": "Файл успішно створено!", + "newDirSuccess": "Каталог створено успішно!", + "copyToClipboardFailed": "Неможливо скопіювати в буфер обміну" }, "search": { - "images": "Зображення", - "music": "Музика", - "pdf": "PDF", - "search": "Пошук...", - "types": "Типи", - "video": "Відео", - "path": "Шлях:", "smallerThan": "Менше, ніж:", "largerThan": "Більше, ніж:", "helpText1": "Пошук відбувається за кожним введеним символом (мінімум 3 символи для пошукових термінів).", @@ -267,18 +228,11 @@ "onlyFolders": "Тільки папки", "onlyFiles": "Тільки файли", "showOptions": "Показати параметри", - "photos": "Фотографії", - "audio": "Аудіо", - "videos": "Відео", - "documents": "Документи", - "archives": "Архіви", - "number": "Номер", "searchContext": "Пошуковий контекст: {context}", "notEnoughCharacters": "Недостатньо символів для пошуку (мінімум {minSearchLength})", "typeToSearch": "Почніть вводити {minSearchLength} або більше символів, щоб почати пошук." }, "settings": { - "admin": "Адмін", "administrator": "Адміністратор", "allowCommands": "Запуск команд", "allowEdit": "Редагування, перейменування та видалення файлів чи каталогів", @@ -286,7 +240,6 @@ "allowPublish": "Публікація нових записів та сторінок", "allowSignup": "Дозволити користувачам реєструватися", "avoidChanges": "(залишіть поле порожнім, щоб уникнути змін)", - "branding": "Брендинг", "brandingDirectoryPath": "Шлях до каталогу брендів", "changePassword": "Зміна пароля", "commandRunner": "Запуск команд", @@ -296,8 +249,6 @@ "defaultUserDescription": "Це налаштування за замовчуванням для нових користувачів.", "disableExternalLinks": "Вимкнути зовнішні посилання (крім документації)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "документація", - "examples": "Приклади", "executeOnShell": "Виконати в командному рядку", "executeOnShellDescription": "За замовчуванням File Browser виконує команди, безпосередньо викликаючи їх бінарні файли. Якщо ви хочете замість цього запускати їх в оболонці (наприклад, Bash або PowerShell), ви можете визначити їх тут з необхідними аргументами та прапорами. Якщо встановлено, виконуєма вами команда буде додана як аргумент. Це стосується як користувацьких команд, так і обробників подій.", "globalRules": "Це глобальний набір дозволяючих та забороняючих правил. Вони застосовні до кожного користувача. Ви можете визначити певні правила для налаштувань кожного користувача, щоб перевизначити їх.", @@ -305,14 +256,11 @@ "insertPath": "Вставте шлях", "insertRegex": "Вставити регулярний вираз", "instanceName": "Поточна назва програми", - "language": "Мова", "lockPassword": "Заборонити користувачеві змінювати пароль", "newPassword": "Новий пароль", "newPasswordConfirm": "Підтвердження нового пароля", "newUser": "Новий користувач", - "password": "Пароль", "passwordUpdated": "Пароль оновлено!", - "path": "Шлях", "permissions": { "modify": "Редагувати файли", "share": "Ділітися файлами", @@ -328,28 +276,17 @@ "profileSettings": "Налаштування профілю", "ruleExample1": "запобігти доступу до будь-якого прихованого файлу (наприклад: .git, .gitignore) у кожній папці.\n", "ruleExample2": "блокує доступ до файлу з ім'ям Caddyfile у кореневій області.", - "rules": "Права", "rulesHelp": "Тут ви можете визначити набір дозволяючих та забороняючих правил для цього конкретного користувача. Блоковані файли не відображатимуться у списках, і не будуть доступні для користувача. Є підтримка регулярних виразів та відносних шляхів.\n", - "scope": "Корінь", "settingsUpdated": "Налаштування застосовані!", "shareManagement": "Управління спільними посиланнями", "shareDeleted": "Спільне посилання видалено!", "singleClick": "Відкриття файлів та каталогів одним кліком", - "themes": { - "dark": "Темна", - "light": "Світла", - "title": "Тема" - }, - "user": "Користувач", - "userCommands": "Команди", "userCommandsHelp": "Список команд, доступних користувачу, розділений пробілами. Приклад:\n", "userCreated": "Користувач створений!", "userDefaults": "Налаштування користувача за замовчуванням", "userDeleted": "Користувач видалений!", "userManagement": "Керування користувачами", "userUpdated": "Користувач змінений!", - "username": "Ім'я користувача", - "users": "Користувачі", "enterPassword": "Введіть пароль", "enterPasswordAgain": "Введіть пароль ще раз", "passwordsDoNotMatch": "Паролі не збігаються", @@ -373,9 +310,7 @@ "shareSettings": "Налаштування спільного доступу", "api": "Ключі API", "adminOptions": "Параметри користувача адміністрування", - "shareDuration": "Закінчується", "searchOptions": "Параметри пошуку", - "downloads": "Завантаження", "systemAdmin": "Система та адміністрування", "configViewer": "Переглядач конфігурацій", "configViewerShowFull": "Показати повну конфігурацію", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "Довірена особа" }, - "newUserHintSubFolder": "наприклад, '/subfolder' - порожній за замовчуванням", - "userScopes": "Сфери застосування" + "newUserHintSubFolder": "наприклад, '/subfolder' - порожній за замовчуванням" }, "sidebar": { - "help": "Допомога", - "hugoNew": "Hugo New", - "login": "Увійти", - "logout": "Вийти", - "myFiles": "Файли", - "newFile": "Новий файл", - "newFolder": "Новий каталог", - "preview": "Перегляд", - "settings": "Налаштування", - "signup": "Зареєструватися", "siteSettings": "Налаштування сайту", - "sources": "Джерела", "updateIsAvailable": "Доступне оновлення!", - "fileActions": "Дії з файлами" + "fileActions": "Дії з файлами", + "customizeLinks": "Налаштувати посилання на бічній панелі", + "customizeLinksDescription": "Налаштуйте посилання, що відображаються на бічній панелі. Перетягніть, щоб змінити порядок.", + "currentLinks": "Поточні посилання", + "addNewLink": "Додати нове посилання", + "linkType": "Тип посилання", + "selectLinkType": "Виберіть тип посилання", + "customLink": "Користувацьке посилання", + "selectSource": "Виберіть джерело", + "chooseSource": "Виберіть джерело", + "selectTool": "Виберіть інструмент", + "chooseTool": "Виберіть інструмент", + "linkName": "Назва посилання", + "linkNamePlaceholder": "Введіть назву посилання", + "linkUrl": "URL-адреса посилання", + "linkUrlPlaceholder": "Введіть URL або шлях (наприклад, /files/path або https://example.com)", + "linkIcon": "Значок посилання", + "linksUpdatedSuccess": "Посилання на бічну панель успішно оновлено!", + "linksUpdateFailed": "Не вдалося оновити посилання бічної панелі", + "sourceNotAccessible": "Це джерело більше не доступне для вас", + "noLinksYet": "Ще немає налаштованих посилань. Додайте своє перше посилання нижче.", + "customizeShareLinks": "Налаштувати посилання на бічну панель спільного доступу", + "customizeShareLinksDescription": "Налаштуйте посилання, показані на бічній панелі для цього ресурсу. Перетягніть, щоб змінити порядок.", + "editLink": "Редагувати посилання", + "selectShare": "Виберіть \"Поділитися", + "chooseShare": "Виберіть акцію", + "selectSharePath": "Шлях всередині частки (необов'язково)", + "sharePathPlaceholder": "наприклад, /subfolder або залиште порожнім для кореневого каталогу", + "browseIcons": "Переглянути піктограми", + "pickIcon": "Виберіть ікону", + "pickIconDescription": "Знайдіть і виберіть піктограму з бібліотеки піктограм матеріалів", + "shareLinksUpdatedSuccess": "Посилання на бічну панель обміну успішно оновлено!", + "shareHome": "Поділитися Додому", + "linkIconPlaceholder": "За бажанням вкажіть назву іконки матеріалу" }, "success": { "linkCopied": "Посилання скопійоване!" @@ -481,7 +437,12 @@ "allowReplacements": "Дозволити заміну файлів", "allowReplacementsDescription": "Будь-хто може замінити існуючі файли при завантаженні файлів з однаковими іменами.", "allowCreate": "Дозволяє створювати та завантажувати файли та папки", - "allowCreateDescription": "Будь-хто може створювати та завантажувати нові файли та папки до цього ресурсу." + "allowCreateDescription": "Будь-хто може створювати та завантажувати нові файли та папки до цього ресурсу.", + "customizeSidebarLinks": "Налаштувати посилання на бічній панелі", + "customizeSidebarLinksButton": "Налаштувати посилання", + "shareInfo": "Поділіться QR-кодом та інформацією", + "shareInfoDescription": "За цим посиланням у спливаючому вікні відображається інформація про акцію, включаючи назву, опис, банер та QR-код.", + "downloadDescription": "За цим посиланням можна завантажити весь вміст ресурсу у стислому вигляді." }, "api": { "title": "Ключі API", @@ -505,21 +466,28 @@ "expires": "Закінчується", "actions": "Дії", "enabled": "Увімкнено", - "disabled": "Інваліди" + "disabled": "Інваліди", + "apiKeyDeleted": "Ключ API видалено!" }, "index": { - "status": "Статус", "assessment": "Оцінка", "lastScanned": "Останнє сканування", "quickScan": "Секунди швидкого сканування", "fullScan": "Секунди повного сканування", "settingsHover": "Налаштування для користувача", - "logout": "Вийти з системи", "toggleClick": "Перемикання одним клацанням миші", "toggleDark": "Увімкнути темний режим", "toggleSticky": "Увімкнути липкий режим", - "used": "використаний", - "noSources": "Для цього користувача немає доступних джерел. Або додайте джерело для цього користувача, або налаштуйте джерело з defaultEnabled: true" + "noSources": "Для цього користувача немає доступних джерел. Або додайте джерело для цього користувача, або налаштуйте джерело з defaultEnabled: true", + "unknown": "Невідомо", + "simple": "Просто", + "normal": "Нормально.", + "complex": "Комплекс", + "highlyComplex": "Висока складність", + "ready": "Готово.", + "indexing": "Індексація", + "unavailable": "Недоступно", + "error": "Помилка." }, "otp": { "name": "Двофакторна автентифікація", @@ -608,9 +576,7 @@ "themeAndLanguage": "Тема та мова", "previewFolder": "Показувати мініатюри для папок, якщо вони доступні", "previewFolderDescription": "Показувати попередній перегляд мініатюр для папок з першим дочірнім елементом, що має мініатюру як обкладинку.", - "disableFileExtensions": "Введіть розширення файлів для вимкнення", - "defaultLandingPage": "Цільова сторінка за замовчуванням", - "defaultLandingPageDescription": "наприклад '/files/mysource/mysubpath' або '/settings' - сторінка за замовчуванням - /files, яка переходить до першого перегляду списку джерел" + "disableFileExtensions": "Введіть розширення файлів для вимкнення" }, "general": { "name": "Ім'я", @@ -625,7 +591,96 @@ "exit": "Виходьте.", "permanent": "Постійний", "hash": "Хеш", - "of": "з" + "of": "з", + "source": "Джерело{suffix}", + "percentage": "{percentage}%", + "type": "Тип{suffix}", + "size": "Розмір{suffix}", + "body": "Тіло{suffix}", + "home": "Головна{suffix}", + "clear": "Чисто{suffix}", + "help": "Допоможіть!{suffix}", + "login": "Логін{suffix}", + "logout": "Вийти з системи{suffix}", + "preview": "Попередній перегляд{suffix}", + "settings": "Налаштування{suffix}", + "sources": "Джерела{suffix}", + "links": "Посилання{suffix}", + "tool": "Інструмент{suffix}", + "used": "використаний{suffix}", + "status": "Статус{suffix}", + "analyze": "Проаналізуйте{suffix}", + "results": "Результати{suffix}", + "users": "Користувачі{suffix}", + "photos": "Фотографії", + "audio": "Аудіо{suffix}", + "videos": "Відео{suffix}", + "documents": "Документи{suffix}", + "archives": "Архіви{suffix}", + "images": "Зображення{suffix}", + "music": "Музика{suffix}", + "pdf": "PDF{suffix}", + "search": "Пошук{suffix}", + "number": "Номер{suffix}", + "types": "Типи{suffix}", + "video": "Відео{suffix}", + "admin": "Адміністратор{suffix}", + "branding": "Брендування{suffix}", + "language": "Мова{suffix}", + "documentation": "документація{suffix}", + "examples": "Приклади{suffix}", + "dark": "Темнота.{suffix}", + "light": "Світло{suffix}", + "title": "Тема{suffix}", + "expires": "Закінчується{suffix}", + "scope": "Сфера застосування{suffix}", + "rules": "Правила{suffix}", + "downloads": "Завантаження{suffix}", + "submit": "Логін{suffix}", + "navigation": "Навігація{suffix}", + "metadata": "Метадані{suffix}", + "loading": "Завантаження{suffix}", + "add": "Додати{suffix}", + "cancel": "Скасувати{suffix}", + "verify": "Підтвердити{suffix}", + "close": "Закрити{suffix}", + "copy": "Прийнято.{suffix}", + "create": "Створити{suffix}", + "delete": "Видалити{suffix}", + "download": "Завантажити{suffix}", + "file": "Файл{suffix}", + "folder": "Папка{suffix}", + "info": "Інформація{suffix}", + "more": "Більше{suffix}", + "move": "Відійди.{suffix}", + "new": "Новий{suffix}", + "next": "Далі{suffix}", + "ok": "ГАРАЗД.{suffix}", + "previous": "Попередні{suffix}", + "publish": "Опублікувати{suffix}", + "rename": "Перейменувати{suffix}", + "replace": "Замінити{suffix}", + "save": "Зберегти{suffix}", + "schedule": "Розклад{suffix}", + "select": "Виберіть{suffix}", + "share": "Поділіться{suffix}", + "update": "Оновлення{suffix}", + "upload": "Завантажити{suffix}", + "openFile": "Відкрити файл{suffix}", + "continue": "Продовжуйте{suffix}", + "edit": "Редагувати{suffix}", + "pause": "Пауза.{suffix}", + "resume": "Резюме{suffix}", + "retry": "Спробуйте ще раз.{suffix}", + "disable": "Вимкнути{suffix}", + "confirm": "Підтвердити{suffix}", + "stay": "Залишайся.{suffix}", + "scopes": "Сфери застосування{suffix}", + "commands": "Команди{suffix}", + "uploading": "Завантаження{suffix}", + "paused": "Призупинився.{suffix}", + "conflict": "Конфлікт{suffix}", + "change": "Зміна{suffix}" }, "access": { "rules": "Правила доступу", @@ -642,18 +697,22 @@ "enterName": "Введіть ім'я користувача або групи", "deleted": "Правило доступу видалено!", "added": "Додано правило доступу!", - "name": "Ім'я", "accessManagement": "Керування доступом", "all": "Заперечувати все.", "defaultBehaviorDescription": "Тут показано, що відбувається, коли користувач намагається отримати доступ до шляху, для якого не існує певних правил доступу. \"Дозволити\" означає, що користувачі можуть отримати доступ за замовчуванням, \"Заборонити\" означає, що користувачі за замовчуванням заблоковані, якщо тільки це не дозволено явно.", - "defaultBehavior": "Дія за замовчуванням{suffix}" + "defaultBehavior": "Дія за замовчуванням{suffix}", + "deletedCascade": "Правила доступу видалено зі шляху та всіх підшляхів!", + "cascadeDelete": "Рекурсивне видалення", + "cascadeDeleteDescription": "Якщо увімкнено, видалення правила доступу також видалить його з усіх підкаталогів. Це дозволяє повністю видалити користувача або групу з усього дерева каталогів." }, "editor": { "uninitialized": "Не вдалося ініціалізувати редактор. Будь ласка, перезавантажте.", "saveFailed": "Не вдалося зберегти файл. Спробуйте ще раз.", "saveAborted": "Збереження перервано. Ім'я файлу не збігається з активним файлом.", "saveAbortedMessage": "Операцію збереження перервано. Активний файл програми ({activeFile}) не відповідає файлу, який ви намагаєтеся зберегти ({tryingToSave}).", - "syncFailed": "не вдалося синхронізувати стан з маршрутом для \"{filename}\" після 5 спроб. Переривання налаштування редактора для запобігання пошкодженню даних." + "syncFailed": "не вдалося синхронізувати стан з маршрутом для \"{filename}\" після 5 спроб. Переривання налаштування редактора для запобігання пошкодженню даних.", + "fileSaved": "Файл збережено!", + "errorSavingFile": "Помилка збереження файлу: {error}" }, "player": { "LoopEnabled": "Повтор увімкнено", @@ -666,5 +725,93 @@ "changePlaybackMode": "Змінити режим відтворення", "changePlaybackModeHint": "Змініть режим відтворення, щоб побачити більше файлів", "emptyQueue": "Черга порожня" + }, + "fileSizeAnalyzer": { + "title": "Аналізатор розміру файлів", + "searchLocation": "Місце пошуку", + "selectPath": "Виберіть місце пошуку", + "largerThan": "Більше, ніж (МБ)", + "includeFolders": "Включити папки", + "includeFoldersDescription": "Включіть каталоги в аналіз", + "totalFiles": "Всього файлів{suffix}", + "totalSize": "Загальний розмір{suffix}", + "emptyState": "Введіть критерії пошуку та натисніть \"Проаналізувати\", щоб візуалізувати розміри файлів", + "completeResults": "Показано повні результати!", + "incompleteResults": "Результати можуть бути неповними", + "incompleteResultsDetails": "Показано максимум результатів (100). Спробуйте звузити пошук, щоб отримати більше результатів до 100.", + "relativePercentage": "Відносний відсоток{suffix}", + "percentageOfResults": "{percentage}% результатів" + }, + "fileTypes": { + "video": "Відео", + "image": "Зображення", + "audio": "Аудіо", + "archive": "Архів", + "document": "Документ", + "binary": "Двійковий", + "directory": "Каталог", + "other": "Інше" + }, + "tools": { + "description": "Утиліти та інструменти аналізу для ваших файлів", + "sizeAnalyzer": { + "name": "Аналізатор розміру файлів", + "description": "Візуалізація великих файлів і каталогів за допомогою інтерактивної карти-схеми" + }, + "title": "Інструменти", + "duplicateFinder": { + "name": "Пошук дублікатів файлів", + "description": "Знаходьте дублікати файлів і керуйте ними, щоб звільнити місце в сховищі" + }, + "materialIconPicker": { + "name": "Збирач іконок матеріалів", + "description": "Переглядайте та шукайте піктограми матеріалів з попереднім переглядом у реальному часі", + "searchPlaceholder": "Значки пошуку...", + "popularIcons": "Показати {count} популярні іконки", + "showingResults": "Показує результати {count} ", + "noResults": "Не знайдено жодної піктограми", + "tryDifferentSearch": "Спробуйте інший пошуковий запит", + "copiedToClipboard": "Скопіюйте '{name}' в буфер обміну!", + "copyFailed": "Не вдалося скопіювати в буфер обміну", + "custom": "Нестандартний", + "useCustomIcon": "Використовуйте власну іконку: {name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "Переглянути повну бібліотеку іконок" + }, + "toolNotFound": "Інструмент не знайдено", + "backToTools": "Повернутися до Інструментів" + }, + "messages": { + "pathNotFound": "Шлях не існує у файловій системі", + "pathNotFoundMessage": "Шлях до нього більше не існує у файловій системі. Можливо, його було переміщено або видалено.", + "reassignPath": "Перепризначити шлях", + "pathReassigned": "Шлях успішно оновлено!", + "pathReassignFailed": "Не вдалося оновити шлях. Спробуйте ще раз." + }, + "duplicateFinder": { + "title": "Пошук дублікатів файлів", + "minSize": "Мінімальний розмір (МБ){suffix}", + "minSizeHint": "Аналізувати тільки файли, що перевищують цей розмір (у мегабайтах)", + "useChecksums": "Порівняйте вміст файлів", + "useChecksumsDescription": "Також включіть до порівняння вміст файлів. Без цього файли порівнюються за розміром і схожістю імен.", + "findDuplicates": "Знайти дублікати", + "groupsFound": "Знайдено дублікати груп{suffix}", + "totalWastedSpace": "Загальна кількість марно витраченого простору{suffix}", + "wasted": "Даремно.{suffix}", + "emptyState": "Введіть критерії пошуку та натисніть \"Знайти дублікати\", щоб знайти дублікати файлів" + }, + "notifications": { + "title": "Сповіщення", + "description": "Переглянути всі сповіщення з поточного сеансу", + "empty": "Ще немає повідомлень", + "clearAll": "Очистити все.", + "clearConfirm": "Ви впевнені, що хочете очистити всю історію сповіщень?", + "total": "{count} сповіщення" + }, + "events": { + "serverShutdown": "Сервер був вимкнений.", + "authenticationFailed": "Не вдалося пройти аутентифікацію. Будь ласка, оновіть сторінку, щоб увійти знову.", + "reconnected": "Перепідключився до сервера.", + "connectionLost": "З'єднання з сервером було втрачено. Спроба відновити з'єднання..." } } diff --git a/frontend/src/i18n/zh-cn.json b/frontend/src/i18n/zh-cn.json index 8db9be7427..cda11a7c6d 100644 --- a/frontend/src/i18n/zh-cn.json +++ b/frontend/src/i18n/zh-cn.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "取消", - "close": "关闭", - "copy": "复制", "copyFile": "复制文件", "copyToClipboard": "复制到剪贴板", - "create": "创建", - "delete": "删除", - "download": "下载", - "file": "文件", - "folder": "文件夹", - "info": "信息", - "more": "更多", - "move": "移动", "moveFile": "移动文件", - "new": "新建", - "next": "下一个", - "ok": "确定", "permalink": "获取永久链接", - "previous": "上一个", - "publish": "发布", - "rename": "重命名", - "replace": "替换", "reportIssue": "报告问题", - "save": "保存", - "schedule": "计划", - "search": "搜索", - "select": "选择", "selectMultiple": "选择多个", - "share": "分享", "shell": "激活 Shell", - "submit": "提交", "switchView": "切换显示方式", "toggleSidebar": "切换侧边栏", - "update": "更新", - "upload": "上传", - "openFile": "打开文件", "generateNewOtp": "重置并生成新的双因素代码", - "verify": "验证", "copyDownloadLinkToClipboard": "将下载链接复制到剪贴板", - "continue": "继续", - "edit": "编辑", - "pause": "暂停", - "resume": "简历", - "retry": "重试", "pauseAll": "全部暂停", "resumeAll": "全部简历", "clearCompleted": "清除完毕", @@ -62,10 +29,8 @@ "discardAndExit": "丢弃和退出", "saveAndExit": "保存并退出", "keepEditing": "继续编辑", - "stayOnPrompt": "停留", "closeAnyway": "无论如何关闭", - "disable": "禁用", - "confirm": "确认" + "goToItem": "转到项目" }, "download": { "downloadFile": "下载文件", @@ -77,31 +42,31 @@ "internal": "服务器出了点问题。", "notFound": "找不到文件。", "connection": "无法连接到服务器。", - "shareNotFound": "无效或过期共享。" + "shareNotFound": "无效或过期共享。", + "failedToConnectToServer": "连接服务器失败,服务器还在运行吗?" }, "files": { - "body": "内容", - "clear": "清空", "closePreview": "关闭预览", - "home": "主页", "lastModified": "最后修改", - "loading": "加载中...", "lonely": "这里没有任何文件...", - "metadata": "元数据", "multipleSelectionEnabled": "多选模式已开启", - "name": "名称", - "size": "大小", "sortByLastModified": "按最后修改时间排序", "sortByName": "按名称排序", "sortBySize": "按大小排序", "noPreview": "此文件无法预览。", - "noDownloadAccess": "无法下载。" + "noDownloadAccess": "无法下载。", + "itemSelected": "项目已选择", + "itemsSelected": "项目已选择", + "myFiles": "我的文件{suffix}", + "newFile": "新文件{suffix}", + "newFolder": "新文件夹{suffix}", + "duration": "持续时间{suffix}", + "sortByDuration": "按持续时间排序" }, "help": { "functionKeys": "功能键", "mouseActions": "鼠标操作", "fileOperations": "文件操作", - "navigation": "导航", "click": "选择文件或目录", "ctrl": { "click": "选择多个文件或目录", @@ -115,11 +80,11 @@ "del": "删除所选的文件/文件夹", "esc": "清除已选项或关闭提示信息", "f2": "重命名文件/文件夹", - "help": "帮助", "f1": "显示帮助提示", "description": "您可以查看下面的基本导航选项。有关其他信息,请访问", "slash": "启动搜索", - "wiki": "FileBrowser Quantum 官方文档" + "wiki": "FileBrowser Quantum 官方文档", + "marqueeSelect": "在空白处拖动,选择多个文件或目录" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "已有用户登录", "passwordConfirm": "确认密码", "passwordsDontMatch": "密码不一致", - "submit": "登录", "usernameTaken": "用户名已经被使用", "wrongCredentials": "用户名或密码错误", "or": "或", @@ -208,7 +172,6 @@ "viewMode": "查看模式", "renameMessage": "输入新名称:", "renameMessageInvalid": "文件不能包含\"/\"或\"\\\"。", - "source": "资料来源{suffix}", "deleteMessageMultiple": "您确定要删除{count} 文件吗?", "deleteMessageShare": "您确定要删除此共享? {path} ?", "numberDirs": "目录数量{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "欢迎访问 FileBrowser Quantum!", "halloweenTitle": "万圣节快乐", "halloweenBody": "万圣节主题已应用。如果不喜欢,可以将其禁用,或者在个人档案设置中选择其他主题将其永久禁用。", - "firstLoadBody": "启动时创建了一个新数据库。如果这与您的预期不符,请仔细检查配置文件中的 `server.database` 路径并确保其存在。在 docker 上,数据库路径可以是 `./data/database.db` 或 `./database.db`。" + "firstLoadBody": "启动时创建了一个新数据库。如果这与您的预期不符,请仔细检查配置文件中的 `server.database` 路径并确保其存在。在 docker 上,数据库路径可以是 `./data/database.db` 或 `./database.db`。", + "selectPath": "选择路径", + "renameSuccess": "项目重命名成功!", + "newFileSuccess": "文件创建成功!", + "newDirSuccess": "目录创建成功!", + "copyToClipboardFailed": "无法复制到剪贴板" }, "search": { - "images": "图像", - "music": "音乐", - "pdf": "PDF", - "search": "搜索...", - "types": "类型", - "video": "视频", - "path": "路径", "smallerThan": "小于", "largerThan": "大于:", "helpText1": "您键入的每个字符都会进行搜索(搜索词最少 3 个字符)。", @@ -267,19 +228,12 @@ "onlyFolders": "仅文件夹", "onlyFiles": "仅文件", "showOptions": "显示选项", - "photos": "照片", - "audio": "音频", - "videos": "视频", - "documents": "文件", - "archives": "档案", - "number": "数量", "searchContext": "搜索上下文:{context}", "notEnoughCharacters": "搜索字符数不足(最少{minSearchLength})", "typeToSearch": "开始键入{minSearchLength} 或更多字符开始搜索。" }, "settings": { "scopes": "定义允许的来源及其中的用户范围", - "admin": "管理员", "administrator": "管理员", "allowCommands": "执行命令(Shell 命令)", "allowEdit": "编辑、重命名或删除文件/目录", @@ -287,7 +241,6 @@ "allowPublish": "发布新的帖子与页面", "allowSignup": "允许用户注册", "avoidChanges": "(留空以避免更改)", - "branding": "品牌", "brandingDirectoryPath": "品牌信息文件夹路径", "changePassword": "更改密码", "commandRunner": "命令执行器", @@ -297,8 +250,6 @@ "defaultUserDescription": "这些是新用户的默认设置。", "disableExternalLinks": "禁止外部链接(帮助文档除外)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "帮助文档", - "examples": "例子", "executeOnShell": "在 Shell 中执行", "executeOnShellDescription": "默认情况下,File Browser 通过直接调用命令的二进制包来执行命令,如果想在 Shell中 执行(如 Bash 或 PowerShell),你可以在这里定义所使用的 Shell 和参数。设置后,您所执行的命令会作为参数追加。本设置对用户命令和事件钩子都生效。", "globalRules": "这是全局允许与禁止规则。它们作用于所有用户。您可以给每个用户定义单独的特殊规则来覆盖全局规则。", @@ -306,14 +257,11 @@ "insertPath": "插入路径", "insertRegex": "插入正则表达式", "instanceName": "实例名称", - "language": "语言", "lockPassword": "禁止用户修改密码", "newPassword": "您的新密码", "newPasswordConfirm": "再次输入以确认您的新密码", "newUser": "新建用户", - "password": "密码", "passwordUpdated": "密码已更新!", - "path": "路径", "permissions": { "modify": "编辑", "share": "分享文件", @@ -329,28 +277,17 @@ "profileSettings": "个人设置", "ruleExample1": "阻止用户访问所有文件夹下任何以 . 开头的文件(隐藏文件, 例如: .git, .gitignore)。\n", "ruleExample2": "阻止用户访问其目录范围的根目录下名为 Caddyfile 的文件。", - "rules": "规则", "rulesHelp": "您可以为该用户制定一组黑名单或白名单式的规则,被屏蔽的文件将不会显示在列表中,用户也无权限访问,支持正则表达式和相对于用户范围的路径。\n", - "scope": "目录范围", "settingsUpdated": "设置已更新!", "shareManagement": "分享管理", "shareDeleted": "分享已删除!", "singleClick": "使用单击来打开文件和目录", - "themes": { - "dark": "深色", - "light": "浅色", - "title": "主题" - }, - "user": "用户", - "userCommands": "用户命令(Shell 命令)", "userCommandsHelp": "指定该用户可以执行的命令(Shell 命令),用空格分隔。例如:\n", "userCreated": "用户已创建!", "userDefaults": "用户默认设置", "userDeleted": "用户已删除!", "userManagement": "用户管理", "userUpdated": "用户已更新!", - "username": "用户名", - "users": "用户", "enterPassword": "输入密码", "enterPasswordAgain": "再次输入密码", "passwordsDoNotMatch": "密码不匹配", @@ -373,9 +310,7 @@ "shareSettings": "共享设置", "api": "API 密钥", "adminOptions": "管理员用户选项", - "shareDuration": "到期", "searchOptions": "搜索选项", - "downloads": "下载", "systemAdmin": "系统与管理", "configViewer": "配置查看器", "configViewerShowFull": "显示完整配置", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "代理" }, - "newUserHintSubFolder": "例如\"/子文件夹\"--默认为空", - "userScopes": "瞄准镜" + "newUserHintSubFolder": "例如\"/子文件夹\"--默认为空" }, "sidebar": { - "help": "帮助", - "hugoNew": "Hugo 新建", - "login": "登录", - "logout": "登出", - "myFiles": "我的文件", - "newFile": "新建文件", - "newFolder": "新建文件夹", - "preview": "预览", - "settings": "设置", - "signup": "注册", "siteSettings": "网站设置", - "sources": "资料来源", "updateIsAvailable": "有了最新进展!", - "fileActions": "文件操作" + "fileActions": "文件操作", + "customizeLinks": "自定义侧边栏链接", + "customizeLinksDescription": "自定义侧边栏中显示的链接。拖放即可重新排序。", + "currentLinks": "当前链接", + "addNewLink": "添加新链接", + "linkType": "链接类型", + "selectLinkType": "选择链接类型", + "customLink": "自定义链接", + "selectSource": "选择来源", + "chooseSource": "选择来源", + "selectTool": "选择工具", + "chooseTool": "选择工具", + "linkName": "链接名称", + "linkNamePlaceholder": "输入链接名称", + "linkUrl": "链接网址", + "linkUrlPlaceholder": "输入 URL 或路径(如 /files/path 或 https://example.com)", + "linkIcon": "链接图标", + "linksUpdatedSuccess": "侧边栏链接更新成功!", + "linksUpdateFailed": "更新侧边栏链接失败", + "sourceNotAccessible": "您已无法访问此信息源", + "noLinksYet": "尚未配置链接。请在下面添加您的第一个链接。", + "customizeShareLinks": "自定义共享侧边栏链接", + "customizeShareLinksDescription": "自定义此分享侧边栏中显示的链接。拖放即可重新排序。", + "editLink": "编辑链接", + "selectShare": "选择共享", + "chooseShare": "选择份额", + "selectSharePath": "共享中的路径(可选)", + "sharePathPlaceholder": "例如,/子文件夹,或者根目录留空", + "browseIcons": "浏览图标", + "pickIcon": "选择图标", + "pickIconDescription": "从材质图标库中搜索并选择图标", + "shareLinksUpdatedSuccess": "共享侧边栏链接更新成功!", + "shareHome": "共享主页", + "linkIconPlaceholder": "可选择指定材料图标名称" }, "success": { "linkCopied": "链接已复制!" @@ -481,7 +437,12 @@ "allowReplacements": "允许文件替换", "allowReplacementsDescription": "上传同名文件时,任何人都可以替换现有文件。", "allowCreate": "允许创建和上传文件和文件夹", - "allowCreateDescription": "任何人都可以在此共享中创建和上传新文件和文件夹。" + "allowCreateDescription": "任何人都可以在此共享中创建和上传新文件和文件夹。", + "customizeSidebarLinks": "自定义侧边栏链接", + "customizeSidebarLinksButton": "自定义链接", + "shareInfo": "共享 QR 码和信息", + "shareInfoDescription": "此链接会在弹出式窗口中显示共享信息,包括标题、描述、横幅和 QR 代码。", + "downloadDescription": "通过该链接可以下载整个共享内容的压缩文件。" }, "api": { "title": "应用程序接口密钥", @@ -505,21 +466,28 @@ "expires": "到期", "actions": "行动", "enabled": "已启用", - "disabled": "残疾" + "disabled": "残疾", + "apiKeyDeleted": "API 密钥已删除!" }, "index": { - "status": "现状", "assessment": "评估", "lastScanned": "上次扫描", "quickScan": "快速扫描秒数", "fullScan": "完整扫描秒数", "settingsHover": "用户设置", - "logout": "注销", "toggleClick": "单击切换", "toggleDark": "切换黑暗模式", "toggleSticky": "切换粘贴模式", - "used": "中古", - "noSources": "该用户没有可用的信息源。要么为该用户添加一个信息源,要么配置一个默认为 true 的信息源。" + "noSources": "该用户没有可用的信息源。要么为该用户添加一个信息源,要么配置一个默认为 true 的信息源。", + "unknown": "未知", + "simple": "简单", + "normal": "正常", + "complex": "复杂", + "highlyComplex": "高度复杂", + "ready": "准备就绪", + "indexing": "索引", + "unavailable": "不可用", + "error": "错误" }, "otp": { "name": "双因素验证", @@ -608,9 +576,7 @@ "themeAndLanguage": "主题与语言", "previewFolder": "如果有的话,显示文件夹的缩略图", "previewFolderDescription": "显示文件夹的缩略图预览,第一个子项的缩略图为封面。", - "disableFileExtensions": "输入要禁用的文件扩展名", - "defaultLandingPage": "默认登陆页面", - "defaultLandingPageDescription": "例如/files/mysource/mysubpath \"或\"/settings\"--默认页面为 /files,进入第一个源列表视图" + "disableFileExtensions": "输入要禁用的文件扩展名" }, "general": { "name": "名称", @@ -625,7 +591,96 @@ "exit": "退出", "permanent": "永久性", "hash": "散列", - "of": "的" + "of": "的", + "source": "资料来源{suffix}", + "percentage": "{percentage}%", + "type": "类型{suffix}", + "size": "尺寸{suffix}", + "body": "身体{suffix}", + "home": "首页{suffix}", + "clear": "清晰{suffix}", + "help": "帮助{suffix}", + "login": "登录{suffix}", + "logout": "注销{suffix}", + "preview": "预览{suffix}", + "settings": "设置{suffix}", + "sources": "资料来源{suffix}", + "links": "链接{suffix}", + "tool": "工具{suffix}", + "used": "中古{suffix}", + "status": "现状{suffix}", + "analyze": "分析{suffix}", + "results": "成果{suffix}", + "users": "用户{suffix}", + "photos": "照片", + "audio": "音频{suffix}", + "videos": "视频{suffix}", + "documents": "文件{suffix}", + "archives": "档案{suffix}", + "images": "图片{suffix}", + "music": "音乐{suffix}", + "pdf": "PDF{suffix}", + "search": "搜索{suffix}", + "number": "数量{suffix}", + "types": "类型{suffix}", + "video": "视频{suffix}", + "admin": "管理员{suffix}", + "branding": "打造品牌{suffix}", + "language": "语言{suffix}", + "documentation": "文献资料{suffix}", + "examples": "实例{suffix}", + "dark": "黑暗{suffix}", + "light": "灯光{suffix}", + "title": "主题{suffix}", + "expires": "到期{suffix}", + "scope": "范围{suffix}", + "rules": "规则{suffix}", + "downloads": "下载{suffix}", + "submit": "登录{suffix}", + "navigation": "导航{suffix}", + "metadata": "元数据{suffix}", + "loading": "加载中{suffix}", + "add": "添加{suffix}", + "cancel": "取消{suffix}", + "verify": "验证{suffix}", + "close": "关闭{suffix}", + "copy": "复制{suffix}", + "create": "创建{suffix}", + "delete": "删除{suffix}", + "download": "下载{suffix}", + "file": "文件{suffix}", + "folder": "文件夹{suffix}", + "info": "信息{suffix}", + "more": "更多信息{suffix}", + "move": "移动{suffix}", + "new": "新{suffix}", + "next": "下一页{suffix}", + "ok": "好的{suffix}", + "previous": "上一页{suffix}", + "publish": "出版{suffix}", + "rename": "重新命名{suffix}", + "replace": "更换{suffix}", + "save": "节省{suffix}", + "schedule": "时间安排{suffix}", + "select": "选择{suffix}", + "share": "分享{suffix}", + "update": "更新{suffix}", + "upload": "上传{suffix}", + "openFile": "打开文件{suffix}", + "continue": "继续{suffix}", + "edit": "编辑{suffix}", + "pause": "暂停{suffix}", + "resume": "简历{suffix}", + "retry": "重试{suffix}", + "disable": "禁用{suffix}", + "confirm": "确认{suffix}", + "stay": "停留{suffix}", + "scopes": "瞄准镜{suffix}", + "commands": "命令{suffix}", + "uploading": "上传{suffix}", + "paused": "暂停{suffix}", + "conflict": "冲突{suffix}", + "change": "改变{suffix}" }, "access": { "rules": "访问规则", @@ -642,18 +697,22 @@ "enterName": "输入用户或组名称", "deleted": "访问规则已删除!", "added": "已添加访问规则!", - "name": "名称", "accessManagement": "访问管理", "all": "全部拒绝", "defaultBehaviorDescription": "这显示了当用户试图访问没有特定访问规则的路径时会发生什么。允许 \"表示默认情况下用户可以访问,\"拒绝 \"表示除非明确允许,否则默认情况下用户将被阻止。", - "defaultBehavior": "默认操作{suffix}" + "defaultBehavior": "默认操作{suffix}", + "deletedCascade": "从路径和所有子路径删除访问规则!", + "cascadeDelete": "递归删除", + "cascadeDeleteDescription": "启用后,删除访问规则也会从所有子目录中删除该规则。这样就可以从整个目录树中完全删除用户或组。" }, "editor": { "uninitialized": "编辑器初始化失败。请重新加载。", "saveFailed": "保存文件失败。请重试。", "saveAborted": "保存失败。文件名与活动文件不匹配。", "saveAbortedMessage": "保存操作中止。应用程序的活动文件 ({activeFile}) 与您要保存的文件 ({tryingToSave}) 不匹配。", - "syncFailed": "经过 5 次尝试后,未能将 \"{filename}\" 的状态与路由同步。终止编辑器设置,以防数据损坏。" + "syncFailed": "经过 5 次尝试后,未能将 \"{filename}\" 的状态与路由同步。终止编辑器设置,以防数据损坏。", + "fileSaved": "文件已保存!", + "errorSavingFile": "保存文件出错:{error}" }, "player": { "LoopEnabled": "循环已启用", @@ -666,5 +725,93 @@ "changePlaybackMode": "更改播放模式", "changePlaybackModeHint": "更改播放模式以查看更多文件", "emptyQueue": "队列为空" + }, + "fileSizeAnalyzer": { + "title": "文件大小分析器", + "searchLocation": "搜索地点", + "selectPath": "选择搜索位置", + "largerThan": "大于 (MB)", + "includeFolders": "包括文件夹", + "includeFoldersDescription": "将目录纳入分析", + "totalFiles": "文件总数{suffix}", + "totalSize": "总面积{suffix}", + "emptyState": "输入搜索条件并点击分析,即可直观查看文件大小", + "completeResults": "显示完整结果!", + "incompleteResults": "结果可能不完整", + "incompleteResultsDetails": "显示最多结果 (100)。请尝试缩小搜索范围,以获得更多低于 100 的结果。", + "relativePercentage": "相对百分比{suffix}", + "percentageOfResults": "{percentage}结果百分比" + }, + "fileTypes": { + "video": "视频", + "image": "图片", + "audio": "音频", + "archive": "档案", + "document": "文件", + "binary": "二进制", + "directory": "目录", + "other": "其他" + }, + "tools": { + "description": "文件实用工具和分析工具", + "sizeAnalyzer": { + "name": "文件大小分析器", + "description": "利用交互式树形图可视化大型文件和目录" + }, + "title": "工具", + "duplicateFinder": { + "name": "重复文件查找器", + "description": "查找和管理重复文件,回收存储空间" + }, + "materialIconPicker": { + "name": "材料图标选择器", + "description": "通过实时预览浏览和搜索材质图标", + "searchPlaceholder": "搜索图标...", + "popularIcons": "显示{count} 流行图标", + "showingResults": "显示{count} 结果", + "noResults": "未找到图标", + "tryDifferentSearch": "尝试不同的搜索词", + "copiedToClipboard": "将 '{name}' 复制到剪贴板!", + "copyFailed": "复制到剪贴板失败", + "custom": "定制", + "useCustomIcon": "使用自定义图标:{name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "浏览完整图标库" + }, + "toolNotFound": "未找到工具", + "backToTools": "返回工具" + }, + "messages": { + "pathNotFound": "文件系统中不存在路径", + "pathNotFoundMessage": "文件系统中已不存在此路径。可能已被移动或删除。", + "reassignPath": "重新分配路径", + "pathReassigned": "路径更新成功!", + "pathReassignFailed": "更新路径失败。请重试。" + }, + "duplicateFinder": { + "title": "重复文件查找器", + "minSize": "最小大小(MB){suffix}", + "minSizeHint": "只分析大于此大小(单位:兆字节)的文件", + "useChecksums": "比较文件内容", + "useChecksumsDescription": "在比较中还包括文件内容。如果不这样做,文件将根据大小和文件名的相似性进行匹配。", + "findDuplicates": "查找重复", + "groupsFound": "发现重复组{suffix}", + "totalWastedSpace": "浪费空间总计{suffix}", + "wasted": "浪费{suffix}", + "emptyState": "输入搜索条件,然后单击查找重复文件,以识别重复文件" + }, + "notifications": { + "title": "通知", + "description": "查看当前会话的所有通知", + "empty": "尚无通知", + "clearAll": "全部清除", + "clearConfirm": "您确定要清除所有通知历史记录吗?", + "total": "{count} 通知" + }, + "events": { + "serverShutdown": "服务器已关闭。", + "authenticationFailed": "验证失败。请刷新页面重新登录。", + "reconnected": "重新连接服务器。", + "connectionLost": "与服务器的连接丢失。尝试重新连接..." } } diff --git a/frontend/src/i18n/zh-tw.json b/frontend/src/i18n/zh-tw.json index 086e75e5c8..fb13992d1e 100644 --- a/frontend/src/i18n/zh-tw.json +++ b/frontend/src/i18n/zh-tw.json @@ -1,49 +1,16 @@ { "buttons": { - "cancel": "取消", - "close": "關閉", - "copy": "複製", "copyFile": "複製檔案", "copyToClipboard": "複製到剪貼簿", - "create": "建立", - "delete": "刪除", - "download": "下載", - "info": "資訊", - "more": "更多", - "move": "移動", "moveFile": "移動檔案", - "new": "新", - "next": "下一個", - "ok": "確認", "permalink": "獲取永久連結", - "previous": "上一個", - "publish": "發佈", - "rename": "重新命名", - "replace": "更換", "reportIssue": "報告問題", - "save": "儲存", - "schedule": "計畫", - "search": "搜尋", - "select": "選擇", "selectMultiple": "選擇多個", - "share": "分享", "shell": "切換 shell", "switchView": "切換顯示方式", "toggleSidebar": "切換側邊欄", - "update": "更新", - "upload": "上傳", "generateNewOtp": "重設並產生新的雙重因素代碼", - "verify": "驗證", "copyDownloadLinkToClipboard": "複製下載連結到剪貼簿", - "file": "檔案", - "folder": "資料夾", - "submit": "提交", - "openFile": "開啟檔案", - "continue": "繼續", - "edit": "編輯", - "pause": "暫停", - "resume": "簡歷", - "retry": "重試", "pauseAll": "全部暫停", "resumeAll": "所有履歷", "clearCompleted": "清除完成", @@ -62,10 +29,8 @@ "discardAndExit": "丟棄與退出", "saveAndExit": "儲存並離開", "keepEditing": "繼續編輯", - "stayOnPrompt": "停留", "closeAnyway": "無論如何關閉", - "disable": "停用", - "confirm": "確認" + "goToItem": "前往項目" }, "download": { "downloadFile": "下載檔案", @@ -77,31 +42,31 @@ "internal": "伺服器出了點問題。", "notFound": "找不到檔案。", "connection": "伺服器無法連線。", - "shareNotFound": "無效或過期的共享。" + "shareNotFound": "無效或過期的共享。", + "failedToConnectToServer": "連線至伺服器失敗,是否仍在執行?" }, "files": { - "body": "内容", - "clear": "清空", "closePreview": "關閉預覽", - "home": "主頁", "lastModified": "最後修改", - "loading": "讀取中...", "lonely": "這裡沒有任何檔案...", - "metadata": "詮釋資料", "multipleSelectionEnabled": "多選模式已開啟", - "name": "名稱", - "size": "大小", "sortByLastModified": "按最後修改時間排序", "sortByName": "按名稱排序", "sortBySize": "按大小排序", "noPreview": "此檔案無法預覽。", - "noDownloadAccess": "無法下載。" + "noDownloadAccess": "無法下載。", + "itemSelected": "項目已選擇", + "itemsSelected": "項目已選擇", + "myFiles": "我的檔案{suffix}", + "newFile": "新檔案{suffix}", + "newFolder": "新資料夾{suffix}", + "duration": "時間長度{suffix}", + "sortByDuration": "依時間長短排序" }, "help": { "functionKeys": "功能鍵", "mouseActions": "滑鼠操作", "fileOperations": "檔案操作", - "navigation": "導航", "click": "選擇檔案或目錄", "ctrl": { "click": "選擇多個檔案或目錄", @@ -115,11 +80,11 @@ "del": "刪除所選的檔案/資料夾", "esc": "清除已選項或關閉提示資訊", "f2": "重新命名檔案/資料夾", - "help": "幫助", "f1": "顯示幫助提示", "description": "您可以查看以下的基本導航選項。如需其他資訊,請造訪", "slash": "啟動搜尋", - "wiki": "FileBrowser Quantum 官方文件" + "wiki": "FileBrowser Quantum 官方文件", + "marqueeSelect": "藉由在空白區域拖曳選取多個檔案或目錄" }, "languages": { "he": "עברית", @@ -153,7 +118,6 @@ "loginInstead": "已有賬戶登錄", "passwordConfirm": "確認密碼", "passwordsDontMatch": "密碼不匹配", - "submit": "登入", "usernameTaken": "用戶名已存在", "wrongCredentials": "帳號或密碼錯誤", "or": "或", @@ -208,7 +172,6 @@ "viewMode": "檢視模式", "renameMessage": "輸入新名稱:", "renameMessageInvalid": "檔案不能包含\"/「或」\\\"", - "source": "來源{suffix}", "deleteMessageMultiple": "您確定要刪除{count} 檔案嗎?", "deleteMessageShare": "您確定要刪除此共用嗎? {path} ?", "numberDirs": "目錄數量{suffix}", @@ -249,16 +212,14 @@ "firstLoadTitle": "歡迎來到 FileBrowser Quantum!", "halloweenTitle": "萬聖節快樂", "halloweenBody": "萬聖節主題已套用。如果您不喜歡,可以將其停用,或在個人資料設定中選擇任何其他主題,將其永久停用。", - "firstLoadBody": "啟動時已建立新資料庫。如果這與您的預期不同,請仔細檢查您的設定檔中的 `server.database` 路徑,並確認它存在。在 docker 上,資料庫路徑可以是 `./data/database.db` 或 `./database.db`。" + "firstLoadBody": "啟動時已建立新資料庫。如果這與您的預期不同,請仔細檢查您的設定檔中的 `server.database` 路徑,並確認它存在。在 docker 上,資料庫路徑可以是 `./data/database.db` 或 `./database.db`。", + "selectPath": "選擇路徑", + "renameSuccess": "項目已成功重新命名!", + "newFileSuccess": "檔案已成功建立!", + "newDirSuccess": "目錄建立成功!", + "copyToClipboardFailed": "無法複製到剪貼簿" }, "search": { - "images": "影像", - "music": "音樂", - "pdf": "PDF", - "search": "搜尋...", - "types": "類型", - "video": "影片", - "path": "路徑:", "smallerThan": "小於:", "largerThan": "大於:", "helpText1": "您輸入的每個字元都會進行搜尋(搜尋字詞最少 3 個字元)。", @@ -267,18 +228,11 @@ "onlyFolders": "僅文件夾", "onlyFiles": "僅檔案", "showOptions": "顯示選項", - "photos": "圖片", - "audio": "音訊", - "videos": "影片", - "documents": "文件", - "archives": "檔案", - "number": "數量", "searchContext": "搜尋範圍:{context}", "notEnoughCharacters": "搜尋字元不足 (最少{minSearchLength})", "typeToSearch": "開始輸入{minSearchLength} 或更多字元以開始搜尋。" }, "settings": { - "admin": "管理員", "administrator": "管理員", "allowCommands": "執行命令", "allowEdit": "編輯、重命名或刪除檔案/目錄", @@ -286,7 +240,6 @@ "allowPublish": "發佈新的貼文與頁面", "allowSignup": "允許使用者註冊", "avoidChanges": "(留空以避免更改)", - "branding": "品牌", "brandingDirectoryPath": "品牌資訊資料夾路徑", "changePassword": "更改密碼", "commandRunner": "命令執行器", @@ -296,8 +249,6 @@ "defaultUserDescription": "這些是新使用者的預設設定。", "disableExternalLinks": "禁止外部連結(幫助文件除外)", "disableUsedDiskPercentage": "Disable used disk percentage graph", - "documentation": "幫助文件", - "examples": "範例", "executeOnShell": "在Shell中執行", "executeOnShellDescription": "預設情況下,File Browser通過直接呼叫命令的二進位制包來執行命令,如果想在shell中執行(如Bash、PowerShell),你可以在這裡定義所使用的shell和參數。如果設定了這個選項,所執行的命令會作為參數追加在後面。本選項對使用者命令和事件鉤子都生效。", "globalRules": "這是全局允許與禁止規則。它們作用於所有使用者。您可以給每個使用者定義單獨的特殊規則來覆蓋全局規則。", @@ -305,14 +256,11 @@ "insertPath": "插入路徑", "insertRegex": "插入正規表示式", "instanceName": "例項名稱", - "language": "語言", "lockPassword": "禁止使用者修改密碼", "newPassword": "您的新密碼", "newPasswordConfirm": "重輸一遍新密碼", "newUser": "建立使用者", - "password": "密碼", "passwordUpdated": "密碼已更新!", - "path": "路徑", "permissions": { "modify": "編輯檔案", "share": "分享檔案", @@ -328,27 +276,16 @@ "profileSettings": "個人設定", "ruleExample1": "封鎖使用者存取所有資料夾下任何以 . 開頭的檔案(隱藏文件, 例如: .git, .gitignore)。", "ruleExample2": "封鎖使用者存取其目錄範圍的根目錄下名為 Caddyfile 的檔案。", - "rules": "規則", "rulesHelp": "您可以為該使用者製定一組黑名單或白名單式的規則,被屏蔽的檔案將不會顯示在清單中,使用者也無權限存取,支持相對於目錄範圍的路徑。", - "scope": "目錄範圍", "settingsUpdated": "設定已更新!", "shareManagement": "股份管理", "singleClick": "使用單擊開啟檔案和目錄", - "themes": { - "dark": "深色", - "light": "淺色", - "title": "主題" - }, - "user": "使用者", - "userCommands": "使用者命令", "userCommandsHelp": "指定該使用者可以執行的命令,用空格分隔。例如:", "userCreated": "使用者已建立!", "userDefaults": "使用者預設選項", "userDeleted": "使用者已刪除!", "userManagement": "使用者管理", "userUpdated": "使用者已更新!", - "username": "使用者名稱", - "users": "使用者", "enterPassword": "輸入密碼", "enterPasswordAgain": "再次輸入密碼", "passwordsDoNotMatch": "密碼不匹配", @@ -372,10 +309,8 @@ "createUserHomeDirectory": "建立使用者主目錄", "shareSettings": "分享設定", "api": "API 金鑰", - "shareDuration": "到期", "shareDeleted": "分享已刪除!", "adminOptions": "管理員使用者選項", - "downloads": "下載", "systemAdmin": "系統與管理", "configViewer": "組態檢視器", "configViewerShowFull": "顯示完整設定", @@ -388,24 +323,45 @@ "oidc": "OIDC", "proxy": "代理" }, - "newUserHintSubFolder": "例如 '/subfolder' - 預設為空白", - "userScopes": "範圍" + "newUserHintSubFolder": "例如 '/subfolder' - 預設為空白" }, "sidebar": { - "help": "幫助", - "hugoNew": "Hugo New", - "login": "登入", - "logout": "登出", - "myFiles": "我的檔案", - "newFile": "建立檔案", - "newFolder": "建立資料夾", - "preview": "預覽", - "settings": "設定", - "signup": "註冊", "siteSettings": "網站設定", - "sources": "來源", "updateIsAvailable": "可提供更新!", - "fileActions": "檔案動作" + "fileActions": "檔案動作", + "customizeLinks": "自訂側邊欄連結", + "customizeLinksDescription": "自訂側邊列中顯示的連結。拖放可重新排序。", + "currentLinks": "當前連結", + "addNewLink": "新增連結", + "linkType": "連結類型", + "selectLinkType": "選擇連結類型", + "customLink": "自訂連結", + "selectSource": "選擇來源", + "chooseSource": "選擇來源", + "selectTool": "選擇工具", + "chooseTool": "選擇工具", + "linkName": "連結名稱", + "linkNamePlaceholder": "輸入連結名稱", + "linkUrl": "連結網址", + "linkUrlPlaceholder": "輸入 URL 或路徑 (例如 /files/path 或 https://example.com)", + "linkIcon": "連結圖示", + "linksUpdatedSuccess": "側邊欄連結更新成功!", + "linksUpdateFailed": "更新側邊欄連結失敗", + "sourceNotAccessible": "您無法再存取此來源", + "noLinksYet": "尚未設定連結。請在下方新增您的第一個連結。", + "customizeShareLinks": "自訂分享側邊欄連結", + "customizeShareLinksDescription": "自訂此分享側邊列中顯示的連結。拖放可重新排序。", + "editLink": "編輯連結", + "selectShare": "選擇分享", + "chooseShare": "選擇股份", + "selectSharePath": "共用內的路徑(可選)", + "sharePathPlaceholder": "例如,/subfolder 或留空表示 root", + "browseIcons": "瀏覽圖示", + "pickIcon": "選取圖示", + "pickIconDescription": "從 Material Icons 圖示庫搜尋並選取圖示", + "shareLinksUpdatedSuccess": "分享側邊欄連結更新成功!", + "shareHome": "分享首頁", + "linkIconPlaceholder": "可選擇指定材質圖示名稱" }, "success": { "linkCopied": "連結已複製!" @@ -481,7 +437,12 @@ "allowReplacements": "允許檔案替換", "allowReplacementsDescription": "任何人在上傳具有相同名稱的檔案時,都可以取代現有檔案。", "allowCreate": "允許建立和上傳檔案與資料夾", - "allowCreateDescription": "任何人都可以在此共用中建立和上傳新檔案和資料夾。" + "allowCreateDescription": "任何人都可以在此共用中建立和上傳新檔案和資料夾。", + "customizeSidebarLinks": "自訂側邊欄連結", + "customizeSidebarLinksButton": "自訂連結", + "shareInfo": "分享 QR 代碼和資訊", + "shareInfoDescription": "此連結會在彈出式視窗中顯示分享資訊,包括標題、說明、橫幅和 QR 代碼。", + "downloadDescription": "此連結可將整個共用內容下載為壓縮檔。" }, "api": { "title": "API 金鑰", @@ -505,21 +466,28 @@ "expires": "到期", "actions": "行動", "enabled": "已啟用", - "disabled": "殘障" + "disabled": "殘障", + "apiKeyDeleted": "API 金鑰已刪除!" }, "index": { - "status": "狀態", "assessment": "評估", "lastScanned": "最後一次掃描", "quickScan": "快速掃描秒數", "fullScan": "完整掃描秒數", "settingsHover": "使用者設定", - "logout": "登出", "toggleClick": "切換單擊", "toggleDark": "切換黑暗模式", "toggleSticky": "切換黏貼模式", - "used": "中古", - "noSources": "此使用者沒有可用的來源。請為此使用者新增來源,或設定預設啟用:true 的來源。" + "noSources": "此使用者沒有可用的來源。請為此使用者新增來源,或設定預設啟用:true 的來源。", + "unknown": "未知", + "simple": "簡單", + "normal": "正常", + "complex": "複雜", + "highlyComplex": "高度複雜", + "ready": "準備就緒", + "indexing": "索引", + "unavailable": "無法使用", + "error": "錯誤" }, "profileSettings": { "setDateFormat": "設定精確的日期格式", @@ -579,9 +547,7 @@ "themeAndLanguage": "主題與語言", "previewFolder": "顯示資料夾的縮圖(若有", "previewFolderDescription": "顯示資料夾的縮圖預覽,第一個子項目以縮圖為封面。", - "disableFileExtensions": "輸入要停用的檔案副檔名", - "defaultLandingPage": "預設登陸頁面", - "defaultLandingPageDescription": "例如/files/mysource/mysubpath「 或 」/settings' - 預設頁面為 /files,會進入第一個原始碼清單檢視。" + "disableFileExtensions": "輸入要停用的檔案副檔名" }, "otp": { "name": "雙因素驗證", @@ -625,7 +591,96 @@ "exit": "離開", "permanent": "長期", "hash": "散列", - "of": "的" + "of": "的", + "source": "來源{suffix}", + "percentage": "{percentage}%", + "type": "類型{suffix}", + "size": "尺寸{suffix}", + "body": "身體{suffix}", + "home": "首頁{suffix}", + "clear": "清除{suffix}", + "help": "說明{suffix}", + "login": "登入{suffix}", + "logout": "登出{suffix}", + "preview": "預覽{suffix}", + "settings": "設定{suffix}", + "sources": "來源{suffix}", + "links": "連結{suffix}", + "tool": "工具{suffix}", + "used": "中古{suffix}", + "status": "狀態{suffix}", + "analyze": "分析{suffix}", + "results": "結果{suffix}", + "users": "使用者{suffix}", + "photos": "圖片", + "audio": "音訊{suffix}", + "videos": "影片{suffix}", + "documents": "文件{suffix}", + "archives": "檔案{suffix}", + "images": "圖片{suffix}", + "music": "音樂{suffix}", + "pdf": "PDF{suffix}", + "search": "搜尋{suffix}", + "number": "數量{suffix}", + "types": "類型{suffix}", + "video": "視訊{suffix}", + "admin": "管理員{suffix}", + "branding": "品牌{suffix}", + "language": "語言{suffix}", + "documentation": "文件{suffix}", + "examples": "範例{suffix}", + "dark": "黑暗{suffix}", + "light": "燈光{suffix}", + "title": "主題{suffix}", + "expires": "到期{suffix}", + "scope": "範圍{suffix}", + "rules": "規則{suffix}", + "downloads": "下載{suffix}", + "submit": "登入{suffix}", + "navigation": "導航{suffix}", + "metadata": "元資料{suffix}", + "loading": "載入中{suffix}", + "add": "新增{suffix}", + "cancel": "取消{suffix}", + "verify": "驗證{suffix}", + "close": "關閉{suffix}", + "copy": "複製{suffix}", + "create": "建立{suffix}", + "delete": "刪除{suffix}", + "download": "下載{suffix}", + "file": "檔案{suffix}", + "folder": "資料夾{suffix}", + "info": "資訊{suffix}", + "more": "更多資訊{suffix}", + "move": "移動{suffix}", + "new": "新款{suffix}", + "next": "下一頁{suffix}", + "ok": "OK{suffix}", + "previous": "上一頁{suffix}", + "publish": "發表{suffix}", + "rename": "重新命名{suffix}", + "replace": "更換{suffix}", + "save": "節省{suffix}", + "schedule": "時間表{suffix}", + "select": "選擇{suffix}", + "share": "分享{suffix}", + "update": "更新{suffix}", + "upload": "上傳{suffix}", + "openFile": "開啟檔案{suffix}", + "continue": "繼續{suffix}", + "edit": "編輯{suffix}", + "pause": "暫停{suffix}", + "resume": "簡歷{suffix}", + "retry": "重試{suffix}", + "disable": "停用{suffix}", + "confirm": "確認{suffix}", + "stay": "停留{suffix}", + "scopes": "範圍{suffix}", + "commands": "指令{suffix}", + "uploading": "上傳{suffix}", + "paused": "已暫停{suffix}", + "conflict": "衝突{suffix}", + "change": "變更{suffix}" }, "access": { "rules": "存取規則", @@ -642,18 +697,22 @@ "enterName": "輸入使用者或群組名稱", "deleted": "存取規則已刪除!", "added": "已新增存取規則!", - "name": "名稱", "accessManagement": "存取管理", "all": "全部拒絕", "defaultBehaviorDescription": "這顯示使用者嘗試存取沒有特定存取規則的路徑時會發生的情況。允許」表示使用者預設可以存取,「拒絕」表示使用者預設會被阻擋,除非明確允許。", - "defaultBehavior": "預設動作{suffix}" + "defaultBehavior": "預設動作{suffix}", + "deletedCascade": "從路徑和所有子路徑刪除存取規則!", + "cascadeDelete": "遞歸刪除", + "cascadeDeleteDescription": "啟用時,刪除存取規則也會從所有子目錄中移除該規則。這可讓您從整個目錄樹中完全移除使用者或群組。" }, "editor": { "uninitialized": "編輯器初始化失敗。請重新載入。", "saveFailed": "儲存檔案失敗。請重試。", "saveAborted": "儲存中止。檔案名稱與使用中的檔案不符。", "saveAbortedMessage": "儲存作業中止。應用程式的作用中檔案 ({activeFile}) 與您試圖儲存的檔案 ({tryingToSave}) 不匹配。", - "syncFailed": "經過 5 次嘗試後,未能與 \"{filename}\" 的路由同步狀態。中止編輯器設定以防止資料損毀。" + "syncFailed": "經過 5 次嘗試後,未能與 \"{filename}\" 的路由同步狀態。中止編輯器設定以防止資料損毀。", + "fileSaved": "檔案已儲存!", + "errorSavingFile": "儲存檔案出錯:{error}" }, "player": { "LoopEnabled": "循環已啟用", @@ -666,5 +725,93 @@ "changePlaybackMode": "變更播放模式", "changePlaybackModeHint": "變更播放模式以查看更多檔案", "emptyQueue": "佇列為空" + }, + "fileSizeAnalyzer": { + "title": "檔案大小分析器", + "searchLocation": "搜尋位置", + "selectPath": "選擇搜尋位置", + "largerThan": "大於 (MB)", + "includeFolders": "包含資料夾", + "includeFoldersDescription": "在分析中包含目錄", + "totalFiles": "檔案總數{suffix}", + "totalSize": "總尺寸{suffix}", + "emptyState": "輸入搜尋準則,然後按一下「分析」以顯示檔案大小", + "completeResults": "顯示完整結果!", + "incompleteResults": "結果可能不完整", + "incompleteResultsDetails": "顯示最大結果 (100)。請嘗試縮小搜尋範圍,以獲得更多低於 100 的結果。", + "relativePercentage": "相對百分比{suffix}", + "percentageOfResults": "{percentage}結果百分比" + }, + "fileTypes": { + "video": "視訊", + "image": "圖片", + "audio": "音訊", + "archive": "存檔", + "document": "文件", + "binary": "二進制", + "directory": "目錄", + "other": "其他" + }, + "tools": { + "description": "適用於您檔案的公用程式和分析工具", + "sizeAnalyzer": { + "name": "檔案大小分析器", + "description": "使用互動式樹狀地圖可視化大型檔案和目錄" + }, + "title": "工具", + "duplicateFinder": { + "name": "重複檔案搜尋器", + "description": "尋找和管理重複檔案以回收儲存空間" + }, + "materialIconPicker": { + "name": "材料圖示選擇器", + "description": "使用即時預覽瀏覽和搜尋 Material Icons", + "searchPlaceholder": "搜尋圖示...", + "popularIcons": "顯示{count} 熱門圖示", + "showingResults": "顯示{count} 結果", + "noResults": "未找到圖示", + "tryDifferentSearch": "嘗試不同的搜尋字詞", + "copiedToClipboard": "將 '{name}' 複製到剪貼簿!", + "copyFailed": "複製到剪貼簿失敗", + "custom": "自訂", + "useCustomIcon": "使用自訂圖示:{name}", + "iconLibraryUrl": "fonts.google.com/icons", + "browseFullLibrary": "瀏覽完整圖示庫" + }, + "toolNotFound": "未找到工具", + "backToTools": "回到工具" + }, + "messages": { + "pathNotFound": "檔案系統中不存在路徑", + "pathNotFoundMessage": "檔案系統中已不存在此路徑。它可能已被移動或刪除。", + "reassignPath": "重新指定路徑", + "pathReassigned": "路徑已成功更新!", + "pathReassignFailed": "更新路徑失敗。請再試一次。" + }, + "duplicateFinder": { + "title": "重複檔案搜尋器", + "minSize": "最小大小 (MB){suffix}", + "minSizeHint": "只分析大於此大小 (以 MB 為單位) 的檔案", + "useChecksums": "比較檔案內容", + "useChecksumsDescription": "在比較中也包含檔案內容。如果不這樣做,檔案會依大小和檔案名稱相似度來比較。", + "findDuplicates": "尋找重複", + "groupsFound": "發現重複群組{suffix}", + "totalWastedSpace": "總浪費空間{suffix}", + "wasted": "浪費{suffix}", + "emptyState": "輸入搜尋準則,然後按一下「尋找重複檔案」以識別重複檔案" + }, + "notifications": { + "title": "通知", + "description": "檢視目前會話的所有通知", + "empty": "尚未有通知", + "clearAll": "全部清除", + "clearConfirm": "您確定要清除所有通知記錄嗎?", + "total": "{count} 通知" + }, + "events": { + "serverShutdown": "伺服器被關閉。", + "authenticationFailed": "驗證失敗。請刷新頁面重新登入。", + "reconnected": "重新連線至伺服器。", + "connectionLost": "與伺服器的連線中斷。嘗試重新連線..." } } diff --git a/frontend/src/notify/events.js b/frontend/src/notify/events.js index 8cde220308..48a5811335 100644 --- a/frontend/src/notify/events.js +++ b/frontend/src/notify/events.js @@ -2,11 +2,13 @@ import { mutations, state } from '@/store' import { notify } from '@/notify' import { globalVars } from '@/utils/constants' import { filesApi } from '@/api' +import i18n from '@/i18n' let eventSrc = null let reconnectTimeout = null let isManuallyClosed = false let authenticationFailed = false +let hasShownShutdownMessage = false async function updateSourceInfo () { try { @@ -81,7 +83,7 @@ async function setupSSE () { if (!isAuthenticated) { console.log('🚫 Authentication failed, not setting up EventSource') authenticationFailed = true - notify.showError('Authentication failed. Please refresh the page to log in again.') + notify.showError(i18n.global.t('events.authenticationFailed')) return } } @@ -95,13 +97,15 @@ async function setupSSE () { console.log('✅ SSE connected') } if (state.realtimeDownCount > 1) { - notify.showSuccess('Reconnected to server.') + notify.showSuccessToast(i18n.global.t('events.reconnected')) } clearReconnect() mutations.setRealtimeActive(true) updateSourceInfo() // Reset authentication failure flag on successful connection authenticationFailed = false + // Reset shutdown message flag on successful reconnection + hasShownShutdownMessage = false } eventSrc.onmessage = event => { @@ -127,7 +131,7 @@ async function setupSSE () { // Original notification logic - only show error after multiple failures if (state.realtimeDownCount == 2 && !isManuallyClosed) { - notify.showError('The connection to server was lost. Trying to reconnect...') + notify.showErrorToast(i18n.global.t('events.connectionLost')) } scheduleReconnect() } @@ -153,7 +157,10 @@ async function eventRouter (eventType, message) { switch (eventType) { case 'notification': if (message === 'the server is shutting down') { - notify.showError('Server is shutting down. Reconnecting...') + if (!hasShownShutdownMessage) { + notify.showErrorToast(i18n.global.t('events.serverShutdown')) + hasShownShutdownMessage = true + } mutations.setRealtimeActive(false) cleanup() scheduleReconnect() @@ -170,7 +177,7 @@ async function eventRouter (eventType, message) { case 'acknowledge': if (!state.realtimeActive) { - notify.showSuccess('Reconnected to server.') + notify.showSuccessToast(i18n.global.t('events.reconnected')) } mutations.setRealtimeActive(true) break diff --git a/frontend/src/notify/index.ts b/frontend/src/notify/index.ts index 0b52cd697e..1a8200f34f 100644 --- a/frontend/src/notify/index.ts +++ b/frontend/src/notify/index.ts @@ -3,6 +3,21 @@ import * as events from "./events.js"; const notify = { ...messageFunctions, + closeNotification: messageFunctions.closeNotification, + getNotifications: messageFunctions.getNotifications, + setUpdateCallback: messageFunctions.setUpdateCallback, + pauseAutoClose: messageFunctions.pauseAutoClose, + resumeAutoClose: messageFunctions.resumeAutoClose, + getNotificationProgress: messageFunctions.getNotificationProgress, + // Toast functions + showToast: messageFunctions.showToast, + showSuccessToast: messageFunctions.showSuccessToast, + showErrorToast: messageFunctions.showErrorToast, + showInfoToast: messageFunctions.showInfoToast, + showWarningToast: messageFunctions.showWarningToast, + getToasts: messageFunctions.getToasts, + closeToast: messageFunctions.closeToast, + setToastUpdateCallback: messageFunctions.setToastUpdateCallback, }; export { notify, events }; \ No newline at end of file diff --git a/frontend/src/notify/message.js b/frontend/src/notify/message.js index 4a19c5034c..9968064542 100644 --- a/frontend/src/notify/message.js +++ b/frontend/src/notify/message.js @@ -1,35 +1,99 @@ import { mutations, state } from '@/store' -let active = false -/** @type {ReturnType | null} */ -let closeTimeout // Store timeout ID +/** + * @typedef {Object} NotificationButton + * @property {string} label + * @property {() => void} action + * @property {boolean} [keepOpen] + * @property {boolean} [primary] + * @property {string} [className] + */ /** - * Show a popup notification - * @param {'success' | 'error' | 'action'} type - * @param {unknown} message - * @param {boolean} [autoclose=true] + * @typedef {Object} Notification + * @property {string} id + * @property {'success' | 'error' | 'action'} type + * @property {string} message + * @property {string} [icon] + * @property {NotificationButton[]} [buttons] + * @property {boolean} [autoclose] - For backward compatibility (inverse of persistent) + * @property {ReturnType | null} [timeoutId] + * @property {number} [timeoutStartTime] - When the timeout started + * @property {number} [timeoutDuration] - Total timeout duration + * @property {number} [timeoutRemaining] - Remaining time when paused (pauses when hovering) + * @property {number} [progress] - Current progress porcentage (0-100) + * @property {ReturnType | null} [progressInterval] - Progress update interval */ -export function showPopup(type, message, autoclose = true) { - if (active) { - if (closeTimeout) clearTimeout(closeTimeout) // Clear the existing timeout + +/** + * @typedef {Object} Toast + * @property {string} id + * @property {'success' | 'error' | 'info' | 'warning'} type + * @property {string} message + * @property {string} [icon] + * @property {ReturnType | null} [timeoutId] + */ + +/** @type {Notification[]} */ +let notifications = [] + +/** @type {Toast[]} */ +let toasts = [] + +/** @type {((notifications: Notification[]) => void) | null} */ +let updateCallback = null + +/** @type {((toasts: Toast[]) => void) | null} */ +let toastUpdateCallback = null + +/** + * Set the callback function to be called when notifications change + * @param {(notifications: Notification[]) => void} callback + */ +export function setUpdateCallback(callback) { + updateCallback = callback +} + +/** + * Set the callback function to be called when toasts change + * @param {(toasts: Toast[]) => void} callback + */ +export function setToastUpdateCallback(callback) { + toastUpdateCallback = callback +} + +/** + * Generate a unique ID for a notification + * @returns {string} + */ +function generateId() { + return `notification-${Date.now()}-${Math.random().toString(36).substr(2, 9)}` +} + +/** + * Notify listeners that notifications have changed + */ +function notifyUpdate() { + if (updateCallback) { + updateCallback([...notifications]) } +} - const [popup, popupContent] = getElements() - if (popup == null || popupContent == null) { - return +/** + * Notify listeners that toasts have changed + */ +function notifyToastUpdate() { + if (toastUpdateCallback) { + toastUpdateCallback([...toasts]) } - /** @type {HTMLElement} */ - // @ts-ignore - narrow Element to HTMLElement after null check - const popupEl = popup - /** @type {HTMLElement} */ - // @ts-ignore - narrow Element to HTMLElement after null check - const popupContentEl = popupContent - - popupEl.classList.remove('success', 'error') // Clear previous types - popupEl.classList.add(type) - active = true +} +/** + * Parse message to extract display text + * @param {unknown} message + * @returns {string} + */ +function parseMessage(message) { try { // Normalize message to a string first to avoid calling string methods on non-strings const normalizedMessage = @@ -52,11 +116,10 @@ export function showPopup(type, message, autoclose = true) { Object.prototype.hasOwnProperty.call(apiMessage, 'status') && Object.prototype.hasOwnProperty.call(apiMessage, 'message') ) { - popupContentEl.textContent = - apiMessage.status + ': ' + apiMessage.message + return apiMessage.status + ': ' + apiMessage.message } else { // Fallback to showing the normalized message if it is not an API error shape - popupContentEl.textContent = normalizedMessage + return normalizedMessage } } catch (error) { // Fallback to a safe string representation @@ -66,79 +129,454 @@ export function showPopup(type, message, autoclose = true) { : typeof message === 'string' ? message : JSON.stringify(message) - popupContentEl.textContent = fallback + return fallback } - - popupEl.style.right = '0em' - - // Don't auto-hide for 'action' type popups - if (type === 'action') { - popup.classList.add('success') - return - } - - if (!autoclose || !active) { - return - } - - // Set a new timeout for closing - closeTimeout = setTimeout(() => { - if (active) { - closePopUp() - } - }, 5000) } -export function closePopUp() { - active = false - const [popup, popupContent] = getElements() - if (popup == null || popupContent == null) { +/** + * Show a popup notification + * @param {'success' | 'error' | 'action'} type + * @param {unknown} message + * @param {Object} [options] + * @param {boolean} [options.persistent=false] - If true, notification won't auto-close + * @param {boolean} [options.autoclose] - Deprecated, use persistent instead + * @param {string} [options.icon] + * @param {NotificationButton[]} [options.buttons] + */ +export function showPopup(type, message, options = {}) { + const { + persistent = false, + autoclose, + icon, + buttons + } = options + + // Determine if notification should auto-close + // Priority: persistent option > autoclose option > default behavior + let shouldAutoClose + if (persistent) { + shouldAutoClose = false + } else if (autoclose !== undefined) { + shouldAutoClose = autoclose + } else { + // Default: action types don't auto-close, others do + shouldAutoClose = type !== 'action' + } + + const notificationId = generateId() + const parsedMessage = parseMessage(message) + + /** @type {Notification} */ + const notification = { + id: notificationId, + type, + message: parsedMessage, + icon, + buttons, + autoclose: !persistent, // Store the inverse for backward compatibility + timeoutId: null, + timeoutStartTime: null, + timeoutDuration: null, + timeoutRemaining: null, + progress: 100, // Start at 100% - will decrease based in the remaining timeout + progressInterval: null // Interval ID + } + + notifications.push(notification) + notifyUpdate() + + // Save to notification history with timestamp + // Serialize buttons to preserve action metadata + const serializedButtons = buttons ? buttons.map(button => ({ + label: button.label, + className: button.className, + keepOpen: button.keepOpen, + primary: button.primary, + // Store action as metadata if it's a function + actionType: button.actionType || (typeof button.action === 'function' ? 'function' : null), + actionData: button.actionData || null, + // Keep the action function in memory for immediate use + _action: typeof button.action === 'function' ? button.action : null + })) : null + + const historyEntry = { + id: notificationId, + type, + message: parsedMessage, + icon, + buttons: serializedButtons, + timestamp: Date.now(), + persistent: persistent + } + state.notificationHistory.push(historyEntry) + + // Persist to sessionStorage (survives page refresh, cleared on tab close) + // Note: Functions can't be serialized, so _action will be lost, but actionType/actionData are preserved + try { + const serializableHistory = state.notificationHistory.map(entry => ({ + ...entry, + buttons: entry.buttons ? entry.buttons.map(btn => ({ + label: btn.label, + className: btn.className, + keepOpen: btn.keepOpen, + primary: btn.primary, + actionType: btn.actionType, + actionData: btn.actionData + // _action is intentionally omitted as it can't be serialized + })) : null + })) + sessionStorage.setItem('notificationHistory', JSON.stringify(serializableHistory)) + } catch (error) { + console.error('Failed to save notification history:', error) + } + + // Set auto-close timeout if applicable + if (shouldAutoClose) { + const timeoutDuration = 5000 + notification.timeoutStartTime = Date.now() + notification.timeoutDuration = timeoutDuration + notification.timeoutRemaining = null + notification.progress = 100 + + // Start progress update interval + notification.progressInterval = setInterval(() => { + const notificationIndex = notifications.findIndex(n => n.id === notificationId) + if (notificationIndex === -1) { + clearInterval(notification.progressInterval) + return + } + + const notif = notifications[notificationIndex] + // Update progress if the notification is active + if (notif.timeoutStartTime && !notif.timeoutRemaining) { + const elapsed = Date.now() - notif.timeoutStartTime + const progress = Math.max(0, 100 - (elapsed / timeoutDuration) * 100) + notif.progress = progress + notifyUpdate() + if (progress <= 0) { + clearInterval(notif.progressInterval) + } + } + }, 25) // Update every 25ms + + notification.timeoutId = setTimeout(() => { + if (notification.progressInterval) { + clearInterval(notification.progressInterval) + } + closeNotification(notificationId) + }, timeoutDuration) + } +} + +/** + * Close a specific notification by ID + * @param {string} notificationId + */ +export function closeNotification(notificationId) { + const index = notifications.findIndex(n => n.id === notificationId) + if (index === -1) { return } - /** @type {HTMLElement} */ - // @ts-ignore - narrow Element to HTMLElement after null check - const popupEl = popup - /** @type {HTMLElement} */ - // @ts-ignore - narrow Element to HTMLElement after null check - const popupContentEl = popupContent + + const notification = notifications[index] + + // Clear timeout if exists + if (notification.timeoutId) { + clearTimeout(notification.timeoutId) + } + + // Clear progress + if (notification.progressInterval) { + clearInterval(notification.progressInterval) + } + + // Handle special case for multiple selection if ( - popupContentEl.textContent == 'Multiple Selection Enabled' && + notification.message === 'Multiple Selection Enabled' && state.multiple ) { mutations.setMultiple(false) } - popupEl.style.right = '-50em' // Slide out - popupContentEl.textContent = 'no content' + + // Remove from array + notifications.splice(index, 1) + notifyUpdate() } /** - * @returns {[Element | null, Element | null]} + * Close all notifications */ -function getElements() { - const popup = document.getElementById('popup-notification') - if (!popup) { - return [null, null] - } +export function closePopUp() { + notifications.forEach(notification => { + if (notification.timeoutId) { + clearTimeout(notification.timeoutId) + } + if (notification.progressInterval) { + clearInterval(notification.progressInterval) + } + }) - const popupContent = popup.querySelector('#popup-notification-content') - if (!popupContent) { - return [null, null] + // Handle multiple selection special case + if (state.multiple) { + const multipleNotification = notifications.find( + n => n.message === 'Multiple Selection Enabled' + ) + if (multipleNotification) { + mutations.setMultiple(false) + } } - - return [popup, popupContent] + notifications = [] + notifyUpdate() } -/** @param {unknown} message */ -export function showSuccess(message) { - showPopup('success', message) +/** + * Get all active notifications + * @returns {Notification[]} + */ +export function getNotifications() { + return [...notifications] } -/** @param {unknown} message */ -export function showError(message) { - showPopup('error', message) +/** + * Show a success notification + * @param {unknown} message + * @param {Object} [options] + * @param {boolean} [options.persistent=false] - If true, notification won't auto-close + * @param {string} [options.icon] + * @param {NotificationButton[]} [options.buttons] + */ +export function showSuccess(message, options = {}) { + showPopup('success', message, options) +} + +/** + * Show an error notification + * @param {unknown} message + * @param {Object} [options] + * @param {boolean} [options.persistent=false] - If true, notification won't auto-close + * @param {string} [options.icon] + * @param {NotificationButton[]} [options.buttons] + */ +export function showError(message, options = {}) { + showPopup('error', message, options) console.error(message) } export function showMultipleSelection() { - showPopup('action', 'Multiple Selection Enabled') + showPopup('success', 'Multiple Selection Enabled', { persistent: true }) +} + +/** + * Pause auto-close (timeout) when we hover a notification - will only pause the current hover notification + * @param {string} notificationId + */ +export function pauseAutoClose(notificationId) { + const notification = notifications.find(n => n.id === notificationId) + if (notification && notification.timeoutId) { + // Calculate remaining time and clear the timeout + if (notification.timeoutStartTime && notification.timeoutDuration) { + const elapsed = Date.now() - notification.timeoutStartTime + notification.timeoutRemaining = Math.max(0, notification.timeoutDuration - elapsed) + // Freeze progress at current value + notification.progress = Math.max(0, 100 - (elapsed / notification.timeoutDuration) * 100) + } + clearTimeout(notification.timeoutId) + notification.timeoutId = null + // Clear the progress interval when paused (hover) + if (notification.progressInterval) { + clearInterval(notification.progressInterval) + notification.progressInterval = null + } + notifyUpdate() + } +} + +/** + * Resume auto-close (timeout) when we stop hovering the notification + * @param {string} notificationId + */ +export function resumeAutoClose(notificationId) { + const notification = notifications.find(n => n.id === notificationId) + if (notification && notification.autoclose && !notification.timeoutId && notification.timeoutRemaining > 0) { + // Restart timeout with the remaining time + notification.timeoutStartTime = Date.now() - (notification.timeoutDuration - notification.timeoutRemaining) + notification.timeoutId = setTimeout(() => { + if (notification.progressInterval) { + clearInterval(notification.progressInterval) + } + closeNotification(notificationId) + }, notification.timeoutRemaining) + // Restart the progress interval + notification.progressInterval = setInterval(() => { + const notificationIndex = notifications.findIndex(n => n.id === notificationId) + if (notificationIndex === -1) { + clearInterval(notification.progressInterval) + return + } + const notif = notifications[notificationIndex] + // Update progress if notification is active (not paused) + if (notif.timeoutStartTime && !notif.timeoutRemaining) { + const elapsed = Date.now() - notif.timeoutStartTime + const progress = Math.max(0, 100 - (elapsed / notification.timeoutDuration) * 100) + notif.progress = progress + notifyUpdate() + if (progress <= 0) { + clearInterval(notif.progressInterval) + } + } + }, 25) + notification.timeoutRemaining = null + notifyUpdate() + } +} + +/** + * Get progress information for the notification + * @param {string} notificationId + * @returns {number} Timeout progress porcentage + */ +export function getNotificationProgress(notificationId) { + const notification = notifications.find(n => n.id === notificationId) + return notification ? (notification.progress || 100) : 100 +} + +// ============================================================================ +// Toast Notifications +// ============================================================================ +// Usage examples: +// import { notify } from "@/notify"; +// +// notify.showSuccessToast("File saved!"); +// notify.showErrorToast("Failed to save file"); +// notify.showInfoToast("Processing..."); +// notify.showWarningToast("Disk space is low"); +// +// // With custom icon and duration: +// notify.showSuccessToast("Done!", { icon: "check", duration: 3000 }); +// notify.showToast("info", "Custom message", { icon: "star", duration: 5000 }); +// ============================================================================ + +/** + * Get all active toasts + * @returns {Toast[]} + */ +export function getToasts() { + return [...toasts] +} + +/** + * Close a specific toast by ID + * @param {string} toastId + */ +export function closeToast(toastId) { + const index = toasts.findIndex(t => t.id === toastId) + if (index === -1) { + return + } + + const toast = toasts[index] + + // Clear timeout if exists + if (toast.timeoutId) { + clearTimeout(toast.timeoutId) + } + + // Remove from array + toasts.splice(index, 1) + notifyToastUpdate() +} + +/** + * Show a toast notification + * @param {'success' | 'error' | 'info' | 'warning'} type + * @param {string} message + * @param {Object} [options] + * @param {string} [options.icon] - Material icon name + * @param {number} [options.duration=2000] - Duration in milliseconds before auto-close + */ +export function showToast(type, message, options = {}) { + const { + icon = getDefaultToastIcon(type), + duration = 2000 + } = options + + const toastId = generateId() + + /** @type {Toast} */ + const toast = { + id: toastId, + type, + message, + icon, + timeoutId: null + } + + toasts.push(toast) + notifyToastUpdate() + + // Set auto-close timeout + if (duration > 0) { + toast.timeoutId = setTimeout(() => { + closeToast(toastId) + }, duration) + } +} + +/** + * Get default icon for toast type + * @param {'success' | 'error' | 'info' | 'warning'} type + * @returns {string} + */ +function getDefaultToastIcon(type) { + const iconMap = { + success: 'check_circle', + error: 'error', + info: 'info', + warning: 'warning' + } + return iconMap[type] || 'info' +} + +/** + * Show a success toast + * @param {string} message + * @param {Object} [options] + * @param {string} [options.icon] + * @param {number} [options.duration=2000] + */ +export function showSuccessToast(message, options = {}) { + showToast('success', message, options) +} + +/** + * Show an error toast + * @param {string} message + * @param {Object} [options] + * @param {string} [options.icon] + * @param {number} [options.duration=3000] + */ +export function showErrorToast(message, options = {}) { + showToast('error', message, { duration: 3000, ...options }) +} + +/** + * Show an info toast + * @param {string} message + * @param {Object} [options] + * @param {string} [options.icon] + * @param {number} [options.duration=2000] + */ +export function showInfoToast(message, options = {}) { + showToast('info', message, options) +} + +/** + * Show a warning toast + * @param {string} message + * @param {Object} [options] + * @param {string} [options.icon] + * @param {number} [options.duration=2500] + */ +export function showWarningToast(message, options = {}) { + showToast('warning', message, { duration: 2500, ...options }) } diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index a7933f2f05..44eae801e8 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -4,6 +4,7 @@ import Layout from "@/views/Layout.vue"; import Files from "@/views/Files.vue"; import Settings from "@/views/Settings.vue"; import Errors from "@/views/Errors.vue"; +import Tools from "@/views/Tools.vue"; import { globalVars } from "@/utils/constants"; import { getters, state } from "@/store"; import { mutations } from "@/store"; @@ -11,20 +12,21 @@ import { validateLogin } from "@/utils/auth"; import i18n from "@/i18n"; const titles = { - Login: "sidebar.login", - Share: "buttons.share", - PublicShare: "buttons.share", - Files: "general.files", - Settings: "sidebar.settings", - ProfileSettings: "settings.profileSettings", - Shares: "settings.shareManagement", - GlobalSettings: "settings.globalSettings", - Users: "settings.users", - User: "settings.user", - Forbidden: "errors.forbidden", - NotFound: "errors.notFound", - ShareNotFound: "errors.shareNotFound", - InternalServerError: "errors.internal", + Login: i18n.global.t("general.login"), + Share: i18n.global.t("general.share"), + PublicShare: i18n.global.t("general.share"), + Files: i18n.global.t("general.files"), + Tools: i18n.global.t("general.tool"), + Settings: i18n.global.t("general.settings"), + ProfileSettings: i18n.global.t("settings.profileSettings"), + Shares: i18n.global.t("settings.shareManagement"), + GlobalSettings: i18n.global.t("settings.globalSettings"), + Users: i18n.global.t("general.users"), + User: i18n.global.t("general.user"), + Forbidden: i18n.global.t("errors.forbidden"), + NotFound: i18n.global.t("errors.notFound"), + ShareNotFound: i18n.global.t("errors.shareNotFound"), + InternalServerError: i18n.global.t("errors.internal"), }; const routes: RouteRecordRaw[] = [ @@ -72,6 +74,21 @@ const routes: RouteRecordRaw[] = [ }, ], }, + { + path: "/tools/:toolName?", + name: "Tools", + component: Layout, + meta: { + requiresAuth: true, + }, + children: [ + { + path: "", + name: "ToolsIndex", + component: Tools, + }, + ], + }, { path: "/settings", component: Layout, @@ -137,7 +154,13 @@ const router = createRouter({ // Helper function to check if a route resolves to itself function isSameRoute(to: RouteLocation, from: RouteLocation) { - return to.path === from.path && to.hash === from.hash; + // Allow query parameter changes - they don't count as same route + const toQuery = JSON.stringify(to.query || {}); + const fromQuery = JSON.stringify(from.query || {}); + + return to.path === from.path && + to.hash === from.hash && + toQuery === fromQuery; } router.beforeResolve(async (to, from, next) => { @@ -146,8 +169,7 @@ router.beforeResolve(async (to, from, next) => { return next(false); } - // @ts-ignore - Temporary fix for type instantiation issue - const title = i18n.global.t(titles[to.name as keyof typeof titles]); + const title = titles[to.name as keyof typeof titles] || String(to.name || ''); document.title = globalVars.name + " - " + title; mutations.setRoute(to); diff --git a/frontend/src/store/eventBus.js b/frontend/src/store/eventBus.js index 6d34247c96..586891df2d 100644 --- a/frontend/src/store/eventBus.js +++ b/frontend/src/store/eventBus.js @@ -1,11 +1,40 @@ // eventBus.ts class EventBus extends EventTarget { + constructor() { + super(); + this.listeners = new Map(); + } + emit(event, data) { this.dispatchEvent(new CustomEvent(event, { detail: data })); } on(event, callback) { - this.addEventListener(event, (e) => callback(e.detail)); + const wrapper = (e) => callback(e.detail); + + // Store the wrapper so we can remove it later + if (!this.listeners.has(callback)) { + this.listeners.set(callback, new Map()); + } + this.listeners.get(callback).set(event, wrapper); + + this.addEventListener(event, wrapper); + } + + off(event, callback) { + if (this.listeners.has(callback)) { + const eventMap = this.listeners.get(callback); + if (eventMap.has(event)) { + const wrapper = eventMap.get(event); + this.removeEventListener(event, wrapper); + eventMap.delete(event); + + // Clean up if no more events for this callback + if (eventMap.size === 0) { + this.listeners.delete(callback); + } + } + } } } diff --git a/frontend/src/store/getters.js b/frontend/src/store/getters.js index 4d1c678db5..5c54432a71 100644 --- a/frontend/src/store/getters.js +++ b/frontend/src/store/getters.js @@ -2,9 +2,10 @@ import { removePrefix, buildItemUrl, removeLeadingSlash } from '@/utils/url.js' import { url } from '@/utils' import { getFileExtension } from '@/utils/files.js' import { state, mutations } from '@/store' -import { globalVars, shareInfo, previewViews } from '@/utils/constants.js' +import { globalVars, previewViews } from '@/utils/constants.js' import { getTypeInfo } from '@/utils/mimetype' import { fromNow } from '@/utils/moment' +import { tools } from '@/utils/constants' import * as i18n from '@/i18n' export const getters = { @@ -63,17 +64,14 @@ export const getters = { } const isShare = getters.isShare(); const displayPref = getters.displayPreference(); - // Priority 1: If there's a saved display preference for this specific share/path, use it if (displayPref?.viewMode) { return displayPref.viewMode; } - // Priority 2: If it's a share and shareInfo.viewMode is set, use that as the default - if (isShare && shareInfo.viewMode) { - return shareInfo.viewMode; + if (isShare && state.shareInfo?.viewMode) { + return state.shareInfo.viewMode; } - // Priority 3: Use user's default viewMode return state.user.viewMode || "normal"; }, @@ -82,17 +80,16 @@ export const getters = { }, previewType: () => getTypeInfo(state.req.type).simpleType, isCardView: () => - (getters.viewMode() == 'gallery' || getters.viewMode() == 'normal') && - getters.currentView() == 'listingView', - currentHash: () => shareInfo.hash, + (getters.viewMode() == 'gallery' || getters.viewMode() == 'normal' || getters.viewMode() == 'icons' || getters.currentView() == 'listingView'), + currentHash: () => state.shareInfo?.hash, isMobile: () => state.isMobile, isLoading: () => Object.keys(state.loading).length > 0, isSettings: () => getters.currentView() === 'settings', isDarkMode: () => { - if (shareInfo.enforceDarkLightMode == "dark") { + if (state.shareInfo?.enforceDarkLightMode == "dark") { return true } - if (shareInfo.enforceDarkLightMode == "light") { + if (state.shareInfo?.enforceDarkLightMode == "light") { return false } if (!getters.isShare() && getters.eventTheme() == "halloween") { @@ -127,8 +124,8 @@ export const getters = { return false }, isAdmin: () => state.user.permissions?.admin == true, - isFiles: () => state.route.name === 'Files', - isListing: () => getters.isFiles() || getters.isShare() && state.req.type === 'directory', + isFiles: () => state.route.path.startsWith('/files'), + isListing: () => getters.isFiles() || (getters.isShare() && state.req.type === 'directory'), selectedCount: () => Array.isArray(state.selected) ? state.selected.length : 0, getFirstSelected: () => typeof(state.selected[0]) == 'number' ? state.req.items[state.selected[0]] : state.selected[0], @@ -191,7 +188,7 @@ export const getters = { return { dirs, files } }, isSidebarVisible: () => { - if (shareInfo.disableSidebar) { + if (state.shareInfo?.disableSidebar) { return false } const cv = getters.currentView() @@ -205,7 +202,7 @@ export const getters = { if (previewViews.includes(cv) && !state.user.preview?.disableHideSidebar) { visible = false } - if (shareInfo.singleFileShare) { + if (state.shareInfo?.singleFileShare) { visible = state.showSidebar } return visible @@ -238,24 +235,36 @@ export const getters = { return removePrefix(state.route.path, trimModifier) }, shareHash: () => { - return shareInfo.hash + if (!state.route.path.startsWith('/public/share')) { + return "" + } + let urlPath = getters.routePath('/public/share') + const urlPathParts = urlPath.split('/') + if (urlPathParts.length < 1) { + return "" + } + return urlPathParts[1] }, sharePathBase: () => { - return '/public/share/' + shareInfo.hash + '/' + return '/public/share/' + getters.shareHash() + '/' }, getSharePath: (subPath = "") => { - let urlPath = getters.routePath('public/share') - let path = "/" + removeLeadingSlash(urlPath.split(shareInfo.hash)[1]) - if (subPath != "") { - path = url.joinPath(path, removeLeadingSlash(subPath)) + if (!state.route.path.startsWith('/public/share')) { + return "" } - return path + let urlPath = getters.routePath('/public/share') + if (urlPath == "/" || urlPath == "") { + return ""; + } + // remove hash from path + urlPath = urlPath.split('/').slice(2).join('/') + if (subPath != "") { + urlPath = url.joinPath(urlPath, removeLeadingSlash(subPath)) + } + return urlPath }, isShare: () => { - if (shareInfo.isShare && state.route.path.startsWith('/public/share/' + shareInfo.hash)) { - return true - } - return false + return getters.shareHash() != "" }, currentView: () => { if (state.navigation.isTransitioning) { @@ -268,6 +277,8 @@ export const getters = { } if (pathname.startsWith(`/settings`)) { listingView = 'settings' + } else if (pathname.startsWith(`/tools`)) { + listingView = 'tools' } else { if (state.req.type !== undefined) { const ext = "." + state.req.name.split(".").pop().toLowerCase(); // Ensure lowercase and dot @@ -327,13 +338,11 @@ export const getters = { // Return progress as a percentage return Math.ceil((sum / totalSize) * 100) }, - filesInUploadCount: () => { const uploadsCount = state.upload.length const queueCount = state.queue.length return uploadsCount + queueCount }, - currentPrompt: () => { // Ensure state.prompts is an array if (!Array.isArray(state.prompts)) { @@ -357,9 +366,7 @@ export const getters = { } return lastPrompt.name }, - isUploading: () => state.upload.isUploading, - filesInUpload: () => { // Ensure state.upload.uploads is an object and state.upload.sizes is an array if ( @@ -395,7 +402,7 @@ export const getters = { }, fileViewingDisabled: filename => { if (getters.isShare()) { - if (shareInfo.disableFileViewer || shareInfo.shareType == "upload" || shareInfo.disableDownload) { + if (state.shareInfo?.disableFileViewer || state.shareInfo?.shareType == "upload" || state.shareInfo?.disableDownload) { return true } } else { @@ -414,9 +421,9 @@ export const getters = { }, officeViewingDisabled: filename => { const ext = ' ' + getFileExtension(filename) - const hasDisabled = shareInfo.disableOfficePreviewExt || state.user.disableOfficePreviewExt + const hasDisabled = state.shareInfo?.disableOfficePreviewExt || state.user.disableOfficePreviewExt if (hasDisabled) { - const disabledList = shareInfo.disableOfficePreviewExt + ' ' + state.user.disableOfficePreviewExt + const disabledList = state.shareInfo?.disableOfficePreviewExt + ' ' + state.user.disableOfficePreviewExt const disabledExts = ' ' + disabledList.toLowerCase() if (disabledExts.includes(ext.toLowerCase())) { return true @@ -476,16 +483,18 @@ export const getters = { } return "close"; } - if (cv == "listingView" || shareInfo.singleFileShare) { + if (state.isMobile) { + return "back"; + } + if (cv == "listingView" || state.shareInfo?.singleFileShare) { if (state.user.stickySidebar) { return "menu"; } - return "back"; } return "close"; } - if (shareInfo.singleFileShare) { + if (state.shareInfo?.singleFileShare) { return "menu"; } if (cv == "settings") { @@ -497,24 +506,39 @@ export const getters = { return "menu"; } if (cv == "listingView") { + return "menu"; } return "close"; }, isInvalidShare: () => { - return getters.isShare() && !shareInfo.isValid; + return getters.shareHash() != "" && !state.shareInfo?.hash; }, isValidShare: () => { - return getters.isShare() && shareInfo.isValid; + return getters.shareHash() != "" && state.shareInfo?.hash; + }, + currentTool: () => { + if (getters.currentView() !== "tools") { + return null; + } + // Match by path instead of route name + const tool = tools().find(t => t.path === state.route.path); + if (tool === undefined) { + return { name: "Tools" }; + } + return tool; }, permissions: () => { if (getters.isShare()) { return { share: false, - modify: shareInfo.allowModify, - create: shareInfo.allowCreate, - delete: shareInfo.allowDelete, - download: !shareInfo.disableDownload, + modify: state.shareInfo?.allowModify, + create: state.shareInfo?.allowCreate, + delete: state.shareInfo?.allowDelete, + download: !state.shareInfo?.disableDownload, + admin: false, + api: false, + realtime: false, }; } return { @@ -523,6 +547,8 @@ export const getters = { create: state.user?.permissions?.create, delete: state.user?.permissions?.delete, download: state.user?.permissions?.download, + admin: state.user?.permissions?.admin, + api: state.user?.permissions?.api, }; } }; \ No newline at end of file diff --git a/frontend/src/store/modules/upload.js b/frontend/src/store/modules/upload.js index 0621d74ffb..59f7036a43 100644 --- a/frontend/src/store/modules/upload.js +++ b/frontend/src/store/modules/upload.js @@ -85,7 +85,7 @@ const actions = { context.commit("moveJob"); if (item.file.type == "directory") { - await filesApi.post(item.source, item.path); + await filesApi.post(item.source, item.path, "", false, undefined, {}, true); } else { let onUpload = throttle( (event) => diff --git a/frontend/src/store/mutations.js b/frontend/src/store/mutations.js index 7e09d93525..9032e3e9b6 100644 --- a/frontend/src/store/mutations.js +++ b/frontend/src/store/mutations.js @@ -5,7 +5,6 @@ import { emitStateChanged } from './eventBus'; // Import the function from event import { usersApi } from "@/api"; import { notify } from "@/notify"; import { sortedItems } from "@/utils/sort.js"; -import { serverHasMultipleSources } from "@/utils/constants.js"; import { url } from "@/utils"; import { getTypeInfo } from "@/utils/mimetype"; import { filesApi, publicApi } from "@/api"; @@ -115,17 +114,18 @@ export const mutations = { } else { state.sources.hasSourceInfo = true } - state.sources.info[k].used = source.used; - state.sources.info[k].total = source.total; - state.sources.info[k].usedPercentage = Math.round((source.used / source.total) * 100); - state.sources.info[k].status = source.status; - state.sources.info[k].name = source.name; - state.sources.info[k].files = source.numFiles; - state.sources.info[k].folders = source.numDirs; - state.sources.info[k].lastIndex = source.lastIndexedUnixTime; - state.sources.info[k].quickScanDurationSeconds = source.quickScanDurationSeconds; - state.sources.info[k].fullScanDurationSeconds = source.fullScanDurationSeconds; - state.sources.info[k].assessment = source.assessment; + state.sources.info[k].used = source.used || 0; + state.sources.info[k].total = source.total || 0; + state.sources.info[k].usedPercentage = source.total ? Math.round((source.used / source.total) * 100) : 0; + state.sources.info[k].status = source.status || "unknown"; + state.sources.info[k].name = source.name || k; + state.sources.info[k].files = source.numFiles || 0; + state.sources.info[k].folders = source.numDirs || 0; + state.sources.info[k].lastIndex = source.lastIndexedUnixTime || 0; + state.sources.info[k].quickScanDurationSeconds = source.quickScanDurationSeconds || 0; + state.sources.info[k].fullScanDurationSeconds = source.fullScanDurationSeconds || 0; + state.sources.info[k].complexity = source.complexity || 0; + state.sources.info[k].scanners = source.scanners || []; } } } @@ -144,7 +144,6 @@ export const mutations = { emitStateChanged(); }, setSources: (user) => { - state.serverHasMultipleSources = serverHasMultipleSources; const currentSource = user.scopes.length > 0 ? user.scopes[0].name : ""; let sources = {info: {}, current: currentSource, count: user.scopes.length}; for (const source of user.scopes) { @@ -153,8 +152,27 @@ export const mutations = { used: 0, total: 0, usedPercentage: 0, + status: "unknown", + name: source.name, + files: 0, + folders: 0, + lastIndex: 0, + quickScanDurationSeconds: 0, + fullScanDurationSeconds: 0, + complexity: 0, + scanners: [], }; } + // Check if user has custom sidebar links with sources + let targetSource = sources.current; + if (state.user?.sidebarLinks && state.user.sidebarLinks.length > 0) { + // Find first source link in user's sidebar links + const firstSourceLink = state.user.sidebarLinks.find(link => link.category === 'source' && link.sourceName); + if (firstSourceLink) { + targetSource = firstSourceLink.sourceName; + } + } + sources.defaultSource = targetSource; state.sources = sources; emitStateChanged(); }, @@ -262,7 +280,7 @@ export const mutations = { if (!state.stickySidebar) { state.showSidebar = false; } - emitStateChanged(); + mutations.hideTooltip(true) }, closeTopHover: () => { state.prompts.pop(); @@ -271,7 +289,7 @@ export const mutations = { state.showSidebar = false; } } - emitStateChanged(); + mutations.hideTooltip(true) }, showHover: (value) => { if (typeof value === "object") { @@ -293,7 +311,7 @@ export const mutations = { cancel: value?.cancel, }); } - emitStateChanged(); + mutations.hideTooltip(true) }, setLoading: (loadType, status) => { if (status === false) { @@ -462,6 +480,7 @@ export const mutations = { "gallerySize", "viewMode", "showFirstLogin", + "sidebarLinks", ].includes(key) ); value.id = state.user.id; @@ -574,8 +593,11 @@ export const mutations = { state.tooltip.show = true; emitStateChanged(); }, - hideTooltip() { + hideTooltip(force=false) { if (!state.tooltip.show) { + if (force) { + emitStateChanged(); + } return; } state.tooltip.show = false; @@ -814,4 +836,11 @@ export const mutations = { state.playbackQueue.shouldTogglePlayPause = !state.playbackQueue.shouldTogglePlayPause; emitStateChanged(); }, + setShareInfo: (shareInfo) => { + if (state.shareInfo === shareInfo) { + return; + } + state.shareInfo = shareInfo; + emitStateChanged(); + }, }; \ No newline at end of file diff --git a/frontend/src/store/state.js b/frontend/src/store/state.js index c0c0ba5d08..f4d2e3d033 100644 --- a/frontend/src/store/state.js +++ b/frontend/src/store/state.js @@ -30,7 +30,6 @@ export const state = reactive({ editor: null, editorDirty: false, editorSaveHandler: null, // Function to save editor content - serverHasMultipleSources: false, realtimeActive: undefined, realtimeDownCount: 0, popupPreviewSource: "", @@ -56,7 +55,7 @@ export const state = reactive({ loginType: "", username: "", quickDownloadEnabled: false, - gallarySize: 0, + gallerySize: 0, singleClick: false, stickySidebar: stickyStartup(), locale: detectLocale(), // Default to the locale from moment @@ -149,8 +148,34 @@ export const state = reactive({ mode: 'single', // 'single', 'sequential', 'shuffle', 'loop-single', 'loop-all' isPlaying: false }, + shareInfo: { + isShare: false, + disableThumbnails: false, + hash: "", + enforceDarkLightMode: "", + disableSidebar: false, + isValid: true, + shareType: "", + title: "", + description: "", + }, + notificationHistory: loadNotificationHistory(), // Session-based notification history (persists across refreshes) }); +/** + * Load notification history from sessionStorage + * @returns {Array} + */ +function loadNotificationHistory() { + try { + const stored = sessionStorage.getItem('notificationHistory'); + return stored ? JSON.parse(stored) : []; + } catch (error) { + console.error('Failed to load notification history:', error); + return []; + } +} + function stickyStartup() { const stickyStatus = localStorage.getItem("stickySidebar"); return stickyStatus == "true" diff --git a/frontend/src/store/types.ts b/frontend/src/store/types.ts index 77a019a512..f1eb7da1fa 100644 --- a/frontend/src/store/types.ts +++ b/frontend/src/store/types.ts @@ -42,7 +42,7 @@ export interface UserObject { loginType: string; username: string; quickDownloadEnabled: boolean; - gallarySize: number; + gallerySize: number; singleClick: boolean; stickySidebar: boolean; locale: string; @@ -111,7 +111,6 @@ export interface StoreState { displayPreferences: any; usages: any; editor: any; - serverHasMultipleSources: boolean; realtimeActive: boolean | undefined; realtimeDownCount: number; popupPreviewSource: string; diff --git a/frontend/src/utils/constants.js b/frontend/src/utils/constants.js index 4f297588c9..ba28a30943 100644 --- a/frontend/src/utils/constants.js +++ b/frontend/src/utils/constants.js @@ -1,17 +1,18 @@ +import i18n from '@/i18n'; +import { getIconClass } from './material-icons'; + const globalVars = window.globalVars; -const logoURL = `${globalVars.staticURL}/img/logo.png`; -const serverHasMultipleSources = globalVars.sourceCount > 1; -const shareInfo = window.shareVars; const origin = window.location.origin; const settings = [ - { id: 'profile', label: 'settings.profileSettings', component: 'ProfileSettings' }, - { id: 'fileLoading', label: 'fileLoading.title', component: 'FileLoading' }, - { id: 'shares', label: 'settings.shareSettings', component: 'SharesSettings', permissions: { share: true } }, - { id: 'api', label: 'api.title', component: 'ApiKeys', permissions: { api: true } }, - { id: 'users', label: 'settings.userManagement', component: 'UserManagement' }, - { id: 'access', label: 'access.accessManagement', component: 'AccessSettings', permissions: { admin: true } }, - { id: 'systemAdmin', label: 'settings.systemAdmin', component: 'SystemAdmin', permissions: { admin: true } }, + { id: 'profile', label: 'settings.profileSettings', component: 'ProfileSettings', icon: 'person' }, + { id: 'fileLoading', label: 'fileLoading.title', component: 'FileLoading', icon: 'cloud_download' }, + { id: 'notifications', label: 'notifications.title', component: 'NotificationsSettings', icon: 'notifications' }, + { id: 'shares', label: 'settings.shareSettings', component: 'SharesSettings', permissions: { share: true }, icon: 'share' }, + { id: 'api', label: 'api.title', component: 'ApiKeys', permissions: { api: true }, icon: 'key' }, + { id: 'users', label: 'settings.userManagement', component: 'UserManagement', icon: 'group' }, + { id: 'access', label: 'access.accessManagement', component: 'AccessSettings', permissions: { admin: true }, icon: 'lock' }, + { id: 'systemAdmin', label: 'settings.systemAdmin', component: 'SystemAdmin', permissions: { admin: true }, icon: 'admin_panel_settings' }, ]; const previewViews = [ @@ -24,12 +25,47 @@ const previewViews = [ 'loading' ]; +// Function that returns tools array with i18n validation +// This ensures the linter checks the translation keys +const getTools = () => [ + { + name: i18n.global.t("tools.sizeAnalyzer.name"), + description: i18n.global.t("tools.sizeAnalyzer.description"), + icon: "analytics", + path: "/tools/sizeViewer", + component: "SizeViewer", + }, + { + name: i18n.global.t("tools.duplicateFinder.name"), + description: i18n.global.t("tools.duplicateFinder.description"), + icon: "content_copy", + path: "/tools/duplicateFinder", + component: "DuplicateFinder", + }, + { + name: i18n.global.t("tools.materialIconPicker.name"), + description: i18n.global.t("tools.materialIconPicker.description"), + icon: "interests", + path: "/tools/materialIconPicker", + component: "MaterialIconPicker", + }, +]; + +// Export tools as both a function and direct array for convenience +// Cache the tools array +let toolsCache = null; +const tools = () => { + if (!toolsCache) { + toolsCache = getTools(); + } + return toolsCache; +}; + export { globalVars, - shareInfo, - serverHasMultipleSources, - logoURL, origin, settings, previewViews, + tools, + getIconClass, // Re-exported from material-icons.js for convenience }; diff --git a/frontend/src/utils/download.js b/frontend/src/utils/download.js index 6df30547f5..5aa41f53a6 100644 --- a/frontend/src/utils/download.js +++ b/frontend/src/utils/download.js @@ -45,7 +45,7 @@ export default function downloadFiles(items) { async function startDownload(config, files, hash = "") { try { filesApi.download(config, files, hash); - notify.showSuccess("Downloading..."); + notify.showSuccessToast("Downloading..."); } catch (e) { notify.showError(`Error downloading: ${e}`); } diff --git a/frontend/src/utils/material-icons.js b/frontend/src/utils/material-icons.js new file mode 100644 index 0000000000..33afa88d87 --- /dev/null +++ b/frontend/src/utils/material-icons.js @@ -0,0 +1,529 @@ +// Material Symbols icons that don't exist in Material Icons +// These need to use the 'material-symbols-outlined' class +// Note: Many newer icons are Symbols-only. This list includes known Symbols-only icons. +const materialSymbolsOnly = new Set([ + // Development & Code + 'deployed_code', 'deployed_code_alert', 'deployed_code_history', 'deployed_code_update', + 'code_blocks', 'javascript', 'css', 'html', 'terminal', 'sdk', 'api', 'webhook', + 'commit', 'robot', 'code_off', 'php', 'rebase_edit', + + // Design & Creative + 'design_services', 'web_stories', 'markdown', 'animated_images', 'gif_box', + 'stacks', 'package_2', 'instant_mix', + + // Smart Home & IoT (Nest products) + 'nest_farsight_eco', 'nest_cam_wired_stand', 'nest_doorbell_visitor', 'nest_protect', + 'nest_thermostat', 'nest_wifi_router', 'nest_clock_farsight_analog', + 'nest_clock_farsight_digital', 'nest_remote', 'nest_true_radiant', + 'nest_wake_on_approach', 'nest_wake_on_press', 'nest_display', 'nest_eco_leaf', + 'nest_heat_link', 'nest_sunblock', + + // Counter icons + 'counter_1', 'counter_2', 'counter_3', 'counter_4', 'counter_5', + 'counter_6', 'counter_7', 'counter_8', 'counter_9', + + // Media & Content + 'movie_edit', 'audio_video_receiver', 'manga', 'sports_score', + + // UI & Navigation + 'splitscreen_vertical_add', 'splitscreen_left', 'splitscreen_right', + 'collapse_content', 'expand_content', 'keep', 'keep_off', + + // Communication + 'chat_add_on', 'forums', 'news', 'subscriptions', + + // Security & Auth + 'passkey', + + // Assistant & AI + 'assistant', 'assistant_on_hub', 'home_app_logo', + + // Modern additions (likely Symbols-only) + 'demography', 'conveyor_belt', 'forklift', 'front_loader', 'trolley', + 'propane', 'propane_tank', 'electric_meter', 'gas_meter', 'heat_pump', + 'oil_barrel', 'solar_power', 'wind_power', +]); + +/** + * Get the appropriate icon class for an icon name + * @param {string} iconName - The material icon name + * @returns {string} - The CSS class to use ('material-icons' or 'material-symbols-outlined') + */ +const getIconClass = (iconName) => { + return materialSymbolsOnly.has(iconName) ? 'material-symbols-outlined' : 'material-icons'; +}; + +// Curated list of ~1500 commonly used Material Icons & Symbols +// Excludes: excessive resolution indicators (5k-10k, 2mp-24mp), detailed signal bars, and niche variants +const allMaterialIcons = [ + // Basic & Numbers + '123', '360', '3d_rotation', '4k', '6_ft_apart', '18_up_rating', + + // Connectivity & Mobile Data + '1x_mobiledata', '3g_mobiledata', '3p', '4g_mobiledata', '4g_plus_mobiledata', '5g', + 'e_mobiledata', 'g_mobiledata', 'h_mobiledata', 'h_plus_mobiledata', 'lte_mobiledata', + 'lte_plus_mobiledata', 'r_mobiledata', 'mobiledata_off', + + // Basics & Common + 'abc', 'ac_unit', 'access_alarm', 'access_alarms', 'access_time', 'access_time_filled', + 'accessibility', 'accessibility_new', 'accessible', 'accessible_forward', + + // Account & Profile + 'account_balance', 'account_balance_wallet', 'account_box', 'account_circle', + 'account_tree', 'admin_panel_settings', 'manage_accounts', 'person', 'person_add', + 'person_add_alt', 'person_add_alt_1', 'person_add_disabled', 'person_off', + 'person_outline', 'person_pin', 'person_pin_circle', 'person_remove', + 'person_remove_alt_1', 'person_search', 'supervised_user_circle', 'supervisor_account', + + // Actions - Add + 'add', 'add_a_photo', 'add_alarm', 'add_alert', 'add_box', 'add_business', 'add_call', + 'add_card', 'add_chart', 'add_circle', 'add_circle_outline', 'add_comment', 'add_home', + 'add_home_work', 'add_ic_call', 'add_link', 'add_location', 'add_location_alt', + 'add_moderator', 'add_photo_alternate', 'add_reaction', 'add_road', 'add_shopping_cart', + 'add_task', 'add_to_drive', 'add_to_home_screen', 'add_to_photos', 'add_to_queue', + 'addchart', + + // Actions - Remove + 'remove', 'remove_circle', 'remove_circle_outline', 'remove_done', 'remove_from_queue', + 'remove_moderator', 'remove_red_eye', 'remove_road', 'remove_shopping_cart', + + // Actions - Basic + 'adjust', 'adb', 'archive', 'backspace', 'backup', 'backup_table', 'block', + 'block_flipped', 'build', 'build_circle', 'cached', 'cancel', 'cancel_presentation', + 'cancel_schedule_send', 'check', 'check_box', 'check_box_outline_blank', 'check_circle', + 'check_circle_outline', 'clear', 'clear_all', 'close', 'close_fullscreen', 'compress', + 'content_copy', 'content_cut', 'content_paste', 'content_paste_go', 'content_paste_off', + 'content_paste_search', 'copy_all', 'create', 'create_new_folder', 'delete', + 'delete_forever', 'delete_outline', 'delete_sweep', 'done', 'done_all', 'done_outline', + 'download', 'download_done', 'download_for_offline', 'downloading', 'drag_handle', + 'drag_indicator', 'edit', 'edit_attributes', 'edit_calendar', 'edit_document', + 'edit_location', 'edit_location_alt', 'edit_note', 'edit_notifications', 'edit_off', + 'edit_road', 'edit_square', 'expand', 'expand_circle_down', 'expand_less', 'expand_more', + 'file_copy', 'file_download', 'file_download_done', 'file_download_off', 'file_open', + 'file_present', 'file_upload', 'file_upload_off', 'filter_list', 'filter_list_alt', + 'filter_list_off', 'find_in_page', 'find_replace', 'flip', 'flip_to_back', + 'flip_to_front', 'get_app', 'grade', 'hide_image', 'hide_source', 'highlight', + 'highlight_alt', 'highlight_off', 'highlight_remove', 'history', 'history_edu', + 'history_toggle_off', 'home', 'home_filled', 'home_max', 'home_mini', + 'home_repair_service', 'home_work', 'inbox', 'info', 'info_outline', 'input', + 'inventory', 'inventory_2', 'join_full', 'join_inner', 'join_left', 'join_right', + 'key', 'key_off', 'label', 'label_important', 'label_important_outline', 'label_off', + 'label_outline', 'launch', 'link', 'link_off', 'list', 'list_alt', 'lock', 'lock_clock', + 'lock_open', 'lock_outline', 'lock_person', 'lock_reset', 'login', 'logout', + 'markunread', 'markunread_mailbox', 'maximize', 'menu', 'menu_book', 'menu_open', + 'merge', 'merge_type', 'minimize', 'more', 'more_horiz', 'more_time', 'more_vert', + 'move_down', 'move_to_inbox', 'move_up', 'open_in_browser', 'open_in_full', + 'open_in_new', 'open_in_new_off', 'open_with', 'output', 'padding', 'pan_tool', + 'pan_tool_alt', 'pin', 'pin_drop', 'pin_end', 'pin_invoke', 'pinch', 'push_pin', + 'redo', 'refresh', 'remember_me', 'reorder', 'reply', 'reply_all', 'report', + 'report_off', 'report_problem', 'restore', 'restore_from_trash', 'restore_page', + 'rotate_90_degrees_ccw', 'rotate_90_degrees_cw', 'rotate_left', 'rotate_right', + 'save', 'save_alt', 'save_as', 'saved_search', 'savings', 'schedule', 'schedule_send', + 'search', 'search_off', 'select_all', 'send', 'send_and_archive', 'send_time_extension', + 'send_to_mobile', 'settings', 'settings_accessibility', 'settings_applications', + 'settings_backup_restore', 'settings_bluetooth', 'settings_brightness', 'settings_cell', + 'settings_display', 'settings_ethernet', 'settings_input_antenna', + 'settings_input_component', 'settings_input_composite', 'settings_input_hdmi', + 'settings_input_svideo', 'settings_overscan', 'settings_phone', 'settings_power', + 'settings_remote', 'settings_suggest', 'settings_system_daydream', 'settings_voice', + 'share', 'share_arrival_time', 'share_location', 'shortcut', 'sort', 'sort_by_alpha', + 'source', 'star', 'star_border', 'star_half', 'star_outline', 'star_rate', 'stars', + 'start', 'straighten', 'style', 'subscript', 'superscript', 'swap_calls', 'swap_horiz', + 'swap_horizontal_circle', 'swap_vert', 'swap_vert_circle', 'swap_vertical_circle', + 'sync', 'sync_alt', 'sync_disabled', 'sync_lock', 'sync_problem', 'task', 'task_alt', + 'thumbs_up_down', 'toggle_off', 'toggle_on', 'transform', 'translate', 'troubleshoot', + 'tune', 'undo', 'unarchive', 'unfold_less', 'unfold_less_double', 'unfold_more', + 'unfold_more_double', 'unpublished', 'unsubscribe', 'update', 'update_disabled', + 'upgrade', 'upload', 'upload_file', 'verified', 'verified_user', 'view_in_ar', + 'visibility', 'visibility_off', 'watch_later', 'watch_off', 'wrap_text', 'zoom_in', + 'zoom_in_map', 'zoom_out', 'zoom_out_map', + + // Arrows & Navigation + 'arrow_back', 'arrow_back_ios', 'arrow_back_ios_new', 'arrow_circle_down', + 'arrow_circle_left', 'arrow_circle_right', 'arrow_circle_up', 'arrow_downward', + 'arrow_drop_down', 'arrow_drop_down_circle', 'arrow_drop_up', 'arrow_forward', + 'arrow_forward_ios', 'arrow_left', 'arrow_outward', 'arrow_right', 'arrow_right_alt', + 'arrow_upward', 'chevron_left', 'chevron_right', 'double_arrow', 'east', 'first_page', + 'keyboard_arrow_down', 'keyboard_arrow_left', 'keyboard_arrow_right', 'keyboard_arrow_up', + 'keyboard_double_arrow_down', 'keyboard_double_arrow_left', 'keyboard_double_arrow_right', + 'keyboard_double_arrow_up', 'last_page', 'navigate_before', 'navigate_next', 'navigation', + 'north', 'north_east', 'north_west', 'south', 'south_east', 'south_west', + 'subdirectory_arrow_left', 'subdirectory_arrow_right', 'turn_left', 'turn_right', + 'turn_sharp_left', 'turn_sharp_right', 'turn_slight_left', 'turn_slight_right', + 'u_turn_left', 'u_turn_right', 'west', + + // Alignment & Layout + 'align_horizontal_center', 'align_horizontal_left', 'align_horizontal_right', + 'align_vertical_bottom', 'align_vertical_center', 'align_vertical_top', + 'horizontal_distribute', 'horizontal_rule', 'horizontal_split', 'vertical_align_bottom', + 'vertical_align_center', 'vertical_align_top', 'vertical_distribute', 'vertical_split', + + // Media & Player Controls + 'album', 'audiotrack', 'av_timer', 'fast_forward', 'fast_rewind', 'forward_10', + 'forward_30', 'forward_5', 'loop', 'music_note', 'music_off', 'music_video', 'pause', + 'pause_circle', 'pause_circle_filled', 'pause_circle_outline', 'pause_presentation', + 'play_arrow', 'play_circle', 'play_circle_fill', 'play_circle_filled', + 'play_circle_outline', 'play_disabled', 'play_for_work', 'play_lesson', 'playlist_add', + 'playlist_add_check', 'playlist_add_check_circle', 'playlist_add_circle', + 'playlist_play', 'playlist_remove', 'queue', 'queue_music', 'queue_play_next', + 'repeat', 'repeat_on', 'repeat_one', 'repeat_one_on', 'replay', 'replay_10', + 'replay_30', 'replay_5', 'replay_circle_filled', 'shuffle', 'shuffle_on', 'skip_next', + 'skip_previous', 'slow_motion_video', 'snooze', 'speed', 'stop', 'stop_circle', + 'stop_screen_share', 'subscriptions', 'subtitles', 'subtitles_off', 'surround_sound', + 'video_call', 'video_camera_back', 'video_camera_front', 'video_chat', + 'video_collection', 'video_file', 'video_label', 'video_library', 'video_settings', + 'video_stable', 'videocam', 'videocam_off', 'volume_down', 'volume_down_alt', + 'volume_mute', 'volume_off', 'volume_up', + + // Images & Camera + 'add_a_photo', 'add_photo_alternate', 'add_to_photos', 'adjust', 'animation', + 'art_track', 'assistant_photo', 'auto_awesome', 'auto_awesome_mosaic', + 'auto_awesome_motion', 'auto_fix_high', 'auto_fix_normal', 'auto_fix_off', 'auto_stories', + 'blur_circular', 'blur_linear', 'blur_off', 'blur_on', 'brightness_auto', + 'brightness_high', 'brightness_low', 'brightness_medium', 'broken_image', 'brush', + 'burst_mode', 'camera', 'camera_alt', 'camera_enhance', 'camera_front', 'camera_indoor', + 'camera_outdoor', 'camera_rear', 'camera_roll', 'cameraswitch', 'center_focus_strong', + 'center_focus_weak', 'collections', 'collections_bookmark', 'color_lens', 'colorize', + 'compare', 'control_point', 'control_point_duplicate', 'crop', 'crop_16_9', 'crop_3_2', + 'crop_5_4', 'crop_7_5', 'crop_din', 'crop_free', 'crop_landscape', 'crop_original', + 'crop_portrait', 'crop_rotate', 'crop_square', 'deblur', 'dehaze', 'details', 'dirty_lens', + 'edit', 'euro', 'exposure', 'exposure_minus_1', 'exposure_minus_2', 'exposure_neg_1', + 'exposure_neg_2', 'exposure_plus_1', 'exposure_plus_2', 'exposure_zero', + 'face_retouching_natural', 'face_retouching_off', 'filter', 'filter_1', 'filter_2', + 'filter_3', 'filter_4', 'filter_5', 'filter_6', 'filter_7', 'filter_8', 'filter_9', + 'filter_9_plus', 'filter_alt', 'filter_alt_off', 'filter_b_and_w', 'filter_center_focus', + 'filter_drama', 'filter_frames', 'filter_hdr', 'filter_none', 'filter_tilt_shift', + 'filter_vintage', 'flare', 'flash_auto', 'flash_off', 'flash_on', 'flip_camera_android', + 'flip_camera_ios', 'gradient', 'grain', 'grid_off', 'grid_on', 'hdr_auto', + 'hdr_auto_select', 'hdr_enhanced_select', 'hdr_off', 'hdr_off_select', 'hdr_on', + 'hdr_on_select', 'hdr_plus', 'hdr_strong', 'hdr_weak', 'healing', 'hevc', 'hide_image', + 'image', 'image_aspect_ratio', 'image_not_supported', 'image_search', + 'imagesearch_roller', 'iso', 'leak_add', 'leak_remove', 'lens', 'lens_blur', + 'linked_camera', 'looks', 'looks_3', 'looks_4', 'looks_5', 'looks_6', 'looks_one', + 'looks_two', 'loupe', 'monochrome_photos', 'motion_photos_auto', 'motion_photos_off', + 'motion_photos_on', 'motion_photos_pause', 'motion_photos_paused', 'movie_creation', + 'movie_edit', 'movie_filter', 'music_off', 'nat', 'nature', 'nature_people', + 'navigate_before', 'navigate_next', 'palette', 'panorama', 'panorama_fish_eye', + 'panorama_fisheye', 'panorama_horizontal', 'panorama_horizontal_select', + 'panorama_photosphere', 'panorama_photosphere_select', 'panorama_vertical', + 'panorama_vertical_select', 'panorama_wide_angle', 'panorama_wide_angle_select', + 'party_mode', 'photo', 'photo_album', 'photo_camera', 'photo_camera_back', + 'photo_camera_front', 'photo_filter', 'photo_library', 'photo_size_select_actual', + 'photo_size_select_large', 'photo_size_select_small', 'picture_as_pdf', + 'picture_in_picture', 'picture_in_picture_alt', 'portrait', 'remove_red_eye', 'rotate_left', + 'rotate_right', 'shutter_speed', 'slideshow', 'straighten', 'style', 'switch_camera', + 'switch_video', 'tag_faces', 'texture', 'timelapse', 'timer', 'timer_10', 'timer_10_select', + 'timer_3', 'timer_3_select', 'timer_off', 'tonality', 'transform', 'tune', 'vignette', + 'wb_auto', 'wb_cloudy', 'wb_incandescent', 'wb_iridescent', 'wb_shade', 'wb_sunny', + 'wb_twilight', + + // Communication + 'add_comment', 'alternate_email', 'attach_email', 'call', 'call_end', 'call_made', + 'call_merge', 'call_missed', 'call_missed_outgoing', 'call_received', 'call_split', + 'cancel_presentation', 'cell_tower', 'cell_wifi', 'chat', 'chat_bubble', + 'chat_bubble_outline', 'comment', 'comment_bank', 'comments_disabled', 'contact_mail', + 'contact_page', 'contact_phone', 'contact_support', 'contacts', 'dialer_sip', 'dialpad', + 'domain_verification', 'drafts', 'duo', 'email', 'forum', 'forward_to_inbox', + 'import_contacts', 'invert_colors_off', 'live_help', 'mail', 'mail_lock', 'mail_outline', + 'mark_as_unread', 'mark_chat_read', 'mark_chat_unread', 'mark_email_read', + 'mark_email_unread', 'mark_unread_chat_alt', 'message', 'messenger', 'messenger_outline', + 'mobile_screen_share', 'mode_comment', 'nat', 'no_sim', 'outgoing_mail', 'phone', + 'phone_android', 'phone_bluetooth_speaker', 'phone_callback', 'phone_disabled', + 'phone_enabled', 'phone_forwarded', 'phone_in_talk', 'phone_iphone', 'phone_locked', + 'phone_missed', 'phone_paused', 'phonelink', 'phonelink_erase', 'phonelink_lock', + 'phonelink_off', 'phonelink_ring', 'phonelink_setup', 'portable_wifi_off', + 'present_to_all', 'print_disabled', 'qr_code', 'qr_code_2', 'qr_code_scanner', + 'quick_contacts_dialer', 'quick_contacts_mail', 'read_more', 'ring_volume', 'rss_feed', + 'rtt', 'screen_share', 'send', 'sentiment_satisfied_alt', 'speaker_notes', + 'speaker_notes_off', 'speaker_phone', 'stay_current_landscape', 'stay_current_portrait', + 'stay_primary_landscape', 'stay_primary_portrait', 'stop_screen_share', 'swap_calls', + 'textsms', 'unsubscribe', 'voicemail', 'vpn_key', 'vpn_key_off', 'vpn_lock', + + // Files & Folders + 'article', 'attachment', 'cloud', 'cloud_circle', 'cloud_done', 'cloud_download', + 'cloud_off', 'cloud_queue', 'cloud_sync', 'cloud_upload', 'create_new_folder', + 'description', 'drive_eta', 'drive_file_move', 'drive_file_move_outline', + 'drive_file_move_rtl', 'drive_file_rename_outline', 'drive_folder_upload', 'folder', + 'folder_copy', 'folder_delete', 'folder_off', 'folder_open', 'folder_shared', + 'folder_special', 'folder_zip', 'format_overline', 'insert_drive_file', 'note', + 'note_add', 'note_alt', 'request_page', 'rule_folder', 'snippet_folder', 'source', + 'text_snippet', 'topic', 'upload_file', + + // Text Formatting + 'add_comment', 'attach_file', 'border_all', 'border_bottom', 'border_clear', + 'border_color', 'border_horizontal', 'border_inner', 'border_left', 'border_outer', + 'border_right', 'border_style', 'border_top', 'border_vertical', 'format_align_center', + 'format_align_justify', 'format_align_left', 'format_align_right', 'format_bold', + 'format_clear', 'format_color_fill', 'format_color_reset', 'format_color_text', + 'format_indent_decrease', 'format_indent_increase', 'format_italic', + 'format_line_spacing', 'format_list_bulleted', 'format_list_bulleted_add', + 'format_list_numbered', 'format_list_numbered_rtl', 'format_overline', 'format_paint', + 'format_quote', 'format_shapes', 'format_size', 'format_strikethrough', + 'format_textdirection_l_to_r', 'format_textdirection_r_to_l', 'format_underline', + 'format_underlined', 'functions', 'highlight', 'insert_chart', 'insert_chart_outlined', + 'insert_comment', 'insert_emoticon', 'insert_link', 'insert_photo', 'mode_comment', + 'mode_edit', 'mode_edit_outline', 'notes', 'pie_chart', 'pie_chart_outline', + 'pie_chart_outlined', 'post_add', 'publish', 'short_text', 'space_bar', 'spellcheck', + 'strikethrough_s', 'subscript', 'superscript', 'text_decrease', 'text_fields', + 'text_format', 'text_increase', 'text_rotate_up', 'text_rotate_vertical', + 'text_rotation_angledown', 'text_rotation_angleup', 'text_rotation_down', + 'text_rotation_none', 'title', 'vertical_align_bottom', 'vertical_align_center', + 'vertical_align_top', 'wrap_text', + + // Business & Commerce + 'account_balance', 'account_balance_wallet', 'add_business', 'add_card', + 'add_shopping_cart', 'approval', 'assessment', 'attach_money', 'atm', 'badge', + 'balance', 'business', 'business_center', 'calculate', 'card_giftcard', + 'card_membership', 'card_travel', 'credit_card', 'credit_card_off', 'credit_score', + 'currency_bitcoin', 'currency_exchange', 'currency_franc', 'currency_lira', + 'currency_pound', 'currency_ruble', 'currency_rupee', 'currency_yen', 'currency_yuan', + 'diamond', 'discount', 'euro', 'euro_symbol', 'local_atm', 'local_offer', 'monetization_on', + 'money', 'money_off', 'money_off_csred', 'paid', 'payment', 'payments', 'point_of_sale', + 'price_change', 'price_check', 'receipt', 'receipt_long', 'redeem', 'request_quote', + 'savings', 'sell', 'shopping_bag', 'shopping_basket', 'shopping_cart', + 'shopping_cart_checkout', 'store', 'store_mall_directory', 'storefront', 'toll', + 'wallet', 'wallet_giftcard', 'wallet_membership', 'wallet_travel', 'work', 'work_history', + 'work_off', 'work_outline', + + // Devices & Hardware + 'adb', 'ad_units', 'airplanemode_off', 'airplanemode_on', 'battery_alert', + 'battery_charging_full', 'battery_full', 'battery_saver', 'battery_unknown', 'bluetooth', + 'bluetooth_audio', 'bluetooth_connected', 'bluetooth_disabled', 'bluetooth_drive', + 'bluetooth_searching', 'brightness_auto', 'brightness_high', 'brightness_low', + 'brightness_medium', 'cast', 'cast_connected', 'cast_for_education', 'computer', + 'connected_tv', 'desktop_mac', 'desktop_windows', 'developer_board', + 'developer_board_off', 'developer_mode', 'device_hub', 'device_thermostat', + 'device_unknown', 'devices', 'devices_fold', 'devices_other', 'dock', 'dvr', + 'gamepad', 'headphones', 'headphones_battery', 'headset', 'headset_mic', 'headset_off', + 'home_max', 'home_mini', 'keyboard', 'keyboard_alt', 'keyboard_hide', 'keyboard_voice', + 'laptop', 'laptop_chromebook', 'laptop_mac', 'laptop_windows', 'memory', 'mouse', + 'phone_android', 'phone_iphone', 'phonelink', 'phonelink_off', 'power_input', + 'power_settings_new', 'router', 'scanner', 'security', 'sim_card', 'sim_card_alert', + 'sim_card_download', 'smart_display', 'smart_screen', 'smart_toy', 'smartphone', + 'speaker', 'speaker_group', 'storage', 'tablet', 'tablet_android', 'tablet_mac', 'toys', + 'tv', 'tv_off', 'usb', 'usb_off', 'videogame_asset', 'videogame_asset_off', 'watch', + 'watch_later', 'watch_off', + + // Time & Calendar + 'access_alarm', 'access_alarms', 'access_time', 'access_time_filled', 'add_alarm', + 'alarm', 'alarm_add', 'alarm_off', 'alarm_on', 'calendar_month', 'calendar_today', + 'calendar_view_day', 'calendar_view_month', 'calendar_view_week', 'date_range', 'event', + 'event_available', 'event_busy', 'event_note', 'event_repeat', 'history', + 'history_toggle_off', 'hourglass_bottom', 'hourglass_disabled', 'hourglass_empty', + 'hourglass_full', 'hourglass_top', 'next_week', 'pending', 'pending_actions', + 'query_builder', 'schedule', 'schedule_send', 'timer', 'timer_10', 'timer_10_select', + 'timer_3', 'timer_3_select', 'timer_off', 'today', 'update', 'upcoming', 'watch_later', + + // Places & Location + 'add_location', 'add_location_alt', 'atm', 'attractions', 'beenhere', 'castle', 'church', + 'cottage', 'departure_board', 'directions', 'directions_bike', 'directions_boat', + 'directions_boat_filled', 'directions_bus', 'directions_bus_filled', 'directions_car', + 'directions_car_filled', 'directions_off', 'directions_railway', 'directions_railway_filled', + 'directions_run', 'directions_subway', 'directions_subway_filled', 'directions_train', + 'directions_transit', 'directions_transit_filled', 'directions_walk', 'edit_location', + 'edit_location_alt', 'edit_road', 'ev_station', 'factory', 'flight', 'flight_land', + 'flight_takeoff', 'fort', 'house', 'layers', 'layers_clear', 'local_activity', + 'local_airport', 'local_atm', 'local_attraction', 'local_bar', 'local_cafe', + 'local_car_wash', 'local_convenience_store', 'local_dining', 'local_drink', + 'local_fire_department', 'local_florist', 'local_gas_station', 'local_grocery_store', + 'local_hospital', 'local_hotel', 'local_laundry_service', 'local_library', 'local_mall', + 'local_movies', 'local_offer', 'local_parking', 'local_pharmacy', 'local_phone', + 'local_pizza', 'local_play', 'local_police', 'local_post_office', 'local_printshop', + 'local_restaurant', 'local_see', 'local_shipping', 'local_taxi', 'location_city', + 'location_disabled', 'location_off', 'location_on', 'location_pin', 'location_searching', + 'map', 'moped', 'mosque', 'my_location', 'navigation', 'near_me', 'near_me_disabled', + 'not_listed_location', 'park', 'pedal_bike', 'person_pin', 'person_pin_circle', 'place', + 'pin_drop', 'public', 'restaurant', 'restaurant_menu', 'route', 'run_circle', 'sailing', + 'satellite', 'satellite_alt', 'store', 'store_mall_directory', 'storefront', 'subway', + 'synagogue', 'taxi_alert', 'temple_buddhist', 'temple_hindu', 'terrain', 'traffic', + 'train', 'tram', 'transfer_within_a_station', 'transit_enterexit', 'trip_origin', + 'two_wheeler', 'warehouse', 'where_to_vote', 'wrong_location', 'zoom_out_map', + + // Social & People + 'boy', 'cake', 'child_care', 'child_friendly', 'diversity_1', 'diversity_2', 'diversity_3', + 'elderly', 'elderly_woman', 'emoji_emotions', 'emoji_events', 'emoji_flags', + 'emoji_food_beverage', 'emoji_nature', 'emoji_objects', 'emoji_people', 'emoji_symbols', + 'emoji_transportation', 'engineering', 'face', 'face_2', 'face_3', 'face_4', 'face_5', + 'face_6', 'female', 'girl', 'group', 'group_add', 'group_off', 'group_remove', + 'group_work', 'groups', 'groups_2', 'groups_3', 'man', 'man_2', 'man_3', 'man_4', + 'military_tech', 'mood', 'mood_bad', 'paragliding', 'people', 'people_alt', + 'people_outline', 'person', 'pregnant_woman', 'psychology', 'psychology_alt', + 'public', 'real_estate_agent', 'reduce_capacity', 'school', 'science', 'self_improvement', + 'sentiment_dissatisfied', 'sentiment_neutral', 'sentiment_satisfied', + 'sentiment_satisfied_alt', 'sentiment_very_dissatisfied', 'sentiment_very_satisfied', + 'sick', 'social_distance', 'sports', 'sports_bar', 'sports_baseball', 'sports_basketball', + 'sports_cricket', 'sports_esports', 'sports_football', 'sports_golf', 'sports_gymnastics', + 'sports_handball', 'sports_hockey', 'sports_kabaddi', 'sports_martial_arts', 'sports_mma', + 'sports_motorsports', 'sports_rugby', 'sports_score', 'sports_soccer', 'sports_tennis', + 'sports_volleyball', 'support', 'support_agent', 'volunteer_activism', 'waving_hand', + 'woman', 'woman_2', + + // Food & Dining + 'bakery_dining', 'bento', 'breakfast_dining', 'brunch_dining', 'cake', 'coffee', + 'coffee_maker', 'delivery_dining', 'dinner_dining', 'egg', 'egg_alt', 'fastfood', + 'flatware', 'food_bank', 'icecream', 'kebab_dining', 'liquor', 'local_bar', 'local_cafe', + 'local_dining', 'local_drink', 'local_pizza', 'lunch_dining', 'no_food', 'no_meals', + 'outdoor_grill', 'ramen_dining', 'restaurant', 'restaurant_menu', 'rice_bowl', + 'room_service', 'set_meal', 'soup_kitchen', 'takeout_dining', 'tapas', 'wine_bar', + + // Home & Living + 'apartment', 'architecture', 'balcony', 'bathtub', 'bed', 'bedroom_baby', 'bedroom_child', + 'bedroom_parent', 'blender', 'blinds', 'blinds_closed', 'cabin', 'chair', 'chair_alt', + 'chalet', 'checkroom', 'coffee_maker', 'cottage', 'countertops', 'crib', 'curtains', + 'curtains_closed', 'deck', 'desk', 'dining', 'door_back', 'door_front', 'door_sliding', + 'doorbell', 'elevator', 'escalator', 'escalator_warning', 'foundation', 'garage', + 'gite', 'holiday_village', 'house', 'house_siding', 'houseboat', 'hvac', 'iron', + 'kitchen', 'living', 'microwave', 'other_houses', 'roofing', 'room', 'room_preferences', + 'room_service', 'sensor_door', 'sensor_window', 'shelves', 'shower', 'single_bed', + 'stairs', 'table_bar', 'table_restaurant', 'umbrella', 'villa', 'wash', 'water_damage', + 'weekend', 'window', 'yard', + + // Weather & Nature + 'ac_unit', 'air', 'cloudy_snowing', 'cyclone', 'dew_point', 'energy_savings_leaf', 'filter_drama', + 'flood', 'foggy', 'forest', 'grass', 'landslide', 'nights_stay', 'park', 'severe_cold', + 'snowing', 'storm', 'sunny', 'sunny_snowing', 'thunderstorm', 'tornado', 'tsunami', + 'volcano', 'water', 'water_drop', 'waves', 'wb_cloudy', 'wb_sunny', 'wb_twilight', + + // Transportation + 'airline_seat_flat', 'airline_seat_flat_angled', 'airline_seat_individual_suite', + 'airline_seat_legroom_extra', 'airline_seat_legroom_normal', + 'airline_seat_legroom_reduced', 'airline_seat_recline_extra', + 'airline_seat_recline_normal', 'airlines', 'airline_stops', 'airplane_ticket', 'airport_shuttle', + 'alt_route', 'bike_scooter', 'car_crash', 'car_rental', 'car_repair', 'commute', + 'connecting_airports', 'departure_board', 'directions_bike', 'directions_boat', + 'directions_boat_filled', 'directions_bus', 'directions_bus_filled', 'directions_car', + 'directions_car_filled', 'directions_railway', 'directions_railway_filled', + 'directions_run', 'directions_subway', 'directions_subway_filled', 'directions_train', + 'directions_transit', 'directions_transit_filled', 'directions_walk', 'drive_eta', + 'electric_bike', 'electric_car', 'electric_moped', 'electric_rickshaw', + 'electric_scooter', 'ev_station', 'flight', 'flight_class', 'flight_land', + 'flight_takeoff', 'fork_left', 'fork_right', 'local_airport', 'local_car_wash', + 'local_gas_station', 'local_parking', 'local_shipping', 'local_taxi', 'minor_crash', + 'moped', 'motorcycle', 'navigation', 'near_me', 'no_crash', 'pedal_bike', 'railway_alert', + 'ramp_left', 'ramp_right', 'roundabout_left', 'roundabout_right', 'route', 'rv_hookup', + 'subway', 'taxi_alert', 'train', 'tram', 'transfer_within_a_station', 'transit_enterexit', + 'trip_origin', 'two_wheeler', + + // Sports & Activities + 'downhill_skiing', 'hiking', 'ice_skating', 'kayaking', 'kitesurfing', 'nordic_walking', + 'paragliding', 'roller_skating', 'run_circle', 'running_with_errors', 'sailing', + 'scuba_diving', 'skateboarding', 'sledding', 'snowboarding', 'snowmobile', 'snowshoeing', + 'sports', 'sports_bar', 'sports_baseball', 'sports_basketball', 'sports_cricket', + 'sports_esports', 'sports_football', 'sports_golf', 'sports_gymnastics', 'sports_handball', + 'sports_hockey', 'sports_kabaddi', 'sports_martial_arts', 'sports_mma', + 'sports_motorsports', 'sports_rugby', 'sports_score', 'sports_soccer', 'sports_tennis', + 'sports_volleyball', 'surfing', + + // Health & Medical + 'add_moderator', 'airport_shuttle', 'baby_changing_station', 'back_hand', 'biotech', + 'bloodtype', 'clean_hands', 'cleaning_services', 'coronavirus', 'elderly', 'elderly_woman', + 'emergency', 'emergency_recording', 'emergency_share', 'face_retouching_natural', + 'family_restroom', 'favorite', 'favorite_border', 'favorite_outline', 'fitbit', + 'fitness_center', 'healing', 'health_and_safety', 'hearing', 'hearing_disabled', + 'heart_broken', 'local_hospital', 'local_pharmacy', 'masks', 'medical_information', + 'medical_services', 'medication', 'medication_liquid', 'monitor_heart', 'monitor_weight', + 'personal_injury', 'pregnant_woman', 'psychology', 'psychology_alt', 'sanitizer', + 'science', 'sensors', 'sensors_off', 'sick', 'smoke_free', 'smoking_rooms', + 'spa', 'vaccines', 'vape_free', 'vaping_rooms', 'volunteer_activism', + + // Technology & Development + 'adb', 'api', 'barcode_reader', 'bug_report', 'code', 'code_off', 'computer', + 'connected_tv', 'construction', 'css', 'data_array', 'data_object', 'dataset', + 'dataset_linked', 'desktop_mac', 'desktop_windows', 'developer_board', + 'developer_board_off', 'developer_mode', 'devices', 'devices_fold', 'devices_other', + 'dns', 'extension', 'extension_off', 'handyman', 'hardware', 'home_repair_service', + 'html', 'hub', 'integration_instructions', 'javascript', 'keyboard', 'keyboard_alt', + 'laptop', 'laptop_chromebook', 'laptop_mac', 'laptop_windows', 'memory', 'miscellaneous_services', + 'mouse', 'network_check', 'network_ping', 'pest_control', 'pest_control_rodent', 'php', + 'plumbing', 'power', 'power_off', 'precision_manufacturing', 'print', 'print_disabled', + 'qr_code', 'qr_code_2', 'qr_code_scanner', 'router', 'rss_feed', 'rtt', 'scanner', + 'schema', 'screenshot', 'screenshot_monitor', 'sdk', 'security', 'security_update', + 'security_update_good', 'security_update_warning', 'settings', 'settings_applications', + 'settings_bluetooth', 'settings_cell', 'settings_ethernet', 'settings_input_antenna', + 'settings_input_component', 'settings_input_composite', 'settings_input_hdmi', + 'settings_input_svideo', 'settings_power', 'settings_remote', 'sim_card', 'sim_card_alert', + 'sim_card_download', 'smartphone', 'storage', 'sync', 'sync_alt', 'sync_disabled', + 'sync_lock', 'sync_problem', 'system_security_update', 'system_security_update_good', + 'system_security_update_warning', 'system_update', 'system_update_alt', 'tablet', + 'tablet_android', 'tablet_mac', 'terminal', 'usb', 'usb_off', 'vpn_key', 'vpn_key_off', + 'vpn_lock', 'webhook', 'wifi', 'wifi_calling', 'wifi_calling_3', 'wifi_channel', + 'wifi_find', 'wifi_lock', 'wifi_off', 'wifi_password', 'wifi_protected_setup', + 'wifi_tethering', 'wifi_tethering_error', 'wifi_tethering_off', + + // Charts & Data Visualization + 'analytics', 'area_chart', 'assessment', 'bar_chart', 'bubble_chart', 'candlestick_chart', + 'data_exploration', 'data_thresholding', 'data_usage', 'donut_large', 'donut_small', + 'leaderboard', 'line_axis', 'multiline_chart', 'pie_chart', 'pie_chart_outline', + 'pie_chart_outlined', 'poll', 'scatter_plot', 'score', 'scoreboard', 'show_chart', + 'ssid_chart', 'stacked_bar_chart', 'stacked_line_chart', 'summarize', 'table_chart', + 'table_rows', 'table_view', 'timeline', 'trending_down', 'trending_flat', 'trending_neutral', + 'trending_up', 'waterfall_chart', + + // Views & Display + 'apps', 'dashboard', 'dashboard_customize', 'fullscreen', 'fullscreen_exit', 'grid_3x3', + 'grid_4x4', 'grid_goldenratio', 'grid_off', 'grid_on', 'grid_view', 'space_dashboard', + 'splitscreen', 'tab', 'tab_unselected', 'view_agenda', 'view_array', 'view_carousel', + 'view_column', 'view_comfortable', 'view_comfy', 'view_comfy_alt', 'view_compact', + 'view_compact_alt', 'view_cozy', 'view_day', 'view_headline', 'view_in_ar', + 'view_kanban', 'view_list', 'view_module', 'view_quilt', 'view_sidebar', 'view_stream', + 'view_timeline', 'view_week', 'web_asset', 'web_asset_off', 'widgets', 'window', + + // Alerts & Notifications + 'add_alert', 'campaign', 'circle_notifications', 'crisis_alert', 'dangerous', 'error', + 'error_outline', 'info', 'info_outline', 'new_releases', 'notification_add', + 'notification_important', 'notifications', 'notifications_active', 'notifications_none', + 'notifications_off', 'notifications_on', 'notifications_paused', 'priority_high', + 'privacy_tip', 'report', 'report_gmailerrorred', 'report_off', 'report_problem', + 'verified', 'verified_user', 'warning', 'warning_amber', + + // Brand & Social Media + 'adobe', 'apple', 'discord', 'facebook', 'fitbit', 'logo_dev', 'paypal', 'pix', 'quora', + 'reddit', 'shopify', 'snapchat', 'telegram', 'tiktok', 'wechat', 'woo_commerce', + 'wordpress', 'youtube_searched_for', + + // Miscellaneous + 'abc', 'animation', 'api', 'auto_graph', 'auto_mode', 'backpack', 'badge', 'block', + 'block_flipped', 'bookmark', 'bookmark_add', 'bookmark_added', 'bookmark_border', + 'bookmark_outline', 'bookmark_remove', 'bookmarks', 'brightness_1', 'brightness_2', + 'brightness_3', 'brightness_4', 'brightness_5', 'brightness_6', 'brightness_7', + 'casino', 'catching_pokemon', 'celebration', 'checklist', 'checklist_rtl', 'circle', + 'class', 'construction', 'copyright', 'cruelty_free', 'dark_mode', 'deselect', + 'difference', 'disabled_by_default', 'disabled_visible', 'do_not_disturb', + 'do_not_disturb_alt', 'do_not_disturb_off', 'do_not_disturb_on', + 'do_not_disturb_on_total_silence', 'do_not_step', 'do_not_touch', 'domain', 'domain_add', + 'domain_disabled', 'domain_verification', 'drag_indicator', 'event', 'event_available', + 'event_busy', 'event_note', 'event_repeat', 'event_seat', 'explicit', 'explore', + 'explore_off', 'extension', 'extension_off', 'festival', 'fingerprint', 'flag', + 'flag_circle', 'flaky', 'flutter_dash', 'gavel', 'generating_tokens', 'gesture', + 'gif', 'gif_box', 'goat', 'handshake', 'help', 'help_center', 'help_outline', 'hexagon', + 'interests', 'interpreter_mode', 'language', 'lightbulb', 'lightbulb_circle', + 'lightbulb_outline', 'mode', 'new_label', 'not_accessible', 'not_interested', + 'not_started', 'offline_bolt', 'offline_pin', 'offline_share', 'on_device_training', + 'opacity', 'outlet', 'outlined_flag', 'pages', 'pageview', 'pallet', 'pattern', + 'pentagon', 'percent', 'phishing', 'pinch', 'pivot_table_chart', 'plagiarism', + 'policy', 'polyline', 'polymer', 'preview', 'published_with_changes', 'puzzle', + 'quickreply', 'quiz', 'recycling', 'reviews', 'rocket', 'rocket_launch', 'rule', + 'safety_check', 'safety_divider', 'scale', 'screen_lock_landscape', + 'screen_lock_portrait', 'screen_lock_rotation', 'screen_rotation', 'screen_rotation_alt', + 'screen_search_desktop', 'segment', 'settings_suggest', 'shield', 'shield_moon', + 'sign_language', 'square', 'square_foot', 'stadium', 'sticky_note_2', 'swipe', + 'swipe_down', 'swipe_down_alt', 'swipe_left', 'swipe_left_alt', 'swipe_right', + 'swipe_right_alt', 'swipe_up', 'swipe_up_alt', 'swipe_vertical', 'switch_access_shortcut', + 'switch_access_shortcut_add', 'switch_account', 'switch_left', 'switch_right', + 'tag', 'theater_comedy', 'theaters', 'thermostat', 'thermostat_auto', 'tips_and_updates', + 'token', 'touch_app', 'tour', 'track_changes', 'transcribe', 'travel_explore', + 'type_specimen', 'upcoming', 'verified', 'verified_user', 'wysiwyg', +]; + +// For backward compatibility, keep separate arrays +// These are now just filtered views of the main allMaterialIcons array +const materialIcons = allMaterialIcons.filter(icon => !materialSymbolsOnly.has(icon)); +const materialSymbols = allMaterialIcons.filter(icon => materialSymbolsOnly.has(icon)); + +export { + materialSymbolsOnly, + getIconClass, + materialIcons, + materialSymbols, + allMaterialIcons, +}; diff --git a/frontend/src/utils/sort.js b/frontend/src/utils/sort.js index 3e51d08e8f..c252e3f4fb 100644 --- a/frontend/src/utils/sort.js +++ b/frontend/src/utils/sort.js @@ -3,6 +3,12 @@ export function sortedItems(items = [], sortby="name", asc=true) { let valueA = a[sortby]; let valueB = b[sortby]; + // Special handling for duration which is stored in metadata + if (sortby === "duration") { + valueA = a.metadata?.duration ?? 0; + valueB = b.metadata?.duration ?? 0; + } + if (sortby === "name") { // Use localeCompare with numeric option for natural sorting const comparison = valueA.localeCompare(valueB, undefined, { numeric: true, sensitivity: 'base' }); diff --git a/frontend/src/utils/sort.test.js b/frontend/src/utils/sort.test.js index 7512b10905..c4536eebd1 100644 --- a/frontend/src/utils/sort.test.js +++ b/frontend/src/utils/sort.test.js @@ -85,4 +85,57 @@ describe('testSort', () => { expect(sortedItems(input, "date")).toEqual(expected); }); + it('sort items by duration correctly (ascending)', () => { + const input = [ + { name: "video3.mp4", metadata: { duration: 300.5 } }, + { name: "video1.mp4", metadata: { duration: 120.0 } }, + { name: "video2.mp4", metadata: { duration: 240.75 } }, + { name: "video4.mp4", metadata: { duration: 60.25 } }, + { name: "audio.mp3", metadata: { duration: 180.5 } }, + ] + const expected = [ + { name: "video4.mp4", metadata: { duration: 60.25 } }, + { name: "video1.mp4", metadata: { duration: 120.0 } }, + { name: "audio.mp3", metadata: { duration: 180.5 } }, + { name: "video2.mp4", metadata: { duration: 240.75 } }, + { name: "video3.mp4", metadata: { duration: 300.5 } }, + ] + expect(sortedItems(input, "duration", true)).toEqual(expected); + }); + + it('sort items by duration correctly (descending)', () => { + const input = [ + { name: "video3.mp4", metadata: { duration: 300.5 } }, + { name: "video1.mp4", metadata: { duration: 120.0 } }, + { name: "video2.mp4", metadata: { duration: 240.75 } }, + { name: "video4.mp4", metadata: { duration: 60.25 } }, + { name: "audio.mp3", metadata: { duration: 180.5 } }, + ] + const expected = [ + { name: "video3.mp4", metadata: { duration: 300.5 } }, + { name: "video2.mp4", metadata: { duration: 240.75 } }, + { name: "audio.mp3", metadata: { duration: 180.5 } }, + { name: "video1.mp4", metadata: { duration: 120.0 } }, + { name: "video4.mp4", metadata: { duration: 60.25 } }, + ] + expect(sortedItems(input, "duration", false)).toEqual(expected); + }); + + it('sort items by duration with missing metadata', () => { + const input = [ + { name: "video2.mp4", metadata: { duration: 240.75 } }, + { name: "image.jpg" }, // no metadata + { name: "video1.mp4", metadata: { duration: 120.0 } }, + { name: "document.pdf", metadata: {} }, // metadata but no duration + ] + const result = sortedItems(input, "duration", true); + + // Items with no duration (treated as 0) should come first + expect(result[0].metadata?.duration ?? 0).toBe(0); + expect(result[1].metadata?.duration ?? 0).toBe(0); + // Then items with actual duration values in ascending order + expect(result[2]).toEqual({ name: "video1.mp4", metadata: { duration: 120.0 } }); + expect(result[3]).toEqual({ name: "video2.mp4", metadata: { duration: 240.75 } }); + }); + }); diff --git a/frontend/src/utils/upload.js b/frontend/src/utils/upload.js index d6e6c86d83..35f93e8dc4 100644 --- a/frontend/src/utils/upload.js +++ b/frontend/src/utils/upload.js @@ -1,7 +1,6 @@ import { reactive } from "vue"; import { filesApi, publicApi } from "@/api"; import { state,mutations } from "@/store"; -import { shareInfo } from "@/utils/constants"; import { getters } from "@/store/getters"; class UploadManager { @@ -56,9 +55,9 @@ class UploadManager { try { const testPath = `${basePath}${dirName}`; if (getters.isShare()) { - await publicApi.post(shareInfo.hash, testPath, new Blob([]), false); + await publicApi.post(state.shareInfo?.hash, testPath, new Blob([]), false, undefined, {}, true); } else { - await filesApi.post(state.req?.source, testPath, new Blob([]), false); + await filesApi.post(state.req?.source, testPath, new Blob([]), false, undefined, {}, true); } // No conflict - directory was created successfully // Mark it so we can skip it later in the queue @@ -222,16 +221,13 @@ class UploadManager { const hasNoActiveOrPending = this.activeUploads === 0 && !this.hasPending(); if (this.hadActiveUploads && hasNoActiveOrPending) { console.log("all uploads processed ", this.queue); - // Only reload if there are no errors or conflicts - keep prompt open so users can see and retry - const hasErrorsOrConflicts = this.queue.some((item) => + const hasErrorsOrConflicts = this.queue.some((item) => item.status === "error" || item.status === "conflict" ); - if (!hasErrorsOrConflicts) { mutations.setReload(true); } - this.hadActiveUploads = false; // Reset the flag this.overwriteAll = null; // Reset for next batch of uploads } @@ -261,9 +257,9 @@ class UploadManager { try { if (getters.isShare()) { - await publicApi.post(shareInfo.hash, upload.path, new Blob([]), upload.overwrite); + await publicApi.post(state.shareInfo?.hash, upload.path, new Blob([]), upload.overwrite, undefined, {}, true); } else { - await filesApi.post(upload.source, upload.path, new Blob([]), upload.overwrite); + await filesApi.post(upload.source, upload.path, new Blob([]), upload.overwrite, undefined, {}, true); } upload.status = "completed"; @@ -297,7 +293,7 @@ class UploadManager { try { let promise; if (getters.isShare()) { - promise = publicApi.post(shareInfo.hash, upload.path, upload.file, upload.overwrite, progress, { + promise = publicApi.post(state.shareInfo?.hash, upload.path, upload.file, upload.overwrite, progress, { "X-File-Total-Size": upload.size, }); } else { @@ -338,7 +334,7 @@ class UploadManager { let promise; if (getters.isShare()) { promise = publicApi.post( - shareInfo.hash, + state.shareInfo?.hash, upload.path, chunk, upload.overwrite, diff --git a/frontend/src/utils/url.js b/frontend/src/utils/url.js index 52987851f4..2f5e335831 100644 --- a/frontend/src/utils/url.js +++ b/frontend/src/utils/url.js @@ -1,4 +1,4 @@ -import { globalVars, shareInfo } from "@/utils/constants.js"; +import { globalVars } from "@/utils/constants.js"; import { state, mutations, getters } from "@/store"; import { router } from "@/router"; @@ -148,26 +148,17 @@ export function base64Encode(str) { export function extractSourceFromPath(url) { let source; let path = url; - if (state.serverHasMultipleSources) { - source = path.split('/')[2]; - path = removePrefix(path, `/files/${source}`); - } else { - source = state.sources.current; - path = removePrefix(path, '/files'); - } + source = path.split('/')[2]; + path = removePrefix(path, `/files/${source}`); return { source, path }; } export function buildItemUrl(source, path) { if (getters.isShare()) { - return `/public/share/${shareInfo.hash}${path}`; - } - if (state.serverHasMultipleSources) { - return `/files/${source}${path}`; - } else { - return `/files${path}`; + return `/public/share/${state.shareInfo.hash}${path}`; } + return `/files/${source}${path}`; } export function encodedPath(path) { @@ -182,20 +173,19 @@ export function encodedPath(path) { // assume non-encoded input path and source export function goToItem(source, path, previousHistoryItem) { + if (source == state.sources.current && path == state.req.path) { + return; + } mutations.setPreviousHistoryItem(previousHistoryItem); mutations.resetAll() let newPath = encodedPath(path); let fullPath; if (getters.isShare()) { - fullPath = `/public/share/${shareInfo.hash}${newPath}`; + fullPath = `/public/share/${state.shareInfo?.hash}${newPath}`; router.push({ path: fullPath }); return; } - if (state.serverHasMultipleSources) { - fullPath = `/files/${encodeURIComponent(source)}${newPath}`; - } else { - fullPath = `/files${newPath}`; - } + fullPath = `/files/${encodeURIComponent(source)}${newPath}`; router.push({ path: fullPath }); return } diff --git a/frontend/src/utils/url.test.js b/frontend/src/utils/url.test.js index 789f71c80a..656151b9cb 100644 --- a/frontend/src/utils/url.test.js +++ b/frontend/src/utils/url.test.js @@ -34,7 +34,6 @@ vi.mock('@/utils/constants', () => { disableSidebar: false, isValid: true, }, - serverHasMultipleSources: false, logoURL: "test-logo.png", origin: "http://localhost", settings: [], @@ -81,7 +80,6 @@ describe('extractSourceFromPath', () => { vi.doMock("@/store", () => { return { state: { - serverHasMultipleSources: false, sources: { current: "default", } @@ -90,8 +88,8 @@ describe('extractSourceFromPath', () => { }); const tests = [ - { url: "/files/root/file1.txt", expected: { source: "default", path: "/root/file1.txt" } }, - { url: "/files/root/folder1/file1.txt", expected: { source: "default", path: "/root/folder1/file1.txt" } }, + { url: "/files/default/root/file1.txt", expected: { source: "default", path: "/root/file1.txt" } }, + { url: "/files/default/root/folder1/file1.txt", expected: { source: "default", path: "/root/folder1/file1.txt" } }, ]; for (const test of tests) { @@ -109,7 +107,6 @@ describe('extractSourceFromPath2', () => { vi.doMock("@/store", () => { return { state: { - serverHasMultipleSources: true, sources: { current: "first", list: [ diff --git a/frontend/src/views/Errors.vue b/frontend/src/views/Errors.vue index 7b175fd002..bac1f75ed0 100644 --- a/frontend/src/views/Errors.vue +++ b/frontend/src/views/Errors.vue @@ -13,6 +13,10 @@ const errors = { icon: "cloud_off", message: "errors.connection", }, + 401: { + icon: "error", + message: "errors.forbidden", + }, 403: { icon: "error", message: "errors.forbidden", diff --git a/frontend/src/views/Files.vue b/frontend/src/views/Files.vue index 829f3f2cf1..52abb17188 100644 --- a/frontend/src/views/Files.vue +++ b/frontend/src/views/Files.vue @@ -1,16 +1,7 @@ + + diff --git a/frontend/src/views/bars/Default.vue b/frontend/src/views/bars/Default.vue index c195dc8e21..3ec7ba2c9e 100644 --- a/frontend/src/views/bars/Default.vue +++ b/frontend/src/views/bars/Default.vue @@ -3,7 +3,7 @@ @@ -29,7 +29,7 @@ v-else-if="showQuickSave" id="save-button" icon="save" - :label="$t('buttons.save')" + :label="$t('general.save')" @action="save()" /> @@ -42,7 +42,7 @@ import { notify } from "@/notify"; import { getters, state, mutations } from "@/store"; import Action from "@/components/Action.vue"; import Search from "@/components/Search.vue"; -import { globalVars, shareInfo } from "@/utils/constants"; +import { globalVars } from "@/utils/constants"; import { url } from "@/utils"; export default { @@ -53,16 +53,20 @@ export default { }, data() { return { - viewModes: ["list", "compact", "normal", "gallery"], + viewModes: ["list", "normal", "icons"], }; }, computed: { getTopTitle() { if (getters.isSettings()) { - return this.$t("sidebar.settings"); + return this.$t("general.settings"); } - if (getters.isShare() && shareInfo.title && state.req.type === "directory") { - return shareInfo.title; + if (getters.isShare() && state.shareInfo?.title && state.req.type === "directory") { + return state.shareInfo?.title; + } + const currentTool = getters.currentTool(); + if (currentTool) { + return currentTool.name; } return state.req.name; }, @@ -73,7 +77,7 @@ export default { return state.user.editorQuickSave; }, disableNavButtons() { - return (globalVars.disableNavButtons && this.isListingView) || (getters.isShare() && shareInfo.disableNavButtons); + return (globalVars.disableNavButtons && this.isListingView) || (getters.isShare() && state.shareInfo?.hideNavButtons && getters.currentView() == "listingView"); }, isOnlyOffice() { return getters.currentView() === "onlyOfficeEditor"; @@ -89,7 +93,7 @@ export default { viewIcon() { const icons = { list: "view_list", - compact: "table_rows_narrow", + compact: "view_list", normal: "view_module", gallery: "grid_view", }; @@ -117,7 +121,7 @@ export default { return state.isSearchActive || getters.currentPromptName() != ""; }, isDisabledMultiAction() { - const shareDisabled = shareInfo.disableSidebar && getters.multibuttonState() === "menu"; + const shareDisabled = state.shareInfo?.disableSidebar && getters.multibuttonState() === "menu"; return this.isDisabled || (getters.isStickySidebar() && getters.multibuttonState() === "menu") || shareDisabled; }, showSwitchView() { diff --git a/frontend/src/views/files/DocViewer.vue b/frontend/src/views/files/DocViewer.vue index 482eebe506..2caeedfc1d 100644 --- a/frontend/src/views/files/DocViewer.vue +++ b/frontend/src/views/files/DocViewer.vue @@ -1,6 +1,6 @@ + + diff --git a/frontend/src/views/settings/Profile.vue b/frontend/src/views/settings/Profile.vue index c8ad94f5e6..97ca2f2082 100644 --- a/frontend/src/views/settings/Profile.vue +++ b/frontend/src/views/settings/Profile.vue @@ -42,22 +42,6 @@ -
-

{{ $t("profileSettings.defaultLandingPage") }}

- - help - -
-
- - -
@@ -128,7 +112,7 @@ :placeholder="$t('profileSettings.disableFileExtensions')" id="disableViewing" v-model="formDisabledViewing" /> @@ -147,7 +131,7 @@ :placeholder="$t('profileSettings.disableFileExtensions')" id="disableOfficePreview" v-model="formDisableOfficePreview" />
@@ -175,7 +159,7 @@
-

{{ $t('settings.language') }}

+

{{ $t('general.language') }}

@@ -205,7 +189,6 @@ export default { data() { return { localuser: { preview: {}, permissions: {} }, // Initialize localuser with empty objects to avoid undefined errors - formDefaultLandingPage: "", // holds temporary input before saving formDisablePreviews: "", // holds temporary input before saving formDisabledViewing: "", // holds temporary input before saving formDisableOfficePreview: "", // holds temporary input before saving @@ -258,7 +241,6 @@ export default { if (getters.eventTheme() === "halloween" && !state.disableEventThemes) { this.localuser.themeColor = ""; } - this.formDefaultLandingPage = this.localuser.defaultLandingPage; this.formDisablePreviews = this.localuser.disablePreviewExt; this.formDisabledViewing = this.localuser.disableViewingExt; this.formDisableOfficePreview = this.localuser.disableOfficePreviewExt; @@ -281,10 +263,6 @@ export default { const regex = /^\.\w+(?: \.\w+)*$/; return regex.test(value); }, - submitDefaultLandingPageChange() { - this.localuser.defaultLandingPage = this.formDefaultLandingPage; - this.updateSettings(); - }, submitDisablePreviewsChange() { if (!this.validateExtensions(this.formDisablePreviews)) { notify.showError("Invalid input, does not match requirement."); @@ -337,7 +315,6 @@ export default { "themeColor", "customTheme", "quickDownload", - "defaultLandingPage", "disablePreviewExt", "disableViewingExt", "disableOfficePreviewExt", @@ -353,10 +330,12 @@ export default { if (themeChanged) { window.location.reload(); } - notify.showSuccess(this.$t("settings.settingsUpdated")); + notify.showSuccessToast( + this.$t('settings.settingsUpdated') + ); } catch (e) { - notify.showError(e); + console.error(e); } }, updateLocale(updatedLocale) { diff --git a/frontend/src/views/settings/Shares.vue b/frontend/src/views/settings/Shares.vue index a1f74cc340..325d26991d 100644 --- a/frontend/src/views/settings/Shares.vue +++ b/frontend/src/views/settings/Shares.vue @@ -9,10 +9,11 @@ {{ $t("general.hash") }} - {{ $t("settings.path") }} - {{ $t("settings.shareDuration") }} - {{ $t("settings.downloads") }} - {{ $t("settings.username") }} + {{ $t("general.path") }} + {{ $t("time.unit") }} + {{ $t("general.downloads") }} + {{ $t("general.username") }} + @@ -35,14 +36,17 @@ {{ item.username }} - - @@ -98,17 +102,17 @@ export default { await this.reloadShares(); }, mounted() { - this.clip = new Clipboard(".copy-clipboard"); - this.clip.on("success", () => { - notify.showSuccess(this.$t("success.linkCopied")); - }); + this.initClipboard(); // Listen for share changes eventBus.on('sharesChanged', this.reloadShares); }, beforeUnmount() { - this.clip.destroy(); + // Clean up clipboard + if (this.clip) { + this.clip.destroy(); + } // Clean up event listener - eventBus.removeEventListener('sharesChanged', this.reloadShares); + eventBus.off('sharesChanged', this.reloadShares); }, computed: { settings() { @@ -135,13 +139,31 @@ export default { } this.links = links; this.error = null; // Clear any previous errors + this.$nextTick(() => { + this.initClipboard(); + }); } catch (e) { this.error = e; - notify.showError(e); + console.error(e); } finally { mutations.setLoading("shares", false); } }, + initClipboard() { + // First destroy any existing clipboard + if (this.clip) { + this.clip.destroy(); + } + // Create new clipboard + this.clip = new Clipboard(".copy-clipboard"); + this.clip.on("success", () => { + notify.showSuccessToast(this.$t("success.linkCopied")); + }); + this.clip.on("error", () => { + notify.showErrorToast(this.$t("prompts.copyToClipboardFailed")); + console.log("Failed to copy link to the clipboard", e); + }); + }, editLink(item) { mutations.showHover({ name: "share", @@ -164,9 +186,9 @@ export default { try { shareApi.remove(item.hash); this.links = this.links.filter((link) => link.hash !== item.hash); - notify.showSuccess(this.$t("settings.shareDeleted")); + notify.showSuccessToast(this.$t("settings.shareDeleted")); } catch (e) { - notify.showError(e); + console.error(e); } }, }); diff --git a/frontend/src/views/settings/SystemAdmin.vue b/frontend/src/views/settings/SystemAdmin.vue index f72d075e4c..3687e40799 100644 --- a/frontend/src/views/settings/SystemAdmin.vue +++ b/frontend/src/views/settings/SystemAdmin.vue @@ -26,7 +26,7 @@ :disabled="configLoading" aria-label="loadConfig" style="margin-bottom: 1em;"> - {{ configLoading ? $t('files.loading') : $t('settings.configViewerLoadConfig') }} + {{ configLoading ? $t('general.loading', { suffix: "..." }) : $t('settings.configViewerLoadConfig') }}
@@ -84,9 +84,9 @@ export default { await usersApi.update(data, [ "disableUpdateNotifications", ]); - notify.showSuccess(this.$t("settings.settingsUpdated")); + notify.showSuccessToast(this.$t("settings.settingsUpdated")); } catch (e) { - notify.showError(e); + console.error(e); } }, async fetchConfig() { @@ -98,7 +98,7 @@ export default { ); this.configContent = await response.text(); } catch (e) { - notify.showError(e); + console.error(e); const errorMessage = (e && typeof e === 'object' && 'message' in e) ? String(e.message) : 'Unknown error'; this.configContent = 'Error loading config: ' + errorMessage; } finally { diff --git a/frontend/src/views/settings/Users.vue b/frontend/src/views/settings/Users.vue index f2b1ff0da1..1afdcb367f 100644 --- a/frontend/src/views/settings/Users.vue +++ b/frontend/src/views/settings/Users.vue @@ -1,20 +1,20 @@