From c4ccfd48f510f4bc33b649ee10fb98eb978e5475 Mon Sep 17 00:00:00 2001
From: Graham Steffaniak <42989099+gtsteffaniak@users.noreply.github.com>
Date: Sun, 16 Feb 2025 09:07:38 -0500
Subject: [PATCH] Beta/v0.5.3 (#374)
---
.github/workflows/regular-tests.yaml | 2 +-
.github/workflows/release_beta.yaml | 2 +-
.github/workflows/release_stable.yaml | 2 +-
CHANGELOG.md | 21 +
README.md | 3 +
_docker/Dockerfile | 2 +-
backend/files/file.go | 73 +--
backend/files/indexingFiles.go | 6 +-
backend/files/indexingSchedule.go | 12 +-
backend/files/mime.go | 612 ++++++++++++++++++
backend/fileutils/file.go | 7 -
backend/go.mod | 6 +-
backend/go.sum | 16 +-
backend/http/auth.go | 2 +-
backend/http/middleware.go | 2 +-
backend/http/middleware_test.go | 4 +-
backend/http/onlyOffice.go | 4 +-
backend/http/preview.go | 2 +-
backend/http/raw.go | 3 +-
backend/img/service.go | 2 +-
backend/runner/commands.go | 2 +-
backend/runner/runner.go | 4 +-
backend/settings/config.go | 21 +-
backend/settings/settings_test.go | 2 +-
backend/settings/structs.go | 15 +-
backend/storage/bolt/auth.go | 2 +-
backend/storage/bolt/bolt.go | 2 +-
backend/storage/bolt/config.go | 2 +-
backend/storage/bolt/share.go | 2 +-
backend/storage/bolt/users.go | 2 +-
backend/storage/bolt/utils.go | 2 +-
backend/storage/storage.go | 2 +-
backend/swagger/docs/docs.go | 6 +
backend/swagger/docs/swagger.json | 6 +
backend/swagger/docs/swagger.yaml | 4 +
backend/users/users.go | 47 +-
frontend/package.json | 2 +
frontend/src/api/files.js | 305 ++++-----
frontend/src/api/utils.js | 7 +-
frontend/src/api/utils.test.js | 14 +-
frontend/src/components/ContextMenu.vue | 57 +-
frontend/src/components/Search.vue | 2 +-
frontend/src/components/prompts/Copy.vue | 4 +-
frontend/src/components/prompts/Delete.vue | 17 +-
.../src/components/prompts/DeleteUser.vue | 2 +-
frontend/src/components/prompts/FileList.vue | 2 +-
frontend/src/components/prompts/Info.vue | 4 +-
frontend/src/components/prompts/Move.vue | 4 +-
frontend/src/components/prompts/Rename.vue | 4 +-
frontend/src/components/prompts/Share.vue | 2 +-
frontend/src/components/settings/Rules.vue | 63 --
frontend/src/components/sidebar/General.vue | 2 +
frontend/src/components/sidebar/Sidebar.vue | 6 +-
frontend/src/css/base.css | 4 +-
frontend/src/css/header.css | 11 +-
frontend/src/notify/loadingSpinner.js | 5 +-
frontend/src/store/getters.js | 18 +-
frontend/src/store/state.js | 1 +
frontend/src/utils/files.js | 7 +
frontend/src/utils/subtitles.js | 190 ++++++
frontend/src/utils/upload.js | 23 +-
frontend/src/utils/url.js | 9 +-
frontend/src/views/Files.vue | 12 +-
frontend/src/views/bars/EditorBar.vue | 2 +-
frontend/src/views/files/Editor.vue | 2 +-
frontend/src/views/files/ListingView.vue | 45 +-
frontend/src/views/files/MarkdownViewer.vue | 4 +-
frontend/src/views/files/Preview.vue | 135 ++--
frontend/src/views/settings/Profile.vue | 40 ++
frontend/tests/file-actions.spec.ts | 47 +-
frontend/tests/navigation.spec.ts | 14 +
frontend/tests/playwright-files/deleteme.txt | 0
.../playwright-files/folder#hash/file#.sh | 0
73 files changed, 1461 insertions(+), 509 deletions(-)
create mode 100644 backend/files/mime.go
delete mode 100644 frontend/src/components/settings/Rules.vue
create mode 100644 frontend/src/utils/files.js
create mode 100644 frontend/src/utils/subtitles.js
create mode 100644 frontend/tests/navigation.spec.ts
create mode 100644 frontend/tests/playwright-files/deleteme.txt
create mode 100644 frontend/tests/playwright-files/folder#hash/file#.sh
diff --git a/.github/workflows/regular-tests.yaml b/.github/workflows/regular-tests.yaml
index b591e903..b9fb45cc 100644
--- a/.github/workflows/regular-tests.yaml
+++ b/.github/workflows/regular-tests.yaml
@@ -24,7 +24,7 @@ jobs:
go-version: 'stable'
- uses: golangci/golangci-lint-action@v5
with:
- version: v1.60
+ version: 'v1.64'
working-directory: backend
format-backend:
runs-on: ubuntu-latest
diff --git a/.github/workflows/release_beta.yaml b/.github/workflows/release_beta.yaml
index daf5f6ba..ebd3fe4f 100644
--- a/.github/workflows/release_beta.yaml
+++ b/.github/workflows/release_beta.yaml
@@ -56,7 +56,7 @@ jobs:
- name: Create Release
uses: softprops/action-gh-release@v2
with:
- target_commitish: ${{ steps.extract_branch.outputs.branch_name }}
+ target_commitish: ${{ github.sha }}
token: ${{ secrets.PAT }}
tag_name: ${{ steps.extract_branch.outputs.tag_name }}
prerelease: false # change this to false when stable gets released
diff --git a/.github/workflows/release_stable.yaml b/.github/workflows/release_stable.yaml
index 2792c396..423d1c66 100644
--- a/.github/workflows/release_stable.yaml
+++ b/.github/workflows/release_stable.yaml
@@ -56,7 +56,7 @@ jobs:
- name: Create Release
uses: softprops/action-gh-release@v2
with:
- target_commitish: ${{ steps.extract_branch.outputs.branch_name }}
+ target_commitish: ${{ github.sha }}
token: ${{ secrets.PAT }}
tag_name: ${{ steps.extract_branch.outputs.tag_name }}
prerelease: false
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2ad3c575..f73244a9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,27 @@
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).
+## v0.5.3-beta
+
+ **New Features**
+ - onlyoffice disable filetypes for user specified file types. https://github.com/gtsteffaniak/filebrowser/issues/346
+
+ **Notes**:
+ - navbar/sidebar lightmode style tweaks.
+ - any item that has utf formatted text will get editor.
+ - tweaks to create options on context menu.
+ - removed small delay on preview before detecting the file.
+
+ **BugFixes**:
+ - fix `/files/` prefix loading issue https://github.com/gtsteffaniak/filebrowser/issues/362
+ - fix special characters in filename issue https://github.com/gtsteffaniak/filebrowser/issues/357
+ - fix drag and drop issue https://github.com/gtsteffaniak/filebrowser/issues/361
+ - fix conflict issue with creating same file after deletion.
+ - fix mimetype detection https://github.com/gtsteffaniak/filebrowser/issues/327
+ - subtitles for videos https://github.com/gtsteffaniak/filebrowser/issues/358
+ - supports caption sidecar files : ".vtt", ".srt", ".lrc", ".sbv", ".ass", ".ssa", ".sub", ".smi"
+ - embedded subtitles not yet supported.
+
## v0.5.2-beta
**New Features**:
diff --git a/README.md b/README.md
index 9f08095c..db7f0113 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,9 @@
[](https://hub.docker.com/r/gtstef/filebrowser)
[](https://www.apache.org/licenses/LICENSE-2.0)
+ [](https://github.com/gtsteffaniak/filebrowser/discussions/368)
+ [](https://www.paypal.com/donate/?business=W5XKNXHJM2WPE&no_recurring=0¤cy_code=USD)
+
{{ $t("prompts.deleteMessageMultiple", { count: selectedCount }) }}
-