Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afeb478ee1 | ||
|
|
df2869993a | ||
|
|
d49ab67904 | ||
|
|
cfff84306a | ||
|
|
72faf6dd3c | ||
|
|
a789f29cee | ||
|
|
74b13db3fa | ||
|
|
773b30102c | ||
|
|
0b925cbca9 | ||
|
|
9dd7c7d099 | ||
|
|
b24e43b06c | ||
|
|
91e68edb8c | ||
|
|
ac11538f08 | ||
|
|
f6fb8f6bf5 | ||
|
|
e6d70cf24c | ||
|
|
41e2b1bbba | ||
|
|
41b01a7404 | ||
|
|
0dd8905886 | ||
|
|
032271bafa | ||
|
|
50125a5d21 | ||
|
|
bc3d75a94a | ||
|
|
fb6aeba9ea | ||
|
|
67e893eee7 | ||
|
|
4a4b0f8c84 | ||
|
|
660d84661d | ||
|
|
392253c563 | ||
|
|
328f629181 | ||
|
|
4c3cb4bc9b | ||
|
|
3213b605be | ||
|
|
610e0b09e9 | ||
|
|
7453c78c98 | ||
|
|
cd5749dff8 | ||
|
|
4daddec6f2 | ||
|
|
9bd79c3aae | ||
|
|
6c69b5cd89 | ||
|
|
4b8a8d72ce | ||
|
|
8ddd3d1db9 | ||
|
|
9fffee387f | ||
|
|
5a12cad548 | ||
|
|
6232686e22 | ||
|
|
b21b1245ae | ||
|
|
7361d91ea2 | ||
|
|
c05c668148 | ||
|
|
b7dc392838 | ||
|
|
ac46cf0671 | ||
|
|
f0785391bf | ||
|
|
9b78324d77 | ||
|
|
fe7efb2e6a | ||
|
|
2651260a1c | ||
|
|
4470288ba1 | ||
|
|
58d22578e8 | ||
|
|
dfc2e887e1 | ||
|
|
aac2516637 | ||
|
|
c05ead7e8e | ||
|
|
d76b7d1610 | ||
|
|
f30fca636c | ||
|
|
ec13054671 | ||
|
|
883a36f02f | ||
|
|
8503ba61ff | ||
|
|
1fb05d65de | ||
|
|
2472fbcd30 | ||
|
|
43a404ca69 | ||
|
|
d9cf2f0100 | ||
|
|
6209f8fddd | ||
|
|
bd1520fe09 | ||
|
|
8cfa6a175f | ||
|
|
a1063925e1 | ||
|
|
64511ce45e | ||
|
|
be23ab3a15 | ||
|
|
ffb486e05f | ||
|
|
403d2bbd33 | ||
|
|
dfe6e5b333 | ||
|
|
d9816b1531 | ||
|
|
7c2c0a11b3 | ||
|
|
3406d3d7f9 | ||
|
|
67ed670d92 | ||
|
|
a1a514dcbb | ||
|
|
5f7311d324 | ||
|
|
998bd95bfa | ||
|
|
c1abe8f561 | ||
|
|
0bb2768754 | ||
|
|
7b7ff8ae8f | ||
|
|
1086903c14 | ||
|
|
3471ec2c4b | ||
|
|
69c76d11cc | ||
|
|
6b04cbf5e9 | ||
|
|
503fd6b01f | ||
|
|
35db07d015 | ||
|
|
19514367ad | ||
|
|
cdd666fc95 | ||
|
|
103acd15fe | ||
|
|
f5e0c4e2e1 | ||
|
|
ca019ae7d9 | ||
|
|
4488f5b131 | ||
|
|
166583db63 | ||
|
|
85b7d2762d | ||
|
|
4edabb9ccc | ||
|
|
103683069e | ||
|
|
5328e80d2e | ||
|
|
847d08bdd1 | ||
|
|
0231b7ebdf | ||
|
|
e07c59df0b | ||
|
|
0d3eb9bea9 | ||
|
|
34ae34e764 | ||
|
|
ca0108f070 | ||
|
|
a1e442ef9e | ||
|
|
6ad8160aa3 | ||
|
|
22b848f26e | ||
|
|
a418dd6bb3 | ||
|
|
d978d1ecca | ||
|
|
9cc18a81e3 | ||
|
|
e38c28273a | ||
|
|
da2dff0933 | ||
|
|
261bca67bc | ||
|
|
ca5e249e3c | ||
|
|
f4e148523e | ||
|
|
1f22fe65ec | ||
|
|
e2bdf6f747 | ||
|
|
d236f1c563 | ||
|
|
4edf425a9f | ||
|
|
a1a7ac4f04 | ||
|
|
74917c8037 | ||
|
|
7bd27f5e82 | ||
|
|
9f4288b1b4 | ||
|
|
41b801d30c | ||
|
|
da6b7ac26b | ||
|
|
7f8b920aa4 | ||
|
|
dd53644acb | ||
|
|
9b80a9aa6c | ||
|
|
0321415a15 | ||
|
|
23e84c9974 | ||
|
|
0fadf28b18 | ||
|
|
871f337892 | ||
|
|
29c73eaca6 | ||
|
|
f13c7c8cff | ||
|
|
1e03feadb5 | ||
|
|
8adf127c7d | ||
|
|
7dbf7a3528 | ||
|
|
65a837de49 | ||
|
|
876cdb3426 | ||
|
|
2f805de527 | ||
|
|
7a16129bfc | ||
|
|
0f39bd055e | ||
|
|
860c19ddf5 | ||
|
|
a8fc1657b7 | ||
|
|
c406bda0c7 | ||
|
|
d9f9460c1e | ||
|
|
126227bb27 | ||
|
|
b6a4fb1f27 | ||
|
|
2368e468b9 | ||
|
|
8d8cd26d7f | ||
|
|
8f81b77cf2 | ||
|
|
0616f6811f | ||
|
|
432f3e60ff | ||
|
|
ae72f93667 | ||
|
|
4812536555 | ||
|
|
6d44b3ae1d | ||
|
|
811cf2dfe5 | ||
|
|
b5f970731b | ||
|
|
fc80f4f44c | ||
|
|
6aea227617 | ||
|
|
09a26166b4 | ||
|
|
a63573b67e | ||
|
|
4bd7d69c82 | ||
|
|
c21af0791a | ||
|
|
858eb42651 | ||
|
|
21709428b1 | ||
|
|
846fb3333a | ||
|
|
6f772f2b10 | ||
|
|
3c5d36673f | ||
|
|
27afbb8813 | ||
|
|
79875bac7f | ||
|
|
be8ba18937 | ||
|
|
ef2e9992dc | ||
|
|
0542fc0ba4 | ||
|
|
f04af0cac6 | ||
|
|
f5f8b60b33 | ||
|
|
6dcef07f40 | ||
|
|
6700a981a5 | ||
|
|
490e5bbf99 | ||
|
|
df63cb595c | ||
|
|
3cb21c727d | ||
|
|
c01b6a840c | ||
|
|
cbcf708d94 | ||
|
|
4d9e6b8218 | ||
|
|
8ee55761a1 | ||
|
|
8598db2acc | ||
|
|
a7dc7bf88a | ||
|
|
9f56826fb2 | ||
|
|
d7b00ce5f6 | ||
|
|
177c7cfcce | ||
|
|
4af3f85e64 | ||
|
|
c950a57df8 | ||
|
|
7ed1425115 | ||
|
|
148b3c5942 | ||
|
|
a40f80672d | ||
|
|
8dc618a24b | ||
|
|
31194fb57a | ||
|
|
aa809096eb | ||
|
|
e3d00d591b | ||
|
|
7b16e2de90 | ||
|
|
2470b9eb69 | ||
|
|
9940bdd663 | ||
|
|
200d501547 | ||
|
|
3169a14a4d | ||
|
|
7e78ad97ad | ||
|
|
0467326d5c | ||
|
|
63a76ef18c | ||
|
|
3cad9a2b0e | ||
|
|
804b14b698 | ||
|
|
95e6ed75a7 | ||
|
|
b09960e538 | ||
|
|
5e8f5be245 | ||
|
|
e5bc0d3cce | ||
|
|
f67bccf8c5 | ||
|
|
88b97def9e | ||
|
|
1f7904dad2 | ||
|
|
5feaf66575 | ||
|
|
c94870fcfe | ||
|
|
6a76dfeba9 | ||
|
|
e193d43278 | ||
|
|
489af403a1 | ||
|
|
ff2f00498c | ||
|
|
2957b4605b | ||
|
|
099dfb0ae8 | ||
|
|
a4289011ef | ||
|
|
942d59848a | ||
|
|
854e5371b6 | ||
|
|
b9df030e6e | ||
|
|
2b82612e3f | ||
|
|
08d7a1504c | ||
|
|
b8da36e630 | ||
|
|
a8fe32f4aa | ||
|
|
8fee2561af | ||
|
|
d441b28f43 | ||
|
|
87cfead033 | ||
|
|
3a08949c7f | ||
|
|
b594d4d4e2 | ||
|
|
1053aace8c | ||
|
|
004488c15b | ||
|
|
3032a1fade | ||
|
|
87f1d00fd7 | ||
|
|
f0f2f1ff06 | ||
|
|
08c8ede587 | ||
|
|
1154b49974 | ||
|
|
785b7abb7b | ||
|
|
550a73b6ba | ||
|
|
e7ea1ad27d | ||
|
|
24781badd4 | ||
|
|
4094fb359b | ||
|
|
cfa6c5864e | ||
|
|
59ca0c340a | ||
|
|
037e29a708 | ||
|
|
fda8a99292 | ||
|
|
208535a8cc | ||
|
|
464b581953 | ||
|
|
20312ff18e | ||
|
|
219582c0b0 | ||
|
|
4fd18a382c | ||
|
|
94ec786d34 | ||
|
|
25e9b85259 | ||
|
|
ffa893e9ac | ||
|
|
b8151a038a | ||
|
|
943e5340d0 | ||
|
|
88aa56f53b | ||
|
|
a12a612970 | ||
|
|
a2d80c62c1 | ||
|
|
1faa21844f | ||
|
|
7a93b2a062 | ||
|
|
032d6c7520 | ||
|
|
9595f3939c | ||
|
|
60b1ee8bb9 | ||
|
|
79d1aa9229 | ||
|
|
20bfd131c6 | ||
|
|
f89975603e | ||
|
|
2d3b64ecf6 | ||
|
|
579756dbb5 |
No files matched your search
@@ -0,0 +1,160 @@
|
|||||||
|
# CLAUDE.md
|
||||||
|
|
||||||
|
Guidance for Claude when working in this repository (File Browser, `filebrowser/filebrowser`).
|
||||||
|
|
||||||
|
## Repo orientation
|
||||||
|
|
||||||
|
- Go backend (`github.com/filebrowser/filebrowser/v2`, ecosystem `go`) + Vue frontend under `frontend/`.
|
||||||
|
- The project is in **maintenance-only mode** (see `SECURITY.md`). Prefer small, surgical, well-tested changes.
|
||||||
|
- Version scheme: `v2.63.x`. Conventional-commit messages (`fix(scope): …`, `feat: …`, `chore: …`).
|
||||||
|
- Verify with `go build ./...`, `go vet ./...`, `go test ./...`. Reuse existing test harnesses (e.g. `signToken`, `scopedUserStorage`, `handle`, `customFSUser`, `mockUserStore`).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Handling security advisories
|
||||||
|
|
||||||
|
Use this playbook when asked to triage, verify, fix, or manage GitHub security advisories.
|
||||||
|
All advisory state lives on GitHub and is driven with the `gh` CLI. States are
|
||||||
|
`triage → draft → published`, plus `closed`.
|
||||||
|
|
||||||
|
## 1. Fetch
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# List by state (also: published, draft, closed)
|
||||||
|
gh api '/repos/filebrowser/filebrowser/security-advisories?state=triage&per_page=100' \
|
||||||
|
--jq '.[] | {ghsa_id, severity, summary, state}'
|
||||||
|
|
||||||
|
# Full report for one advisory (read .summary and .description)
|
||||||
|
gh api /repos/filebrowser/filebrowser/security-advisories/GHSA-xxxx-xxxx-xxxx \
|
||||||
|
--jq '.summary, "---", .description'
|
||||||
|
```
|
||||||
|
|
||||||
|
Always pull the **published** set too — you need it to dedup against.
|
||||||
|
|
||||||
|
## 2. Verify each report — do NOT trust the report text
|
||||||
|
|
||||||
|
Read the actual source **at HEAD** and reach one verdict per advisory:
|
||||||
|
|
||||||
|
- **CONFIRMED** — defect exists at HEAD. Quote the exact `file:line`.
|
||||||
|
- **FIXED** — already patched (find the fix commit).
|
||||||
|
- **FALSE / NOT APPLICABLE** — claim is wrong, or targets a different project.
|
||||||
|
- **NOT EXPLOITABLE** — pattern exists but no code path can reach the precondition.
|
||||||
|
- **DUPLICATE** — of a published advisory, or of another triage advisory.
|
||||||
|
|
||||||
|
Common traps — check each before accepting a report:
|
||||||
|
|
||||||
|
- **"Incomplete fix of a prior advisory."** Read the original fix commit and confirm the *specific*
|
||||||
|
sibling code path is actually still unguarded — a prior fix may already cover a related path.
|
||||||
|
- **Wrong project.** Confirm the referenced files, symbols, and endpoints exist in this repo; reports
|
||||||
|
sometimes describe a fork. If the cited code isn't here, close as not applicable.
|
||||||
|
- **"Legacy / upgraded / imported records are affected."** Trace the field's git history and confirm that
|
||||||
|
some released version could actually produce such a record before believing it
|
||||||
|
(`git log -S'Field' -- path`, `git show <commit>`, `git tag --contains <commit>`).
|
||||||
|
- **Overlapping reports.** Two triage advisories may share one root cause — consolidate and fix once.
|
||||||
|
- **Known, intentionally-unaddressed classes.** Some areas are known and tracked but not fixed (see
|
||||||
|
`SECURITY.md`'s Known Issues); matching reports are duplicates.
|
||||||
|
|
||||||
|
Record, per advisory: verdict, the `file:line` evidence, exploitability preconditions
|
||||||
|
(default config? platform-specific? auth required?), and the disposition.
|
||||||
|
|
||||||
|
## 3. Fix (one commit per advisory)
|
||||||
|
|
||||||
|
- Branch off `master` first; never commit fixes directly to `master`.
|
||||||
|
- **One commit per fix**, each referencing the GHSA in the body (`Refs GHSA-xxxx-xxxx-xxxx`).
|
||||||
|
- When several advisories share a root cause because parallel code paths diverged, **centralize** the logic
|
||||||
|
(e.g. `settings.CreateUserHome` used by signup, proxy, and hook provisioning) so they cannot drift again.
|
||||||
|
- Keep it surgical; match surrounding style.
|
||||||
|
|
||||||
|
## 4. Add a regression test per fix
|
||||||
|
|
||||||
|
- Reuse the existing harnesses; add a focused test asserting the fixed behavior (and that the legitimate
|
||||||
|
path still works). Commit tests alongside the fixes (`test(scope): …`, `Refs GHSA-…`).
|
||||||
|
- Run `go test ./... && go vet ./...` before finishing.
|
||||||
|
|
||||||
|
## 5. Severity — set a CVSS vector, don't hand-assert
|
||||||
|
|
||||||
|
Set a CVSS v3.1 vector; GitHub derives the score **and** severity from it (overriding the plain `severity`
|
||||||
|
field). Encode the real preconditions in the vector so the band is defensible:
|
||||||
|
|
||||||
|
- Requires a specific target configuration/platform (e.g. case-insensitive FS) → **AC:H**.
|
||||||
|
- Unauthenticated vs needs an account → **PR:N / PR:L**.
|
||||||
|
- Keep it consistent with the **predecessor CVE's** rating (an incomplete-fix follow-up should not outrank
|
||||||
|
its parent). Bands: `0.1–3.9` low, `4.0–6.9` medium, `7.0–8.9` high, `9.0–10.0` critical.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gh api -X PATCH /repos/filebrowser/filebrowser/security-advisories/GHSA-xxxx-xxxx-xxxx \
|
||||||
|
-f cvss_vector_string='CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H' \
|
||||||
|
--jq '{ghsa_id, severity, score: .cvss.score, vector: .cvss.vector_string}'
|
||||||
|
```
|
||||||
|
|
||||||
|
## 6. Clean up the title
|
||||||
|
|
||||||
|
Rewrite reporter titles to the concise, sentence-case, backtick-free style of the published advisories
|
||||||
|
(state the vuln; drop "Incomplete fix of…" prefixes and jargon). The title is the `summary` field:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gh api -X PATCH .../security-advisories/GHSA-xxxx-xxxx-xxxx \
|
||||||
|
-f summary='Proxy-auth auto-provisioning ignores createUserDir and grants the server root scope'
|
||||||
|
```
|
||||||
|
|
||||||
|
## 7. Rewrite the body into the standard structure
|
||||||
|
|
||||||
|
Reporter reports arrive in whatever shape the reporter used. Before drafting, rewrite the
|
||||||
|
`description` into the sections below — **reusing the reporter's own wording wherever it is
|
||||||
|
accurate**, rather than paraphrasing it. Drop the greeting, the offer to help, and any claim the
|
||||||
|
verification in step 2 disproved. Keep sections in this order and omit the ones that don't apply:
|
||||||
|
|
||||||
|
| Section | Contents |
|
||||||
|
| --- | --- |
|
||||||
|
| `## Summary` | What the defect is, in two or three sentences. Note the version it was reported against and the range it was verified over. |
|
||||||
|
| `## Details` | Root cause, naming `file.go`, the function, and a short quote of the **pre-fix** code. |
|
||||||
|
| `## PoC` | The reporter's reproduction steps and observed result, trimmed to the essentials. |
|
||||||
|
| `## Impact` | Who can exploit it (privilege level, preconditions) and what they get. |
|
||||||
|
| `## Patches` | Fixed version plus a link to the fix commit, and one sentence on what the fix does. Mention it if the reporter re-tested and confirmed. |
|
||||||
|
| `## Workarounds` | Real mitigations, or `None. Upgrade to vX.Y.Z.` |
|
||||||
|
| `## Out of scope` | Anything in the original report deliberately **not** treated as a vulnerability, with the reasoning. Needed whenever the advisory is narrower than the report. |
|
||||||
|
| `## References` | Fix and regression-test commit links. |
|
||||||
|
|
||||||
|
Use `##` headings (matching the published advisories) and keep the body in the maintainer's voice —
|
||||||
|
first person ("I reproduced…") belongs only inside quoted PoC steps.
|
||||||
|
|
||||||
|
Send it as a file so the Markdown survives shell quoting:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
jq -Rs '{description: .}' desc.md \
|
||||||
|
| gh api -X PATCH .../security-advisories/GHSA-xxxx-xxxx-xxxx --input -
|
||||||
|
```
|
||||||
|
|
||||||
|
## 8. Set affected & patched versions
|
||||||
|
|
||||||
|
The package is always `{ecosystem: "go", name: "github.com/filebrowser/filebrowser/v2"}`.
|
||||||
|
|
||||||
|
- `vulnerable_version_range` — `<= <latest released version>` (the newest tag; find it with
|
||||||
|
`git tag --list 'v2.*' --sort=-version:refname | head -1`).
|
||||||
|
- `patched_versions` — the **next** release that will actually ship the fix. It doesn't exist just
|
||||||
|
because the branch does; it still has to be cut. **When unsure which version that will be, ask.**
|
||||||
|
|
||||||
|
Replace the placeholder versions below before sending:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
printf '%s' '{"vulnerabilities":[{"package":{"ecosystem":"go","name":"github.com/filebrowser/filebrowser/v2"},"vulnerable_version_range":"<= <latest>","patched_versions":"<next>","vulnerable_functions":[]}]}' \
|
||||||
|
| gh api -X PATCH .../security-advisories/GHSA-xxxx-xxxx-xxxx --input -
|
||||||
|
```
|
||||||
|
|
||||||
|
## 9. Move state / close, by disposition
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gh api -X PATCH .../security-advisories/GHSA-xxxx-xxxx-xxxx -f state=draft # fixed, awaiting release
|
||||||
|
gh api -X PATCH .../security-advisories/GHSA-xxxx-xxxx-xxxx -f state=closed # duplicate / N-A / not-exploitable
|
||||||
|
```
|
||||||
|
|
||||||
|
- **CONFIRMED & fixed** → metadata done → **draft**. Publish after the patched release ships.
|
||||||
|
- **DUPLICATE / NOT APPLICABLE / NOT EXPLOITABLE** → **closed**.
|
||||||
|
- **DEFERRED** (confirmed but not yet fixed) → leave in **triage** with a note.
|
||||||
|
- The REST API **cannot post advisory comments** — replies to reporters (dup notice, evidence, links to
|
||||||
|
the relevant tracking issue) must be posted manually in the advisory UI. Draft the text for the maintainer.
|
||||||
|
|
||||||
|
## 10. Release & publish
|
||||||
|
|
||||||
|
Push the branch, open a PR, merge, tag/release the `patched_versions` you set, then publish the drafts.
|
||||||
|
Confirm outward-facing/irreversible advisory actions (close, publish) with the maintainer before doing them.
|
||||||
@@ -2,6 +2,14 @@ name: Bug Report
|
|||||||
description: Report a bug in FileBrowser.
|
description: Report a bug in FileBrowser.
|
||||||
labels: [bug, 'waiting: triage']
|
labels: [bug, 'waiting: triage']
|
||||||
body:
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
**File Browser is being archived on 2026-09-01.** Bug reports are still read
|
||||||
|
until then, but fixes are not guaranteed, and no further security fixes will
|
||||||
|
be released. See the
|
||||||
|
[README](https://github.com/filebrowser/filebrowser/blob/master/README.md)
|
||||||
|
for the known unfixed issues and hardening guidance.
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
label: Checklist
|
label: Checklist
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
|
- name: Project sunset
|
||||||
|
url: https://github.com/filebrowser/filebrowser/blob/master/README.md#project-status
|
||||||
|
about: File Browser is archived on 2026-09-01. Please read this before opening an issue.
|
||||||
- name: GitHub Discussions
|
- name: GitHub Discussions
|
||||||
url: https://github.com/filebrowser/filebrowser/discussions
|
url: https://github.com/filebrowser/filebrowser/discussions
|
||||||
about: Please ask questions and discuss features here.
|
about: Please ask questions and discuss features here.
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
Before submitting your PR, please indicate which issues are either fixed or closed by this PR. See [GitHub Help: Closing issues using keywords](https://help.github.com/articles/closing-issues-via-commit-messages/).
|
Before submitting your PR, please indicate which issues are either fixed or closed by this PR. See [GitHub Help: Closing issues using keywords](https://help.github.com/articles/closing-issues-via-commit-messages/).
|
||||||
|
|
||||||
- [ ] I am aware the project is currently in maintenance-only mode. See [README](https://github.com/filebrowser/community/blob/master/README.md)
|
- [ ] I am aware this project is being **archived on 2026-09-01**, that new features aren't accepted, and that bug fixes are looked at but not guaranteed to be merged. See [README](https://github.com/filebrowser/filebrowser/blob/master/README.md)
|
||||||
- [ ] I am aware that translations MUST be made through [Transifex](https://app.transifex.com/file-browser/file-browser/) and that this PR is NOT a translation update
|
- [ ] I am aware that translations MUST be made through [Transifex](https://app.transifex.com/file-browser/file-browser/) and that this PR is NOT a translation update
|
||||||
- [ ] I am making a PR against the `master` branch.
|
- [ ] I am making a PR against the `master` branch.
|
||||||
- [ ] I am sure File Browser can be successfully built. See [builds](https://github.com/filebrowser/community/blob/master/builds.md) and [development](https://github.com/filebrowser/community/blob/master/development.md).
|
- [ ] I am sure File Browser can be successfully built. See [CONTRIBUTING.md](https://github.com/filebrowser/filebrowser/blob/master/CONTRIBUTING.md).
|
||||||
+31
-13
@@ -14,7 +14,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v6
|
||||||
with:
|
with:
|
||||||
package_json_file: "frontend/package.json"
|
package_json_file: "frontend/package.json"
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
@@ -27,6 +27,24 @@ jobs:
|
|||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile
|
||||||
pnpm run lint
|
pnpm run lint
|
||||||
|
|
||||||
|
test-frontend:
|
||||||
|
name: Test Frontend
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: pnpm/action-setup@v6
|
||||||
|
with:
|
||||||
|
package_json_file: "frontend/package.json"
|
||||||
|
- uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: "24.x"
|
||||||
|
cache: "pnpm"
|
||||||
|
cache-dependency-path: "frontend/pnpm-lock.yaml"
|
||||||
|
- working-directory: frontend
|
||||||
|
run: |
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
|
pnpm run test
|
||||||
|
|
||||||
lint-backend:
|
lint-backend:
|
||||||
name: Lint Backend
|
name: Lint Backend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -34,7 +52,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: "1.25.x"
|
go-version: "1.26.x"
|
||||||
- uses: golangci/golangci-lint-action@v9
|
- uses: golangci/golangci-lint-action@v9
|
||||||
with:
|
with:
|
||||||
version: "latest"
|
version: "latest"
|
||||||
@@ -46,7 +64,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: "1.25.x"
|
go-version: "1.26.x"
|
||||||
- run: go test --race ./...
|
- run: go test --race ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@@ -58,8 +76,8 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '1.25'
|
go-version: '1.26'
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v6
|
||||||
with:
|
with:
|
||||||
package_json_file: "frontend/package.json"
|
package_json_file: "frontend/package.json"
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
@@ -68,7 +86,7 @@ jobs:
|
|||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
cache-dependency-path: "frontend/pnpm-lock.yaml"
|
cache-dependency-path: "frontend/pnpm-lock.yaml"
|
||||||
- name: Install Task
|
- name: Install Task
|
||||||
uses: go-task/setup-task@v1
|
uses: go-task/setup-task@v2
|
||||||
- run: task build
|
- run: task build
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@@ -82,8 +100,8 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '1.25'
|
go-version: '1.26'
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v6
|
||||||
with:
|
with:
|
||||||
package_json_file: "frontend/package.json"
|
package_json_file: "frontend/package.json"
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
@@ -92,19 +110,19 @@ jobs:
|
|||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
cache-dependency-path: "frontend/pnpm-lock.yaml"
|
cache-dependency-path: "frontend/pnpm-lock.yaml"
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v4
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
- name: Install Task
|
- name: Install Task
|
||||||
uses: go-task/setup-task@v1
|
uses: go-task/setup-task@v2
|
||||||
- run: task build:frontend
|
- run: task build:frontend
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v7
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --clean
|
args: release --clean
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
- name: Install Task
|
- name: Install Task
|
||||||
uses: go-task/setup-task@v1
|
uses: go-task/setup-task@v2
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: task docs
|
run: task docs
|
||||||
|
|
||||||
@@ -39,14 +39,14 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
- name: Install Task
|
- name: Install Task
|
||||||
uses: go-task/setup-task@v1
|
uses: go-task/setup-task@v2
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: task docs
|
run: task docs
|
||||||
- name: Upload static files as artifact
|
- name: Upload static files as artifact
|
||||||
uses: actions/upload-pages-artifact@v4
|
uses: actions/upload-pages-artifact@v5
|
||||||
with:
|
with:
|
||||||
path: www/public
|
path: www/public
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v5
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v3
|
||||||
# When the previous steps fails, the workflow would stop. By adding this
|
# When the previous steps fails, the workflow would stop. By adding this
|
||||||
# condition you can continue the execution with the populated error message.
|
# condition you can continue the execution with the populated error message.
|
||||||
if: always() && (steps.lint_pr_title.outputs.error_message != null)
|
if: always() && (steps.lint_pr_title.outputs.error_message != null)
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
# Delete a previous comment when the issue has been resolved
|
# Delete a previous comment when the issue has been resolved
|
||||||
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
|
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
header: pr-title-lint-error
|
header: pr-title-lint-error
|
||||||
delete: true
|
delete: true
|
||||||
@@ -17,6 +17,7 @@ builds:
|
|||||||
- linux
|
- linux
|
||||||
- windows
|
- windows
|
||||||
- freebsd
|
- freebsd
|
||||||
|
- openbsd
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- "386"
|
- "386"
|
||||||
@@ -30,6 +31,12 @@ builds:
|
|||||||
ignore:
|
ignore:
|
||||||
- goos: darwin
|
- goos: darwin
|
||||||
goarch: "386"
|
goarch: "386"
|
||||||
|
# Experimental, may not work properly
|
||||||
|
- goos: openbsd
|
||||||
|
goarch: riscv64
|
||||||
|
# Broken as of Go 1.24, deprecated as of Go 1.26
|
||||||
|
- goos: windows
|
||||||
|
goarch: arm
|
||||||
- goos: freebsd
|
- goos: freebsd
|
||||||
goarch: arm
|
goarch: arm
|
||||||
|
|
||||||
|
|||||||
+415
@@ -2,6 +2,421 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
||||||
|
|
||||||
|
## [2.63.22](https://github.com/filebrowser/filebrowser/compare/v2.63.21...v2.63.22) (2026-07-27)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* enforce rules on recursive operations and expired proxy tokens ([#6053](https://github.com/filebrowser/filebrowser/issues/6053)) ([72faf6d](https://github.com/filebrowser/filebrowser/commit/72faf6dd3c85628e332d3e567124b86708ce2695))
|
||||||
|
* make the sidebar scrollable when content overflows ([#6031](https://github.com/filebrowser/filebrowser/issues/6031)) ([a789f29](https://github.com/filebrowser/filebrowser/commit/a789f29ceec4734e7471592921d1ce67f1a10a7e))
|
||||||
|
* unblock stalled and frozen uploads ([0b925cb](https://github.com/filebrowser/filebrowser/commit/0b925cbca940fe0b2726827cf66783da05c64f5e)), closes [#6006](https://github.com/filebrowser/filebrowser/issues/6006), references [#5987](https://github.com/filebrowser/filebrowser/issues/5987)
|
||||||
|
* use absolute URLs for the PWA manifest icon sources ([#6032](https://github.com/filebrowser/filebrowser/issues/6032)) ([cfff843](https://github.com/filebrowser/filebrowser/commit/cfff84306af66deedfdc9248300919b3ddd9a7f0))
|
||||||
|
## [2.63.21](https://github.com/filebrowser/filebrowser/compare/v2.63.20...v2.63.21) (2026-07-26)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **http:** canonicalize paths before checking access rules ([#6045](https://github.com/filebrowser/filebrowser/issues/6045)) ([e6d70cf](https://github.com/filebrowser/filebrowser/commit/e6d70cf24c0cd79a1787601dc99104ec7e7ca3ef))
|
||||||
|
|
||||||
|
### Reverts
|
||||||
|
|
||||||
|
* Revert "chore(deps): update all non-major dependencies (#5946)" ([0dd8905](https://github.com/filebrowser/filebrowser/commit/0dd89058867f87a7bc04aa7517d21528a280e27c)), references [#5946](https://github.com/filebrowser/filebrowser/issues/5946)
|
||||||
|
## [2.63.20](https://github.com/filebrowser/filebrowser/compare/v2.63.19...v2.63.20) (2026-07-25)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* use aria-selected ([67e893e](https://github.com/filebrowser/filebrowser/commit/67e893eee7ee411e166d3fcd759a87b6f0971277))
|
||||||
|
* **users:** make the provisioned scope check atomic with the save ([fb6aeba](https://github.com/filebrowser/filebrowser/commit/fb6aeba9eae7b8eb401e0db325973781e1ffd08b))
|
||||||
|
## [2.63.19](https://github.com/filebrowser/filebrowser/compare/v2.63.18...v2.63.19) (2026-07-25)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* accessibility and security improvements ([#6033](https://github.com/filebrowser/filebrowser/issues/6033)) ([b21b124](https://github.com/filebrowser/filebrowser/commit/b21b1245ae1b57f031b2f5d787f32a17532402c0))
|
||||||
|
* **auth:** isolate auto-provisioned proxy and hook users to their own home ([8ddd3d1](https://github.com/filebrowser/filebrowser/commit/8ddd3d1db9b9f5727d0bf96ea0e7d9a25a8692b4))
|
||||||
|
* **http:** delete abandoned TUS uploads through the scoped filesystem ([9bd79c3](https://github.com/filebrowser/filebrowser/commit/9bd79c3aaeb4a55b0e69cf8976c4a258db2f5e06))
|
||||||
|
* **http:** enforce declared Upload-Length on TUS uploads ([4daddec](https://github.com/filebrowser/filebrowser/commit/4daddec6f200b03a721197d8c0b4b652c994894e))
|
||||||
|
* **http:** enforce download permission on the checksum branch ([6c69b5c](https://github.com/filebrowser/filebrowser/commit/6c69b5cd895e15b29e563200a9a6dfc27b06525e))
|
||||||
|
* **http:** run upload hooks for directories ([#6034](https://github.com/filebrowser/filebrowser/issues/6034)) ([9b78324](https://github.com/filebrowser/filebrowser/commit/9b78324d773c790951cc6a97840c4b55f66b5f3d))
|
||||||
|
* process --FollowExternalSymlinks ([c05c668](https://github.com/filebrowser/filebrowser/commit/c05c66814891c3cccef394162e428444b53394e4))
|
||||||
|
* return error instead of panicking on an unreadable directory during copy ([#6020](https://github.com/filebrowser/filebrowser/issues/6020)) ([ac46cf0](https://github.com/filebrowser/filebrowser/commit/ac46cf06719575477d5125e7472037c204b3702d))
|
||||||
|
* **storage:** reject case-folded home directory collisions ([4b8a8d7](https://github.com/filebrowser/filebrowser/commit/4b8a8d72ce554dde378b5091da74aa930ea18327))
|
||||||
|
* **upload:** handle encoded path conflicts safely ([#6040](https://github.com/filebrowser/filebrowser/issues/6040)) ([7361d91](https://github.com/filebrowser/filebrowser/commit/7361d91ea2e8cc200a0f40ac84adcd02aedc9ed2))
|
||||||
|
## [2.63.18](https://github.com/filebrowser/filebrowser/compare/v2.63.17...v2.63.18) (2026-07-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* avoid recursive conflict checks for copy and move ([#6009](https://github.com/filebrowser/filebrowser/issues/6009)) ([dfc2e88](https://github.com/filebrowser/filebrowser/commit/dfc2e887e1a19d54984a0d7e39a2a63caf73ef19))
|
||||||
|
* deduplicate PT language ([4470288](https://github.com/filebrowser/filebrowser/commit/4470288ba1828a14453a99348fd22c62aa0b9460))
|
||||||
|
* **preview:** keep the EPUB table-of-contents button clear of the header ([#6010](https://github.com/filebrowser/filebrowser/issues/6010)) ([aac2516](https://github.com/filebrowser/filebrowser/commit/aac25166378422135e624e305c410c54a39374fb))
|
||||||
|
|
||||||
|
## [2.63.17](https://github.com/filebrowser/filebrowser/compare/v2.63.16...v2.63.17) (2026-06-27)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **auth:** reject signup when normalized home dir collides (GHSA-7rc3-g7h6-22m7) ([883a36f](https://github.com/filebrowser/filebrowser/commit/883a36f02fcb69566a8628cb47f18fdc73348387))
|
||||||
|
* match admin share paths by owner scope ([#5992](https://github.com/filebrowser/filebrowser/issues/5992)) ([43a404c](https://github.com/filebrowser/filebrowser/commit/43a404ca69bf25553bfbbb2b446f0f53077c6302))
|
||||||
|
* normalize recursive listing paths to forward slashes ([#6003](https://github.com/filebrowser/filebrowser/issues/6003)) ([2472fbc](https://github.com/filebrowser/filebrowser/commit/2472fbcd30502606feb11fbc8b8dc4f3803e6641))
|
||||||
|
* preserve SRT subtitle line breaks ([#6002](https://github.com/filebrowser/filebrowser/issues/6002)) ([d9cf2f0](https://github.com/filebrowser/filebrowser/commit/d9cf2f0100d2c4892cad8e339eacca96df1aa5b6))
|
||||||
|
* **raw:** neutralize backslashes in archive entry names (GHSA-83xp-526h-j3ww) ([8503ba6](https://github.com/filebrowser/filebrowser/commit/8503ba61ff51d48a7313896483d130eb6a5abfe0))
|
||||||
|
* **share:** delete exact directory share on trailing-slash delete (GHSA-pp88-jhwj-5qh5) ([f30fca6](https://github.com/filebrowser/filebrowser/commit/f30fca636c1af9ef401e9a82ff60391cb3db97e1))
|
||||||
|
* **share:** stop exposing password hash and bypass token in share API (GHSA-833g-cqhp-h72j) ([ec13054](https://github.com/filebrowser/filebrowser/commit/ec130546713c44cd24556907552ac554c7f809c9))
|
||||||
|
|
||||||
|
## [2.63.16](https://github.com/filebrowser/filebrowser/compare/v2.63.15...v2.63.16) (2026-06-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* dangling symlink, write, delete scope bugs ([64511ce](https://github.com/filebrowser/filebrowser/commit/64511ce45e3be379e965f7f4fb0929a068d5bb81))
|
||||||
|
* restore symlink behavior as opt-in followExternalSymlinks ([a106392](https://github.com/filebrowser/filebrowser/commit/a1063925e15ef27f9d5dc26aae371bbf52af608c))
|
||||||
|
|
||||||
|
## [2.63.15](https://github.com/filebrowser/filebrowser/compare/v2.63.14...v2.63.15) (2026-06-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* restore ScopedFs RealPath ([#5986](https://github.com/filebrowser/filebrowser/issues/5986)) ([403d2bb](https://github.com/filebrowser/filebrowser/commit/403d2bbd3357aa57e78745b52dcdad3490901bb3))
|
||||||
|
|
||||||
|
## [2.63.14](https://github.com/filebrowser/filebrowser/compare/v2.63.13...v2.63.14) (2026-06-07)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* recursive check ([3406d3d](https://github.com/filebrowser/filebrowser/commit/3406d3d7f98dfc3c16e4ff7ff4a87e3bdfe221dd))
|
||||||
|
|
||||||
|
|
||||||
|
### Refactorings
|
||||||
|
|
||||||
|
* ScopedFs to avoid escaping symlinks ([7c2c0a1](https://github.com/filebrowser/filebrowser/commit/7c2c0a11b31b2bb214d741005a0b02b1764208b3))
|
||||||
|
|
||||||
|
## [2.63.13](https://github.com/filebrowser/filebrowser/compare/v2.63.12...v2.63.13) (2026-06-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* copy/move allow overwrite ([a1a514d](https://github.com/filebrowser/filebrowser/commit/a1a514dcbb216d2080412c5354eea1e1fb033050))
|
||||||
|
|
||||||
|
|
||||||
|
### Refactorings
|
||||||
|
|
||||||
|
* cleanup and simplify upload.ts ([5f7311d](https://github.com/filebrowser/filebrowser/commit/5f7311d32437e98d7c14c7b307a4f68109275535))
|
||||||
|
|
||||||
|
## [2.63.12](https://github.com/filebrowser/filebrowser/compare/v2.63.11...v2.63.12) (2026-06-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* await copy move conflict detection ([#5978](https://github.com/filebrowser/filebrowser/issues/5978)) ([c1abe8f](https://github.com/filebrowser/filebrowser/commit/c1abe8f561208bf36bde70879d1a15ef9de998fa))
|
||||||
|
* keep mobile file sort controls visible ([#5977](https://github.com/filebrowser/filebrowser/issues/5977)) ([0bb2768](https://github.com/filebrowser/filebrowser/commit/0bb2768754d11b865d68e72dcd7cebb232a6308a))
|
||||||
|
* skip inaccessible children when listing directories ([#5958](https://github.com/filebrowser/filebrowser/issues/5958)) ([7b7ff8a](https://github.com/filebrowser/filebrowser/commit/7b7ff8ae8f97393b2e6ae6e061c1f780077c32b6))
|
||||||
|
|
||||||
|
## [2.63.11](https://github.com/filebrowser/filebrowser/compare/v2.63.10...v2.63.11) (2026-06-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* incomplete fix for symlinked directories let scopes users and public-share recipients read and write files outside of scope ([3471ec2](https://github.com/filebrowser/filebrowser/commit/3471ec2c4b6473831c72ee889cb3c1a6849a1fb1))
|
||||||
|
|
||||||
|
## [2.63.10](https://github.com/filebrowser/filebrowser/compare/v2.63.9...v2.63.10) (2026-06-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* allow writes when user scope resolves to filesystem root ([6b04cbf](https://github.com/filebrowser/filebrowser/commit/6b04cbf5e9db1f5b9c0b1624843607ce2881cfc4))
|
||||||
|
|
||||||
|
## [2.63.9](https://github.com/filebrowser/filebrowser/compare/v2.63.8...v2.63.9) (2026-06-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* force octet-stream for attachment downloads ([#5942](https://github.com/filebrowser/filebrowser/issues/5942)) ([103acd1](https://github.com/filebrowser/filebrowser/commit/103acd15fe57554fe0246bfe70a49b6cb4ae0c51))
|
||||||
|
* prevent symlink scope escape in copy/move/rename ([cdd666f](https://github.com/filebrowser/filebrowser/commit/cdd666fc95f569ad583c32391e45646fed676dfd))
|
||||||
|
* set X-Content-Type-Options: nosniff on raw file responses ([35db07d](https://github.com/filebrowser/filebrowser/commit/35db07d0159c520a6b3c969ac52033593914fadd))
|
||||||
|
* use constant-time comparison for share access token ([1951436](https://github.com/filebrowser/filebrowser/commit/19514367adf2d9fe5be2b7666e397979ea679b94))
|
||||||
|
|
||||||
|
## [2.63.8](https://github.com/filebrowser/filebrowser/compare/v2.63.7...v2.63.8) (2026-06-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* check if share is within scope when creating ([ca019ae](https://github.com/filebrowser/filebrowser/commit/ca019ae7d966a7c28de2b2341271cd13e3458ae6))
|
||||||
|
|
||||||
|
## [2.63.7](https://github.com/filebrowser/filebrowser/compare/v2.63.6...v2.63.7) (2026-06-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* disallow shares for non-existent paths ([166583d](https://github.com/filebrowser/filebrowser/commit/166583db632e088e9f0adce30aec43bb9d9019f4))
|
||||||
|
|
||||||
|
## [2.63.6](https://github.com/filebrowser/filebrowser/compare/v2.63.5...v2.63.6) (2026-06-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* address three security disclosures (archive traversal, login DoS, symlink escape) ([847d08b](https://github.com/filebrowser/filebrowser/commit/847d08bdd135e5c3659f2e6dea2f0cd36617af9b))
|
||||||
|
* cross-user unauthorized share-link deletion ([0231b7e](https://github.com/filebrowser/filebrowser/commit/0231b7ebdfbe77a6c54027d30c4856c3fd81ee4d))
|
||||||
|
* incorrect access control in public directory shares via rule path rebasing ([e07c59d](https://github.com/filebrowser/filebrowser/commit/e07c59df0b850f5924d5b1683e8609661ddcf534))
|
||||||
|
* parse csv files with uneven columns in their rows ([#5965](https://github.com/filebrowser/filebrowser/issues/5965)) ([5328e80](https://github.com/filebrowser/filebrowser/commit/5328e80d2e88d1c279a1250a7dfee4fc96f703ec))
|
||||||
|
* remove undocumented hook auth with shell replacement ([34ae34e](https://github.com/filebrowser/filebrowser/commit/34ae34e764d72540c039f1f5ea2ec4c974168c1f))
|
||||||
|
|
||||||
|
## [2.63.5](https://github.com/filebrowser/filebrowser/compare/v2.63.4...v2.63.5) (2026-05-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **router:** handle undefined catchAll param on root redirect ([#5955](https://github.com/filebrowser/filebrowser/issues/5955)) ([6ad8160](https://github.com/filebrowser/filebrowser/commit/6ad8160aa3309314c1b471c5090b67c824464396))
|
||||||
|
|
||||||
|
## [2.63.4](https://github.com/filebrowser/filebrowser/compare/v2.63.3...v2.63.4) (2026-05-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* show item shares from all users to admins ([#5941](https://github.com/filebrowser/filebrowser/issues/5941)) ([9cc18a8](https://github.com/filebrowser/filebrowser/commit/9cc18a81e3e1b8bf96795bfbe3d83ced294ecfd7))
|
||||||
|
|
||||||
|
## [2.63.3](https://github.com/filebrowser/filebrowser/compare/v2.63.2...v2.63.3) (2026-05-05)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* correct environment variable in compose.yaml ([#5910](https://github.com/filebrowser/filebrowser/issues/5910)) ([41b801d](https://github.com/filebrowser/filebrowser/commit/41b801d30c736c8ca863e2be6aece7d99e92129e))
|
||||||
|
* Fix conflict modal and add a resume transfert option ([#5884](https://github.com/filebrowser/filebrowser/issues/5884)) ([f4e1485](https://github.com/filebrowser/filebrowser/commit/f4e148523e0dc9242081831b53544396f995c611))
|
||||||
|
|
||||||
|
## [2.63.2](https://github.com/filebrowser/filebrowser/compare/v2.63.1...v2.63.2) (2026-04-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **preview:** let arrow keys seek video instead of switching files ([#5895](https://github.com/filebrowser/filebrowser/issues/5895)) ([0fadf28](https://github.com/filebrowser/filebrowser/commit/0fadf28b18e506ddca0027e83ebe567ac57932bf))
|
||||||
|
|
||||||
|
## [2.63.1](https://github.com/filebrowser/filebrowser/compare/v2.63.0...v2.63.1) (2026-04-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* check download permission in resource handler ([#5891](https://github.com/filebrowser/filebrowser/issues/5891)) ([1e03fea](https://github.com/filebrowser/filebrowser/commit/1e03feadb550e4414b5589a6a8df57f538efba15))
|
||||||
|
* check share owner permissions on public share access ([#5888](https://github.com/filebrowser/filebrowser/issues/5888)) ([7dbf7a3](https://github.com/filebrowser/filebrowser/commit/7dbf7a3528234b2a9ee9c4115e8ecf58d258ca51))
|
||||||
|
* enforce directory boundary in rule path matching ([#5889](https://github.com/filebrowser/filebrowser/issues/5889)) ([8adf127](https://github.com/filebrowser/filebrowser/commit/8adf127c7d33585333b8030869f6f318e6517179))
|
||||||
|
* restrict default permissions for proxy-auth auto-provisioned users ([#5890](https://github.com/filebrowser/filebrowser/issues/5890)) ([f13c7c8](https://github.com/filebrowser/filebrowser/commit/f13c7c8cffd6d58ff29c4a6763ced1385f69961e))
|
||||||
|
|
||||||
|
## [2.63.0](https://github.com/filebrowser/filebrowser/compare/v2.62.2...v2.63.0) (2026-04-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* enable copy operation on drag‑and‑drop with ctrl key ([#5882](https://github.com/filebrowser/filebrowser/issues/5882)) ([876cdb3](https://github.com/filebrowser/filebrowser/commit/876cdb34265b090c2a74a69509f4106f2c5e8726))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* check download permission when sharing permission is enabled ([#5875](https://github.com/filebrowser/filebrowser/issues/5875)) ([0f39bd0](https://github.com/filebrowser/filebrowser/commit/0f39bd055efdadc15abd2f8146cf5da3793f8318))
|
||||||
|
* **tus:** reject negative upload-length to prevent inconsistent cache entry ([#5876](https://github.com/filebrowser/filebrowser/issues/5876)) ([7a16129](https://github.com/filebrowser/filebrowser/commit/7a16129bfc07dbdc2fa52b99d2985c1bc0ea12e2))
|
||||||
|
|
||||||
|
## [2.62.2](https://github.com/filebrowser/filebrowser/compare/v2.62.1...v2.62.2) (2026-03-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* disable scripted content in epub ([126227b](https://github.com/filebrowser/filebrowser/commit/126227bb2754eee15cd7c722916c3bb8821084a2))
|
||||||
|
* double slash in TUS upload path when readEntries returns multiple batches ([#5848](https://github.com/filebrowser/filebrowser/issues/5848)) ([432f3e6](https://github.com/filebrowser/filebrowser/commit/432f3e60ffdf92af6f8f56119a1bac8084f52a60))
|
||||||
|
* include filename in Content-Disposition header for inline downloads ([#5860](https://github.com/filebrowser/filebrowser/issues/5860)) ([8f81b77](https://github.com/filebrowser/filebrowser/commit/8f81b77cf2a3da0a445f3700fbf4a0091ea46c07))
|
||||||
|
* json escaping ([c406bda](https://github.com/filebrowser/filebrowser/commit/c406bda0c73ac8b187e23a97c05521edc77efa84))
|
||||||
|
* self-registered users don't get execute perms ([b6a4fb1](https://github.com/filebrowser/filebrowser/commit/b6a4fb1f27f4d894b384c0f3acacda276d1338a5))
|
||||||
|
* shares listing ([a8fc165](https://github.com/filebrowser/filebrowser/commit/a8fc1657b796c5da7190466beff13e680721b6d3))
|
||||||
|
* touch Redis upload cache key on GetLength to prevent TTL expiry ([#5850](https://github.com/filebrowser/filebrowser/issues/5850)) ([4812536](https://github.com/filebrowser/filebrowser/commit/48125365551ce2b27790aaafd7594cf5ce52f1ba))
|
||||||
|
* use html/template ([d9f9460](https://github.com/filebrowser/filebrowser/commit/d9f9460c1e51d10a25065e10358c12d5ced66ad9))
|
||||||
|
|
||||||
|
## [2.62.1](https://github.com/filebrowser/filebrowser/compare/v2.62.0...v2.62.1) (2026-03-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* base url/reverse proxy redirect ([fc80f4f](https://github.com/filebrowser/filebrowser/commit/fc80f4f44c856ddc19df3024c245990fffd55630))
|
||||||
|
|
||||||
|
## [2.62.0](https://github.com/filebrowser/filebrowser/compare/v2.61.2...v2.62.0) (2026-03-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Updates for project File Browser ([#5807](https://github.com/filebrowser/filebrowser/issues/5807)) ([858eb42](https://github.com/filebrowser/filebrowser/commit/858eb426515ec55172e9cca47bdf1e25a0d0d81d))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* allow deleting the user's own account ([#5820](https://github.com/filebrowser/filebrowser/issues/5820)) ([f04af0c](https://github.com/filebrowser/filebrowser/commit/f04af0cac6c808b8e7c9a9651380c252c4de9132))
|
||||||
|
* around languages ([c21af07](https://github.com/filebrowser/filebrowser/commit/c21af0791a5df458c2ddb81ce9ae44b772b6d82d))
|
||||||
|
* clean path in patch handler ([4bd7d69](https://github.com/filebrowser/filebrowser/commit/4bd7d69c82163b201a987e99c0c50d7ecc6ee5f1))
|
||||||
|
* make perm.share depend on share.download ([09a2616](https://github.com/filebrowser/filebrowser/commit/09a26166b4f79446e7174c017380f6db45444e32))
|
||||||
|
* properly surface config parse errors ([#5822](https://github.com/filebrowser/filebrowser/issues/5822)) ([ef2e999](https://github.com/filebrowser/filebrowser/commit/ef2e9992dc3098f6c4722c2a98966cd8abf8bab5))
|
||||||
|
* signup handler shouldn't create admins ([a63573b](https://github.com/filebrowser/filebrowser/commit/a63573b67eb302167b4c4f218361a2d0c138deab))
|
||||||
|
* **tus:** preserve percent-encoded upload paths in Location header ([#5817](https://github.com/filebrowser/filebrowser/issues/5817)) ([0542fc0](https://github.com/filebrowser/filebrowser/commit/0542fc0ba43740c967414eebd156bac86ad80376))
|
||||||
|
* **upload:** avoid skipping whole folder upload on conflict modal ([#5814](https://github.com/filebrowser/filebrowser/issues/5814)) ([f5f8b60](https://github.com/filebrowser/filebrowser/commit/f5f8b60b331a07729a1fed1ed065cb6fc20930ea))
|
||||||
|
* **upload:** don't mark every folder-upload file as conflicting ([#5813](https://github.com/filebrowser/filebrowser/issues/5813)) ([6dcef07](https://github.com/filebrowser/filebrowser/commit/6dcef07f40d550acee63dd01e0a3bcf78532f690))
|
||||||
|
|
||||||
|
## [2.61.2](https://github.com/filebrowser/filebrowser/compare/v2.61.1...v2.61.2) (2026-03-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* added dateFormat to getUserDefaults so this is respected in the … ([#5804](https://github.com/filebrowser/filebrowser/issues/5804)) ([8598db2](https://github.com/filebrowser/filebrowser/commit/8598db2accccf5b87353e5e718b2ad1c946e5c44))
|
||||||
|
* avoid sending the same name in the file/folder rename modal ([#5806](https://github.com/filebrowser/filebrowser/issues/5806)) ([d7b00ce](https://github.com/filebrowser/filebrowser/commit/d7b00ce5f672b7ce0b26ce31abdfc74f8b00b939))
|
||||||
|
* **csv-viewer:** add support for missing text encodings in dropdown list ([#5795](https://github.com/filebrowser/filebrowser/issues/5795)) ([4af3f85](https://github.com/filebrowser/filebrowser/commit/4af3f85e64e795e8ae1d87d4caee8185028294ac))
|
||||||
|
* **frontend:** do not delete original assets ([4d9e6b8](https://github.com/filebrowser/filebrowser/commit/4d9e6b821852203cef67233791a922013bd5b64d))
|
||||||
|
* **frontend:** input password type ([8ee5576](https://github.com/filebrowser/filebrowser/commit/8ee55761a1aa9bc091d8466c44f03c2043a8ca79))
|
||||||
|
* validate current password with a modal ([#5805](https://github.com/filebrowser/filebrowser/issues/5805)) ([177c7cf](https://github.com/filebrowser/filebrowser/commit/177c7cfcce36779e2c5ebaa4b59a055dd1e17648))
|
||||||
|
|
||||||
|
## [2.61.1](https://github.com/filebrowser/filebrowser/compare/v2.61.0...v2.61.1) (2026-03-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* check for correct permission in TUS Delete ([7ed1425](https://github.com/filebrowser/filebrowser/commit/7ed1425115be602c2b23236c410098ea2d74b42f))
|
||||||
|
|
||||||
|
## [2.61.0](https://github.com/filebrowser/filebrowser/compare/v2.60.0...v2.61.0) (2026-02-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* improved conflict resolution when uploading/copying/moving files ([#5765](https://github.com/filebrowser/filebrowser/issues/5765)) ([aa80909](https://github.com/filebrowser/filebrowser/commit/aa809096eb35fdfbdeb6784b1ebfe2ca1e42f52b))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* correctly clean path ([31194fb](https://github.com/filebrowser/filebrowser/commit/31194fb57a5b92e7155219d7ec7273028fcb2e83))
|
||||||
|
|
||||||
|
## [2.60.0](https://github.com/filebrowser/filebrowser/compare/v2.59.0...v2.60.0) (2026-02-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Updates for project File Browser ([#5764](https://github.com/filebrowser/filebrowser/issues/5764)) ([9940bdd](https://github.com/filebrowser/filebrowser/commit/9940bdd663ff5141110778524b8a22c957036e78))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* always show separators and encoding list in the CSV viewer ([#5774](https://github.com/filebrowser/filebrowser/issues/5774)) ([3169a14](https://github.com/filebrowser/filebrowser/commit/3169a14a4d63a0a11a5288f4f3a674c0a0edb972))
|
||||||
|
* modal lifecycle issues, multiple modals, new directory creation and discard changes behavior ([#5773](https://github.com/filebrowser/filebrowser/issues/5773)) ([200d501](https://github.com/filebrowser/filebrowser/commit/200d5015472c79d5caa683ea291ebf500356a39f))
|
||||||
|
|
||||||
|
## [2.59.0](https://github.com/filebrowser/filebrowser/compare/v2.58.0...v2.59.0) (2026-02-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add 'Open direct' button to images ([#5678](https://github.com/filebrowser/filebrowser/issues/5678)) ([804b14b](https://github.com/filebrowser/filebrowser/commit/804b14b698aa218fa5c2aaba687e72c5f7617f0f))
|
||||||
|
* Updates for project File Browser ([#5760](https://github.com/filebrowser/filebrowser/issues/5760)) ([63a76ef](https://github.com/filebrowser/filebrowser/commit/63a76ef18c51121e08634810a894c1e22a870428))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* render equations in markdown preview ([#5745](https://github.com/filebrowser/filebrowser/issues/5745)) ([0467326](https://github.com/filebrowser/filebrowser/commit/0467326d5c082c42c0ede88ee2d3472f5fb65600))
|
||||||
|
|
||||||
|
## [2.58.0](https://github.com/filebrowser/filebrowser/compare/v2.57.1...v2.58.0) (2026-02-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* nederlands ([88b97de](https://github.com/filebrowser/filebrowser/commit/88b97def9ee72fe6e8094209aebb71830b7305be))
|
||||||
|
* support for multiple encodings in CSV files ([#5756](https://github.com/filebrowser/filebrowser/issues/5756)) ([f67bccf](https://github.com/filebrowser/filebrowser/commit/f67bccf8c5470cb280fe854d92aa2666c270bcf5))
|
||||||
|
* Updates for project File Browser ([#5749](https://github.com/filebrowser/filebrowser/issues/5749)) ([c94870f](https://github.com/filebrowser/filebrowser/commit/c94870fcfe1b4acb2db9ab897b9f7d35e3b75770))
|
||||||
|
* Updates for project File Browser ([#5759](https://github.com/filebrowser/filebrowser/issues/5759)) ([5e8f5be](https://github.com/filebrowser/filebrowser/commit/5e8f5be245fd0126545ef5ca61c2d428ac128ad5))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **frontend:** pnpm lock ([b09960e](https://github.com/filebrowser/filebrowser/commit/b09960e538387ff29371c80be1584720f65181e7))
|
||||||
|
* ignore version.go ([1f7904d](https://github.com/filebrowser/filebrowser/commit/1f7904dad21a87f04e1543ee10b60ce79e5eebe9))
|
||||||
|
* respect Accept-Encoding for pre-compressed JS ([#5750](https://github.com/filebrowser/filebrowser/issues/5750)) ([6a76dfe](https://github.com/filebrowser/filebrowser/commit/6a76dfeba9254a938e320928c67d110f73f83715))
|
||||||
|
* wrap response text in Error before reject ([#5753](https://github.com/filebrowser/filebrowser/issues/5753)) ([e5bc0d3](https://github.com/filebrowser/filebrowser/commit/e5bc0d3cce18fa7b069688b176b99efbb67382d2))
|
||||||
|
|
||||||
|
## [2.57.1](https://github.com/filebrowser/filebrowser/compare/v2.57.0...v2.57.1) (2026-02-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* normalize fields capitalization ([ff2f004](https://github.com/filebrowser/filebrowser/commit/ff2f00498cff151e2fb1f5f0b16963bf33c3d6d4))
|
||||||
|
* remove skip clean ([489af40](https://github.com/filebrowser/filebrowser/commit/489af403a19057f6b6b4b1dc0e48cbb26a202ef9))
|
||||||
|
|
||||||
|
## [2.57.0](https://github.com/filebrowser/filebrowser/compare/v2.56.0...v2.57.0) (2026-02-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add Redis upload cache for multi-replica deployments ([#5724](https://github.com/filebrowser/filebrowser/issues/5724)) ([08d7a15](https://github.com/filebrowser/filebrowser/commit/08d7a1504c42c115fdd82d3845694fe87147f1db))
|
||||||
|
* Updates for project File Browser ([#5725](https://github.com/filebrowser/filebrowser/issues/5725)) ([8fee256](https://github.com/filebrowser/filebrowser/commit/8fee2561afbf968ed577bc4139562a42b2278243))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* adjust yaml config decodification to yaml.v3 ([#5722](https://github.com/filebrowser/filebrowser/issues/5722)) ([b594d4d](https://github.com/filebrowser/filebrowser/commit/b594d4d4e28a1b35e69d81d2c35948fe0d629888))
|
||||||
|
* avoid 409 conflict when renaming files differing only by case ([#5729](https://github.com/filebrowser/filebrowser/issues/5729)) ([d441b28](https://github.com/filebrowser/filebrowser/commit/d441b28f432c3448a29ac828400321f1f4ed32d9))
|
||||||
|
|
||||||
|
## [2.56.0](https://github.com/filebrowser/filebrowser/compare/v2.55.0...v2.56.0) (2026-01-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Updates for project File Browser ([#5698](https://github.com/filebrowser/filebrowser/issues/5698)) ([f0f2f1f](https://github.com/filebrowser/filebrowser/commit/f0f2f1ff069aae566d8bf25ec275da59f29a96bc))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* adjust columns of the table from the "users ls" command ([#5716](https://github.com/filebrowser/filebrowser/issues/5716)) ([3032a1f](https://github.com/filebrowser/filebrowser/commit/3032a1fade43737c51c49b5ccda34f336394c2ed))
|
||||||
|
* avoid clearing selection when clicking elements outside the empty area ([#5715](https://github.com/filebrowser/filebrowser/issues/5715)) ([004488c](https://github.com/filebrowser/filebrowser/commit/004488c15b3c30784e1ea564b3ca9feec7bcad08))
|
||||||
|
|
||||||
|
## [2.55.0](https://github.com/filebrowser/filebrowser/compare/v2.54.0...v2.55.0) (2026-01-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* added cut, copy, paste and show command palette functions in header ([#5648](https://github.com/filebrowser/filebrowser/issues/5648)) ([785b7ab](https://github.com/filebrowser/filebrowser/commit/785b7abb7ba7a86cc0deae1052c319ff714c222c))
|
||||||
|
* update translations ([#5677](https://github.com/filebrowser/filebrowser/issues/5677)) ([e7ea1ad](https://github.com/filebrowser/filebrowser/commit/e7ea1ad27d3d17e249489d3338be40bfea15e2a1))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* prevent context menu clicks from clearing file selection ([#5681](https://github.com/filebrowser/filebrowser/issues/5681)) ([59ca0c3](https://github.com/filebrowser/filebrowser/commit/59ca0c340afc7774747c70ede9a5a5a3c9349d6b))
|
||||||
|
* request current password when deleting users ([#5667](https://github.com/filebrowser/filebrowser/issues/5667)) ([cfa6c58](https://github.com/filebrowser/filebrowser/commit/cfa6c5864e5e7673aa9f3180e4964e0db92cc4da))
|
||||||
|
* retain file selection when closing the editor ([#5693](https://github.com/filebrowser/filebrowser/issues/5693)) ([4094fb3](https://github.com/filebrowser/filebrowser/commit/4094fb359babac70e88d0ed4bfe3bd100744aad6))
|
||||||
|
|
||||||
|
## [2.54.0](https://github.com/filebrowser/filebrowser/compare/v2.53.1...v2.54.0) (2026-01-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add "redirect after copy/move" user setting ([#5662](https://github.com/filebrowser/filebrowser/issues/5662)) ([fda8a99](https://github.com/filebrowser/filebrowser/commit/fda8a992929b1466e75fb2813f2c4e293c12d244))
|
||||||
|
* force file sync while uploading file ([#5668](https://github.com/filebrowser/filebrowser/issues/5668)) ([4fd18a3](https://github.com/filebrowser/filebrowser/commit/4fd18a382c31bbe7059d6733ffa371e70051865b))
|
||||||
|
* update translations ([#5659](https://github.com/filebrowser/filebrowser/issues/5659)) ([464b581](https://github.com/filebrowser/filebrowser/commit/464b581953139c17e3276b774e381e4052827125))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* clear selection by clicking on empty area ([#5663](https://github.com/filebrowser/filebrowser/issues/5663)) ([208535a](https://github.com/filebrowser/filebrowser/commit/208535a8cc23254de0013dfab9008486707ee6c2))
|
||||||
|
* hide "change password form" in noauth setting ([#5652](https://github.com/filebrowser/filebrowser/issues/5652)) ([219582c](https://github.com/filebrowser/filebrowser/commit/219582c0b03fd90979b1d1398dba7919d086a23f))
|
||||||
|
|
||||||
|
## [2.53.1](https://github.com/filebrowser/filebrowser/compare/v2.53.0...v2.53.1) (2026-01-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* download path encoding file paths ([#5655](https://github.com/filebrowser/filebrowser/issues/5655)) ([ffa893e](https://github.com/filebrowser/filebrowser/commit/ffa893e9ac387a49dba5917a41df7c3b7ce120fc))
|
||||||
|
* request a password to change sensitive user data ([#5629](https://github.com/filebrowser/filebrowser/issues/5629)) ([b8151a0](https://github.com/filebrowser/filebrowser/commit/b8151a038a1ea55afae8073b439b74e364cac12f))
|
||||||
|
|
||||||
|
## [2.53.0](https://github.com/filebrowser/filebrowser/compare/v2.52.0...v2.53.0) (2025-12-29)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add "disable image resolution calculation" flag ([#5638](https://github.com/filebrowser/filebrowser/issues/5638)) ([a2d80c6](https://github.com/filebrowser/filebrowser/commit/a2d80c62c1c17962e566f68fb7cac6960ed3e4cb))
|
||||||
|
* support streaming response for search results ([#5630](https://github.com/filebrowser/filebrowser/issues/5630)) ([20bfd13](https://github.com/filebrowser/filebrowser/commit/20bfd131c6a4fca48a645b52171c2d1cc3ce92b7))
|
||||||
|
* update translations ([a12a612](https://github.com/filebrowser/filebrowser/commit/a12a612970d6cc3dfbca1b35ef3a60a887a4effb))
|
||||||
|
* update translations ([#5626](https://github.com/filebrowser/filebrowser/issues/5626)) ([f899756](https://github.com/filebrowser/filebrowser/commit/f89975603e29b9f1fc05aec58afb42bbd56ed696))
|
||||||
|
* update translations ([#5631](https://github.com/filebrowser/filebrowser/issues/5631)) ([032d6c7](https://github.com/filebrowser/filebrowser/commit/032d6c7520a64686c9d9b1218562256f629b4703))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* conversion of backslashes in file paths for archive creation ([#5637](https://github.com/filebrowser/filebrowser/issues/5637)) ([9595f39](https://github.com/filebrowser/filebrowser/commit/9595f3939c1c129ed875a47adcc4fbcfad9a0e65))
|
||||||
|
* Don't crash on invalid config import ([#5640](https://github.com/filebrowser/filebrowser/issues/5640)) ([79d1aa9](https://github.com/filebrowser/filebrowser/commit/79d1aa9229b076ee8e3b71d6cf061fc90738f4da))
|
||||||
|
* fix nil deref in config set command ([#5641](https://github.com/filebrowser/filebrowser/issues/5641)) ([60b1ee8](https://github.com/filebrowser/filebrowser/commit/60b1ee8bb9e18b21d7f2c04cb1cc90046cecd3e1))
|
||||||
|
|
||||||
## [2.52.0](https://github.com/filebrowser/filebrowser/compare/v2.51.2...v2.52.0) (2025-12-13)
|
## [2.52.0](https://github.com/filebrowser/filebrowser/compare/v2.51.2...v2.52.0) (2025-12-13)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
|
> [!WARNING]
|
||||||
|
> File Browser is being archived on **2026-09-01**. New features are not being accepted. Bug-fix pull requests are still looked at until that date, but there is no guarantee they will be merged.
|
||||||
|
>
|
||||||
|
> The instructions below are kept because they remain useful to anyone building the project from source.
|
||||||
|
|
||||||
If you're interested in contributing to this project, this is the best place to start. Before contributing to this project, please take a bit of time to read our [Code of Conduct](code-of-conduct.md). Also, note that this project is open-source and licensed under [Apache License 2.0](LICENSE).
|
If you're interested in contributing to this project, this is the best place to start. Before contributing to this project, please take a bit of time to read our [Code of Conduct](code-of-conduct.md). Also, note that this project is open-source and licensed under [Apache License 2.0](LICENSE).
|
||||||
|
|
||||||
## Project Structure
|
## Project Structure
|
||||||
@@ -99,6 +104,8 @@ task release
|
|||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
|
|
||||||
|
Translations are synced from Transifex until 2026-09-01; after that the integration stops and translations submitted there will no longer reach this repository.
|
||||||
|
|
||||||
Translations are managed on Transifex, which is an online website where everyone can contribute and translate strings for our project. It automatically syncs with the main language file \(in English\) and,, for you to contribute, you just need to:
|
Translations are managed on Transifex, which is an online website where everyone can contribute and translate strings for our project. It automatically syncs with the main language file \(in English\) and,, for you to contribute, you just need to:
|
||||||
|
|
||||||
1. Go to our Transifex web page: [app.transifex.com/file-browser/file-browser](https://app.transifex.com/file-browser/file-browser/)
|
1. Go to our Transifex web page: [app.transifex.com/file-browser/file-browser](https://app.transifex.com/file-browser/file-browser/)
|
||||||
|
|||||||
@@ -1,29 +1,52 @@
|
|||||||
|
> [!WARNING]
|
||||||
|
> **File Browser is being archived on 2026-09-01.** On that date this repository becomes read-only. There will be no further releases, and no security fixes, including for the [known unfixed issues](#security) listed below.
|
||||||
|
>
|
||||||
|
> Existing releases and Docker images stay online and will not be withdrawn. All documentation lives in this repository under [`www/docs`](www/docs).
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://raw.githubusercontent.com/filebrowser/filebrowser/master/branding/banner.png" width="550"/>
|
<img src="https://raw.githubusercontent.com/filebrowser/filebrowser/master/branding/banner.png" width="550"/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
[](https://github.com/filebrowser/filebrowser/actions/workflows/ci.yaml)
|
[](https://github.com/filebrowser/filebrowser/actions/workflows/ci.yaml)
|
||||||
[](https://goreportcard.com/report/github.com/filebrowser/filebrowser/v2)
|
|
||||||
[](https://github.com/filebrowser/filebrowser/releases/latest)
|
[](https://github.com/filebrowser/filebrowser/releases/latest)
|
||||||
|
|
||||||
File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview and edit your files. It is a **create-your-own-cloud**-kind of software where you can just install it on your server, direct it to a path and access your files through a nice web interface.
|
File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview and edit your files. It is a **create-your-own-cloud**-kind of software where you can just install it on your server, direct it to a path and access your files through a nice web interface.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Documentation on how to install, configure, and contribute to this project is hosted at [filebrowser.org](https://filebrowser.org).
|
Documentation on how to install, configure, and build this project lives in [`www/docs`](www/docs) in this repository.
|
||||||
|
|
||||||
## Project Status
|
## Project Status
|
||||||
|
|
||||||
This project is a finished product which fulfills its goal: be a single binary web File Browser which can be run by anyone anywhere. That means that File Browser is currently on **maintenance-only** mode. Therefore, please note the following:
|
This project is a finished product which fulfills its goal: be a single binary web File Browser which can be run by anyone anywhere. It has been in **maintenance-only** mode, and is now being wound down.
|
||||||
|
|
||||||
- It can take a while until someone gets back to you. Please be patient.
|
- The repository is archived on **2026-09-01** and becomes read-only.
|
||||||
- [Issues](https://github.com/filebrowser/filebrowser/issues) are meant to track bugs. Unrelated issues will be converted into [discussions](https://github.com/filebrowser/filebrowser/discussions).
|
- One last planned release ships before that date. It contains no functional changes, only a wind-down notice.
|
||||||
- No new features will be implemented by maintainers. Pull requests for new features will be reviewed on a case by case basis.
|
- After that date there are no further releases, bug fixes, or security fixes.
|
||||||
- The priority is triaging issues, addressing security issues and reviewing pull requests meant to solve bugs.
|
- Existing releases and Docker images stay online and are not withdrawn.
|
||||||
|
|
||||||
|
Please read [@hacdias' personal reflection](https://hacdias.com/2026/03/11/filebrowser/) on the project status.
|
||||||
|
|
||||||
|
## Security
|
||||||
|
|
||||||
|
No further security fixes will be released. Two known issue classes remain unaddressed and will not be fixed:
|
||||||
|
|
||||||
|
- **Command execution, runner, and hooks** (opt-in, disabled by default, [#5199](https://github.com/filebrowser/filebrowser/issues/5199))
|
||||||
|
- **Session and JWT handling** ([#5216](https://github.com/filebrowser/filebrowser/issues/5216))
|
||||||
|
|
||||||
|
Previously published advisories are listed under [security advisories](https://github.com/filebrowser/filebrowser/security/advisories). Reporting instructions, which apply until 2026-09-01, are in [SECURITY.md](SECURITY.md).
|
||||||
|
|
||||||
|
If you keep running File Browser after the archive date, treat it as unmaintained software:
|
||||||
|
|
||||||
|
- **Do not expose it directly to the internet.** Put it behind a reverse proxy that terminates TLS and performs its own authentication.
|
||||||
|
- **Keep the command runner disabled.** It is off by default, so leave it off. See [#5199](https://github.com/filebrowser/filebrowser/issues/5199) and [`www/docs/command-execution.md`](www/docs/command-execution.md).
|
||||||
|
- **Run it unprivileged, inside a container**, with only the directory you intend to serve mounted into it.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Contributions are always welcome. To start contributing to this project, read our [guidelines](CONTRIBUTING.md) first.
|
New features are not being accepted. Bug reports and bug-fix pull requests are still looked at until 2026-09-01, but there is no guarantee that they will be merged.
|
||||||
|
|
||||||
|
[CONTRIBUTING.md](CONTRIBUTING.md) documents how to build and develop the project, which remains useful to anyone forking it.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
+24
-14
@@ -1,26 +1,36 @@
|
|||||||
# Security Policy
|
# Security Policy
|
||||||
|
|
||||||
|
> [!WARNING]
|
||||||
|
> File Browser is being archived on **2026-09-01**. Security reports are not accepted after that date, and no further security fixes will be released. The known unfixed issues, and hardening guidance for anyone who keeps running File Browser, are listed under [Security](README.md#security) in the README.
|
||||||
|
|
||||||
## Supported Versions
|
## Supported Versions
|
||||||
|
|
||||||
Use this section to tell people about which versions of your project are
|
| Version | Supported |
|
||||||
currently being supported with security updates.
|
| ------- | ------------------- |
|
||||||
|
| 2.x | ✅ until 2026-09-01 |
|
||||||
|
| < 2.0 | ❌ |
|
||||||
|
|
||||||
| Version | Supported |
|
## Before Reporting
|
||||||
| ------- | ------------------ |
|
|
||||||
| 2.x | :white_check_mark: |
|
This project is in maintenance-only mode and is being wound down. To avoid duplicates, first check the [existing advisories](https://github.com/filebrowser/filebrowser/security/advisories) and open issues, and confirm:
|
||||||
| < 2.0 | :x: |
|
|
||||||
|
- **It concerns this project, not a fork.** Reports about code, features, or endpoints that don't exist here belong to the relevant fork.
|
||||||
|
- **It isn't an already-known class** that remains unaddressed. Those are listed under [Security](README.md#security) in the README; reports covering them are likely to be closed as duplicates.
|
||||||
|
|
||||||
## Reporting a Vulnerability
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
Vulnerabilities with critical impact should be reported on the [Security](https://github.com/filebrowser/filebrowser/security) page of this repository, which is a private way of communicating vulnerabilities to maintainers. This project is in maintenance-only mode and it can take a while until someone gets back to you.
|
Until 2026-09-01:
|
||||||
|
|
||||||
If it is not a critical vulnerability, please open an issue and we will categorize it as a security issue. By giving visibility, we can get more help from the community at fixing such issues.
|
- **Critical:** report privately via the [Security](https://github.com/filebrowser/filebrowser/security) page.
|
||||||
|
- **Non-critical:** open a public issue so the community can help; we'll label it as a security issue.
|
||||||
|
|
||||||
When reporting an issue, where possible, please provide at least:
|
Please include, where possible:
|
||||||
|
|
||||||
* The commit version the issue was identified at
|
- The commit the issue was found at
|
||||||
* A proof of concept (plaintext; no binaries)
|
- A plaintext proof of concept (no binaries)
|
||||||
* Steps to reproduce
|
- Steps to reproduce
|
||||||
* Your recommended remediation(s), if any.
|
- Recommended remediation, if any
|
||||||
|
|
||||||
The File Browser team is a volunteer-only effort, and may reach back out for clarification.
|
We're a volunteer effort, so responses can take a while, and we may reach out for clarification. A report being accepted does not guarantee a fix will ship before the archive date.
|
||||||
|
|
||||||
|
After 2026-09-01 this repository is read-only and reports can no longer be submitted or acted on.
|
||||||
+31
-41
@@ -68,7 +68,7 @@ func (a *HookAuth) Auth(r *http.Request, usr users.Store, stg *settings.Settings
|
|||||||
case "block":
|
case "block":
|
||||||
return nil, os.ErrPermission
|
return nil, os.ErrPermission
|
||||||
case "pass":
|
case "pass":
|
||||||
u, err := a.Users.Get(a.Server.Root, a.Cred.Username)
|
u, err := a.Users.Get(a.Server.Root, a.Server.FollowExternalSymlinks, a.Cred.Username)
|
||||||
if err != nil || !users.CheckPwd(a.Cred.Password, u.Password) {
|
if err != nil || !users.CheckPwd(a.Cred.Password, u.Password) {
|
||||||
return nil, os.ErrPermission
|
return nil, os.ErrPermission
|
||||||
}
|
}
|
||||||
@@ -86,22 +86,6 @@ func (a *HookAuth) LoginPage() bool {
|
|||||||
// RunCommand starts the hook command and returns the action
|
// RunCommand starts the hook command and returns the action
|
||||||
func (a *HookAuth) RunCommand() (string, error) {
|
func (a *HookAuth) RunCommand() (string, error) {
|
||||||
command := strings.Split(a.Command, " ")
|
command := strings.Split(a.Command, " ")
|
||||||
envMapping := func(key string) string {
|
|
||||||
switch key {
|
|
||||||
case "USERNAME":
|
|
||||||
return a.Cred.Username
|
|
||||||
case "PASSWORD":
|
|
||||||
return a.Cred.Password
|
|
||||||
default:
|
|
||||||
return os.Getenv(key)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for i, arg := range command {
|
|
||||||
if i == 0 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
command[i] = os.Expand(arg, envMapping)
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd := exec.Command(command[0], command[1:]...)
|
cmd := exec.Command(command[0], command[1:]...)
|
||||||
cmd.Env = append(os.Environ(), fmt.Sprintf("USERNAME=%s", a.Cred.Username))
|
cmd.Env = append(os.Environ(), fmt.Sprintf("USERNAME=%s", a.Cred.Username))
|
||||||
@@ -145,7 +129,7 @@ func (a *HookAuth) GetValues(s string) {
|
|||||||
|
|
||||||
// SaveUser updates the existing user or creates a new one when not found
|
// SaveUser updates the existing user or creates a new one when not found
|
||||||
func (a *HookAuth) SaveUser() (*users.User, error) {
|
func (a *HookAuth) SaveUser() (*users.User, error) {
|
||||||
u, err := a.Users.Get(a.Server.Root, a.Cred.Username)
|
u, err := a.Users.Get(a.Server.Root, a.Server.FollowExternalSymlinks, a.Cred.Username)
|
||||||
if err != nil && !errors.Is(err, fberrors.ErrNotExist) {
|
if err != nil && !errors.Is(err, fberrors.ErrNotExist) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -158,28 +142,31 @@ func (a *HookAuth) SaveUser() (*users.User, error) {
|
|||||||
|
|
||||||
// create user with the provided credentials
|
// create user with the provided credentials
|
||||||
d := &users.User{
|
d := &users.User{
|
||||||
Username: a.Cred.Username,
|
Username: a.Cred.Username,
|
||||||
Password: pass,
|
Password: pass,
|
||||||
Scope: a.Settings.Defaults.Scope,
|
Scope: a.Settings.Defaults.Scope,
|
||||||
Locale: a.Settings.Defaults.Locale,
|
Locale: a.Settings.Defaults.Locale,
|
||||||
ViewMode: a.Settings.Defaults.ViewMode,
|
ViewMode: a.Settings.Defaults.ViewMode,
|
||||||
SingleClick: a.Settings.Defaults.SingleClick,
|
SingleClick: a.Settings.Defaults.SingleClick,
|
||||||
Sorting: a.Settings.Defaults.Sorting,
|
RedirectAfterCopyMove: a.Settings.Defaults.RedirectAfterCopyMove,
|
||||||
Perm: a.Settings.Defaults.Perm,
|
Sorting: a.Settings.Defaults.Sorting,
|
||||||
Commands: a.Settings.Defaults.Commands,
|
Perm: a.Settings.Defaults.Perm,
|
||||||
HideDotfiles: a.Settings.Defaults.HideDotfiles,
|
Commands: a.Settings.Defaults.Commands,
|
||||||
|
DateFormat: a.Settings.Defaults.DateFormat,
|
||||||
|
HideDotfiles: a.Settings.Defaults.HideDotfiles,
|
||||||
}
|
}
|
||||||
u = a.GetUser(d)
|
u = a.GetUser(d)
|
||||||
|
|
||||||
userHome, err := a.Settings.MakeUserDir(u.Username, u.Scope, a.Server.Root)
|
// A scope explicitly returned by the hook takes precedence over the
|
||||||
|
// automatic per-user home directory derivation.
|
||||||
|
_, explicitScope := a.Fields.Values["user.scope"]
|
||||||
|
derivedScope, err := a.Settings.CreateUserHome(u, a.Server.Root, explicitScope)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("user: failed to mkdir user home dir: [%s]", userHome)
|
return nil, err
|
||||||
}
|
}
|
||||||
u.Scope = userHome
|
log.Printf("user: %s, home dir: [%s].", u.Username, u.Scope)
|
||||||
log.Printf("user: %s, home dir: [%s].", u.Username, userHome)
|
|
||||||
|
|
||||||
err = a.Users.Save(u)
|
if err := a.Users.SaveProvisioned(u, derivedScope); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
} else if p := !users.CheckPwd(a.Cred.Password, u.Password); len(a.Fields.Values) > 1 || p {
|
} else if p := !users.CheckPwd(a.Cred.Password, u.Password); len(a.Fields.Values) > 1 || p {
|
||||||
@@ -219,18 +206,20 @@ func (a *HookAuth) GetUser(d *users.User) *users.User {
|
|||||||
Download: isAdmin || a.Fields.GetBoolean("user.perm.download", d.Perm.Download),
|
Download: isAdmin || a.Fields.GetBoolean("user.perm.download", d.Perm.Download),
|
||||||
}
|
}
|
||||||
user := users.User{
|
user := users.User{
|
||||||
ID: d.ID,
|
ID: d.ID,
|
||||||
Username: d.Username,
|
Username: d.Username,
|
||||||
Password: d.Password,
|
Password: d.Password,
|
||||||
Scope: a.Fields.GetString("user.scope", d.Scope),
|
Scope: a.Fields.GetString("user.scope", d.Scope),
|
||||||
Locale: a.Fields.GetString("user.locale", d.Locale),
|
Locale: a.Fields.GetString("user.locale", d.Locale),
|
||||||
ViewMode: users.ViewMode(a.Fields.GetString("user.viewMode", string(d.ViewMode))),
|
ViewMode: users.ViewMode(a.Fields.GetString("user.viewMode", string(d.ViewMode))),
|
||||||
SingleClick: a.Fields.GetBoolean("user.singleClick", d.SingleClick),
|
SingleClick: a.Fields.GetBoolean("user.singleClick", d.SingleClick),
|
||||||
|
RedirectAfterCopyMove: a.Fields.GetBoolean("user.redirectAfterCopyMove", d.RedirectAfterCopyMove),
|
||||||
Sorting: files.Sorting{
|
Sorting: files.Sorting{
|
||||||
Asc: a.Fields.GetBoolean("user.sorting.asc", d.Sorting.Asc),
|
Asc: a.Fields.GetBoolean("user.sorting.asc", d.Sorting.Asc),
|
||||||
By: a.Fields.GetString("user.sorting.by", d.Sorting.By),
|
By: a.Fields.GetString("user.sorting.by", d.Sorting.By),
|
||||||
},
|
},
|
||||||
Commands: a.Fields.GetArray("user.commands", d.Commands),
|
Commands: a.Fields.GetArray("user.commands", d.Commands),
|
||||||
|
DateFormat: a.Fields.GetBoolean("user.dateFormat", d.DateFormat),
|
||||||
HideDotfiles: a.Fields.GetBoolean("user.hideDotfiles", d.HideDotfiles),
|
HideDotfiles: a.Fields.GetBoolean("user.hideDotfiles", d.HideDotfiles),
|
||||||
Perm: perms,
|
Perm: perms,
|
||||||
LockPassword: true,
|
LockPassword: true,
|
||||||
@@ -251,6 +240,7 @@ var validHookFields = []string{
|
|||||||
"user.locale",
|
"user.locale",
|
||||||
"user.viewMode",
|
"user.viewMode",
|
||||||
"user.singleClick",
|
"user.singleClick",
|
||||||
|
"user.redirectAfterCopyMove",
|
||||||
"user.sorting.by",
|
"user.sorting.by",
|
||||||
"user.sorting.asc",
|
"user.sorting.asc",
|
||||||
"user.commands",
|
"user.commands",
|
||||||
|
|||||||
@@ -0,0 +1,156 @@
|
|||||||
|
package auth
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/filebrowser/filebrowser/v2/settings"
|
||||||
|
"github.com/filebrowser/filebrowser/v2/users"
|
||||||
|
)
|
||||||
|
|
||||||
|
// writeHookScript writes a POSIX shell script to a temp file and returns its
|
||||||
|
// path, marking it executable.
|
||||||
|
func writeHookScript(t *testing.T, body string) string {
|
||||||
|
t.Helper()
|
||||||
|
path := filepath.Join(t.TempDir(), "hook.sh")
|
||||||
|
if err := os.WriteFile(path, []byte("#!/bin/sh\n"+body), 0o700); err != nil {
|
||||||
|
t.Fatalf("failed to write hook script: %v", err)
|
||||||
|
}
|
||||||
|
return path
|
||||||
|
}
|
||||||
|
|
||||||
|
// TestRunCommandNoCredentialInjection ensures that attacker-controlled
|
||||||
|
// credentials submitted at the unauthenticated login endpoint cannot be
|
||||||
|
// injected into the hook command string. Credentials must only ever reach the
|
||||||
|
// hook through the USERNAME/PASSWORD environment variables, never via string
|
||||||
|
// substitution into the command itself (CWE-78/CWE-88).
|
||||||
|
func TestRunCommandNoCredentialInjection(t *testing.T) {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("uses POSIX shell")
|
||||||
|
}
|
||||||
|
|
||||||
|
marker := filepath.Join(t.TempDir(), "pwned")
|
||||||
|
|
||||||
|
// The hook simply blocks. If the credential were ever interpolated into the
|
||||||
|
// command string and evaluated by a shell, the embedded `touch` would
|
||||||
|
// create the marker file.
|
||||||
|
script := writeHookScript(t, "echo hook.action=block\n")
|
||||||
|
|
||||||
|
a := &HookAuth{
|
||||||
|
Command: script,
|
||||||
|
Cred: hookCred{
|
||||||
|
Username: `"; touch ` + marker + `; #`,
|
||||||
|
Password: `$(touch ` + marker + `)`,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
action, err := a.RunCommand()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("RunCommand returned error: %v", err)
|
||||||
|
}
|
||||||
|
if action != "block" {
|
||||||
|
t.Fatalf("expected action %q, got %q", "block", action)
|
||||||
|
}
|
||||||
|
if _, err := os.Stat(marker); err == nil {
|
||||||
|
t.Fatalf("credential injection executed: marker file %q was created", marker)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TestRunCommandReceivesCredentialsViaEnv verifies the supported contract: the
|
||||||
|
// hook receives credentials through the USERNAME and PASSWORD environment
|
||||||
|
// variables.
|
||||||
|
func TestRunCommandReceivesCredentialsViaEnv(t *testing.T) {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("uses POSIX shell")
|
||||||
|
}
|
||||||
|
|
||||||
|
script := writeHookScript(t, `if [ "$USERNAME" = alice ] && [ "$PASSWORD" = secret ]; then
|
||||||
|
echo hook.action=auth
|
||||||
|
else
|
||||||
|
echo hook.action=block
|
||||||
|
fi
|
||||||
|
`)
|
||||||
|
|
||||||
|
a := &HookAuth{
|
||||||
|
Command: script,
|
||||||
|
Cred: hookCred{
|
||||||
|
Username: "alice",
|
||||||
|
Password: "secret",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
action, err := a.RunCommand()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("RunCommand returned error: %v", err)
|
||||||
|
}
|
||||||
|
if action != "auth" {
|
||||||
|
t.Fatalf("expected action %q, got %q", "auth", action)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// newHookAuth builds a HookAuth for a freshly provisioned user with the given
|
||||||
|
// parsed hook fields (hook.action=auth is added automatically).
|
||||||
|
func newHookAuth(store *mockUserStore, s *settings.Settings, srv *settings.Server, username string, fields map[string]string) *HookAuth {
|
||||||
|
fields["hook.action"] = "auth"
|
||||||
|
return &HookAuth{
|
||||||
|
Users: store,
|
||||||
|
Settings: s,
|
||||||
|
Server: srv,
|
||||||
|
Cred: hookCred{Username: username, Password: "a-strong-password"},
|
||||||
|
Fields: hookFields{Values: fields},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// With CreateUserDir enabled and no explicit scope from the hook, a provisioned
|
||||||
|
// hook user must receive its own home directory rather than the server root.
|
||||||
|
func TestHookSaveUserCreateUserDirIsolatesScope(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
|
store := &mockUserStore{users: make(map[string]*users.User)}
|
||||||
|
srv := &settings.Server{Root: t.TempDir()}
|
||||||
|
s := &settings.Settings{
|
||||||
|
Key: []byte("key"),
|
||||||
|
CreateUserDir: true,
|
||||||
|
UserHomeBasePath: "/users",
|
||||||
|
Defaults: settings.UserDefaults{
|
||||||
|
Scope: ".",
|
||||||
|
Perm: users.Permissions{Create: true},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
u, err := newHookAuth(store, s, srv, "alice", map[string]string{}).SaveUser()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("SaveUser error: %v", err)
|
||||||
|
}
|
||||||
|
if u.Scope != "/users/alice" {
|
||||||
|
t.Errorf("hook user without explicit scope: expected /users/alice, got %q", u.Scope)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// A scope explicitly returned by the hook takes precedence over the automatic
|
||||||
|
// per-user home directory derivation.
|
||||||
|
func TestHookSaveUserRespectsExplicitScope(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
|
store := &mockUserStore{users: make(map[string]*users.User)}
|
||||||
|
srv := &settings.Server{Root: t.TempDir()}
|
||||||
|
s := &settings.Settings{
|
||||||
|
Key: []byte("key"),
|
||||||
|
CreateUserDir: true,
|
||||||
|
UserHomeBasePath: "/users",
|
||||||
|
Defaults: settings.UserDefaults{
|
||||||
|
Scope: ".",
|
||||||
|
Perm: users.Permissions{Create: true},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
u, err := newHookAuth(store, s, srv, "teamlead", map[string]string{"user.scope": "/shared/team"}).SaveUser()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("SaveUser error: %v", err)
|
||||||
|
}
|
||||||
|
if u.Scope != "/shared/team" {
|
||||||
|
t.Errorf("explicit hook scope should win, got %q", u.Scope)
|
||||||
|
}
|
||||||
|
}
|
||||||
+16
-2
@@ -14,6 +14,10 @@ import (
|
|||||||
// MethodJSONAuth is used to identify json auth.
|
// MethodJSONAuth is used to identify json auth.
|
||||||
const MethodJSONAuth settings.AuthMethod = "json"
|
const MethodJSONAuth settings.AuthMethod = "json"
|
||||||
|
|
||||||
|
// dummyHash is used to prevent user enumeration timing attacks.
|
||||||
|
// It MUST be a valid bcrypt hash.
|
||||||
|
const dummyHash = "$2a$10$O4mEMeOL/nit6zqe.WQXauLRbRlzb3IgLHsa26Pf0N/GiU9b.wK1m"
|
||||||
|
|
||||||
type jsonCred struct {
|
type jsonCred struct {
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
@@ -51,8 +55,18 @@ func (a JSONAuth) Auth(r *http.Request, usr users.Store, _ *settings.Settings, s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
u, err := usr.Get(srv.Root, cred.Username)
|
u, err := usr.Get(srv.Root, srv.FollowExternalSymlinks, cred.Username)
|
||||||
if err != nil || !users.CheckPwd(cred.Password, u.Password) {
|
|
||||||
|
hash := dummyHash
|
||||||
|
if err == nil {
|
||||||
|
hash = u.Password
|
||||||
|
}
|
||||||
|
|
||||||
|
if !users.CheckPwd(cred.Password, hash) {
|
||||||
|
return nil, os.ErrPermission
|
||||||
|
}
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
return nil, os.ErrPermission
|
return nil, os.ErrPermission
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ type NoAuth struct{}
|
|||||||
|
|
||||||
// Auth uses authenticates user 1.
|
// Auth uses authenticates user 1.
|
||||||
func (a NoAuth) Auth(_ *http.Request, usr users.Store, _ *settings.Settings, srv *settings.Server) (*users.User, error) {
|
func (a NoAuth) Auth(_ *http.Request, usr users.Store, _ *settings.Settings, srv *settings.Server) (*users.User, error) {
|
||||||
return usr.Get(srv.Root, uint(1))
|
return usr.Get(srv.Root, srv.FollowExternalSymlinks, uint(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoginPage tells that no auth doesn't require a login page.
|
// LoginPage tells that no auth doesn't require a login page.
|
||||||
|
|||||||
+7
-7
@@ -20,7 +20,7 @@ type ProxyAuth struct {
|
|||||||
// Auth authenticates the user via an HTTP header.
|
// Auth authenticates the user via an HTTP header.
|
||||||
func (a ProxyAuth) Auth(r *http.Request, usr users.Store, setting *settings.Settings, srv *settings.Server) (*users.User, error) {
|
func (a ProxyAuth) Auth(r *http.Request, usr users.Store, setting *settings.Settings, srv *settings.Server) (*users.User, error) {
|
||||||
username := r.Header.Get(a.Header)
|
username := r.Header.Get(a.Header)
|
||||||
user, err := usr.Get(srv.Root, username)
|
user, err := usr.Get(srv.Root, srv.FollowExternalSymlinks, username)
|
||||||
if errors.Is(err, fberrors.ErrNotExist) {
|
if errors.Is(err, fberrors.ErrNotExist) {
|
||||||
return a.createUser(usr, setting, srv, username)
|
return a.createUser(usr, setting, srv, username)
|
||||||
}
|
}
|
||||||
@@ -46,16 +46,16 @@ func (a ProxyAuth) createUser(usr users.Store, setting *settings.Settings, srv *
|
|||||||
LockPassword: true,
|
LockPassword: true,
|
||||||
}
|
}
|
||||||
setting.Defaults.Apply(user)
|
setting.Defaults.Apply(user)
|
||||||
|
user.Perm.Admin = false
|
||||||
|
user.Perm.Execute = false
|
||||||
|
user.Commands = []string{}
|
||||||
|
|
||||||
var userHome string
|
var derivedScope bool
|
||||||
userHome, err = setting.MakeUserDir(user.Username, user.Scope, srv.Root)
|
if derivedScope, err = setting.CreateUserHome(user, srv.Root, false); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
user.Scope = userHome
|
|
||||||
|
|
||||||
err = usr.Save(user)
|
if err = usr.SaveProvisioned(user, derivedScope); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,142 @@
|
|||||||
|
package auth
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net/http"
|
||||||
|
"strings"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
fberrors "github.com/filebrowser/filebrowser/v2/errors"
|
||||||
|
"github.com/filebrowser/filebrowser/v2/settings"
|
||||||
|
"github.com/filebrowser/filebrowser/v2/users"
|
||||||
|
)
|
||||||
|
|
||||||
|
type mockUserStore struct {
|
||||||
|
users map[string]*users.User
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mockUserStore) Get(_ string, _ bool, id interface{}) (*users.User, error) {
|
||||||
|
if v, ok := id.(string); ok {
|
||||||
|
if u, ok := m.users[v]; ok {
|
||||||
|
return u, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil, fberrors.ErrNotExist
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mockUserStore) GetByScope(scope string) (*users.User, error) {
|
||||||
|
for _, u := range m.users {
|
||||||
|
if strings.EqualFold(u.Scope, scope) {
|
||||||
|
return u, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil, fberrors.ErrNotExist
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mockUserStore) Gets(_ string, _ bool) ([]*users.User, error) { return nil, nil }
|
||||||
|
func (m *mockUserStore) Update(_ *users.User, _ ...string) error { return nil }
|
||||||
|
func (m *mockUserStore) Save(user *users.User) error {
|
||||||
|
m.users[user.Username] = user
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mockUserStore) SaveProvisioned(user *users.User, derivedScope bool) error {
|
||||||
|
if derivedScope {
|
||||||
|
if _, err := m.GetByScope(user.Scope); err == nil {
|
||||||
|
return fberrors.ErrExist
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return m.Save(user)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mockUserStore) Delete(_ interface{}) error { return nil }
|
||||||
|
func (m *mockUserStore) LastUpdate(_ uint) int64 { return 0 }
|
||||||
|
|
||||||
|
func TestProxyAuthCreateUserRestrictsDefaults(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
|
store := &mockUserStore{users: make(map[string]*users.User)}
|
||||||
|
srv := &settings.Server{Root: t.TempDir()}
|
||||||
|
|
||||||
|
s := &settings.Settings{
|
||||||
|
Key: []byte("key"),
|
||||||
|
AuthMethod: MethodProxyAuth,
|
||||||
|
Defaults: settings.UserDefaults{
|
||||||
|
Perm: users.Permissions{
|
||||||
|
Admin: true,
|
||||||
|
Execute: true,
|
||||||
|
Create: true,
|
||||||
|
Rename: true,
|
||||||
|
Modify: true,
|
||||||
|
Delete: true,
|
||||||
|
Share: true,
|
||||||
|
Download: true,
|
||||||
|
},
|
||||||
|
Commands: []string{"git", "ls", "cat", "id"},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
auth := ProxyAuth{Header: "X-Remote-User"}
|
||||||
|
req, _ := http.NewRequest(http.MethodGet, "/", http.NoBody)
|
||||||
|
req.Header.Set("X-Remote-User", "newproxyuser")
|
||||||
|
|
||||||
|
user, err := auth.Auth(req, store, s, srv)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Auth() error: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
if user.Perm.Admin {
|
||||||
|
t.Error("auto-provisioned proxy user should not have Admin permission")
|
||||||
|
}
|
||||||
|
if user.Perm.Execute {
|
||||||
|
t.Error("auto-provisioned proxy user should not have Execute permission")
|
||||||
|
}
|
||||||
|
if len(user.Commands) != 0 {
|
||||||
|
t.Errorf("auto-provisioned proxy user should have empty Commands, got %v", user.Commands)
|
||||||
|
}
|
||||||
|
if !user.Perm.Create {
|
||||||
|
t.Error("auto-provisioned proxy user should retain Create permission from defaults")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// With CreateUserDir enabled, two distinct proxy-authenticated users must each
|
||||||
|
// receive their own home directory instead of both inheriting the server root.
|
||||||
|
func TestProxyAuthCreateUserDirIsolatesScope(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
|
store := &mockUserStore{users: make(map[string]*users.User)}
|
||||||
|
srv := &settings.Server{Root: t.TempDir()}
|
||||||
|
s := &settings.Settings{
|
||||||
|
Key: []byte("key"),
|
||||||
|
AuthMethod: MethodProxyAuth,
|
||||||
|
CreateUserDir: true,
|
||||||
|
UserHomeBasePath: "/users",
|
||||||
|
Defaults: settings.UserDefaults{
|
||||||
|
Scope: ".",
|
||||||
|
Perm: users.Permissions{Create: true},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
auth := ProxyAuth{Header: "X-Remote-User"}
|
||||||
|
provision := func(name string) *users.User {
|
||||||
|
req, _ := http.NewRequest(http.MethodGet, "/", http.NoBody)
|
||||||
|
req.Header.Set("X-Remote-User", name)
|
||||||
|
u, err := auth.Auth(req, store, s, srv)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Auth(%q) error: %v", name, err)
|
||||||
|
}
|
||||||
|
return u
|
||||||
|
}
|
||||||
|
|
||||||
|
alice := provision("alice")
|
||||||
|
bob := provision("bob")
|
||||||
|
|
||||||
|
if alice.Scope == "/" || bob.Scope == "/" {
|
||||||
|
t.Fatalf("provisioned users inherited the server root: alice=%q bob=%q", alice.Scope, bob.Scope)
|
||||||
|
}
|
||||||
|
if alice.Scope == bob.Scope {
|
||||||
|
t.Fatalf("distinct users must get distinct scopes, both got %q", alice.Scope)
|
||||||
|
}
|
||||||
|
if alice.Scope != "/users/alice" {
|
||||||
|
t.Errorf("expected /users/alice, got %q", alice.Scope)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,6 +5,10 @@ import (
|
|||||||
|
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
"github.com/spf13/pflag"
|
||||||
|
|
||||||
|
"github.com/filebrowser/filebrowser/v2/auth"
|
||||||
|
"github.com/filebrowser/filebrowser/v2/settings"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestEnvCollisions ensures that there are no collisions in the produced environment
|
// TestEnvCollisions ensures that there are no collisions in the produced environment
|
||||||
@@ -33,3 +37,25 @@ func testEnvCollisions(t *testing.T, cmd *cobra.Command) {
|
|||||||
t.Errorf("Found duplicate environment variable keys for command %q: %v", cmd.Name(), duplicates)
|
t.Errorf("Found duplicate environment variable keys for command %q: %v", cmd.Name(), duplicates)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestGetSettingsFollowExternalSymlinks ensures that the followExternalSymlinks
|
||||||
|
// flag is persisted to the server config when set via "config set".
|
||||||
|
func TestGetSettingsFollowExternalSymlinks(t *testing.T) {
|
||||||
|
flags := pflag.NewFlagSet("test", pflag.ContinueOnError)
|
||||||
|
addConfigFlags(flags)
|
||||||
|
|
||||||
|
if err := flags.Parse([]string{"--followExternalSymlinks"}); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
set := &settings.Settings{AuthMethod: auth.MethodJSONAuth}
|
||||||
|
ser := &settings.Server{}
|
||||||
|
|
||||||
|
if _, err := getSettings(flags, set, ser, &auth.JSONAuth{}, false); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
if !ser.FollowExternalSymlinks {
|
||||||
|
t.Error("expected FollowExternalSymlinks to be persisted as true")
|
||||||
|
}
|
||||||
|
}
|
||||||
+9
-1
@@ -99,7 +99,7 @@ func getProxyAuth(flags *pflag.FlagSet, defaultAuther map[string]interface{}) (a
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if header == "" {
|
if header == "" && defaultAuther != nil {
|
||||||
header = defaultAuther["header"].(string)
|
header = defaultAuther["header"].(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -229,6 +229,7 @@ func printSettings(ser *settings.Server, set *settings.Settings, auther auth.Aut
|
|||||||
fmt.Fprintf(w, "\tThumbnails Enabled:\t%t\n", ser.EnableThumbnails)
|
fmt.Fprintf(w, "\tThumbnails Enabled:\t%t\n", ser.EnableThumbnails)
|
||||||
fmt.Fprintf(w, "\tResize Preview:\t%t\n", ser.ResizePreview)
|
fmt.Fprintf(w, "\tResize Preview:\t%t\n", ser.ResizePreview)
|
||||||
fmt.Fprintf(w, "\tType Detection by Header:\t%t\n", ser.TypeDetectionByHeader)
|
fmt.Fprintf(w, "\tType Detection by Header:\t%t\n", ser.TypeDetectionByHeader)
|
||||||
|
fmt.Fprintf(w, "\tFollow External Symlinks:\t%t\n", ser.FollowExternalSymlinks)
|
||||||
|
|
||||||
fmt.Fprintln(w, "\nTUS:")
|
fmt.Fprintln(w, "\nTUS:")
|
||||||
fmt.Fprintf(w, "\tChunk size:\t%d\n", set.Tus.ChunkSize)
|
fmt.Fprintf(w, "\tChunk size:\t%d\n", set.Tus.ChunkSize)
|
||||||
@@ -236,10 +237,12 @@ func printSettings(ser *settings.Server, set *settings.Settings, auther auth.Aut
|
|||||||
|
|
||||||
fmt.Fprintln(w, "\nDefaults:")
|
fmt.Fprintln(w, "\nDefaults:")
|
||||||
fmt.Fprintf(w, "\tScope:\t%s\n", set.Defaults.Scope)
|
fmt.Fprintf(w, "\tScope:\t%s\n", set.Defaults.Scope)
|
||||||
|
fmt.Fprintf(w, "\tDateFormat:\t%t\n", set.Defaults.DateFormat)
|
||||||
fmt.Fprintf(w, "\tHideDotfiles:\t%t\n", set.Defaults.HideDotfiles)
|
fmt.Fprintf(w, "\tHideDotfiles:\t%t\n", set.Defaults.HideDotfiles)
|
||||||
fmt.Fprintf(w, "\tLocale:\t%s\n", set.Defaults.Locale)
|
fmt.Fprintf(w, "\tLocale:\t%s\n", set.Defaults.Locale)
|
||||||
fmt.Fprintf(w, "\tView mode:\t%s\n", set.Defaults.ViewMode)
|
fmt.Fprintf(w, "\tView mode:\t%s\n", set.Defaults.ViewMode)
|
||||||
fmt.Fprintf(w, "\tSingle Click:\t%t\n", set.Defaults.SingleClick)
|
fmt.Fprintf(w, "\tSingle Click:\t%t\n", set.Defaults.SingleClick)
|
||||||
|
fmt.Fprintf(w, "\tRedirect after Copy/Move:\t%t\n", set.Defaults.RedirectAfterCopyMove)
|
||||||
fmt.Fprintf(w, "\tFile Creation Mode:\t%O\n", set.FileMode)
|
fmt.Fprintf(w, "\tFile Creation Mode:\t%O\n", set.FileMode)
|
||||||
fmt.Fprintf(w, "\tDirectory Creation Mode:\t%O\n", set.DirMode)
|
fmt.Fprintf(w, "\tDirectory Creation Mode:\t%O\n", set.DirMode)
|
||||||
fmt.Fprintf(w, "\tCommands:\t%s\n", strings.Join(set.Defaults.Commands, " "))
|
fmt.Fprintf(w, "\tCommands:\t%s\n", strings.Join(set.Defaults.Commands, " "))
|
||||||
@@ -308,6 +311,11 @@ func getSettings(flags *pflag.FlagSet, set *settings.Settings, ser *settings.Ser
|
|||||||
case "disableTypeDetectionByHeader":
|
case "disableTypeDetectionByHeader":
|
||||||
ser.TypeDetectionByHeader, err = flags.GetBool(flag.Name)
|
ser.TypeDetectionByHeader, err = flags.GetBool(flag.Name)
|
||||||
ser.TypeDetectionByHeader = !ser.TypeDetectionByHeader
|
ser.TypeDetectionByHeader = !ser.TypeDetectionByHeader
|
||||||
|
case "disableImageResolutionCalc":
|
||||||
|
ser.ImageResolutionCal, err = flags.GetBool(flag.Name)
|
||||||
|
ser.ImageResolutionCal = !ser.ImageResolutionCal
|
||||||
|
case "followExternalSymlinks":
|
||||||
|
ser.FollowExternalSymlinks, err = flags.GetBool(flag.Name)
|
||||||
|
|
||||||
// Settings flags from [addConfigFlags]
|
// Settings flags from [addConfigFlags]
|
||||||
case "signup":
|
case "signup":
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"path/filepath"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
@@ -53,6 +52,10 @@ The path must be for a json or yaml file.`,
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if file.Settings == nil || file.Server == nil {
|
||||||
|
return errors.New("invalid configuration file: 'settings' or 'server' fields are missing. Please ensure you are importing a file generated by the 'config export' command")
|
||||||
|
}
|
||||||
|
|
||||||
file.Settings.Key = key
|
file.Settings.Key = key
|
||||||
err = st.Settings.Save(file.Settings)
|
err = st.Settings.Save(file.Settings)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -64,12 +67,7 @@ The path must be for a json or yaml file.`,
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
var rawAuther interface{}
|
var rawAuther = file.Auther
|
||||||
if filepath.Ext(args[0]) != ".json" {
|
|
||||||
rawAuther = cleanUpInterfaceMap(file.Auther.(map[interface{}]interface{}))
|
|
||||||
} else {
|
|
||||||
rawAuther = file.Auther
|
|
||||||
}
|
|
||||||
|
|
||||||
var auther auth.Auther
|
var auther auth.Auther
|
||||||
var autherErr error
|
var autherErr error
|
||||||
|
|||||||
+68
-17
@@ -13,6 +13,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -46,6 +47,7 @@ var (
|
|||||||
"disable-type-detection-by-header": "disableTypeDetectionByHeader",
|
"disable-type-detection-by-header": "disableTypeDetectionByHeader",
|
||||||
"img-processors": "imageProcessors",
|
"img-processors": "imageProcessors",
|
||||||
"cache-dir": "cacheDir",
|
"cache-dir": "cacheDir",
|
||||||
|
"redis-cache-url": "redisCacheUrl",
|
||||||
"token-expiration-time": "tokenExpirationTime",
|
"token-expiration-time": "tokenExpirationTime",
|
||||||
"baseurl": "baseURL",
|
"baseurl": "baseURL",
|
||||||
}
|
}
|
||||||
@@ -88,6 +90,7 @@ func init() {
|
|||||||
flags.String("password", "", "hashed password for the first user when using quick setup")
|
flags.String("password", "", "hashed password for the first user when using quick setup")
|
||||||
flags.Uint32("socketPerm", 0666, "unix socket file permissions")
|
flags.Uint32("socketPerm", 0666, "unix socket file permissions")
|
||||||
flags.String("cacheDir", "", "file cache directory (disabled if empty)")
|
flags.String("cacheDir", "", "file cache directory (disabled if empty)")
|
||||||
|
flags.String("redisCacheUrl", "", "redis cache URL (for multi-instance deployments), e.g. redis://user:pass@host:port")
|
||||||
flags.Int("imageProcessors", 4, "image processors count")
|
flags.Int("imageProcessors", 4, "image processors count")
|
||||||
addServerFlags(flags)
|
addServerFlags(flags)
|
||||||
}
|
}
|
||||||
@@ -108,6 +111,8 @@ func addServerFlags(flags *pflag.FlagSet) {
|
|||||||
flags.Bool("disablePreviewResize", false, "disable resize of image previews")
|
flags.Bool("disablePreviewResize", false, "disable resize of image previews")
|
||||||
flags.Bool("disableExec", true, "disables Command Runner feature")
|
flags.Bool("disableExec", true, "disables Command Runner feature")
|
||||||
flags.Bool("disableTypeDetectionByHeader", false, "disables type detection by reading file headers")
|
flags.Bool("disableTypeDetectionByHeader", false, "disables type detection by reading file headers")
|
||||||
|
flags.Bool("disableImageResolutionCalc", false, "disables image resolution calculation by reading image files")
|
||||||
|
flags.Bool("followExternalSymlinks", false, "follow symlinks whose target is outside the user scope (unsafe)")
|
||||||
}
|
}
|
||||||
|
|
||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
@@ -135,6 +140,11 @@ file named .filebrowser.{json, toml, yaml, yml} in the following directories:
|
|||||||
- $HOME/
|
- $HOME/
|
||||||
- /etc/filebrowser/
|
- /etc/filebrowser/
|
||||||
|
|
||||||
|
**Note:** Only the options listed below can be set via the config file or
|
||||||
|
environment variables. Other configuration options live exclusively in the
|
||||||
|
database and so they must be set by the "config set" or "config
|
||||||
|
import" commands.
|
||||||
|
|
||||||
The precedence of the configuration values are as follows:
|
The precedence of the configuration values are as follows:
|
||||||
|
|
||||||
- Flags
|
- Flags
|
||||||
@@ -170,12 +180,23 @@ user created with the credentials from options "username" and "password".`,
|
|||||||
fileCache = diskcache.New(afero.NewOsFs(), cacheDir)
|
fileCache = diskcache.New(afero.NewOsFs(), cacheDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
redisCacheURL := v.GetString("redisCacheUrl")
|
||||||
|
uploadCache, err := fbhttp.NewUploadCache(redisCacheURL)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("failed to initialize upload cache: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
server, err := getServerSettings(v, st.Storage)
|
server, err := getServerSettings(v, st.Storage)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
setupLog(server.Log)
|
setupLog(server.Log)
|
||||||
|
|
||||||
|
log.Println("NOTICE: File Browser is being wound down.")
|
||||||
|
log.Println("NOTICE: The project is archived on 2026-09-01, after which there will be no")
|
||||||
|
log.Println("NOTICE: further releases and no security fixes. Known unfixed issues are at")
|
||||||
|
log.Println("NOTICE: https://github.com/filebrowser/filebrowser/security/advisories")
|
||||||
|
|
||||||
root, err := filepath.Abs(server.Root)
|
root, err := filepath.Abs(server.Root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@@ -221,7 +242,7 @@ user created with the credentials from options "username" and "password".`,
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
handler, err := fbhttp.NewHandler(imageService, fileCache, st.Storage, server, assetsFs)
|
handler, err := fbhttp.NewHandler(imageService, fileCache, uploadCache, st.Storage, server, assetsFs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -331,10 +352,18 @@ func getServerSettings(v *viper.Viper, st *storage.Storage) (*settings.Server, e
|
|||||||
server.TypeDetectionByHeader = !v.GetBool("disableTypeDetectionByHeader")
|
server.TypeDetectionByHeader = !v.GetBool("disableTypeDetectionByHeader")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if v.IsSet("disableImageResolutionCalc") {
|
||||||
|
server.ImageResolutionCal = !v.GetBool("disableImageResolutionCalc")
|
||||||
|
}
|
||||||
|
|
||||||
if v.IsSet("disableExec") {
|
if v.IsSet("disableExec") {
|
||||||
server.EnableExec = !v.GetBool("disableExec")
|
server.EnableExec = !v.GetBool("disableExec")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if v.IsSet("followExternalSymlinks") {
|
||||||
|
server.FollowExternalSymlinks = v.GetBool("followExternalSymlinks")
|
||||||
|
}
|
||||||
|
|
||||||
if isAddrSet && isSocketSet {
|
if isAddrSet && isSocketSet {
|
||||||
return nil, errors.New("--socket flag cannot be used with --address, --port, --key nor --cert")
|
return nil, errors.New("--socket flag cannot be used with --address, --port, --key nor --cert")
|
||||||
}
|
}
|
||||||
@@ -351,6 +380,25 @@ func getServerSettings(v *viper.Viper, st *storage.Storage) (*settings.Server, e
|
|||||||
log.Println("WARNING: read https://github.com/filebrowser/filebrowser/issues/5199")
|
log.Println("WARNING: read https://github.com/filebrowser/filebrowser/issues/5199")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if server.FollowExternalSymlinks {
|
||||||
|
log.Println("WARNING: Following external symlinks enabled!")
|
||||||
|
log.Println("WARNING: Symlinks pointing outside a user's scope will be followed,")
|
||||||
|
log.Println("WARNING: which can expose files outside that scope. Only enable this if")
|
||||||
|
log.Println("WARNING: you fully understand and trust the contents of every user scope.")
|
||||||
|
}
|
||||||
|
|
||||||
|
if set, err := st.Settings.Get(); err == nil && set.Signup {
|
||||||
|
scope := strings.TrimSpace(set.Defaults.Scope)
|
||||||
|
scopeIsRoot := scope == "" || scope == "." || scope == "/"
|
||||||
|
|
||||||
|
if !set.CreateUserDir && scopeIsRoot {
|
||||||
|
log.Println("WARNING: Signup is enabled without createUserDir and the default scope is")
|
||||||
|
log.Println("WARNING: the server root, so every self-registered user can read, modify and")
|
||||||
|
log.Println("WARNING: delete all files File Browser serves, including other users' files.")
|
||||||
|
log.Println("WARNING: Enable createUserDir, or set a default scope other than the root.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return server, nil
|
return server, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -383,10 +431,11 @@ func quickSetup(v *viper.Viper, s *storage.Storage) error {
|
|||||||
MinimumPasswordLength: settings.DefaultMinimumPasswordLength,
|
MinimumPasswordLength: settings.DefaultMinimumPasswordLength,
|
||||||
UserHomeBasePath: settings.DefaultUsersHomeBasePath,
|
UserHomeBasePath: settings.DefaultUsersHomeBasePath,
|
||||||
Defaults: settings.UserDefaults{
|
Defaults: settings.UserDefaults{
|
||||||
Scope: ".",
|
Scope: ".",
|
||||||
Locale: "en",
|
Locale: "en",
|
||||||
SingleClick: false,
|
SingleClick: false,
|
||||||
AceEditorTheme: v.GetString("defaults.aceEditorTheme"),
|
RedirectAfterCopyMove: true,
|
||||||
|
AceEditorTheme: v.GetString("defaults.aceEditorTheme"),
|
||||||
Perm: users.Permissions{
|
Perm: users.Permissions{
|
||||||
Admin: false,
|
Admin: false,
|
||||||
Execute: true,
|
Execute: true,
|
||||||
@@ -427,18 +476,20 @@ func quickSetup(v *viper.Viper, s *storage.Storage) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ser := &settings.Server{
|
ser := &settings.Server{
|
||||||
BaseURL: v.GetString("baseURL"),
|
BaseURL: v.GetString("baseURL"),
|
||||||
Port: v.GetString("port"),
|
Port: v.GetString("port"),
|
||||||
Log: v.GetString("log"),
|
Log: v.GetString("log"),
|
||||||
TLSKey: v.GetString("key"),
|
TLSKey: v.GetString("key"),
|
||||||
TLSCert: v.GetString("cert"),
|
TLSCert: v.GetString("cert"),
|
||||||
Address: v.GetString("address"),
|
Address: v.GetString("address"),
|
||||||
Root: v.GetString("root"),
|
Root: v.GetString("root"),
|
||||||
TokenExpirationTime: v.GetString("tokenExpirationTime"),
|
TokenExpirationTime: v.GetString("tokenExpirationTime"),
|
||||||
EnableThumbnails: !v.GetBool("disableThumbnails"),
|
EnableThumbnails: !v.GetBool("disableThumbnails"),
|
||||||
ResizePreview: !v.GetBool("disablePreviewResize"),
|
ResizePreview: !v.GetBool("disablePreviewResize"),
|
||||||
EnableExec: !v.GetBool("disableExec"),
|
EnableExec: !v.GetBool("disableExec"),
|
||||||
TypeDetectionByHeader: !v.GetBool("disableTypeDetectionByHeader"),
|
TypeDetectionByHeader: !v.GetBool("disableTypeDetectionByHeader"),
|
||||||
|
ImageResolutionCal: !v.GetBool("disableImageResolutionCalc"),
|
||||||
|
FollowExternalSymlinks: v.GetBool("followExternalSymlinks"),
|
||||||
}
|
}
|
||||||
|
|
||||||
err = s.Settings.SaveServer(ser)
|
err = s.Settings.SaveServer(ser)
|
||||||
|
|||||||
+1
-1
@@ -36,7 +36,7 @@ func runRules(st *storage.Storage, cmd *cobra.Command, usersFn func(*users.User)
|
|||||||
}
|
}
|
||||||
if id != nil {
|
if id != nil {
|
||||||
var user *users.User
|
var user *users.User
|
||||||
user, err = st.Users.Get("", id)
|
user, err = st.Users.Get("", false, id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-3
@@ -27,16 +27,17 @@ var usersCmd = &cobra.Command{
|
|||||||
|
|
||||||
func printUsers(usrs []*users.User) {
|
func printUsers(usrs []*users.User) {
|
||||||
w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0)
|
w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0)
|
||||||
fmt.Fprintln(w, "ID\tUsername\tScope\tLocale\tV. Mode\tS.Click\tAdmin\tExecute\tCreate\tRename\tModify\tDelete\tShare\tDownload\tPwd Lock")
|
fmt.Fprintln(w, "ID\tUsername\tScope\tLocale\tV. Mode\tS.Click\tRed. After C/M\tAdmin\tExecute\tCreate\tRename\tModify\tDelete\tShare\tDownload\tPwd Lock")
|
||||||
|
|
||||||
for _, u := range usrs {
|
for _, u := range usrs {
|
||||||
fmt.Fprintf(w, "%d\t%s\t%s\t%s\t%s\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t\n",
|
fmt.Fprintf(w, "%d\t%s\t%s\t%s\t%s\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t%t\t\n",
|
||||||
u.ID,
|
u.ID,
|
||||||
u.Username,
|
u.Username,
|
||||||
u.Scope,
|
u.Scope,
|
||||||
u.Locale,
|
u.Locale,
|
||||||
u.ViewMode,
|
u.ViewMode,
|
||||||
u.SingleClick,
|
u.SingleClick,
|
||||||
|
u.RedirectAfterCopyMove,
|
||||||
u.Perm.Admin,
|
u.Perm.Admin,
|
||||||
u.Perm.Execute,
|
u.Perm.Execute,
|
||||||
u.Perm.Create,
|
u.Perm.Create,
|
||||||
@@ -77,8 +78,9 @@ func addUserFlags(flags *pflag.FlagSet) {
|
|||||||
flags.String("locale", "en", "locale for users")
|
flags.String("locale", "en", "locale for users")
|
||||||
flags.String("viewMode", string(users.ListViewMode), "view mode for users")
|
flags.String("viewMode", string(users.ListViewMode), "view mode for users")
|
||||||
flags.Bool("singleClick", false, "use single clicks only")
|
flags.Bool("singleClick", false, "use single clicks only")
|
||||||
|
flags.Bool("redirectAfterCopyMove", false, "redirect to destination after copy/move")
|
||||||
flags.Bool("dateFormat", false, "use date format (true for absolute time, false for relative)")
|
flags.Bool("dateFormat", false, "use date format (true for absolute time, false for relative)")
|
||||||
flags.Bool("hideDotfiles", false, "hide dotfiles")
|
flags.Bool("hideDotfiles", false, "hide dotfiles in file listings")
|
||||||
flags.String("aceEditorTheme", "", "ace editor's syntax highlighting theme for users")
|
flags.String("aceEditorTheme", "", "ace editor's syntax highlighting theme for users")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,6 +112,8 @@ func getUserDefaults(flags *pflag.FlagSet, defaults *settings.UserDefaults, all
|
|||||||
defaults.ViewMode, err = getAndParseViewMode(flags)
|
defaults.ViewMode, err = getAndParseViewMode(flags)
|
||||||
case "singleClick":
|
case "singleClick":
|
||||||
defaults.SingleClick, err = flags.GetBool(flag.Name)
|
defaults.SingleClick, err = flags.GetBool(flag.Name)
|
||||||
|
case "redirectAfterCopyMove":
|
||||||
|
defaults.RedirectAfterCopyMove, err = flags.GetBool(flag.Name)
|
||||||
case "aceEditorTheme":
|
case "aceEditorTheme":
|
||||||
defaults.AceEditorTheme, err = flags.GetString(flag.Name)
|
defaults.AceEditorTheme, err = flags.GetString(flag.Name)
|
||||||
case "perm.admin":
|
case "perm.admin":
|
||||||
@@ -134,6 +138,8 @@ func getUserDefaults(flags *pflag.FlagSet, defaults *settings.UserDefaults, all
|
|||||||
defaults.Sorting.By, err = flags.GetString(flag.Name)
|
defaults.Sorting.By, err = flags.GetString(flag.Name)
|
||||||
case "sorting.asc":
|
case "sorting.asc":
|
||||||
defaults.Sorting.Asc, err = flags.GetBool(flag.Name)
|
defaults.Sorting.Asc, err = flags.GetBool(flag.Name)
|
||||||
|
case "dateFormat":
|
||||||
|
defaults.DateFormat, err = flags.GetBool(flag.Name)
|
||||||
case "hideDotfiles":
|
case "hideDotfiles":
|
||||||
defaults.HideDotfiles, err = flags.GetBool(flag.Name)
|
defaults.HideDotfiles, err = flags.GetBool(flag.Name)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ var usersExportCmd = &cobra.Command{
|
|||||||
path to the file where you want to write the users.`,
|
path to the file where you want to write the users.`,
|
||||||
Args: jsonYamlArg,
|
Args: jsonYamlArg,
|
||||||
RunE: withStore(func(_ *cobra.Command, args []string, st *store) error {
|
RunE: withStore(func(_ *cobra.Command, args []string, st *store) error {
|
||||||
list, err := st.Users.Gets("")
|
list, err := st.Users.Gets("", false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -36,14 +36,14 @@ var findUsers = withStore(func(_ *cobra.Command, args []string, st *store) error
|
|||||||
if len(args) == 1 {
|
if len(args) == 1 {
|
||||||
username, id := parseUsernameOrID(args[0])
|
username, id := parseUsernameOrID(args[0])
|
||||||
if username != "" {
|
if username != "" {
|
||||||
user, err = st.Users.Get("", username)
|
user, err = st.Users.Get("", false, username)
|
||||||
} else {
|
} else {
|
||||||
user, err = st.Users.Get("", id)
|
user, err = st.Users.Get("", false, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
list = []*users.User{user}
|
list = []*users.User{user}
|
||||||
} else {
|
} else {
|
||||||
list, err = st.Users.Gets("")
|
list, err = st.Users.Gets("", false)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
+4
-4
@@ -40,7 +40,7 @@ list or set it to 0.`,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, user := range list {
|
for _, user := range list {
|
||||||
err = user.Clean("")
|
err = user.Clean("", false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@ list or set it to 0.`,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if replace {
|
if replace {
|
||||||
oldUsers, userImportErr := st.Users.Gets("")
|
oldUsers, userImportErr := st.Users.Gets("", false)
|
||||||
if userImportErr != nil {
|
if userImportErr != nil {
|
||||||
return userImportErr
|
return userImportErr
|
||||||
}
|
}
|
||||||
@@ -76,7 +76,7 @@ list or set it to 0.`,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, user := range list {
|
for _, user := range list {
|
||||||
onDB, err := st.Users.Get("", user.ID)
|
onDB, err := st.Users.Get("", false, user.ID)
|
||||||
|
|
||||||
// User exists in DB.
|
// User exists in DB.
|
||||||
if err == nil {
|
if err == nil {
|
||||||
@@ -88,7 +88,7 @@ list or set it to 0.`,
|
|||||||
// with the new username. If there is, print an error and cancel the
|
// with the new username. If there is, print an error and cancel the
|
||||||
// operation
|
// operation
|
||||||
if user.Username != onDB.Username {
|
if user.Username != onDB.Username {
|
||||||
if conflictuous, err := st.Users.Get("", user.Username); err == nil {
|
if conflictuous, err := st.Users.Get("", false, user.Username); err == nil {
|
||||||
return usernameConflictError(user.Username, conflictuous.ID, user.ID)
|
return usernameConflictError(user.Username, conflictuous.ID, user.ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-9
@@ -43,22 +43,23 @@ options you want to change.`,
|
|||||||
user *users.User
|
user *users.User
|
||||||
)
|
)
|
||||||
if id != 0 {
|
if id != 0 {
|
||||||
user, err = st.Users.Get("", id)
|
user, err = st.Users.Get("", false, id)
|
||||||
} else {
|
} else {
|
||||||
user, err = st.Users.Get("", username)
|
user, err = st.Users.Get("", false, username)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
defaults := settings.UserDefaults{
|
defaults := settings.UserDefaults{
|
||||||
Scope: user.Scope,
|
Scope: user.Scope,
|
||||||
Locale: user.Locale,
|
Locale: user.Locale,
|
||||||
ViewMode: user.ViewMode,
|
ViewMode: user.ViewMode,
|
||||||
SingleClick: user.SingleClick,
|
SingleClick: user.SingleClick,
|
||||||
Perm: user.Perm,
|
RedirectAfterCopyMove: user.RedirectAfterCopyMove,
|
||||||
Sorting: user.Sorting,
|
Perm: user.Perm,
|
||||||
Commands: user.Commands,
|
Sorting: user.Sorting,
|
||||||
|
Commands: user.Commands,
|
||||||
}
|
}
|
||||||
|
|
||||||
err = getUserDefaults(flags, &defaults, false)
|
err = getUserDefaults(flags, &defaults, false)
|
||||||
@@ -70,6 +71,7 @@ options you want to change.`,
|
|||||||
user.Locale = defaults.Locale
|
user.Locale = defaults.Locale
|
||||||
user.ViewMode = defaults.ViewMode
|
user.ViewMode = defaults.ViewMode
|
||||||
user.SingleClick = defaults.SingleClick
|
user.SingleClick = defaults.SingleClick
|
||||||
|
user.RedirectAfterCopyMove = defaults.RedirectAfterCopyMove
|
||||||
user.Perm = defaults.Perm
|
user.Perm = defaults.Perm
|
||||||
user.Commands = defaults.Commands
|
user.Commands = defaults.Commands
|
||||||
user.Sorting = defaults.Sorting
|
user.Sorting = defaults.Sorting
|
||||||
|
|||||||
+2
-29
@@ -3,7 +3,6 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"io/fs"
|
"io/fs"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
@@ -119,7 +118,8 @@ func initViper(cmd *cobra.Command) (*viper.Viper, error) {
|
|||||||
|
|
||||||
// Read in configuration
|
// Read in configuration
|
||||||
if err := v.ReadInConfig(); err != nil {
|
if err := v.ReadInConfig(); err != nil {
|
||||||
if errors.Is(err, viper.ConfigParseError{}) {
|
|
||||||
|
if errors.As(err, &viper.ConfigParseError{}) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,33 +249,6 @@ func jsonYamlArg(cmd *cobra.Command, args []string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func cleanUpInterfaceMap(in map[interface{}]interface{}) map[string]interface{} {
|
|
||||||
result := make(map[string]interface{})
|
|
||||||
for k, v := range in {
|
|
||||||
result[fmt.Sprintf("%v", k)] = cleanUpMapValue(v)
|
|
||||||
}
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
func cleanUpInterfaceArray(in []interface{}) []interface{} {
|
|
||||||
result := make([]interface{}, len(in))
|
|
||||||
for i, v := range in {
|
|
||||||
result[i] = cleanUpMapValue(v)
|
|
||||||
}
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
func cleanUpMapValue(v interface{}) interface{} {
|
|
||||||
switch v := v.(type) {
|
|
||||||
case []interface{}:
|
|
||||||
return cleanUpInterfaceArray(v)
|
|
||||||
case map[interface{}]interface{}:
|
|
||||||
return cleanUpInterfaceMap(v)
|
|
||||||
default:
|
|
||||||
return v
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// convertCmdStrToCmdArray checks if cmd string is blank (whitespace included)
|
// convertCmdStrToCmdArray checks if cmd string is blank (whitespace included)
|
||||||
// then returns empty string array, else returns the split word array of cmd.
|
// then returns empty string array, else returns the split word array of cmd.
|
||||||
// This is to ensure the result will never be []string{""}
|
// This is to ensure the result will never be []string{""}
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
services:
|
||||||
|
filebrowser:
|
||||||
|
container_name: filebrowser
|
||||||
|
image: filebrowser/filebrowser:latest
|
||||||
|
networks:
|
||||||
|
- filebrowser
|
||||||
|
ports:
|
||||||
|
- 8000:80
|
||||||
|
volumes:
|
||||||
|
- filebrowser:/flux/vault
|
||||||
|
environment:
|
||||||
|
- FB_REDIS_CACHE_URL=redis://default:filebrowser@redis:6379 # Use rediss:// for ssl
|
||||||
|
|
||||||
|
redis:
|
||||||
|
container_name: redis
|
||||||
|
image: redis:latest
|
||||||
|
networks:
|
||||||
|
- filebrowser
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
cat > /tmp/users.acl <<EOF
|
||||||
|
user default on >filebrowser ~* +@all
|
||||||
|
EOF
|
||||||
|
redis-server --aclfile /tmp/users.acl
|
||||||
|
|
||||||
|
networks:
|
||||||
|
filebrowser:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
filebrowser:
|
||||||
+18
-16
@@ -6,22 +6,24 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrEmptyKey = errors.New("empty key")
|
ErrEmptyKey = errors.New("empty key")
|
||||||
ErrExist = errors.New("the resource already exists")
|
ErrExist = errors.New("the resource already exists")
|
||||||
ErrNotExist = errors.New("the resource does not exist")
|
ErrNotExist = errors.New("the resource does not exist")
|
||||||
ErrEmptyPassword = errors.New("password is empty")
|
ErrEmptyPassword = errors.New("password is empty")
|
||||||
ErrEasyPassword = errors.New("password is too easy")
|
ErrEasyPassword = errors.New("password is too easy")
|
||||||
ErrEmptyUsername = errors.New("username is empty")
|
ErrEmptyUsername = errors.New("username is empty")
|
||||||
ErrEmptyRequest = errors.New("empty request")
|
ErrEmptyRequest = errors.New("empty request")
|
||||||
ErrScopeIsRelative = errors.New("scope is a relative path")
|
ErrScopeIsRelative = errors.New("scope is a relative path")
|
||||||
ErrInvalidDataType = errors.New("invalid data type")
|
ErrInvalidDataType = errors.New("invalid data type")
|
||||||
ErrIsDirectory = errors.New("file is directory")
|
ErrIsDirectory = errors.New("file is directory")
|
||||||
ErrInvalidOption = errors.New("invalid option")
|
ErrInvalidOption = errors.New("invalid option")
|
||||||
ErrInvalidAuthMethod = errors.New("invalid auth method")
|
ErrInvalidAuthMethod = errors.New("invalid auth method")
|
||||||
ErrPermissionDenied = errors.New("permission denied")
|
ErrPermissionDenied = errors.New("permission denied")
|
||||||
ErrInvalidRequestParams = errors.New("invalid request params")
|
ErrInvalidRequestParams = errors.New("invalid request params")
|
||||||
ErrSourceIsParent = errors.New("source is parent")
|
ErrSourceIsParent = errors.New("source is parent")
|
||||||
ErrRootUserDeletion = errors.New("user with id 1 can't be deleted")
|
ErrRootUserDeletion = errors.New("the sole admin can't be deleted")
|
||||||
|
ErrCurrentPasswordIncorrect = errors.New("the current password is incorrect")
|
||||||
|
ErrShareRequiresDownload = errors.New("permission to share requires permission to download")
|
||||||
)
|
)
|
||||||
|
|
||||||
type ErrShortPassword struct {
|
type ErrShortPassword struct {
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package files
|
||||||
|
|
||||||
|
import (
|
||||||
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
"github.com/spf13/afero"
|
||||||
|
)
|
||||||
|
|
||||||
|
// CaseInsensitive reports whether the filesystem backing root treats file names
|
||||||
|
// case-insensitively, as NTFS, APFS, HFS+, exFAT and CIFS do. It creates a
|
||||||
|
// probe file and looks it up under a different case, mirroring how git detects
|
||||||
|
// core.ignoreCase.
|
||||||
|
//
|
||||||
|
// It probes rather than inferring from runtime.GOOS because neither direction
|
||||||
|
// holds: macOS can be formatted case-sensitively, and a Linux host commonly
|
||||||
|
// serves a case-insensitive mount. When the root cannot be written to, it falls
|
||||||
|
// back to the host's usual default rather than assuming case-sensitivity, since
|
||||||
|
// a read-only root is still exposed to the disclosure this guards against.
|
||||||
|
func CaseInsensitive(fs afero.Fs, root string) bool {
|
||||||
|
probe, err := afero.TempFile(fs, root, "fb-case-probe-")
|
||||||
|
if err != nil {
|
||||||
|
return runtime.GOOS == "windows" || runtime.GOOS == "darwin"
|
||||||
|
}
|
||||||
|
|
||||||
|
name := probe.Name()
|
||||||
|
probe.Close()
|
||||||
|
defer fs.Remove(name) //nolint:errcheck
|
||||||
|
|
||||||
|
dir, base := filepath.Split(name)
|
||||||
|
_, err = fs.Stat(filepath.Join(dir, strings.ToUpper(base)))
|
||||||
|
return err == nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
package files
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strings"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/spf13/afero"
|
||||||
|
)
|
||||||
|
|
||||||
|
// MemMapFs keys its entries by exact name, so it is case-sensitive.
|
||||||
|
func TestCaseInsensitiveReportsCaseSensitiveFs(t *testing.T) {
|
||||||
|
fs := afero.NewMemMapFs()
|
||||||
|
if err := fs.MkdirAll("/root", 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
if CaseInsensitive(fs, "/root") {
|
||||||
|
t.Error("CaseInsensitive() = true for a case-sensitive filesystem; want false")
|
||||||
|
}
|
||||||
|
assertNoProbeLeft(t, fs, "/root")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Whatever the verdict, the probe file must not be left behind in the user's
|
||||||
|
// data directory.
|
||||||
|
func TestCaseInsensitiveRemovesProbe(t *testing.T) {
|
||||||
|
root := t.TempDir()
|
||||||
|
fs := afero.NewOsFs()
|
||||||
|
|
||||||
|
t.Logf("CaseInsensitive(%s) = %v", root, CaseInsensitive(fs, root))
|
||||||
|
assertNoProbeLeft(t, fs, root)
|
||||||
|
}
|
||||||
|
|
||||||
|
func assertNoProbeLeft(t *testing.T, fs afero.Fs, root string) {
|
||||||
|
t.Helper()
|
||||||
|
entries, err := afero.ReadDir(fs, root)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
for _, e := range entries {
|
||||||
|
if strings.HasPrefix(e.Name(), "fb-case-probe-") {
|
||||||
|
t.Errorf("probe file left behind: %s", e.Name())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+81
-19
@@ -18,13 +18,13 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/spf13/afero"
|
|
||||||
|
|
||||||
fberrors "github.com/filebrowser/filebrowser/v2/errors"
|
fberrors "github.com/filebrowser/filebrowser/v2/errors"
|
||||||
"github.com/filebrowser/filebrowser/v2/rules"
|
"github.com/filebrowser/filebrowser/v2/rules"
|
||||||
|
"github.com/spf13/afero"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -60,6 +60,7 @@ type FileOptions struct {
|
|||||||
Modify bool
|
Modify bool
|
||||||
Expand bool
|
Expand bool
|
||||||
ReadHeader bool
|
ReadHeader bool
|
||||||
|
CalcImgRes bool
|
||||||
Token string
|
Token string
|
||||||
Checker rules.Checker
|
Checker rules.Checker
|
||||||
Content bool
|
Content bool
|
||||||
@@ -90,13 +91,13 @@ func NewFileInfo(opts *FileOptions) (*FileInfo, error) {
|
|||||||
|
|
||||||
if opts.Expand {
|
if opts.Expand {
|
||||||
if file.IsDir {
|
if file.IsDir {
|
||||||
if err := file.readListing(opts.Checker, opts.ReadHeader); err != nil {
|
if err := file.readListing(opts.Checker, opts.ReadHeader, opts.CalcImgRes); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return file, nil
|
return file, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
err = file.detectType(opts.Modify, opts.Content, true)
|
err = file.detectType(opts.Modify, opts.Content, true, opts.CalcImgRes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -218,7 +219,7 @@ func (i *FileInfo) RealPath() string {
|
|||||||
return i.Path
|
return i.Path
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *FileInfo) detectType(modify, saveContent, readHeader bool) error {
|
func (i *FileInfo) detectType(modify, saveContent, readHeader bool, calcImgRes bool) error {
|
||||||
if IsNamedPipe(i.Mode) {
|
if IsNamedPipe(i.Mode) {
|
||||||
i.Type = "blob"
|
i.Type = "blob"
|
||||||
return nil
|
return nil
|
||||||
@@ -249,11 +250,13 @@ func (i *FileInfo) detectType(modify, saveContent, readHeader bool) error {
|
|||||||
return nil
|
return nil
|
||||||
case strings.HasPrefix(mimetype, "image"):
|
case strings.HasPrefix(mimetype, "image"):
|
||||||
i.Type = "image"
|
i.Type = "image"
|
||||||
resolution, err := calculateImageResolution(i.Fs, i.Path)
|
if calcImgRes {
|
||||||
if err != nil {
|
resolution, err := calculateImageResolution(i.Fs, i.Path)
|
||||||
log.Printf("Error calculating image resolution: %v", err)
|
if err != nil {
|
||||||
} else {
|
log.Printf("Error calculating image resolution: %v", err)
|
||||||
i.Resolution = resolution
|
} else {
|
||||||
|
i.Resolution = resolution
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
case strings.HasSuffix(mimetype, "pdf"):
|
case strings.HasSuffix(mimetype, "pdf"):
|
||||||
@@ -387,9 +390,8 @@ func (i *FileInfo) addSubtitle(fPath string) {
|
|||||||
i.Subtitles = append(i.Subtitles, fPath)
|
i.Subtitles = append(i.Subtitles, fPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *FileInfo) readListing(checker rules.Checker, readHeader bool) error {
|
func (i *FileInfo) readListing(checker rules.Checker, readHeader bool, calcImgRes bool) error {
|
||||||
afs := &afero.Afero{Fs: i.Fs}
|
dir, err := readDir(i.Fs, i.Path)
|
||||||
dir, err := afs.ReadDir(i.Path)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -411,12 +413,19 @@ func (i *FileInfo) readListing(checker rules.Checker, readHeader bool) error {
|
|||||||
isSymlink, isInvalidLink := false, false
|
isSymlink, isInvalidLink := false, false
|
||||||
if IsSymlink(f.Mode()) {
|
if IsSymlink(f.Mode()) {
|
||||||
isSymlink = true
|
isSymlink = true
|
||||||
// It's a symbolic link. We try to follow it. If it doesn't work,
|
// It's a symbolic link. We try to follow it. The scoped filesystem
|
||||||
// we stay with the link information instead of the target's.
|
// refuses to dereference a link whose target escapes the scope
|
||||||
|
// (permission error); such a link is omitted from the listing
|
||||||
|
// entirely so it cannot leak the target's metadata. Any other
|
||||||
|
// failure means a broken link, which we surface as an invalid link
|
||||||
|
// rather than the target's information.
|
||||||
info, err := i.Fs.Stat(fPath)
|
info, err := i.Fs.Stat(fPath)
|
||||||
if err == nil {
|
switch {
|
||||||
|
case err == nil:
|
||||||
f = info
|
f = info
|
||||||
} else {
|
case errors.Is(err, os.ErrPermission):
|
||||||
|
continue
|
||||||
|
default:
|
||||||
isInvalidLink = true
|
isInvalidLink = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -434,7 +443,7 @@ func (i *FileInfo) readListing(checker rules.Checker, readHeader bool) error {
|
|||||||
currentDir: dir,
|
currentDir: dir,
|
||||||
}
|
}
|
||||||
|
|
||||||
if !file.IsDir && strings.HasPrefix(mime.TypeByExtension(file.Extension), "image/") {
|
if !file.IsDir && strings.HasPrefix(mime.TypeByExtension(file.Extension), "image/") && calcImgRes {
|
||||||
resolution, err := calculateImageResolution(file.Fs, file.Path)
|
resolution, err := calculateImageResolution(file.Fs, file.Path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error calculating resolution for image %s: %v", file.Path, err)
|
log.Printf("Error calculating resolution for image %s: %v", file.Path, err)
|
||||||
@@ -451,7 +460,7 @@ func (i *FileInfo) readListing(checker rules.Checker, readHeader bool) error {
|
|||||||
if isInvalidLink {
|
if isInvalidLink {
|
||||||
file.Type = "invalid_link"
|
file.Type = "invalid_link"
|
||||||
} else {
|
} else {
|
||||||
err := file.detectType(true, false, readHeader)
|
err := file.detectType(true, false, readHeader, calcImgRes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -464,3 +473,56 @@ func (i *FileInfo) readListing(checker rules.Checker, readHeader bool) error {
|
|||||||
i.Listing = listing
|
i.Listing = listing
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func readDir(afs afero.Fs, dirname string) ([]os.FileInfo, error) {
|
||||||
|
dir, err := afero.ReadDir(afs, dirname)
|
||||||
|
if err == nil {
|
||||||
|
return dir, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
dir, fallbackErr := readDirNames(afs, dirname)
|
||||||
|
if fallbackErr != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return dir, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func readDirNames(afs afero.Fs, dirname string) ([]os.FileInfo, error) {
|
||||||
|
file, err := afs.Open(dirname)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
names, err := file.Readdirnames(-1)
|
||||||
|
if closeErr := file.Close(); err == nil && closeErr != nil {
|
||||||
|
err = closeErr
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
sort.Strings(names)
|
||||||
|
dir := make([]os.FileInfo, 0, len(names))
|
||||||
|
for _, name := range names {
|
||||||
|
fPath := path.Join(dirname, name)
|
||||||
|
info, err := lstatIfPossible(afs, fPath)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("Skipping inaccessible file %s: %v", fPath, err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
dir = append(dir, info)
|
||||||
|
}
|
||||||
|
|
||||||
|
return dir, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func lstatIfPossible(afs afero.Fs, name string) (os.FileInfo, error) {
|
||||||
|
if lstaterFs, ok := afs.(afero.Lstater); ok {
|
||||||
|
info, _, err := lstaterFs.LstatIfPossible(name)
|
||||||
|
return info, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return afs.Stat(name)
|
||||||
|
}
|
||||||
@@ -0,0 +1,347 @@
|
|||||||
|
package files
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"path"
|
||||||
|
"path/filepath"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/spf13/afero"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestScopedFs(t *testing.T) {
|
||||||
|
t.Run("path inside scope is allowed", func(t *testing.T) {
|
||||||
|
scope := t.TempDir()
|
||||||
|
if err := os.WriteFile(filepath.Join(scope, "file.txt"), []byte("x"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
if _, err := fs.Stat("/file.txt"); err != nil {
|
||||||
|
t.Fatalf("expected in-scope file to be accessible, got %v", err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
t.Run("new file inside scope can be created", func(t *testing.T) {
|
||||||
|
scope := t.TempDir()
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
f, err := fs.OpenFile("/does-not-exist-yet.txt", os.O_RDWR|os.O_CREATE, 0o644)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("expected to create a new in-scope file, got %v", err)
|
||||||
|
}
|
||||||
|
_ = f.Close()
|
||||||
|
})
|
||||||
|
|
||||||
|
// Regression for #5975: when the scope resolves to the filesystem root,
|
||||||
|
// root+separator used to be "//", which no path matched, so every write
|
||||||
|
// was rejected with os.ErrPermission (HTTP 403).
|
||||||
|
t.Run("filesystem root scope allows access", func(t *testing.T) {
|
||||||
|
f := filepath.Join(t.TempDir(), "file.txt")
|
||||||
|
if err := os.WriteFile(f, []byte("x"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), "/")
|
||||||
|
|
||||||
|
if _, err := fs.Stat(f); err != nil {
|
||||||
|
t.Fatalf("expected a path under root scope to be accessible, got %v", err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
t.Run("escaping symlink to a sibling is rejected", func(t *testing.T) {
|
||||||
|
base := t.TempDir()
|
||||||
|
scope := filepath.Join(base, "srv")
|
||||||
|
sibling := filepath.Join(base, "srvother")
|
||||||
|
for _, d := range []string{scope, sibling} {
|
||||||
|
if err := os.MkdirAll(d, 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if err := os.WriteFile(filepath.Join(sibling, "secret.txt"), []byte("secret"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
// A symlink lexically inside the scope pointing at a sibling directory
|
||||||
|
// must not be followed for reads or stats.
|
||||||
|
if err := os.Symlink(sibling, filepath.Join(scope, "escape")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
if _, err := fs.Stat("/escape"); !os.IsPermission(err) {
|
||||||
|
t.Fatalf("expected stat of escaping symlink to be rejected, got %v", err)
|
||||||
|
}
|
||||||
|
if _, err := fs.Open("/escape/secret.txt"); !os.IsPermission(err) {
|
||||||
|
t.Fatalf("expected read through escaping symlink to be rejected, got %v", err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
t.Run("symlink whose target stays within scope is allowed", func(t *testing.T) {
|
||||||
|
scope := t.TempDir()
|
||||||
|
if err := os.MkdirAll(filepath.Join(scope, "real"), 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.WriteFile(filepath.Join(scope, "real", "f.txt"), []byte("x"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.Symlink(filepath.Join(scope, "real"), filepath.Join(scope, "link")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
if _, err := fs.Stat("/link/f.txt"); err != nil {
|
||||||
|
t.Fatalf("expected in-scope symlink target to be accessible, got %v", err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// Regression for the dangling-symlink write escape (GHSA-8wc8-hf36-mjh9 /
|
||||||
|
// GHSA-fh54-6rfh-r8f3): a symlink whose target does not exist yet must not be
|
||||||
|
// followed for writes. Previously within() validated the link's in-scope
|
||||||
|
// parent directory, so OpenFile(O_CREATE) dereferenced the link and created
|
||||||
|
// the file at its out-of-scope target.
|
||||||
|
t.Run("write through a dangling escaping symlink is rejected", func(t *testing.T) {
|
||||||
|
base := t.TempDir()
|
||||||
|
scope := filepath.Join(base, "scope")
|
||||||
|
outside := filepath.Join(base, "outside")
|
||||||
|
for _, d := range []string{scope, outside} {
|
||||||
|
if err := os.MkdirAll(d, 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
outsideTarget := filepath.Join(outside, "created.txt") // does not exist yet
|
||||||
|
if err := os.Symlink(outsideTarget, filepath.Join(scope, "evil")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
f, err := fs.OpenFile("/evil", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
|
||||||
|
if err == nil {
|
||||||
|
_ = f.Close()
|
||||||
|
t.Fatal("VULNERABLE: write through a dangling escaping symlink was allowed")
|
||||||
|
}
|
||||||
|
if !os.IsPermission(err) {
|
||||||
|
t.Fatalf("expected permission error, got %v", err)
|
||||||
|
}
|
||||||
|
if _, statErr := os.Stat(outsideTarget); statErr == nil {
|
||||||
|
t.Fatal("VULNERABLE: file was created outside the scope")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// A dangling *relative* symlink that lives under an escaping directory
|
||||||
|
// symlink must be resolved against the link's real directory, not its lexical
|
||||||
|
// parent. Otherwise the symlinked ancestor can shift the computed target back
|
||||||
|
// into scope while the real OS write lands outside it.
|
||||||
|
t.Run("write through a dangling relative symlink under a symlinked dir is rejected", func(t *testing.T) {
|
||||||
|
base := t.TempDir()
|
||||||
|
scope := filepath.Join(base, "scope")
|
||||||
|
outside := filepath.Join(base, "outside")
|
||||||
|
for _, d := range []string{scope, outside} {
|
||||||
|
if err := os.MkdirAll(d, 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// An escaping directory symlink inside the scope: /scope/m -> /base/outside.
|
||||||
|
if err := os.Symlink(outside, filepath.Join(scope, "m")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
// A relative dangling symlink inside the escaping dir whose target,
|
||||||
|
// resolved against the real directory (/base/outside), is /base/escaped —
|
||||||
|
// outside the scope.
|
||||||
|
if err := os.Symlink("../escaped", filepath.Join(outside, "evil")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
f, err := fs.OpenFile("/m/evil", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
|
||||||
|
if err == nil {
|
||||||
|
_ = f.Close()
|
||||||
|
t.Fatal("VULNERABLE: write through a dangling relative symlink under a symlinked dir was allowed")
|
||||||
|
}
|
||||||
|
if !os.IsPermission(err) {
|
||||||
|
t.Fatalf("expected permission error, got %v", err)
|
||||||
|
}
|
||||||
|
if _, statErr := os.Stat(filepath.Join(base, "escaped")); statErr == nil {
|
||||||
|
t.Fatal("VULNERABLE: file was created outside the scope")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// Regression for the symlink-following delete escape (GHSA-hq4g-mpch-f9vp /
|
||||||
|
// GHSA-fmm7-x4gx-8jhr): Remove/RemoveAll used to skip guard(), so RemoveAll
|
||||||
|
// followed a symlinked ancestor escaping the scope and deleted an
|
||||||
|
// out-of-scope file.
|
||||||
|
t.Run("RemoveAll through an escaping symlink is rejected", func(t *testing.T) {
|
||||||
|
base := t.TempDir()
|
||||||
|
scope := filepath.Join(base, "scope")
|
||||||
|
outside := filepath.Join(base, "outside")
|
||||||
|
for _, d := range []string{scope, outside} {
|
||||||
|
if err := os.MkdirAll(d, 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
victim := filepath.Join(outside, "victim.txt")
|
||||||
|
if err := os.WriteFile(victim, []byte("keep"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.Symlink(outside, filepath.Join(scope, "link")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
if err := fs.RemoveAll("/link/victim.txt"); !os.IsPermission(err) {
|
||||||
|
t.Fatalf("expected RemoveAll through escaping symlink to be rejected, got %v", err)
|
||||||
|
}
|
||||||
|
if _, statErr := os.Stat(victim); statErr != nil {
|
||||||
|
t.Fatalf("VULNERABLE: out-of-scope victim file was deleted: %v", statErr)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// The guard added for the delete escape must not break legitimate deletes of
|
||||||
|
// in-scope files.
|
||||||
|
t.Run("RemoveAll of an in-scope file is allowed", func(t *testing.T) {
|
||||||
|
scope := t.TempDir()
|
||||||
|
target := filepath.Join(scope, "deleteme.txt")
|
||||||
|
if err := os.WriteFile(target, []byte("x"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
fs := NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
if err := fs.RemoveAll("/deleteme.txt"); err != nil {
|
||||||
|
t.Fatalf("expected in-scope RemoveAll to succeed, got %v", err)
|
||||||
|
}
|
||||||
|
if _, statErr := os.Stat(target); statErr == nil {
|
||||||
|
t.Fatal("expected in-scope file to be deleted")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// stat must reject a regular file reached through a symlinked ancestor that
|
||||||
|
// escapes the scope (GHSA-hf77-9m7w-fq8q), while still serving in-scope files.
|
||||||
|
func TestStatRejectsLinkedAncestorEscape(t *testing.T) {
|
||||||
|
scope := t.TempDir()
|
||||||
|
if err := os.MkdirAll(filepath.Join(scope, "shared"), 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.MkdirAll(filepath.Join(scope, "private"), 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.WriteFile(filepath.Join(scope, "private", "secret.txt"), []byte("secret"), 0o600); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.WriteFile(filepath.Join(scope, "shared", "ok.txt"), []byte("ok"), 0o600); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.Symlink(filepath.Join(scope, "private"), filepath.Join(scope, "shared", "link")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Filesystem scoped to the shared directory, as a public share would be.
|
||||||
|
bfs := NewScopedFs(afero.NewOsFs(), filepath.Join(scope, "shared"))
|
||||||
|
|
||||||
|
if _, err := stat(&FileOptions{Fs: bfs, Path: "/link/secret.txt"}); !os.IsPermission(err) {
|
||||||
|
t.Fatalf("expected permission error for linked-ancestor escape, got %v", err)
|
||||||
|
}
|
||||||
|
if _, err := stat(&FileOptions{Fs: bfs, Path: "/ok.txt"}); err != nil {
|
||||||
|
t.Fatalf("expected in-scope file to be served, got %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type allowAllChecker struct{}
|
||||||
|
|
||||||
|
func (allowAllChecker) Check(string) bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
type inaccessibleChildFs struct {
|
||||||
|
afero.Fs
|
||||||
|
child string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fs inaccessibleChildFs) Open(name string) (afero.File, error) {
|
||||||
|
file, err := fs.Fs.Open(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if path.Clean(name) == "/" {
|
||||||
|
return inaccessibleChildDir{File: file}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return file, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fs inaccessibleChildFs) Stat(name string) (os.FileInfo, error) {
|
||||||
|
if path.Clean(name) == fs.child {
|
||||||
|
return nil, os.ErrPermission
|
||||||
|
}
|
||||||
|
|
||||||
|
return fs.Fs.Stat(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fs inaccessibleChildFs) LstatIfPossible(name string) (os.FileInfo, bool, error) {
|
||||||
|
if path.Clean(name) == fs.child {
|
||||||
|
return nil, false, os.ErrPermission
|
||||||
|
}
|
||||||
|
|
||||||
|
if lstater, ok := fs.Fs.(afero.Lstater); ok {
|
||||||
|
return lstater.LstatIfPossible(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
info, err := fs.Fs.Stat(name)
|
||||||
|
return info, false, err
|
||||||
|
}
|
||||||
|
|
||||||
|
type inaccessibleChildDir struct {
|
||||||
|
afero.File
|
||||||
|
}
|
||||||
|
|
||||||
|
func (dir inaccessibleChildDir) Readdir(int) ([]os.FileInfo, error) {
|
||||||
|
return nil, os.ErrPermission
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestReadListingSkipsInaccessibleChildren(t *testing.T) {
|
||||||
|
memFs := afero.NewMemMapFs()
|
||||||
|
for _, dir := range []string{"/media", "/proton-mount"} {
|
||||||
|
if err := memFs.Mkdir(dir, 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
file, err := NewFileInfo(&FileOptions{
|
||||||
|
Fs: inaccessibleChildFs{Fs: memFs, child: "/proton-mount"},
|
||||||
|
Path: "/",
|
||||||
|
Expand: true,
|
||||||
|
Checker: allowAllChecker{},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
if file.Listing == nil {
|
||||||
|
t.Fatal("expected root listing")
|
||||||
|
}
|
||||||
|
|
||||||
|
if got := len(file.Items); got != 1 {
|
||||||
|
t.Fatalf("expected one accessible child, got %d", got)
|
||||||
|
}
|
||||||
|
|
||||||
|
if got := file.Items[0].Name; got != "media" {
|
||||||
|
t.Fatalf("expected accessible child to be listed, got %q", got)
|
||||||
|
}
|
||||||
|
|
||||||
|
if got := file.NumDirs; got != 1 {
|
||||||
|
t.Fatalf("expected one listed directory, got %d", got)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFileInfoRealPathUsesScopedFsRealPath(t *testing.T) {
|
||||||
|
root := t.TempDir()
|
||||||
|
file := &FileInfo{
|
||||||
|
Fs: NewScopedFs(afero.NewOsFs(), root),
|
||||||
|
Path: "/root/downloads",
|
||||||
|
}
|
||||||
|
|
||||||
|
got := file.RealPath()
|
||||||
|
want := filepath.Join(root, "root", "downloads")
|
||||||
|
if got != want {
|
||||||
|
t.Fatalf("got %q, want %q", got, want)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
package files
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/spf13/afero"
|
||||||
|
)
|
||||||
|
|
||||||
|
// TestNewFs verifies that NewFs picks the right implementation and that the
|
||||||
|
// follow-external-symlinks toggle flips whether a symlink pointing outside the
|
||||||
|
// scope is honored.
|
||||||
|
func TestNewFs(t *testing.T) {
|
||||||
|
base := t.TempDir()
|
||||||
|
scope := filepath.Join(base, "srv")
|
||||||
|
outside := filepath.Join(base, "outside")
|
||||||
|
for _, d := range []string{scope, outside} {
|
||||||
|
if err := os.MkdirAll(d, 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if err := os.WriteFile(filepath.Join(outside, "secret.txt"), []byte("secret"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
// A symlink lexically inside the scope whose target resolves outside it.
|
||||||
|
if err := os.Symlink(outside, filepath.Join(scope, "escape")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
t.Run("disabled returns a ScopedFs that rejects the escaping symlink", func(t *testing.T) {
|
||||||
|
fs := NewFs(afero.NewOsFs(), scope, false)
|
||||||
|
if _, ok := fs.(*ScopedFs); !ok {
|
||||||
|
t.Fatalf("expected *ScopedFs, got %T", fs)
|
||||||
|
}
|
||||||
|
if _, err := fs.Stat("/escape"); !os.IsPermission(err) {
|
||||||
|
t.Fatalf("expected stat of escaping symlink to be rejected, got %v", err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
t.Run("enabled returns a BasePathFs that follows the escaping symlink", func(t *testing.T) {
|
||||||
|
fs := NewFs(afero.NewOsFs(), scope, true)
|
||||||
|
if _, ok := fs.(*afero.BasePathFs); !ok {
|
||||||
|
t.Fatalf("expected *afero.BasePathFs, got %T", fs)
|
||||||
|
}
|
||||||
|
if _, err := fs.Stat("/escape"); err != nil {
|
||||||
|
t.Fatalf("expected escaping symlink to be followed, got %v", err)
|
||||||
|
}
|
||||||
|
b, err := afero.ReadFile(fs, "/escape/secret.txt")
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("expected to read through escaping symlink, got %v", err)
|
||||||
|
}
|
||||||
|
if string(b) != "secret" {
|
||||||
|
t.Fatalf("got %q, want %q", b, "secret")
|
||||||
|
}
|
||||||
|
|
||||||
|
// The link must also appear in a directory listing (the symptom in #5998).
|
||||||
|
entries, err := afero.ReadDir(fs, "/")
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
var found bool
|
||||||
|
for _, e := range entries {
|
||||||
|
if e.Name() == "escape" {
|
||||||
|
found = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if !found {
|
||||||
|
t.Fatal("expected escaping symlink to appear in the listing")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// TestBasePath verifies BasePath extracts the underlying *afero.BasePathFs from
|
||||||
|
// either filesystem NewFs may return, so User.FullPath keeps working.
|
||||||
|
func TestBasePath(t *testing.T) {
|
||||||
|
root := t.TempDir()
|
||||||
|
osFs := afero.NewOsFs()
|
||||||
|
|
||||||
|
for _, tc := range []struct {
|
||||||
|
name string
|
||||||
|
followExternal bool
|
||||||
|
}{
|
||||||
|
{"ScopedFs", false},
|
||||||
|
{"BasePathFs", true},
|
||||||
|
} {
|
||||||
|
t.Run(tc.name, func(t *testing.T) {
|
||||||
|
fs := NewFs(osFs, root, tc.followExternal)
|
||||||
|
base := BasePath(fs)
|
||||||
|
if base == nil {
|
||||||
|
t.Fatalf("expected non-nil base for %T", fs)
|
||||||
|
}
|
||||||
|
got := afero.FullBaseFsPath(base, "/x")
|
||||||
|
want := filepath.Join(root, "x")
|
||||||
|
if got != want {
|
||||||
|
t.Fatalf("FullBaseFsPath: got %q, want %q", got, want)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if got := BasePath(osFs); got != nil {
|
||||||
|
t.Fatalf("expected nil base for a plain OsFs, got %v", got)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TestFileInfoRealPathUsesBasePathFsRealPath mirrors
|
||||||
|
// TestFileInfoRealPathUsesScopedFsRealPath for the follow-external-symlinks case,
|
||||||
|
// where the user filesystem is a bare BasePathFs.
|
||||||
|
func TestFileInfoRealPathUsesBasePathFsRealPath(t *testing.T) {
|
||||||
|
root := t.TempDir()
|
||||||
|
file := &FileInfo{
|
||||||
|
Fs: NewFs(afero.NewOsFs(), root, true),
|
||||||
|
Path: "/root/downloads",
|
||||||
|
}
|
||||||
|
|
||||||
|
got := file.RealPath()
|
||||||
|
want := filepath.Join(root, "root", "downloads")
|
||||||
|
if got != want {
|
||||||
|
t.Fatalf("got %q, want %q", got, want)
|
||||||
|
}
|
||||||
|
}
|
||||||
+253
@@ -0,0 +1,253 @@
|
|||||||
|
package files
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"io/fs"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/spf13/afero"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ScopedFs is an afero.Fs that confines every operation to a base directory and
|
||||||
|
// refuses to follow a symbolic link whose on-disk target resolves outside that
|
||||||
|
// base. It wraps an *afero.BasePathFs — which already provides the lexical
|
||||||
|
// confinement — and adds a per-operation scope check on every call that would
|
||||||
|
// dereference a symlink at the OS layer (open, stat, lstat, chmod, …).
|
||||||
|
type ScopedFs struct {
|
||||||
|
base *afero.BasePathFs
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
_ afero.Fs = (*ScopedFs)(nil)
|
||||||
|
_ afero.Lstater = (*ScopedFs)(nil)
|
||||||
|
)
|
||||||
|
|
||||||
|
// maxSymlinkHops bounds how many dangling symlinks within() will follow before
|
||||||
|
// giving up, so a pathological chain cannot loop forever. It mirrors the kernel
|
||||||
|
// MAXSYMLINKS limit; the operation is rejected once the bound is exceeded.
|
||||||
|
const maxSymlinkHops = 255
|
||||||
|
|
||||||
|
func NewScopedFs(source afero.Fs, path string) *ScopedFs {
|
||||||
|
if s, ok := source.(*ScopedFs); ok {
|
||||||
|
source = s.base
|
||||||
|
}
|
||||||
|
return &ScopedFs{base: afero.NewBasePathFs(source, path).(*afero.BasePathFs)}
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewFs builds a user filesystem rooted at path. When followExternal is true it
|
||||||
|
// returns a bare BasePathFs, so symlinks whose target resolves outside the scope
|
||||||
|
// are followed; otherwise it returns a ScopedFs that refuses to follow them.
|
||||||
|
func NewFs(source afero.Fs, path string, followExternal bool) afero.Fs {
|
||||||
|
if followExternal {
|
||||||
|
return afero.NewBasePathFs(source, path)
|
||||||
|
}
|
||||||
|
return NewScopedFs(source, path)
|
||||||
|
}
|
||||||
|
|
||||||
|
// BasePath returns the underlying *afero.BasePathFs of a user filesystem built
|
||||||
|
// by NewFs, whether it is a *ScopedFs or a bare *afero.BasePathFs, or nil if it
|
||||||
|
// is neither.
|
||||||
|
func BasePath(fs afero.Fs) *afero.BasePathFs {
|
||||||
|
switch f := fs.(type) {
|
||||||
|
case *ScopedFs:
|
||||||
|
return f.BasePathFs()
|
||||||
|
case *afero.BasePathFs:
|
||||||
|
return f
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// BasePathFs returns the underlying *afero.BasePathFs.
|
||||||
|
func (s *ScopedFs) BasePathFs() *afero.BasePathFs { return s.base }
|
||||||
|
|
||||||
|
// RealPath resolves a scoped path to the real on-disk path by delegating to
|
||||||
|
// the underlying BasePathFs. This is needed by callers that need the actual
|
||||||
|
// filesystem path (e.g. disk.UsageWithContext).
|
||||||
|
func (s *ScopedFs) RealPath(name string) (string, error) {
|
||||||
|
return s.base.RealPath(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
// guard returns an error if name's on-disk target resolves outside the scope.
|
||||||
|
func (s *ScopedFs) guard(name string) error {
|
||||||
|
ok, err := s.within(name)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if !ok {
|
||||||
|
return os.ErrPermission
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// within reports whether the on-disk target of p — after resolving any symbolic
|
||||||
|
// links — stays within the scoped root. It exists to stop a symlink that lives
|
||||||
|
// lexically inside the scope but points outside it from being followed for
|
||||||
|
// reads, writes, or shares.
|
||||||
|
//
|
||||||
|
// Paths that do not exist yet (e.g. a brand-new file being created) are
|
||||||
|
// validated against their nearest existing ancestor, so legitimate new files
|
||||||
|
// are always allowed. A dangling symlink — a link whose target does not exist
|
||||||
|
// yet — is the exception: it is followed to where it points and validated
|
||||||
|
// there, so a write cannot dereference the link to create a file outside the
|
||||||
|
// scope.
|
||||||
|
func (s *ScopedFs) within(p string) (bool, error) {
|
||||||
|
root, err := filepath.EvalSymlinks(afero.FullBaseFsPath(s.base, "/"))
|
||||||
|
if err != nil {
|
||||||
|
return false, err
|
||||||
|
}
|
||||||
|
|
||||||
|
target := afero.FullBaseFsPath(s.base, p)
|
||||||
|
resolved, err := filepath.EvalSymlinks(target)
|
||||||
|
// When target does not resolve, work out where the operation would actually
|
||||||
|
// land. A non-existent regular path resolves to the file that would be
|
||||||
|
// created inside its containing directory, so walk up to the nearest
|
||||||
|
// existing ancestor and validate that. But when target itself is a dangling
|
||||||
|
// symlink, follow it one level instead: validating its lexical parent would
|
||||||
|
// wrongly accept a link pointing outside the scope, letting a write follow
|
||||||
|
// the link and create the file out of bounds.
|
||||||
|
for hops := 0; errors.Is(err, fs.ErrNotExist); {
|
||||||
|
if fi, lerr := os.Lstat(target); lerr == nil && fi.Mode()&os.ModeSymlink != 0 {
|
||||||
|
hops++
|
||||||
|
if hops > maxSymlinkHops {
|
||||||
|
return false, os.ErrPermission
|
||||||
|
}
|
||||||
|
dest, rerr := os.Readlink(target)
|
||||||
|
if rerr != nil {
|
||||||
|
return false, rerr
|
||||||
|
}
|
||||||
|
if !filepath.IsAbs(dest) {
|
||||||
|
// Resolve the link relative to the directory that really contains
|
||||||
|
// it, not its lexical parent: a symlinked ancestor could otherwise
|
||||||
|
// shift the computed target back into scope while the real write
|
||||||
|
// lands outside it. The parent is guaranteed to resolve here
|
||||||
|
// because os.Lstat above already traversed it.
|
||||||
|
base, berr := filepath.EvalSymlinks(filepath.Dir(target))
|
||||||
|
if berr != nil {
|
||||||
|
return false, berr
|
||||||
|
}
|
||||||
|
dest = filepath.Join(base, dest)
|
||||||
|
}
|
||||||
|
target = filepath.Clean(dest)
|
||||||
|
} else {
|
||||||
|
parent := filepath.Dir(target)
|
||||||
|
if parent == target {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
target = parent
|
||||||
|
}
|
||||||
|
resolved, err = filepath.EvalSymlinks(target)
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return false, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Compare against root with a trailing separator so a sibling like
|
||||||
|
// "/srvother" is not treated as being inside "/srv". When root is itself the
|
||||||
|
// filesystem boundary (e.g. "/"), it already ends in a separator, so avoid
|
||||||
|
// producing "//" — which no path would match — and accept any path under it.
|
||||||
|
prefix := root
|
||||||
|
if !strings.HasSuffix(prefix, string(filepath.Separator)) {
|
||||||
|
prefix += string(filepath.Separator)
|
||||||
|
}
|
||||||
|
|
||||||
|
return resolved == root || strings.HasPrefix(resolved, prefix), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Create(name string) (afero.File, error) {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return s.base.Create(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Mkdir(name string, perm os.FileMode) error {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return s.base.Mkdir(name, perm)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) MkdirAll(path string, perm os.FileMode) error {
|
||||||
|
if err := s.guard(path); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return s.base.MkdirAll(path, perm)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Open(name string) (afero.File, error) {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return s.base.Open(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return s.base.OpenFile(name, flag, perm)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Remove(name string) error {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return s.base.Remove(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) RemoveAll(path string) error {
|
||||||
|
if err := s.guard(path); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return s.base.RemoveAll(path)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Rename(oldname, newname string) error {
|
||||||
|
if err := s.guard(oldname); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := s.guard(newname); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return s.base.Rename(oldname, newname)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Stat(name string) (os.FileInfo, error) {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return s.base.Stat(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Name() string { return "ScopedFs" }
|
||||||
|
|
||||||
|
func (s *ScopedFs) Chmod(name string, mode os.FileMode) error {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return s.base.Chmod(name, mode)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Chown(name string, uid, gid int) error {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return s.base.Chown(name, uid, gid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) Chtimes(name string, atime, mtime time.Time) error {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return s.base.Chtimes(name, atime, mtime)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *ScopedFs) LstatIfPossible(name string) (os.FileInfo, bool, error) {
|
||||||
|
if err := s.guard(name); err != nil {
|
||||||
|
return nil, false, err
|
||||||
|
}
|
||||||
|
return s.base.LstatIfPossible(name)
|
||||||
|
}
|
||||||
@@ -0,0 +1,124 @@
|
|||||||
|
package fileutils
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"path"
|
||||||
|
"path/filepath"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/filebrowser/filebrowser/v2/files"
|
||||||
|
"github.com/spf13/afero"
|
||||||
|
)
|
||||||
|
|
||||||
|
// failingOpenFs wraps an afero.Fs and makes Open fail for one specific path,
|
||||||
|
// while every other operation (including Stat) is delegated unchanged. It
|
||||||
|
// simulates a directory that can be stat-ed but not opened/read — for example
|
||||||
|
// an unreadable sub-directory, or one whose permissions changed or that was
|
||||||
|
// removed after its parent was listed (a TOCTOU race) — encountered during a
|
||||||
|
// recursive copy.
|
||||||
|
type failingOpenFs struct {
|
||||||
|
afero.Fs
|
||||||
|
failOpen string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *failingOpenFs) Open(name string) (afero.File, error) {
|
||||||
|
if path.Clean(name) == path.Clean(f.failOpen) {
|
||||||
|
return nil, os.ErrPermission
|
||||||
|
}
|
||||||
|
return f.Fs.Open(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
// CopyDir is documented to keep going when it hits an error and to report the
|
||||||
|
// error afterwards. A sub-directory that cannot be opened must therefore yield
|
||||||
|
// an error (and leave the other, readable entries copied) rather than
|
||||||
|
// panicking on a nil directory handle.
|
||||||
|
func TestCopyDirUnreadableSubdirReturnsError(t *testing.T) {
|
||||||
|
mem := afero.NewMemMapFs()
|
||||||
|
if err := mem.MkdirAll("/srcdir/sub", 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := afero.WriteFile(mem, "/srcdir/ok.txt", []byte("readable"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
afs := &failingOpenFs{Fs: mem, failOpen: "/srcdir/sub"}
|
||||||
|
|
||||||
|
err := Copy(afs, "/srcdir", "/dstdir", 0o644, 0o755)
|
||||||
|
if err == nil {
|
||||||
|
t.Fatal("expected an error when a sub-directory cannot be opened")
|
||||||
|
}
|
||||||
|
|
||||||
|
// The readable sibling must still have been copied (continue-on-error).
|
||||||
|
data, readErr := afero.ReadFile(afs, "/dstdir/ok.txt")
|
||||||
|
if readErr != nil {
|
||||||
|
t.Fatalf("readable sibling was not copied: %v", readErr)
|
||||||
|
}
|
||||||
|
if string(data) != "readable" {
|
||||||
|
t.Fatalf("unexpected copied content: %q", string(data))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copying an in-scope directory that contains a symlink whose target escapes
|
||||||
|
// the user's scope must not dereference that symlink into the destination.
|
||||||
|
// Otherwise a scoped user could exfiltrate out-of-scope file content via the
|
||||||
|
// recursive copy path (GHSA-c2gv-wf5f-hjhh, an incomplete fix of
|
||||||
|
// GHSA-239w-m3h6-ch8v).
|
||||||
|
func TestCopyDoesNotDereferenceEscapingSymlink(t *testing.T) {
|
||||||
|
base := t.TempDir()
|
||||||
|
scope := filepath.Join(base, "scope")
|
||||||
|
if err := os.MkdirAll(filepath.Join(scope, "srcdir"), 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// A secret living outside the scope.
|
||||||
|
secret := filepath.Join(base, "secret.txt")
|
||||||
|
if err := os.WriteFile(secret, []byte("OUT-OF-SCOPE-SECRET"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// An escaping symlink planted inside the user's scope.
|
||||||
|
if err := os.Symlink(secret, filepath.Join(scope, "srcdir", "link.txt")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
afs := files.NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
err := Copy(afs, "/srcdir", "/dstdir", 0o644, 0o755)
|
||||||
|
if err == nil {
|
||||||
|
t.Fatal("expected copy of a directory containing an escaping symlink to fail")
|
||||||
|
}
|
||||||
|
|
||||||
|
// The escaping symlink's target content must not have landed in scope.
|
||||||
|
if data, readErr := afero.ReadFile(afs, "/dstdir/link.txt"); readErr == nil {
|
||||||
|
t.Fatalf("escaping symlink was dereferenced into scope: got %q", string(data))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// A symlink whose target stays within scope is legitimate and must still be
|
||||||
|
// copied (dereferenced) so the fix does not over-block normal usage.
|
||||||
|
func TestCopyAllowsInScopeSymlink(t *testing.T) {
|
||||||
|
scope := t.TempDir()
|
||||||
|
if err := os.MkdirAll(filepath.Join(scope, "srcdir", "real"), 0o755); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.WriteFile(filepath.Join(scope, "srcdir", "real", "f.txt"), []byte("in-scope"), 0o644); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := os.Symlink(filepath.Join(scope, "srcdir", "real", "f.txt"), filepath.Join(scope, "srcdir", "link.txt")); err != nil {
|
||||||
|
t.Skipf("cannot create symlink: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
afs := files.NewScopedFs(afero.NewOsFs(), scope)
|
||||||
|
|
||||||
|
if err := Copy(afs, "/srcdir", "/dstdir", 0o644, 0o755); err != nil {
|
||||||
|
t.Fatalf("expected copy of an in-scope symlink to succeed, got: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
data, err := afero.ReadFile(afs, "/dstdir/link.txt")
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("expected in-scope symlink to be copied, got: %v", err)
|
||||||
|
}
|
||||||
|
if string(data) != "in-scope" {
|
||||||
|
t.Fatalf("unexpected copied content: %q", string(data))
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
-1
@@ -23,7 +23,12 @@ func CopyDir(afs afero.Fs, source, dest string, fileMode, dirMode fs.FileMode) e
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
dir, _ := afs.Open(source)
|
dir, err := afs.Open(source)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer dir.Close()
|
||||||
|
|
||||||
obs, err := dir.Readdir(-1)
|
obs, err := dir.Readdir(-1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
+12
-9
@@ -14,13 +14,15 @@
|
|||||||
"typecheck": "vue-tsc -p ./tsconfig.app.json --noEmit",
|
"typecheck": "vue-tsc -p ./tsconfig.app.json --noEmit",
|
||||||
"lint": "eslint src/",
|
"lint": "eslint src/",
|
||||||
"lint:fix": "eslint --fix src/",
|
"lint:fix": "eslint --fix src/",
|
||||||
"format": "prettier --write ."
|
"format": "prettier --write .",
|
||||||
|
"test": "vitest run"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chenfengyuan/vue-number-input": "^2.0.1",
|
"@chenfengyuan/vue-number-input": "^2.0.1",
|
||||||
"@vueuse/core": "^14.0.0",
|
"@vueuse/core": "^14.0.0",
|
||||||
"@vueuse/integrations": "^14.0.0",
|
"@vueuse/integrations": "^14.0.0",
|
||||||
"ace-builds": "^1.43.2",
|
"ace-builds": "^1.43.2",
|
||||||
|
"csv-parse": "^6.1.0",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"dompurify": "^3.2.6",
|
"dompurify": "^3.2.6",
|
||||||
"epubjs": "^0.3.93",
|
"epubjs": "^0.3.93",
|
||||||
@@ -28,7 +30,8 @@
|
|||||||
"js-base64": "^3.7.7",
|
"js-base64": "^3.7.7",
|
||||||
"jwt-decode": "^4.0.0",
|
"jwt-decode": "^4.0.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"marked": "^17.0.0",
|
"marked": "^18.0.0",
|
||||||
|
"marked-katex-extension": "^5.1.6",
|
||||||
"material-icons": "^1.13.14",
|
"material-icons": "^1.13.14",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"pinia": "^3.0.4",
|
"pinia": "^3.0.4",
|
||||||
@@ -40,11 +43,10 @@
|
|||||||
"videojs-hotkeys": "^0.2.28",
|
"videojs-hotkeys": "^0.2.28",
|
||||||
"videojs-mobile-ui": "^1.1.1",
|
"videojs-mobile-ui": "^1.1.1",
|
||||||
"vue": "^3.5.17",
|
"vue": "^3.5.17",
|
||||||
"vue-final-modal": "^4.5.5",
|
|
||||||
"vue-i18n": "^11.1.10",
|
"vue-i18n": "^11.1.10",
|
||||||
"vue-lazyload": "^3.0.0",
|
"vue-lazyload": "^3.0.0",
|
||||||
"vue-reader": "^1.2.17",
|
"vue-reader": "^1.2.17",
|
||||||
"vue-router": "^4.5.1",
|
"vue-router": "^5.0.0",
|
||||||
"vue-toastification": "^2.0.0-rc.5"
|
"vue-toastification": "^2.0.0-rc.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -53,13 +55,13 @@
|
|||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/node": "^24.10.1",
|
"@types/node": "^24.10.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
||||||
"@vitejs/plugin-legacy": "^7.2.1",
|
"@vitejs/plugin-legacy": "^8.0.0",
|
||||||
"@vitejs/plugin-vue": "^6.0.1",
|
"@vitejs/plugin-vue": "^6.0.1",
|
||||||
"@vue/eslint-config-prettier": "^10.2.0",
|
"@vue/eslint-config-prettier": "^10.2.0",
|
||||||
"@vue/eslint-config-typescript": "^14.6.0",
|
"@vue/eslint-config-typescript": "^14.6.0",
|
||||||
"@vue/tsconfig": "^0.8.1",
|
"@vue/tsconfig": "^0.9.0",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.21",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^10.0.0",
|
||||||
"eslint-config-prettier": "^10.1.5",
|
"eslint-config-prettier": "^10.1.5",
|
||||||
"eslint-plugin-prettier": "^5.5.1",
|
"eslint-plugin-prettier": "^5.5.1",
|
||||||
"eslint-plugin-vue": "^10.5.1",
|
"eslint-plugin-vue": "^10.5.1",
|
||||||
@@ -67,9 +69,10 @@
|
|||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"terser": "^5.43.1",
|
"terser": "^5.43.1",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^7.2.2",
|
"vite": "^8.0.0",
|
||||||
"vite-plugin-compression2": "^2.3.1",
|
"vite-plugin-compression2": "^2.3.1",
|
||||||
|
"vitest": "^4.1.0",
|
||||||
"vue-tsc": "^3.1.3"
|
"vue-tsc": "^3.1.3"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501"
|
"packageManager": "pnpm@10.33.4+sha512.1c67b3b359b2d408119ba1ed289f34b8fc3c6873412bec6fd264fbdc82489e510fcbecb9ce9d22dae7f3b76269d8441046014bdca53b9979cd7a561ad631b800"
|
||||||
}
|
}
|
||||||
Generated
+2653
-1634
File diff suppressed because it is too large.
Load diff
@@ -5,7 +5,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
content="width=device-width, initial-scale=1, user-scalable=no"
|
content="width=device-width, initial-scale=1"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
[{[ if .ReCaptcha -]}]
|
[{[ if .ReCaptcha -]}]
|
||||||
@@ -55,12 +55,16 @@
|
|||||||
short_name: window.FileBrowser.Name || "File Browser",
|
short_name: window.FileBrowser.Name || "File Browser",
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: window.__prependStaticUrl("/img/icons/android-chrome-192x192.png"),
|
src:
|
||||||
|
window.location.origin +
|
||||||
|
window.__prependStaticUrl("/img/icons/android-chrome-192x192.png"),
|
||||||
sizes: "192x192",
|
sizes: "192x192",
|
||||||
type: "image/png",
|
type: "image/png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: window.__prependStaticUrl("/img/icons/android-chrome-512x512.png"),
|
src:
|
||||||
|
window.location.origin +
|
||||||
|
window.__prependStaticUrl("/img/icons/android-chrome-512x512.png"),
|
||||||
sizes: "512x512",
|
sizes: "512x512",
|
||||||
type: "image/png",
|
type: "image/png",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<h1 class="sr-only">{{ name }}</h1>
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -9,6 +10,7 @@ import { ref, onMounted, watch } from "vue";
|
|||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { setHtmlLocale } from "./i18n";
|
import { setHtmlLocale } from "./i18n";
|
||||||
import { getMediaPreference, getTheme, setTheme } from "./utils/theme";
|
import { getMediaPreference, getTheme, setTheme } from "./utils/theme";
|
||||||
|
import { name } from "./utils/constants";
|
||||||
|
|
||||||
const { locale } = useI18n();
|
const { locale } = useI18n();
|
||||||
|
|
||||||
@@ -31,3 +33,17 @@ watch(locale, (newValue) => {
|
|||||||
newValue && setHtmlLocale(newValue);
|
newValue && setHtmlLocale(newValue);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.sr-only {
|
||||||
|
position: absolute;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
padding: 0;
|
||||||
|
margin: -1px;
|
||||||
|
overflow: hidden;
|
||||||
|
clip: rect(0, 0, 0, 0);
|
||||||
|
white-space: nowrap;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -3,14 +3,25 @@ import { useLayoutStore } from "@/stores/layout";
|
|||||||
import { baseURL } from "@/utils/constants";
|
import { baseURL } from "@/utils/constants";
|
||||||
import { upload as postTus, useTus } from "./tus";
|
import { upload as postTus, useTus } from "./tus";
|
||||||
import { createURL, fetchURL, removePrefix, StatusError } from "./utils";
|
import { createURL, fetchURL, removePrefix, StatusError } from "./utils";
|
||||||
|
import { isEncodableResponse, makeRawResource } from "@/utils/encodings";
|
||||||
|
|
||||||
export async function fetch(url: string, signal?: AbortSignal) {
|
export async function fetch(url: string, signal?: AbortSignal) {
|
||||||
|
const encoding = isEncodableResponse(url);
|
||||||
url = removePrefix(url);
|
url = removePrefix(url);
|
||||||
const res = await fetchURL(`/api/resources${url}`, { signal });
|
const res = await fetchURL(`/api/resources${url}`, {
|
||||||
|
signal,
|
||||||
|
headers: {
|
||||||
|
"X-Encoding": encoding ? "true" : "false",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
let data: Resource;
|
let data: Resource;
|
||||||
try {
|
try {
|
||||||
data = (await res.json()) as Resource;
|
if (res.headers.get("Content-Type") == "application/octet-stream") {
|
||||||
|
data = await makeRawResource(res, url);
|
||||||
|
} else {
|
||||||
|
data = (await res.json()) as Resource;
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Check if the error is an intentional cancellation
|
// Check if the error is an intentional cancellation
|
||||||
if (e instanceof Error && e.name === "AbortError") {
|
if (e instanceof Error && e.name === "AbortError") {
|
||||||
@@ -38,6 +49,12 @@ export async function fetch(url: string, signal?: AbortSignal) {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function fetchAll(url: string): Promise<RecursiveEntry[]> {
|
||||||
|
url = removePrefix(url);
|
||||||
|
const res = await fetchURL(`/api/resources/recursive${url}`, {});
|
||||||
|
return (await res.json()) as RecursiveEntry[];
|
||||||
|
}
|
||||||
|
|
||||||
async function resourceAction(url: string, method: ApiMethod, content?: any) {
|
async function resourceAction(url: string, method: ApiMethod, content?: any) {
|
||||||
url = removePrefix(url);
|
url = removePrefix(url);
|
||||||
|
|
||||||
@@ -140,9 +157,9 @@ async function postResources(
|
|||||||
if (request.status === 200) {
|
if (request.status === 200) {
|
||||||
resolve(request.responseText);
|
resolve(request.responseText);
|
||||||
} else if (request.status === 409) {
|
} else if (request.status === 409) {
|
||||||
reject(request.status);
|
reject(new Error(request.status.toString()));
|
||||||
} else {
|
} else {
|
||||||
reject(request.responseText);
|
reject(new Error(request.responseText));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -166,9 +183,12 @@ function moveCopy(
|
|||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
const from = item.from;
|
const from = item.from;
|
||||||
const to = encodeURIComponent(removePrefix(item.to ?? ""));
|
const to = encodeURIComponent(removePrefix(item.to ?? ""));
|
||||||
|
const finalOverwrite =
|
||||||
|
item.overwrite == undefined ? overwrite : item.overwrite;
|
||||||
|
const finalRename = item.rename == undefined ? rename : item.rename;
|
||||||
const url = `${from}?action=${
|
const url = `${from}?action=${
|
||||||
copy ? "copy" : "rename"
|
copy ? "copy" : "rename"
|
||||||
}&destination=${to}&override=${overwrite}&rename=${rename}`;
|
}&destination=${to}&override=${finalOverwrite}&rename=${finalRename}`;
|
||||||
promises.push(resourceAction(url, "PATCH"));
|
promises.push(resourceAction(url, "PATCH"));
|
||||||
}
|
}
|
||||||
layoutStore.closeHovers();
|
layoutStore.closeHovers();
|
||||||
|
|||||||
@@ -41,12 +41,12 @@ export function download(
|
|||||||
let url = `${baseURL}/api/public/dl/${hash}`;
|
let url = `${baseURL}/api/public/dl/${hash}`;
|
||||||
|
|
||||||
if (files.length === 1) {
|
if (files.length === 1) {
|
||||||
url += encodeURIComponent(files[0]) + "?";
|
url += files[0] + "?";
|
||||||
} else {
|
} else {
|
||||||
let arg = "";
|
let arg = "";
|
||||||
|
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
arg += encodeURIComponent(file) + ",";
|
arg += file + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
arg = arg.substring(0, arg.length - 1);
|
arg = arg.substring(0, arg.length - 1);
|
||||||
|
|||||||
+61
-15
@@ -1,7 +1,12 @@
|
|||||||
import { fetchURL, removePrefix } from "./utils";
|
import { fetchURL, removePrefix, StatusError } from "./utils";
|
||||||
import url from "../utils/url";
|
import url from "../utils/url";
|
||||||
|
|
||||||
export default async function search(base: string, query: string) {
|
export default async function search(
|
||||||
|
base: string,
|
||||||
|
query: string,
|
||||||
|
signal: AbortSignal,
|
||||||
|
callback: (item: ResourceItem) => void
|
||||||
|
) {
|
||||||
base = removePrefix(base);
|
base = removePrefix(base);
|
||||||
query = encodeURIComponent(query);
|
query = encodeURIComponent(query);
|
||||||
|
|
||||||
@@ -9,19 +14,60 @@ export default async function search(base: string, query: string) {
|
|||||||
base += "/";
|
base += "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await fetchURL(`/api/search${base}?query=${query}`, {});
|
const res = await fetchURL(`/api/search${base}?query=${query}`, { signal });
|
||||||
|
if (!res.body) {
|
||||||
|
throw new StatusError("000 No connection", 0);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
// Try streaming approach first (modern browsers)
|
||||||
|
if (res.body && typeof res.body.pipeThrough === "function") {
|
||||||
|
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
|
||||||
|
let buffer = "";
|
||||||
|
while (true) {
|
||||||
|
const { done, value } = await reader.read();
|
||||||
|
if (value) {
|
||||||
|
buffer += value;
|
||||||
|
}
|
||||||
|
const lines = buffer.split(/\n/);
|
||||||
|
let lastLine = lines.pop();
|
||||||
|
// Save incomplete last line
|
||||||
|
if (!lastLine) {
|
||||||
|
lastLine = "";
|
||||||
|
}
|
||||||
|
buffer = lastLine;
|
||||||
|
|
||||||
let data = await res.json();
|
for (const line of lines) {
|
||||||
|
if (line) {
|
||||||
data = data.map((item: ResourceItem & { dir: boolean }) => {
|
const item = JSON.parse(line) as ResourceItem;
|
||||||
item.url = `/files${base}` + url.encodePath(item.path);
|
item.url = `/files${base}` + url.encodePath(item.path);
|
||||||
|
if (item.isDir) {
|
||||||
if (item.dir) {
|
item.url += "/";
|
||||||
item.url += "/";
|
}
|
||||||
|
callback(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (done) break;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Fallback for browsers without streaming support (e.g., Safari)
|
||||||
|
const text = await res.text();
|
||||||
|
const lines = text.split(/\n/);
|
||||||
|
for (const line of lines) {
|
||||||
|
if (line) {
|
||||||
|
const item = JSON.parse(line) as ResourceItem;
|
||||||
|
item.url = `/files${base}` + url.encodePath(item.path);
|
||||||
|
if (item.isDir) {
|
||||||
|
item.url += "/";
|
||||||
|
}
|
||||||
|
callback(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
return item;
|
// Check if the error is an intentional cancellation
|
||||||
});
|
if (e instanceof Error && e.name === "AbortError") {
|
||||||
|
throw new StatusError("000 No connection", 0, true);
|
||||||
return data;
|
}
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -8,12 +8,13 @@ export async function get(id: number) {
|
|||||||
return fetchJSON<IUser>(`/api/users/${id}`, {});
|
return fetchJSON<IUser>(`/api/users/${id}`, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function create(user: IUser) {
|
export async function create(user: IUser, currentPassword: string) {
|
||||||
const res = await fetchURL(`/api/users`, {
|
const res = await fetchURL(`/api/users`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
what: "user",
|
what: "user",
|
||||||
which: [],
|
which: [],
|
||||||
|
current_password: currentPassword,
|
||||||
data: user,
|
data: user,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
@@ -25,19 +26,30 @@ export async function create(user: IUser) {
|
|||||||
throw new StatusError(await res.text(), res.status);
|
throw new StatusError(await res.text(), res.status);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function update(user: Partial<IUser>, which = ["all"]) {
|
export async function update(
|
||||||
|
user: Partial<IUser>,
|
||||||
|
which = ["all"],
|
||||||
|
currentPassword: string | null = null
|
||||||
|
) {
|
||||||
await fetchURL(`/api/users/${user.id}`, {
|
await fetchURL(`/api/users/${user.id}`, {
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
what: "user",
|
what: "user",
|
||||||
which: which,
|
which: which,
|
||||||
|
...(currentPassword != null ? { current_password: currentPassword } : {}),
|
||||||
data: user,
|
data: user,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function remove(id: number) {
|
export async function remove(
|
||||||
|
id: number,
|
||||||
|
currentPassword: string | null = null
|
||||||
|
) {
|
||||||
await fetchURL(`/api/users/${id}`, {
|
await fetchURL(`/api/users/${id}`, {
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
|
body: JSON.stringify({
|
||||||
|
...(currentPassword != null ? { current_password: currentPassword } : {}),
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,142 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, watch, onMounted, onBeforeUnmount } from "vue";
|
||||||
|
import { vClickOutside } from "@/utils/index";
|
||||||
|
|
||||||
|
const props = withDefaults(
|
||||||
|
defineProps<{
|
||||||
|
position?: "top-left" | "bottom-left" | "bottom-right" | "top-right";
|
||||||
|
closeOnClick?: boolean;
|
||||||
|
}>(),
|
||||||
|
{
|
||||||
|
position: "bottom-right",
|
||||||
|
closeOnClick: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
const isOpen = defineModel<boolean>();
|
||||||
|
|
||||||
|
const triggerRef = ref<HTMLElement | null>(null);
|
||||||
|
const listRef = ref<HTMLElement | null>(null);
|
||||||
|
const dropdownStyle = ref<Record<string, string>>({});
|
||||||
|
|
||||||
|
const updatePosition = () => {
|
||||||
|
if (!isOpen.value || !triggerRef.value) return;
|
||||||
|
|
||||||
|
const rect = triggerRef.value.getBoundingClientRect();
|
||||||
|
|
||||||
|
dropdownStyle.value = {
|
||||||
|
position: "fixed",
|
||||||
|
top: props.position.includes("bottom")
|
||||||
|
? `${rect.bottom + 2}px`
|
||||||
|
: `${rect.top}px`,
|
||||||
|
left: props.position.includes("left") ? `${rect.left}px` : "auto",
|
||||||
|
right: props.position.includes("right")
|
||||||
|
? `${window.innerWidth - rect.right}px`
|
||||||
|
: "auto",
|
||||||
|
zIndex: "11000",
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
watch(isOpen, (open) => {
|
||||||
|
if (open) {
|
||||||
|
updatePosition();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const onWindowChange = () => {
|
||||||
|
updatePosition();
|
||||||
|
};
|
||||||
|
|
||||||
|
const closeDropdown = (e: Event) => {
|
||||||
|
if (
|
||||||
|
e.target instanceof HTMLElement &&
|
||||||
|
listRef.value?.contains(e.target) &&
|
||||||
|
!props.closeOnClick
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
isOpen.value = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
window.addEventListener("resize", onWindowChange);
|
||||||
|
window.addEventListener("scroll", onWindowChange, true);
|
||||||
|
});
|
||||||
|
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
window.removeEventListener("resize", onWindowChange);
|
||||||
|
window.removeEventListener("scroll", onWindowChange, true);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
directives: {
|
||||||
|
clickOutside: vClickOutside,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div
|
||||||
|
class="dropdown-modal-container"
|
||||||
|
v-click-outside="closeDropdown"
|
||||||
|
ref="triggerRef"
|
||||||
|
>
|
||||||
|
<button @click="isOpen = !isOpen" class="dropdown-modal-trigger">
|
||||||
|
<slot></slot>
|
||||||
|
<i class="material-icons">chevron_right</i>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<teleport to="body">
|
||||||
|
<div
|
||||||
|
ref="listRef"
|
||||||
|
class="dropdown-modal-list"
|
||||||
|
:class="{ 'dropdown-modal-open': isOpen }"
|
||||||
|
:style="dropdownStyle"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<slot name="list"></slot>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</teleport>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.dropdown-modal-trigger {
|
||||||
|
background: var(--surfacePrimary);
|
||||||
|
color: var(--textSecondary);
|
||||||
|
border: 1px solid var(--borderPrimary);
|
||||||
|
border-radius: 0.1em;
|
||||||
|
padding: 0.5em 1em;
|
||||||
|
transition: 0.2s ease all;
|
||||||
|
margin: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 1rem;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-modal-trigger > i {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-modal-list {
|
||||||
|
padding: 0.25rem;
|
||||||
|
background-color: var(--surfacePrimary);
|
||||||
|
color: var(--textSecondary);
|
||||||
|
display: none;
|
||||||
|
border: 1px solid var(--borderPrimary);
|
||||||
|
border-radius: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-modal-list > div {
|
||||||
|
max-height: 450px;
|
||||||
|
padding: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-modal-open {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -5,10 +5,11 @@
|
|||||||
v-if="active"
|
v-if="active"
|
||||||
class="action"
|
class="action"
|
||||||
@click="close"
|
@click="close"
|
||||||
:aria-label="$t('buttons.close')"
|
:aria-label="closeButtonTitle"
|
||||||
:title="$t('buttons.close')"
|
:title="closeButtonTitle"
|
||||||
>
|
>
|
||||||
<i class="material-icons">arrow_back</i>
|
<i v-if="ongoing" class="material-icons">stop_circle</i>
|
||||||
|
<i v-else class="material-icons">arrow_back</i>
|
||||||
</button>
|
</button>
|
||||||
<i v-else class="material-icons">search</i>
|
<i v-else class="material-icons">search</i>
|
||||||
<input
|
<input
|
||||||
@@ -21,6 +22,15 @@
|
|||||||
:aria-label="$t('search.search')"
|
:aria-label="$t('search.search')"
|
||||||
:placeholder="$t('search.search')"
|
:placeholder="$t('search.search')"
|
||||||
/>
|
/>
|
||||||
|
<i
|
||||||
|
v-show="ongoing"
|
||||||
|
class="material-icons spin"
|
||||||
|
style="display: inline-block"
|
||||||
|
>autorenew
|
||||||
|
</i>
|
||||||
|
<span style="margin-top: 5px" v-show="results.length > 0">
|
||||||
|
{{ results.length }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="result" ref="result">
|
<div id="result" ref="result">
|
||||||
@@ -57,9 +67,6 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<p id="renew">
|
|
||||||
<i class="material-icons spin">autorenew</i>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -70,10 +77,11 @@ import { useLayoutStore } from "@/stores/layout";
|
|||||||
|
|
||||||
import url from "@/utils/url";
|
import url from "@/utils/url";
|
||||||
import { search } from "@/api";
|
import { search } from "@/api";
|
||||||
import { computed, inject, onMounted, ref, watch } from "vue";
|
import { computed, inject, onMounted, ref, watch, onUnmounted } from "vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
|
import { StatusError } from "@/api/utils";
|
||||||
|
|
||||||
const boxes = {
|
const boxes = {
|
||||||
image: { label: "images", icon: "insert_photo" },
|
image: { label: "images", icon: "insert_photo" },
|
||||||
@@ -84,6 +92,7 @@ const boxes = {
|
|||||||
|
|
||||||
const layoutStore = useLayoutStore();
|
const layoutStore = useLayoutStore();
|
||||||
const fileStore = useFileStore();
|
const fileStore = useFileStore();
|
||||||
|
let searchAbortController = new AbortController();
|
||||||
|
|
||||||
const { currentPromptName } = storeToRefs(layoutStore);
|
const { currentPromptName } = storeToRefs(layoutStore);
|
||||||
|
|
||||||
@@ -124,9 +133,7 @@ watch(currentPromptName, (newVal, oldVal) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
watch(prompt, () => {
|
watch(prompt, () => {
|
||||||
if (results.value.length) {
|
reset();
|
||||||
reset();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// ...mapState(useFileStore, ["isListing"]),
|
// ...mapState(useFileStore, ["isListing"]),
|
||||||
@@ -149,6 +156,10 @@ const filteredResults = computed(() => {
|
|||||||
return results.value.slice(0, resultsCount.value);
|
return results.value.slice(0, resultsCount.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const closeButtonTitle = computed(() => {
|
||||||
|
return ongoing.value ? t("buttons.stopSearch") : t("buttons.close");
|
||||||
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (result.value === null) {
|
if (result.value === null) {
|
||||||
return;
|
return;
|
||||||
@@ -164,14 +175,23 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
abortLastSearch();
|
||||||
|
});
|
||||||
|
|
||||||
const open = () => {
|
const open = () => {
|
||||||
!active.value && layoutStore.showHover("search");
|
!active.value && layoutStore.showHover("search");
|
||||||
};
|
};
|
||||||
|
|
||||||
const close = (event: Event) => {
|
const close = (event: Event) => {
|
||||||
event.stopPropagation();
|
if (ongoing.value) {
|
||||||
event.preventDefault();
|
abortLastSearch();
|
||||||
layoutStore.closeHovers();
|
ongoing.value = false;
|
||||||
|
} else {
|
||||||
|
event.stopPropagation();
|
||||||
|
event.preventDefault();
|
||||||
|
layoutStore.closeHovers();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const keyup = (event: KeyboardEvent) => {
|
const keyup = (event: KeyboardEvent) => {
|
||||||
@@ -188,11 +208,16 @@ const init = (string: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const reset = () => {
|
const reset = () => {
|
||||||
|
abortLastSearch();
|
||||||
ongoing.value = false;
|
ongoing.value = false;
|
||||||
resultsCount.value = 50;
|
resultsCount.value = 50;
|
||||||
results.value = [];
|
results.value = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const abortLastSearch = () => {
|
||||||
|
searchAbortController.abort();
|
||||||
|
};
|
||||||
|
|
||||||
const submit = async (event: Event) => {
|
const submit = async (event: Event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
@@ -208,8 +233,16 @@ const submit = async (event: Event) => {
|
|||||||
ongoing.value = true;
|
ongoing.value = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
results.value = await search(path, prompt.value);
|
abortLastSearch();
|
||||||
|
searchAbortController = new AbortController();
|
||||||
|
results.value = [];
|
||||||
|
await search(path, prompt.value, searchAbortController.signal, (item) =>
|
||||||
|
results.value.push(item)
|
||||||
|
);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
if (error instanceof StatusError && error.is_canceled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$showError(error);
|
$showError(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
>
|
>
|
||||||
<progress-bar :val="usage.usedPercentage" size="small"></progress-bar>
|
<progress-bar :val="usage.usedPercentage" size="small"></progress-bar>
|
||||||
<br />
|
<br />
|
||||||
{{ usage.used }} of {{ usage.total }} used
|
{{ $t("sidebar.diskUsed", { used: usage.used, total: usage.total }) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="credits">
|
<p class="credits">
|
||||||
|
|||||||
@@ -1,10 +1,64 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="csv-viewer">
|
<div class="csv-viewer">
|
||||||
|
<div class="csv-header">
|
||||||
|
<div class="header-select">
|
||||||
|
<label for="columnSeparator">{{ $t("files.columnSeparator") }}</label>
|
||||||
|
<select
|
||||||
|
id="columnSeparator"
|
||||||
|
class="input input--block"
|
||||||
|
v-model="columnSeparator"
|
||||||
|
>
|
||||||
|
<option :value="[',']">
|
||||||
|
{{ $t("files.csvSeparators.comma") }}
|
||||||
|
</option>
|
||||||
|
<option :value="[';']">
|
||||||
|
{{ $t("files.csvSeparators.semicolon") }}
|
||||||
|
</option>
|
||||||
|
<option :value="[',', ';']">
|
||||||
|
{{ $t("files.csvSeparators.both") }}
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="header-select" v-if="isEncodedContent">
|
||||||
|
<label for="fileEncoding">{{ $t("files.fileEncoding") }}</label>
|
||||||
|
<DropdownModal
|
||||||
|
v-model="isEncondingDropdownOpen"
|
||||||
|
:close-on-click="false"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<span class="selected-encoding">{{ selectedEncoding }}</span>
|
||||||
|
</div>
|
||||||
|
<template v-slot:list>
|
||||||
|
<input
|
||||||
|
v-model="encodingSearch"
|
||||||
|
:placeholder="$t('search.search')"
|
||||||
|
class="input input--block"
|
||||||
|
name="encoding"
|
||||||
|
/>
|
||||||
|
<div class="encoding-list">
|
||||||
|
<div v-if="encodingList.length == 0" class="message">
|
||||||
|
<i class="material-icons">sentiment_dissatisfied</i>
|
||||||
|
<span>{{ $t("files.lonely") }}</span>
|
||||||
|
</div>
|
||||||
|
<button
|
||||||
|
v-for="encoding in encodingList"
|
||||||
|
:value="encoding"
|
||||||
|
:key="encoding"
|
||||||
|
class="encoding-button"
|
||||||
|
@click="selectedEncoding = encoding"
|
||||||
|
>
|
||||||
|
{{ encoding }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</DropdownModal>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div v-if="displayError" class="csv-error">
|
<div v-if="displayError" class="csv-error">
|
||||||
<i class="material-icons">error</i>
|
<i class="material-icons">error</i>
|
||||||
<p>{{ displayError }}</p>
|
<p>{{ displayError }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="data.headers.length === 0" class="csv-empty">
|
<div v-else-if="parsed.headers.length === 0" class="csv-empty">
|
||||||
<i class="material-icons">description</i>
|
<i class="material-icons">description</i>
|
||||||
<p>{{ $t("files.lonely") }}</p>
|
<p>{{ $t("files.lonely") }}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -12,13 +66,13 @@
|
|||||||
<table class="csv-table">
|
<table class="csv-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th v-for="(header, index) in data.headers" :key="index">
|
<th v-for="(header, index) in parsed.headers" :key="index">
|
||||||
{{ header || `Column ${index + 1}` }}
|
{{ header || `Column ${index + 1}` }}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(row, rowIndex) in data.rows" :key="rowIndex">
|
<tr v-for="(row, rowIndex) in parsed.rows" :key="rowIndex">
|
||||||
<td v-for="(cell, cellIndex) in row" :key="cellIndex">
|
<td v-for="(cell, cellIndex) in row" :key="cellIndex">
|
||||||
{{ cell }}
|
{{ cell }}
|
||||||
</td>
|
</td>
|
||||||
@@ -26,29 +80,11 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="csv-footer">
|
<div class="csv-footer">
|
||||||
<div class="csv-info" v-if="data.rows.length > 100">
|
<div class="csv-info" v-if="parsed.rows.length > 100">
|
||||||
<i class="material-icons">info</i>
|
<i class="material-icons">info</i>
|
||||||
<span>
|
<span>
|
||||||
{{ $t("files.showingRows", { count: data.rows.length }) }}</span
|
{{ $t("files.showingRows", { count: parsed.rows.length }) }}
|
||||||
>
|
</span>
|
||||||
</div>
|
|
||||||
<div class="column-separator">
|
|
||||||
<label for="columnSeparator">{{ $t("files.columnSeparator") }}</label>
|
|
||||||
<select
|
|
||||||
id="columnSeparator"
|
|
||||||
class="input input--block"
|
|
||||||
v-model="columnSeparator"
|
|
||||||
>
|
|
||||||
<option :value="[',']">
|
|
||||||
{{ $t("files.csvSeparators.comma") }}
|
|
||||||
</option>
|
|
||||||
<option :value="[';']">
|
|
||||||
{{ $t("files.csvSeparators.semicolon") }}
|
|
||||||
</option>
|
|
||||||
<option :value="[',', ';']">
|
|
||||||
{{ $t("files.csvSeparators.both") }}
|
|
||||||
</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -56,11 +92,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { parseCSV, type CsvData } from "@/utils/csv";
|
import { computed, ref, watch, watchEffect } from "vue";
|
||||||
import { computed, ref } from "vue";
|
import { parse } from "csv-parse/browser/esm";
|
||||||
|
import { useI18n } from "vue-i18n";
|
||||||
|
import { availableEncodings, decode } from "@/utils/encodings";
|
||||||
|
import DropdownModal from "../DropdownModal.vue";
|
||||||
|
|
||||||
|
const { t } = useI18n({});
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
content: string;
|
content: ArrayBuffer | string;
|
||||||
error?: string;
|
error?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,31 +109,62 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
error: "",
|
error: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const columnSeparator = ref([","]);
|
const isEncondingDropdownOpen = ref(false);
|
||||||
|
|
||||||
const data = computed<CsvData>(() => {
|
const encodingSearch = ref<string>("");
|
||||||
try {
|
|
||||||
return parseCSV(props.content, columnSeparator.value);
|
const encodingList = computed(() => {
|
||||||
} catch (e) {
|
return availableEncodings.filter((e) =>
|
||||||
console.error("Failed to parse CSV:", e);
|
e.toLowerCase().includes(encodingSearch.value.toLowerCase())
|
||||||
return { headers: [], rows: [] };
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
const columnSeparator = ref([",", ";"]);
|
||||||
|
|
||||||
|
const selectedEncoding = ref("utf-8");
|
||||||
|
|
||||||
|
const parsed = ref<CsvData>({ headers: [], rows: [] });
|
||||||
|
|
||||||
|
const displayError = ref<string | null>(null);
|
||||||
|
|
||||||
|
const isEncodedContent = computed(() => {
|
||||||
|
return props.content instanceof ArrayBuffer;
|
||||||
|
});
|
||||||
|
|
||||||
|
watchEffect(() => {
|
||||||
|
if (props.content !== "" && columnSeparator.value.length > 0) {
|
||||||
|
const content = isEncodedContent.value
|
||||||
|
? decode(props.content as ArrayBuffer, selectedEncoding.value)
|
||||||
|
: props.content;
|
||||||
|
parse(
|
||||||
|
content as string,
|
||||||
|
{
|
||||||
|
delimiter: columnSeparator.value,
|
||||||
|
skip_empty_lines: true,
|
||||||
|
relax_column_count: true,
|
||||||
|
},
|
||||||
|
(error, output) => {
|
||||||
|
if (error) {
|
||||||
|
console.error("Failed to parse CSV:", error);
|
||||||
|
parsed.value = { headers: [], rows: [] };
|
||||||
|
displayError.value = t("files.csvLoadFailed", {
|
||||||
|
error: error.toString(),
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
parsed.value = {
|
||||||
|
headers: output[0],
|
||||||
|
rows: output.slice(1),
|
||||||
|
};
|
||||||
|
displayError.value = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const displayError = computed(() => {
|
watch(selectedEncoding, () => {
|
||||||
// External error takes priority (e.g., file too large)
|
isEncondingDropdownOpen.value = false;
|
||||||
if (props.error) {
|
encodingSearch.value = "";
|
||||||
return props.error;
|
|
||||||
}
|
|
||||||
// Check for parse errors
|
|
||||||
if (
|
|
||||||
props.content &&
|
|
||||||
props.content.trim().length > 0 &&
|
|
||||||
data.value.headers.length === 0
|
|
||||||
) {
|
|
||||||
return "Failed to parse CSV file";
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -213,10 +285,6 @@ const displayError = computed(() => {
|
|||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.csv-footer > :only-child {
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.csv-info {
|
.csv-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -230,18 +298,32 @@ const displayError = computed(() => {
|
|||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column-separator {
|
.csv-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-select {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
flex-direction: column;
|
||||||
|
@media (width >= 640px) {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.column-separator > label {
|
.header-select > label {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
text-align: end;
|
@media (width >= 640px) {
|
||||||
|
max-width: 70px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.column-separator > select {
|
.header-select > select,
|
||||||
|
.header-select > div {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,4 +331,40 @@ const displayError = computed(() => {
|
|||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
color: var(--blue);
|
color: var(--blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.encoding-list {
|
||||||
|
max-height: 300px;
|
||||||
|
min-width: 120px;
|
||||||
|
overflow: auto;
|
||||||
|
overscroll-behavior: contain;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
touch-action: pan-y;
|
||||||
|
}
|
||||||
|
|
||||||
|
.encoding-button {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
padding: 0.25rem 0.5rem;
|
||||||
|
color: var(--textPrimary);
|
||||||
|
text-align: left;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 0.2rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.encoding-button:hover {
|
||||||
|
background-color: var(--surfaceSecondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-encoding {
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message {
|
||||||
|
font-size: 1.25em;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -57,6 +57,9 @@ const container = ref<HTMLDivElement | null>(null);
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!decodeUTIF() && imgex.value !== null) {
|
if (!decodeUTIF() && imgex.value !== null) {
|
||||||
imgex.value.src = props.src;
|
imgex.value.src = props.src;
|
||||||
|
imgex.value.alt = decodeURIComponent(
|
||||||
|
props.src.split("/").pop() || "preview"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
props.classList.forEach((className) =>
|
props.classList.forEach((className) =>
|
||||||
@@ -88,6 +91,9 @@ watch(
|
|||||||
() => {
|
() => {
|
||||||
if (!decodeUTIF() && imgex.value !== null) {
|
if (!decodeUTIF() && imgex.value !== null) {
|
||||||
imgex.value.src = props.src;
|
imgex.value.src = props.src;
|
||||||
|
imgex.value.alt = decodeURIComponent(
|
||||||
|
props.src.split("/").pop() || "preview"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
scale.value = 1;
|
scale.value = 1;
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
<img
|
<img
|
||||||
v-if="!readOnly && type === 'image' && isThumbsEnabled"
|
v-if="!readOnly && type === 'image' && isThumbsEnabled"
|
||||||
v-lazy="thumbnailUrl"
|
v-lazy="thumbnailUrl"
|
||||||
|
:alt="name"
|
||||||
/>
|
/>
|
||||||
<i v-else class="material-icons"></i>
|
<i v-else class="material-icons"></i>
|
||||||
</div>
|
</div>
|
||||||
@@ -178,6 +179,11 @@ const drop = async (event: Event) => {
|
|||||||
from: fileStore.req?.items[i].url,
|
from: fileStore.req?.items[i].url,
|
||||||
to: props.url + encodeURIComponent(fileStore.req?.items[i].name),
|
to: props.url + encodeURIComponent(fileStore.req?.items[i].name),
|
||||||
name: fileStore.req?.items[i].name,
|
name: fileStore.req?.items[i].name,
|
||||||
|
size: fileStore.req?.items[i].size,
|
||||||
|
isDir: fileStore.req?.items[i].isDir,
|
||||||
|
modified: fileStore.req?.items[i].modified,
|
||||||
|
overwrite: false,
|
||||||
|
rename: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -187,39 +193,50 @@ const drop = async (event: Event) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const path = el.__vue__.url;
|
const path = el.__vue__.url;
|
||||||
const baseItems = (await api.fetch(path)).items;
|
|
||||||
|
|
||||||
const action = (overwrite: boolean, rename: boolean) => {
|
const action = (overwrite?: boolean, rename?: boolean) => {
|
||||||
api
|
const action =
|
||||||
.move(items, overwrite, rename)
|
(event as KeyboardEvent).ctrlKey || (event as KeyboardEvent).metaKey
|
||||||
|
? api.copy
|
||||||
|
: api.move;
|
||||||
|
action(items, overwrite, rename)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
fileStore.reload = true;
|
fileStore.reload = true;
|
||||||
})
|
})
|
||||||
.catch($showError);
|
.catch($showError);
|
||||||
};
|
};
|
||||||
|
|
||||||
const conflict = upload.checkConflict(items, baseItems);
|
const conflict = await upload.checkConflict(items, path, true);
|
||||||
|
|
||||||
let overwrite = false;
|
if (conflict.length > 0) {
|
||||||
let rename = false;
|
|
||||||
|
|
||||||
if (conflict) {
|
|
||||||
layoutStore.showHover({
|
layoutStore.showHover({
|
||||||
prompt: "replace-rename",
|
prompt: "resolve-conflict",
|
||||||
confirm: (event: Event, option: any) => {
|
props: {
|
||||||
overwrite = option == "overwrite";
|
conflict: conflict,
|
||||||
rename = option == "rename";
|
},
|
||||||
|
confirm: (event: Event, result: Array<ConflictingResource>) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
layoutStore.closeHovers();
|
layoutStore.closeHovers();
|
||||||
action(overwrite, rename);
|
for (let i = result.length - 1; i >= 0; i--) {
|
||||||
|
const item = result[i];
|
||||||
|
if (item.checked.length == 2) {
|
||||||
|
items[item.index].rename = true;
|
||||||
|
} else if (item.checked.length == 1 && item.checked[0] == "origin") {
|
||||||
|
items[item.index].overwrite = true;
|
||||||
|
} else {
|
||||||
|
items.splice(item.index, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (items.length > 0) {
|
||||||
|
action();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
action(overwrite, rename);
|
action(false, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
const itemClick = (event: Event | KeyboardEvent) => {
|
const itemClick = (event: Event | KeyboardEvent) => {
|
||||||
|
|||||||
@@ -147,26 +147,33 @@ interface LanguageImports {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const languageImports: LanguageImports = {
|
const languageImports: LanguageImports = {
|
||||||
he: () => import("video.js/dist/lang/he.json"),
|
|
||||||
hu: () => import("video.js/dist/lang/hu.json"),
|
|
||||||
ar: () => import("video.js/dist/lang/ar.json"),
|
ar: () => import("video.js/dist/lang/ar.json"),
|
||||||
|
bg: () => import("video.js/dist/lang/bg.json"),
|
||||||
|
cs: () => import("video.js/dist/lang/cs.json"),
|
||||||
de: () => import("video.js/dist/lang/de.json"),
|
de: () => import("video.js/dist/lang/de.json"),
|
||||||
el: () => import("video.js/dist/lang/el.json"),
|
el: () => import("video.js/dist/lang/el.json"),
|
||||||
en: () => import("video.js/dist/lang/en.json"),
|
en: () => import("video.js/dist/lang/en.json"),
|
||||||
es: () => import("video.js/dist/lang/es.json"),
|
es: () => import("video.js/dist/lang/es.json"),
|
||||||
fr: () => import("video.js/dist/lang/fr.json"),
|
fr: () => import("video.js/dist/lang/fr.json"),
|
||||||
|
he: () => import("video.js/dist/lang/he.json"),
|
||||||
|
hr: () => import("video.js/dist/lang/hr.json"),
|
||||||
|
hu: () => import("video.js/dist/lang/hu.json"),
|
||||||
it: () => import("video.js/dist/lang/it.json"),
|
it: () => import("video.js/dist/lang/it.json"),
|
||||||
ja: () => import("video.js/dist/lang/ja.json"),
|
ja: () => import("video.js/dist/lang/ja.json"),
|
||||||
ko: () => import("video.js/dist/lang/ko.json"),
|
ko: () => import("video.js/dist/lang/ko.json"),
|
||||||
|
lv: () => import("video.js/dist/lang/lv.json"),
|
||||||
|
nb: () => import("video.js/dist/lang/nb.json"),
|
||||||
|
nl: () => import("video.js/dist/lang/nl.json"),
|
||||||
"nl-be": () => import("video.js/dist/lang/nl.json"),
|
"nl-be": () => import("video.js/dist/lang/nl.json"),
|
||||||
pl: () => import("video.js/dist/lang/pl.json"),
|
pl: () => import("video.js/dist/lang/pl.json"),
|
||||||
"pt-br": () => import("video.js/dist/lang/pt-BR.json"),
|
"pt-br": () => import("video.js/dist/lang/pt-BR.json"),
|
||||||
pt: () => import("video.js/dist/lang/pt-PT.json"),
|
"pt-pt": () => import("video.js/dist/lang/pt-PT.json"),
|
||||||
ro: () => import("video.js/dist/lang/ro.json"),
|
ro: () => import("video.js/dist/lang/ro.json"),
|
||||||
ru: () => import("video.js/dist/lang/ru.json"),
|
ru: () => import("video.js/dist/lang/ru.json"),
|
||||||
sk: () => import("video.js/dist/lang/sk.json"),
|
sk: () => import("video.js/dist/lang/sk.json"),
|
||||||
tr: () => import("video.js/dist/lang/tr.json"),
|
tr: () => import("video.js/dist/lang/tr.json"),
|
||||||
uk: () => import("video.js/dist/lang/uk.json"),
|
uk: () => import("video.js/dist/lang/uk.json"),
|
||||||
|
vi: () => import("video.js/dist/lang/vi.json"),
|
||||||
"zh-cn": () => import("video.js/dist/lang/zh-CN.json"),
|
"zh-cn": () => import("video.js/dist/lang/zh-CN.json"),
|
||||||
"zh-tw": () => import("video.js/dist/lang/zh-TW.json"),
|
"zh-tw": () => import("video.js/dist/lang/zh-TW.json"),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<header>
|
<header>
|
||||||
<img v-if="showLogo" :src="logoURL" />
|
<img v-if="showLogo" :src="logoURL" alt="File Browser" />
|
||||||
<Action
|
<Action
|
||||||
v-if="showMenu"
|
v-if="showMenu"
|
||||||
class="menu-button"
|
class="menu-button"
|
||||||
|
|||||||
@@ -1,21 +1,61 @@
|
|||||||
<template>
|
<template>
|
||||||
<VueFinalModal
|
<div id="modal-background" @click="backgroundClick">
|
||||||
class="vfm-modal"
|
<div ref="modalContainer">
|
||||||
overlay-transition="vfm-fade"
|
<slot></slot>
|
||||||
content-transition="vfm-fade"
|
</div>
|
||||||
@closed="layoutStore.closeHovers"
|
</div>
|
||||||
:focus-trap="{
|
|
||||||
initialFocus: '#focus-prompt',
|
|
||||||
fallbackFocus: 'div.vfm__content',
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
<slot />
|
|
||||||
</VueFinalModal>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { VueFinalModal } from "vue-final-modal";
|
import { onMounted, ref } from "vue";
|
||||||
import { useLayoutStore } from "@/stores/layout";
|
|
||||||
|
|
||||||
const layoutStore = useLayoutStore();
|
const emit = defineEmits(["closed"]);
|
||||||
|
|
||||||
|
const modalContainer = ref(null);
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
const element = document.querySelector("#focus-prompt") as HTMLElement | null;
|
||||||
|
if (element) {
|
||||||
|
element.focus();
|
||||||
|
} else if (modalContainer.value) {
|
||||||
|
(modalContainer.value as HTMLElement).focus();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const backgroundClick = (event: Event) => {
|
||||||
|
const target = event.target as HTMLElement;
|
||||||
|
if (target.id == "modal-background") {
|
||||||
|
emit("closed");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener("keydown", (event) => {
|
||||||
|
if (event.key === "Escape") {
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
emit("closed");
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
#modal-background {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
background-color: #00000096;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
z-index: 10000;
|
||||||
|
animation: ease-in 150ms opacity-enter;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes opacity-enter {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -91,6 +91,11 @@ export default {
|
|||||||
from: this.req.items[item].url,
|
from: this.req.items[item].url,
|
||||||
to: this.dest + encodeURIComponent(this.req.items[item].name),
|
to: this.dest + encodeURIComponent(this.req.items[item].name),
|
||||||
name: this.req.items[item].name,
|
name: this.req.items[item].name,
|
||||||
|
size: this.req.items[item].size,
|
||||||
|
isDir: this.req.items[item].isDir,
|
||||||
|
modified: this.req.items[item].modified,
|
||||||
|
overwrite: false,
|
||||||
|
rename: this.$route.path === this.dest,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +114,8 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$router.push({ path: this.dest });
|
if (this.user.redirectAfterCopyMove)
|
||||||
|
this.$router.push({ path: this.dest });
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
buttons.done("copy");
|
buttons.done("copy");
|
||||||
@@ -117,36 +123,40 @@ export default {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.$route.path === this.dest) {
|
const conflict = await upload.checkConflict(items, this.dest, true);
|
||||||
this.closeHovers();
|
|
||||||
action(false, true);
|
|
||||||
|
|
||||||
return;
|
if (conflict.length > 0) {
|
||||||
}
|
|
||||||
|
|
||||||
const dstItems = (await api.fetch(this.dest)).items;
|
|
||||||
const conflict = upload.checkConflict(items, dstItems);
|
|
||||||
|
|
||||||
let overwrite = false;
|
|
||||||
let rename = false;
|
|
||||||
|
|
||||||
if (conflict) {
|
|
||||||
this.showHover({
|
this.showHover({
|
||||||
prompt: "replace-rename",
|
prompt: "resolve-conflict",
|
||||||
confirm: (event, option) => {
|
props: {
|
||||||
overwrite = option == "overwrite";
|
conflict: conflict,
|
||||||
rename = option == "rename";
|
},
|
||||||
|
confirm: (event, result) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.closeHovers();
|
this.closeHovers();
|
||||||
action(overwrite, rename);
|
for (let i = result.length - 1; i >= 0; i--) {
|
||||||
|
const item = result[i];
|
||||||
|
if (item.checked.length == 2) {
|
||||||
|
items[item.index].rename = true;
|
||||||
|
} else if (
|
||||||
|
item.checked.length == 1 &&
|
||||||
|
item.checked[0] == "origin"
|
||||||
|
) {
|
||||||
|
items[item.index].overwrite = true;
|
||||||
|
} else {
|
||||||
|
items.splice(item.index, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (items.length > 0) {
|
||||||
|
action();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
action(overwrite, rename);
|
action(false, false);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,12 +35,17 @@ const props = defineProps({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
path: {
|
||||||
|
type: String,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const container = ref<HTMLElement | null>(null);
|
const container = ref<HTMLElement | null>(null);
|
||||||
|
|
||||||
const path = computed(() => {
|
const path = computed(() => {
|
||||||
let basePath = fileStore.isFiles ? route.path : url.removeLastDir(route.path);
|
const routePath = props.path || route.path;
|
||||||
|
let basePath = fileStore.isFiles ? routePath : url.removeLastDir(routePath);
|
||||||
if (!basePath.endsWith("/")) {
|
if (!basePath.endsWith("/")) {
|
||||||
basePath += "/";
|
basePath += "/";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,58 @@
|
|||||||
|
<template>
|
||||||
|
<div class="card floating">
|
||||||
|
<div class="card-title">
|
||||||
|
<h2>{{ $t("prompts.currentPassword") }}</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-content">
|
||||||
|
<p>
|
||||||
|
{{ $t("prompts.currentPasswordMessage") }}
|
||||||
|
</p>
|
||||||
|
<input
|
||||||
|
id="focus-prompt"
|
||||||
|
class="input input--block"
|
||||||
|
type="password"
|
||||||
|
@keyup.enter="submit"
|
||||||
|
v-model="password"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-action">
|
||||||
|
<button
|
||||||
|
class="button button--flat button--grey"
|
||||||
|
@click="cancel"
|
||||||
|
:aria-label="$t('buttons.cancel')"
|
||||||
|
:title="$t('buttons.cancel')"
|
||||||
|
>
|
||||||
|
{{ $t("buttons.cancel") }}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
@click="submit"
|
||||||
|
class="button button--flat"
|
||||||
|
type="submit"
|
||||||
|
:aria-label="$t('buttons.ok')"
|
||||||
|
:title="$t('buttons.ok')"
|
||||||
|
>
|
||||||
|
{{ $t("buttons.ok") }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref } from "vue";
|
||||||
|
import { useLayoutStore } from "@/stores/layout";
|
||||||
|
const layoutStore = useLayoutStore();
|
||||||
|
|
||||||
|
const { currentPrompt } = layoutStore;
|
||||||
|
|
||||||
|
const password = ref("");
|
||||||
|
|
||||||
|
const submit = (event: Event) => {
|
||||||
|
currentPrompt?.confirm(event, password.value);
|
||||||
|
};
|
||||||
|
|
||||||
|
const cancel = () => {
|
||||||
|
layoutStore.closeHovers();
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -168,7 +168,13 @@ export default {
|
|||||||
this.showHover({
|
this.showHover({
|
||||||
prompt: "newDir",
|
prompt: "newDir",
|
||||||
action: null,
|
action: null,
|
||||||
confirm: null,
|
confirm: (url) => {
|
||||||
|
const paths = url.split("/");
|
||||||
|
this.items.push({
|
||||||
|
name: paths[paths.length - 2],
|
||||||
|
url: url,
|
||||||
|
});
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
redirect: false,
|
redirect: false,
|
||||||
base: this.current === this.$route.path ? null : this.current,
|
base: this.current === this.$route.path ? null : this.current,
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState(useFileStore, ["req", "selected"]),
|
...mapState(useFileStore, ["req", "selected"]),
|
||||||
...mapState(useAuthStore, ["user"]),
|
...mapState(useAuthStore, ["user"]),
|
||||||
...mapWritableState(useFileStore, ["preselect"]),
|
...mapWritableState(useFileStore, ["reload", "preselect"]),
|
||||||
excludedFolders() {
|
excludedFolders() {
|
||||||
return this.selected
|
return this.selected
|
||||||
.filter((idx) => this.req.items[idx].isDir)
|
.filter((idx) => this.req.items[idx].isDir)
|
||||||
@@ -97,6 +97,11 @@ export default {
|
|||||||
from: this.req.items[item].url,
|
from: this.req.items[item].url,
|
||||||
to: this.dest + encodeURIComponent(this.req.items[item].name),
|
to: this.dest + encodeURIComponent(this.req.items[item].name),
|
||||||
name: this.req.items[item].name,
|
name: this.req.items[item].name,
|
||||||
|
size: this.req.items[item].size,
|
||||||
|
isDir: this.req.items[item].isDir,
|
||||||
|
modified: this.req.items[item].modified,
|
||||||
|
overwrite: false,
|
||||||
|
rename: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +113,9 @@ export default {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
buttons.success("move");
|
buttons.success("move");
|
||||||
this.preselect = removePrefix(items[0].to);
|
this.preselect = removePrefix(items[0].to);
|
||||||
this.$router.push({ path: this.dest });
|
if (this.user.redirectAfterCopyMove)
|
||||||
|
this.$router.push({ path: this.dest });
|
||||||
|
else this.reload = true;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
buttons.done("move");
|
buttons.done("move");
|
||||||
@@ -116,29 +123,41 @@ export default {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const dstItems = (await api.fetch(this.dest)).items;
|
const conflict = await upload.checkConflict(items, this.dest, true);
|
||||||
const conflict = upload.checkConflict(items, dstItems);
|
|
||||||
|
|
||||||
let overwrite = false;
|
if (conflict.length > 0) {
|
||||||
let rename = false;
|
|
||||||
|
|
||||||
if (conflict) {
|
|
||||||
this.showHover({
|
this.showHover({
|
||||||
prompt: "replace-rename",
|
prompt: "resolve-conflict",
|
||||||
confirm: (event, option) => {
|
props: {
|
||||||
overwrite = option == "overwrite";
|
conflict: conflict,
|
||||||
rename = option == "rename";
|
files: items,
|
||||||
|
},
|
||||||
|
confirm: (event, result) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.closeHovers();
|
this.closeHovers();
|
||||||
action(overwrite, rename);
|
for (let i = result.length - 1; i >= 0; i--) {
|
||||||
|
const item = result[i];
|
||||||
|
if (item.checked.length == 2) {
|
||||||
|
items[item.index].rename = true;
|
||||||
|
} else if (
|
||||||
|
item.checked.length == 1 &&
|
||||||
|
item.checked[0] == "origin"
|
||||||
|
) {
|
||||||
|
items[item.index].overwrite = true;
|
||||||
|
} else {
|
||||||
|
items.splice(item.index, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (items.length > 0) {
|
||||||
|
action();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
action(overwrite, rename);
|
action(false, false);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
v-model.trim="name"
|
v-model.trim="name"
|
||||||
tabindex="1"
|
tabindex="1"
|
||||||
/>
|
/>
|
||||||
<CreateFilePath :name="name" :is-dir="true" />
|
<CreateFilePath :name="name" :is-dir="true" :path="base" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-action">
|
<div class="card-action">
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { inject, ref } from "vue";
|
import { computed, inject, ref } from "vue";
|
||||||
import { useFileStore } from "@/stores/file";
|
import { useFileStore } from "@/stores/file";
|
||||||
import { useLayoutStore } from "@/stores/layout";
|
import { useLayoutStore } from "@/stores/layout";
|
||||||
|
|
||||||
@@ -53,17 +53,13 @@ import CreateFilePath from "@/components/prompts/CreateFilePath.vue";
|
|||||||
|
|
||||||
const $showError = inject<IToastError>("$showError")!;
|
const $showError = inject<IToastError>("$showError")!;
|
||||||
|
|
||||||
const props = defineProps({
|
|
||||||
base: String,
|
|
||||||
redirect: {
|
|
||||||
type: Boolean,
|
|
||||||
default: true,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const fileStore = useFileStore();
|
const fileStore = useFileStore();
|
||||||
const layoutStore = useLayoutStore();
|
const layoutStore = useLayoutStore();
|
||||||
|
|
||||||
|
const base = computed(() => {
|
||||||
|
return layoutStore.currentPrompt?.props?.base;
|
||||||
|
});
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
@@ -76,7 +72,7 @@ const submit = async (event: Event) => {
|
|||||||
|
|
||||||
// Build the path of the new directory.
|
// Build the path of the new directory.
|
||||||
let uri: string;
|
let uri: string;
|
||||||
if (props.base) uri = props.base;
|
if (base.value) uri = base.value;
|
||||||
else if (fileStore.isFiles) uri = route.path + "/";
|
else if (fileStore.isFiles) uri = route.path + "/";
|
||||||
else uri = "/";
|
else uri = "/";
|
||||||
|
|
||||||
@@ -89,12 +85,15 @@ const submit = async (event: Event) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await api.post(uri);
|
await api.post(uri);
|
||||||
if (props.redirect) {
|
if (layoutStore.currentPrompt?.props?.redirect) {
|
||||||
router.push({ path: uri });
|
router.push({ path: uri });
|
||||||
} else if (!props.base) {
|
} else if (!base.value) {
|
||||||
const res = await api.fetch(url.removeLastDir(uri) + "/");
|
const res = await api.fetch(url.removeLastDir(uri) + "/");
|
||||||
fileStore.updateRequest(res);
|
fileStore.updateRequest(res);
|
||||||
}
|
}
|
||||||
|
if (layoutStore.currentPrompt?.confirm) {
|
||||||
|
layoutStore.currentPrompt?.confirm(uri);
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
$showError(e);
|
$showError(e);
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<ModalsContainer />
|
<base-modal v-if="modal != null" :prompt="currentPromptName" @closed="close">
|
||||||
|
<keep-alive>
|
||||||
|
<component :is="modal" />
|
||||||
|
</keep-alive>
|
||||||
|
</base-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { watch } from "vue";
|
import { computed } from "vue";
|
||||||
import { ModalsContainer, useModal } from "vue-final-modal";
|
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { useLayoutStore } from "@/stores/layout";
|
import { useLayoutStore } from "@/stores/layout";
|
||||||
|
|
||||||
@@ -20,11 +23,12 @@ import Copy from "./Copy.vue";
|
|||||||
import NewFile from "./NewFile.vue";
|
import NewFile from "./NewFile.vue";
|
||||||
import NewDir from "./NewDir.vue";
|
import NewDir from "./NewDir.vue";
|
||||||
import Replace from "./Replace.vue";
|
import Replace from "./Replace.vue";
|
||||||
import ReplaceRename from "./ReplaceRename.vue";
|
|
||||||
import Share from "./Share.vue";
|
import Share from "./Share.vue";
|
||||||
import ShareDelete from "./ShareDelete.vue";
|
import ShareDelete from "./ShareDelete.vue";
|
||||||
import Upload from "./Upload.vue";
|
import Upload from "./Upload.vue";
|
||||||
import DiscardEditorChanges from "./DiscardEditorChanges.vue";
|
import DiscardEditorChanges from "./DiscardEditorChanges.vue";
|
||||||
|
import ResolveConflict from "./ResolveConflict.vue";
|
||||||
|
import CurrentPassword from "./CurrentPassword.vue";
|
||||||
|
|
||||||
const layoutStore = useLayoutStore();
|
const layoutStore = useLayoutStore();
|
||||||
|
|
||||||
@@ -41,35 +45,24 @@ const components = new Map<string, any>([
|
|||||||
["newDir", NewDir],
|
["newDir", NewDir],
|
||||||
["download", Download],
|
["download", Download],
|
||||||
["replace", Replace],
|
["replace", Replace],
|
||||||
["replace-rename", ReplaceRename],
|
|
||||||
["share", Share],
|
["share", Share],
|
||||||
["upload", Upload],
|
["upload", Upload],
|
||||||
["share-delete", ShareDelete],
|
["share-delete", ShareDelete],
|
||||||
["deleteUser", DeleteUser],
|
["deleteUser", DeleteUser],
|
||||||
["discardEditorChanges", DiscardEditorChanges],
|
["discardEditorChanges", DiscardEditorChanges],
|
||||||
|
["resolve-conflict", ResolveConflict],
|
||||||
|
["current-password", CurrentPassword],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
watch(currentPromptName, (newValue) => {
|
const modal = computed(() => {
|
||||||
const modal = components.get(newValue!);
|
const modal = components.get(currentPromptName.value!);
|
||||||
if (!modal) return;
|
if (!modal) null;
|
||||||
|
|
||||||
const { open, close } = useModal({
|
return modal;
|
||||||
component: BaseModal,
|
|
||||||
slots: {
|
|
||||||
default: modal,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
layoutStore.setCloseOnPrompt(close, newValue!);
|
|
||||||
open();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener("keydown", (event) => {
|
const close = () => {
|
||||||
if (!layoutStore.currentPrompt) return;
|
if (!layoutStore.currentPrompt) return;
|
||||||
|
layoutStore.closeHovers();
|
||||||
if (event.key === "Escape") {
|
};
|
||||||
event.stopImmediatePropagation();
|
|
||||||
layoutStore.closeHovers();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<p>
|
<p>
|
||||||
{{ $t("prompts.renameMessage") }} <code>{{ oldName() }}</code
|
{{ $t("prompts.renameMessage") }} <code>{{ oldName }}</code
|
||||||
>:
|
>:
|
||||||
</p>
|
</p>
|
||||||
<input
|
<input
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
type="submit"
|
type="submit"
|
||||||
:aria-label="$t('buttons.rename')"
|
:aria-label="$t('buttons.rename')"
|
||||||
:title="$t('buttons.rename')"
|
:title="$t('buttons.rename')"
|
||||||
|
:disabled="name === '' || name === oldName"
|
||||||
>
|
>
|
||||||
{{ $t("buttons.rename") }}
|
{{ $t("buttons.rename") }}
|
||||||
</button>
|
</button>
|
||||||
@@ -56,7 +57,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.name = this.oldName();
|
this.name = this.oldName;
|
||||||
},
|
},
|
||||||
inject: ["$showError"],
|
inject: ["$showError"],
|
||||||
computed: {
|
computed: {
|
||||||
@@ -67,25 +68,28 @@ export default {
|
|||||||
"isListing",
|
"isListing",
|
||||||
]),
|
]),
|
||||||
...mapWritableState(useFileStore, ["reload", "preselect"]),
|
...mapWritableState(useFileStore, ["reload", "preselect"]),
|
||||||
},
|
oldName() {
|
||||||
methods: {
|
|
||||||
...mapActions(useLayoutStore, ["closeHovers"]),
|
|
||||||
cancel: function () {
|
|
||||||
this.closeHovers();
|
|
||||||
},
|
|
||||||
oldName: function () {
|
|
||||||
if (!this.isListing) {
|
if (!this.isListing) {
|
||||||
return this.req.name;
|
return this.req.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.selectedCount === 0 || this.selectedCount > 1) {
|
if (this.selectedCount === 0 || this.selectedCount > 1) {
|
||||||
// This shouldn't happen.
|
// This shouldn't happen.
|
||||||
return;
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.req.items[this.selected[0]].name;
|
return this.req.items[this.selected[0]].name;
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
...mapActions(useLayoutStore, ["closeHovers"]),
|
||||||
|
cancel: function () {
|
||||||
|
this.closeHovers();
|
||||||
|
},
|
||||||
submit: async function () {
|
submit: async function () {
|
||||||
|
if (this.name === "" || this.name === this.oldName) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let oldLink = "";
|
let oldLink = "";
|
||||||
let newLink = "";
|
let newLink = "";
|
||||||
|
|
||||||
|
|||||||
@@ -1,57 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="card floating">
|
|
||||||
<div class="card-title">
|
|
||||||
<h2>{{ $t("prompts.replace") }}</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card-content">
|
|
||||||
<p>{{ $t("prompts.replaceMessage") }}</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card-action">
|
|
||||||
<button
|
|
||||||
class="button button--flat button--grey"
|
|
||||||
@click="closeHovers"
|
|
||||||
:aria-label="$t('buttons.cancel')"
|
|
||||||
:title="$t('buttons.cancel')"
|
|
||||||
tabindex="3"
|
|
||||||
>
|
|
||||||
{{ $t("buttons.cancel") }}
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="button button--flat button--blue"
|
|
||||||
@click="(event) => currentPrompt.confirm(event, 'rename')"
|
|
||||||
:aria-label="$t('buttons.rename')"
|
|
||||||
:title="$t('buttons.rename')"
|
|
||||||
tabindex="2"
|
|
||||||
>
|
|
||||||
{{ $t("buttons.rename") }}
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
id="focus-prompt"
|
|
||||||
class="button button--flat button--red"
|
|
||||||
@click="(event) => currentPrompt.confirm(event, 'overwrite')"
|
|
||||||
:aria-label="$t('buttons.replace')"
|
|
||||||
:title="$t('buttons.replace')"
|
|
||||||
tabindex="1"
|
|
||||||
>
|
|
||||||
{{ $t("buttons.replace") }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { mapActions, mapState } from "pinia";
|
|
||||||
import { useLayoutStore } from "@/stores/layout";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "replace-rename",
|
|
||||||
computed: {
|
|
||||||
...mapState(useLayoutStore, ["currentPrompt"]),
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
...mapActions(useLayoutStore, ["closeHovers"]),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
@@ -0,0 +1,366 @@
|
|||||||
|
<template>
|
||||||
|
<div class="card floating">
|
||||||
|
<div class="card-title">
|
||||||
|
<h2>
|
||||||
|
{{
|
||||||
|
personalized
|
||||||
|
? $t("prompts.resolveConflict")
|
||||||
|
: $t("prompts.replaceOrSkip")
|
||||||
|
}}
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-content">
|
||||||
|
<template v-if="personalized">
|
||||||
|
<p v-if="isUploadAction != true">
|
||||||
|
{{ $t("prompts.singleConflictResolve") }}
|
||||||
|
</p>
|
||||||
|
<div class="conflict-list-container">
|
||||||
|
<div>
|
||||||
|
<p>
|
||||||
|
<input
|
||||||
|
@change="toogleCheckAll"
|
||||||
|
type="checkbox"
|
||||||
|
:checked="originAllChecked"
|
||||||
|
value="origin"
|
||||||
|
/>
|
||||||
|
{{
|
||||||
|
isUploadAction != true
|
||||||
|
? $t("prompts.filesInOrigin")
|
||||||
|
: $t("prompts.uploadingFiles")
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input
|
||||||
|
@change="toogleCheckAll"
|
||||||
|
type="checkbox"
|
||||||
|
:checked="destAllChecked"
|
||||||
|
value="dest"
|
||||||
|
/>
|
||||||
|
{{ $t("prompts.filesInDest") }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<template v-for="(item, index) in conflict" :key="index">
|
||||||
|
<div class="conflict-file-name">
|
||||||
|
<span>{{ item.name }}</span>
|
||||||
|
|
||||||
|
<template v-if="item.checked.length == 2">
|
||||||
|
<span v-if="isUploadAction != true" class="result-rename">
|
||||||
|
{{ $t("prompts.rename") }}
|
||||||
|
</span>
|
||||||
|
<span v-else class="result-error">
|
||||||
|
{{ $t("prompts.forbiddenError") }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
<span
|
||||||
|
v-else-if="
|
||||||
|
item.checked.length == 1 && item.checked[0] == 'origin'
|
||||||
|
"
|
||||||
|
class="result-override"
|
||||||
|
>
|
||||||
|
{{ $t("prompts.override") }}
|
||||||
|
</span>
|
||||||
|
<span v-else class="result-skip">
|
||||||
|
{{ $t("prompts.skip") }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input v-model="item.checked" type="checkbox" value="origin" />
|
||||||
|
<div>
|
||||||
|
<p class="conflict-file-value">
|
||||||
|
{{ humanTime(item.origin.lastModified) }}
|
||||||
|
</p>
|
||||||
|
<p class="conflict-file-value">
|
||||||
|
{{ humanSize(item.origin.size) }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input v-model="item.checked" type="checkbox" value="dest" />
|
||||||
|
<div>
|
||||||
|
<p class="conflict-file-value">
|
||||||
|
{{ humanTime(item.dest.lastModified) }}
|
||||||
|
</p>
|
||||||
|
<p class="conflict-file-value">
|
||||||
|
{{ humanSize(item.dest.size) }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<p>
|
||||||
|
{{ $t("prompts.fastConflictResolve", { count: conflict.length }) }}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="result-buttons">
|
||||||
|
<button @click="(e) => resolve(e, ['origin'])">
|
||||||
|
<i class="material-icons">done_all</i>
|
||||||
|
{{ $t("buttons.overrideAll") }}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
v-if="isUploadAction != true"
|
||||||
|
@click="(e) => resolve(e, ['origin', 'dest'])"
|
||||||
|
>
|
||||||
|
<i class="material-icons">folder_copy</i>
|
||||||
|
{{ $t("buttons.renameAll") }}
|
||||||
|
</button>
|
||||||
|
<button @click="(e) => resolve(e, ['dest'])">
|
||||||
|
<i class="material-icons">undo</i>
|
||||||
|
{{ $t("buttons.skipAll") }}
|
||||||
|
</button>
|
||||||
|
<button @click="(e) => resume(e)">
|
||||||
|
<i class="material-icons">replay</i>
|
||||||
|
{{ $t("buttons.resumeTransfer") }}
|
||||||
|
<span class="info-tooltip" @click.stop="() => {}">
|
||||||
|
<i class="material-icons info-icon">info_outline</i>
|
||||||
|
<span class="info-tooltip-text">
|
||||||
|
{{ $t("buttons.resumeTransferTooltip") }}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<button @click="personalized = true">
|
||||||
|
<i class="material-icons">checklist</i>
|
||||||
|
{{ $t("buttons.singleDecision") }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-action" style="display: flex; justify-content: end">
|
||||||
|
<div>
|
||||||
|
<button
|
||||||
|
class="button button--flat button--grey"
|
||||||
|
@click="close"
|
||||||
|
:aria-label="$t('buttons.cancel')"
|
||||||
|
:title="$t('buttons.cancel')"
|
||||||
|
tabindex="4"
|
||||||
|
>
|
||||||
|
{{ $t("buttons.cancel") }}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
v-if="personalized"
|
||||||
|
id="focus-prompt"
|
||||||
|
class="button button--flat"
|
||||||
|
@click="(event) => currentPrompt?.confirm(event, conflict)"
|
||||||
|
:aria-label="$t('buttons.ok')"
|
||||||
|
:title="$t('buttons.ok')"
|
||||||
|
tabindex="1"
|
||||||
|
>
|
||||||
|
{{ $t("buttons.ok") }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { computed, ref } from "vue";
|
||||||
|
import { useLayoutStore } from "@/stores/layout";
|
||||||
|
import { filesize } from "@/utils";
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
|
||||||
|
const layoutStore = useLayoutStore();
|
||||||
|
const { currentPrompt } = layoutStore;
|
||||||
|
|
||||||
|
const conflict = ref<ConflictingResource[]>(currentPrompt?.props.conflict);
|
||||||
|
|
||||||
|
const isUploadAction = ref<boolean | undefined>(
|
||||||
|
currentPrompt?.props.isUploadAction
|
||||||
|
);
|
||||||
|
|
||||||
|
const personalized = ref(false);
|
||||||
|
|
||||||
|
const originAllChecked = computed(() => {
|
||||||
|
for (const item of conflict.value) {
|
||||||
|
if (!item.checked.includes("origin")) return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
const destAllChecked = computed(() => {
|
||||||
|
for (const item of conflict.value) {
|
||||||
|
if (!item.checked.includes("dest")) return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
const close = () => {
|
||||||
|
layoutStore.closeHovers();
|
||||||
|
};
|
||||||
|
|
||||||
|
const humanSize = (size: number | undefined) => {
|
||||||
|
return size == undefined ? "Unknown size" : filesize(size);
|
||||||
|
};
|
||||||
|
|
||||||
|
const humanTime = (modified: string | number | undefined) => {
|
||||||
|
if (modified == undefined) return "Unknown date";
|
||||||
|
|
||||||
|
return dayjs(modified).format("L LT");
|
||||||
|
};
|
||||||
|
|
||||||
|
const resume = (event: Event) => {
|
||||||
|
conflict.value.forEach((item) => {
|
||||||
|
if (item.isSmallerOnServer) {
|
||||||
|
item.checked = ["origin"];
|
||||||
|
} else {
|
||||||
|
item.checked = ["dest"];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
currentPrompt?.confirm(event, conflict.value);
|
||||||
|
};
|
||||||
|
|
||||||
|
const resolve = (event: Event, result: Array<"origin" | "dest">) => {
|
||||||
|
for (const item of conflict.value) {
|
||||||
|
item.checked = result;
|
||||||
|
}
|
||||||
|
currentPrompt?.confirm(event, conflict.value);
|
||||||
|
};
|
||||||
|
|
||||||
|
const toogleCheckAll = (e: Event) => {
|
||||||
|
const target = e.currentTarget as HTMLInputElement;
|
||||||
|
const value = target.value as "origin" | "dest" | "both";
|
||||||
|
const checked = target.checked;
|
||||||
|
|
||||||
|
for (const item of conflict.value) {
|
||||||
|
if (value == "both") {
|
||||||
|
item.checked = ["origin", "dest"];
|
||||||
|
} else {
|
||||||
|
if (!item.checked.includes(value)) {
|
||||||
|
if (checked) {
|
||||||
|
item.checked.push(value);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (!checked) {
|
||||||
|
item.checked = value == "dest" ? ["origin"] : ["dest"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.conflict-list-container {
|
||||||
|
max-height: 300px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.conflict-list-container > div {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
border-bottom: solid 1px var(--textPrimary);
|
||||||
|
gap: 0.5rem 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.conflict-list-container > div:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.conflict-list-container > div > div {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.conflict-file-name {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
color: var(--textPrimary);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0.5rem 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.conflict-file-value {
|
||||||
|
color: var(--textPrimary);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-rename,
|
||||||
|
.result-override,
|
||||||
|
.result-error,
|
||||||
|
.result-skip {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
line-height: 0.75rem;
|
||||||
|
border-radius: 0.75rem;
|
||||||
|
padding: 0.15rem 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-override {
|
||||||
|
background-color: var(--input-green);
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-error {
|
||||||
|
background-color: var(--icon-red);
|
||||||
|
}
|
||||||
|
.result-rename {
|
||||||
|
background-color: var(--icon-orange);
|
||||||
|
}
|
||||||
|
.result-skip {
|
||||||
|
background-color: var(--icon-blue);
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-buttons > button {
|
||||||
|
padding: 0.75rem;
|
||||||
|
color: var(--textPrimary);
|
||||||
|
margin: 0.25rem 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: start;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
background: transparent;
|
||||||
|
border: solid 1px transparent;
|
||||||
|
width: 100%;
|
||||||
|
transition: all ease-in-out 200ms;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-buttons > button:hover {
|
||||||
|
border: solid 1px var(--icon-blue);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-tooltip {
|
||||||
|
position: relative;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-icon {
|
||||||
|
font-size: 1rem;
|
||||||
|
color: var(--icon-blue);
|
||||||
|
cursor: help;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-tooltip-text {
|
||||||
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 100%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
background-color: var(--surfacePrimary, #333);
|
||||||
|
color: var(--textPrimary, #fff);
|
||||||
|
font-size: 0.75rem;
|
||||||
|
line-height: 1.3;
|
||||||
|
padding: 0.5rem 0.75rem;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
width: 220px;
|
||||||
|
text-align: center;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||||
|
transition: opacity 200ms ease-in-out;
|
||||||
|
z-index: 10;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-tooltip:hover .info-tooltip-text {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
class="action"
|
class="action"
|
||||||
:aria-label="$t('buttons.copyDownloadLinkToClipboard')"
|
:aria-label="$t('buttons.copyDownloadLinkToClipboard')"
|
||||||
:title="$t('buttons.copyDownloadLinkToClipboard')"
|
:title="$t('buttons.copyDownloadLinkToClipboard')"
|
||||||
:disabled="!!link.password_hash"
|
:disabled="!!link.hasPassword"
|
||||||
@click="copyToClipboard(buildDownloadLink(link))"
|
@click="copyToClipboard(buildDownloadLink(link))"
|
||||||
>
|
>
|
||||||
<i class="material-icons">content_paste_go</i>
|
<i class="material-icons">content_paste_go</i>
|
||||||
|
|||||||
@@ -35,19 +35,18 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import { useFileStore } from "@/stores/file";
|
|
||||||
import { useLayoutStore } from "@/stores/layout";
|
import { useLayoutStore } from "@/stores/layout";
|
||||||
|
|
||||||
import * as upload from "@/utils/upload";
|
import * as upload from "@/utils/upload";
|
||||||
|
import buttons from "@/utils/buttons";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const fileStore = useFileStore();
|
|
||||||
const layoutStore = useLayoutStore();
|
const layoutStore = useLayoutStore();
|
||||||
|
|
||||||
// TODO: this is a copy of the same function in FileListing.vue
|
// TODO: this is a copy of the same function in FileListing.vue
|
||||||
const uploadInput = (event: Event) => {
|
const uploadInput = async (event: Event) => {
|
||||||
const files = (event.currentTarget as HTMLInputElement)?.files;
|
const files = (event.currentTarget as HTMLInputElement)?.files;
|
||||||
if (files === null) return;
|
if (files === null) return;
|
||||||
|
|
||||||
@@ -67,20 +66,36 @@ const uploadInput = (event: Event) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const path = route.path.endsWith("/") ? route.path : route.path + "/";
|
const path = route.path.endsWith("/") ? route.path : route.path + "/";
|
||||||
const conflict = upload.checkConflict(uploadFiles, fileStore.req!.items);
|
|
||||||
|
|
||||||
if (conflict) {
|
// Checking the destination hits the server, so show it is working rather
|
||||||
|
// than leaving the action looking inert until the upload starts.
|
||||||
|
buttons.loading("upload");
|
||||||
|
const conflict = await upload.checkConflict(uploadFiles, path);
|
||||||
|
|
||||||
|
if (conflict.length > 0) {
|
||||||
|
buttons.done("upload");
|
||||||
layoutStore.showHover({
|
layoutStore.showHover({
|
||||||
prompt: "replace",
|
prompt: "resolve-conflict",
|
||||||
action: (event: Event) => {
|
props: {
|
||||||
event.preventDefault();
|
conflict: conflict,
|
||||||
layoutStore.closeHovers();
|
isUploadAction: true,
|
||||||
upload.handleFiles(uploadFiles, path, false);
|
|
||||||
},
|
},
|
||||||
confirm: (event: Event) => {
|
confirm: (event: Event, result: Array<ConflictingResource>) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
layoutStore.closeHovers();
|
layoutStore.closeHovers();
|
||||||
upload.handleFiles(uploadFiles, path, true);
|
for (let i = result.length - 1; i >= 0; i--) {
|
||||||
|
const item = result[i];
|
||||||
|
if (item.checked.length == 2) {
|
||||||
|
continue;
|
||||||
|
} else if (item.checked.length == 1 && item.checked[0] == "origin") {
|
||||||
|
uploadFiles[item.index].overwrite = true;
|
||||||
|
} else {
|
||||||
|
uploadFiles.splice(item.index, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (uploadFiles.length > 0) {
|
||||||
|
upload.handleFiles(uploadFiles, path);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,129 @@
|
|||||||
|
import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||||
|
import CopyPrompt from "@/components/prompts/Copy.vue";
|
||||||
|
import MovePrompt from "@/components/prompts/Move.vue";
|
||||||
|
import { files as api } from "@/api";
|
||||||
|
import { checkConflict } from "@/utils/upload";
|
||||||
|
|
||||||
|
vi.mock("@/api", () => ({
|
||||||
|
files: {
|
||||||
|
copy: vi.fn().mockResolvedValue(undefined),
|
||||||
|
move: vi.fn().mockResolvedValue(undefined),
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
vi.mock("@/api/utils", () => ({
|
||||||
|
removePrefix: (value: string) => value.replace(/^\/files/, ""),
|
||||||
|
}));
|
||||||
|
|
||||||
|
vi.mock("@/utils/buttons", () => ({
|
||||||
|
default: {
|
||||||
|
loading: vi.fn(),
|
||||||
|
success: vi.fn(),
|
||||||
|
done: vi.fn(),
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
vi.mock("@/utils/upload", () => ({
|
||||||
|
checkConflict: vi.fn(),
|
||||||
|
}));
|
||||||
|
|
||||||
|
const conflict = [
|
||||||
|
{
|
||||||
|
index: 0,
|
||||||
|
name: "/target/file.txt",
|
||||||
|
origin: { size: 12 },
|
||||||
|
dest: { size: 10 },
|
||||||
|
checked: ["origin"],
|
||||||
|
isSmallerOnServer: true,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
function makeContext() {
|
||||||
|
return {
|
||||||
|
selected: [0],
|
||||||
|
req: {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
url: "/files/source/file.txt",
|
||||||
|
name: "file.txt",
|
||||||
|
size: 12,
|
||||||
|
isDir: false,
|
||||||
|
modified: "2026-06-04T00:00:00Z",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
dest: "/files/target/",
|
||||||
|
user: { redirectAfterCopyMove: false },
|
||||||
|
$route: { path: "/files/source/" },
|
||||||
|
$router: { push: vi.fn() },
|
||||||
|
reload: false,
|
||||||
|
preselect: "",
|
||||||
|
showHover: vi.fn(),
|
||||||
|
closeHovers: vi.fn(),
|
||||||
|
$showError: vi.fn(),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const event = {
|
||||||
|
preventDefault: vi.fn(),
|
||||||
|
};
|
||||||
|
|
||||||
|
describe("copy and move conflict prompts", () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
vi.clearAllMocks();
|
||||||
|
vi.mocked(checkConflict).mockResolvedValue(
|
||||||
|
conflict as ConflictingResource[]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("waits for copy conflict detection before calling the copy API", async () => {
|
||||||
|
const context = makeContext();
|
||||||
|
|
||||||
|
await (CopyPrompt as any).methods.copy.call(context, event);
|
||||||
|
|
||||||
|
expect(checkConflict).toHaveBeenCalledWith(
|
||||||
|
[
|
||||||
|
expect.objectContaining({
|
||||||
|
to: "/files/target/file.txt",
|
||||||
|
isDir: false,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
"/files/target/",
|
||||||
|
true
|
||||||
|
);
|
||||||
|
expect(context.showHover).toHaveBeenCalledWith(
|
||||||
|
expect.objectContaining({
|
||||||
|
prompt: "resolve-conflict",
|
||||||
|
props: { conflict },
|
||||||
|
})
|
||||||
|
);
|
||||||
|
expect(api.copy).not.toHaveBeenCalled();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("waits for move conflict detection before calling the move API", async () => {
|
||||||
|
const context = makeContext();
|
||||||
|
|
||||||
|
await (MovePrompt as any).methods.move.call(context, event);
|
||||||
|
|
||||||
|
expect(checkConflict).toHaveBeenCalledWith(
|
||||||
|
[
|
||||||
|
expect.objectContaining({
|
||||||
|
to: "/files/target/file.txt",
|
||||||
|
isDir: false,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
"/files/target/",
|
||||||
|
true
|
||||||
|
);
|
||||||
|
expect(context.showHover).toHaveBeenCalledWith(
|
||||||
|
expect.objectContaining({
|
||||||
|
prompt: "resolve-conflict",
|
||||||
|
props: expect.objectContaining({
|
||||||
|
conflict,
|
||||||
|
files: expect.any(Array),
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
);
|
||||||
|
expect(api.move).not.toHaveBeenCalled();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -32,10 +32,12 @@ export default {
|
|||||||
ja: "日本語",
|
ja: "日本語",
|
||||||
ko: "한국어",
|
ko: "한국어",
|
||||||
no: "Norsk",
|
no: "Norsk",
|
||||||
"nl-be": "Dutch (Belgium)",
|
nl: "Nederlands (Nederland)",
|
||||||
|
"nl-be": "Nederlands (België)",
|
||||||
|
lv: "Latviešu",
|
||||||
pl: "Polski",
|
pl: "Polski",
|
||||||
"pt-br": "Português (Brasil)",
|
"pt-br": "Português (Brasil)",
|
||||||
pt: "Português (Portugal)",
|
"pt-pt": "Português (Portugal)",
|
||||||
ro: "Romanian",
|
ro: "Romanian",
|
||||||
ru: "Русский",
|
ru: "Русский",
|
||||||
sk: "Slovenčina",
|
sk: "Slovenčina",
|
||||||
|
|||||||
@@ -17,7 +17,11 @@
|
|||||||
{{ $t("settings.perm.delete") }}
|
{{ $t("settings.perm.delete") }}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<input type="checkbox" :disabled="admin" v-model="perm.download" />
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
:disabled="admin || perm.share"
|
||||||
|
v-model="perm.download"
|
||||||
|
/>
|
||||||
{{ $t("settings.perm.download") }}
|
{{ $t("settings.perm.download") }}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@@ -61,5 +65,15 @@ export default {
|
|||||||
},
|
},
|
||||||
isExecEnabled: () => enableExec,
|
isExecEnabled: () => enableExec,
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
perm: {
|
||||||
|
deep: true,
|
||||||
|
handler() {
|
||||||
|
if (this.perm.share === true) {
|
||||||
|
this.perm.download = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import { describe, expect, it } from "vitest";
|
||||||
|
import { readFileSync } from "node:fs";
|
||||||
|
import { resolve } from "node:path";
|
||||||
|
|
||||||
|
const mobileCss = readFileSync(resolve(__dirname, "../mobile.css"), "utf8");
|
||||||
|
|
||||||
|
const normalizedCss = mobileCss.replace(/\s+/g, " ");
|
||||||
|
|
||||||
|
describe("mobile file listing styles", () => {
|
||||||
|
it("hides file row metadata without hiding list header sort controls", () => {
|
||||||
|
expect(normalizedCss).toContain(
|
||||||
|
"#listing.list .item:not(.header) .size { display: none;"
|
||||||
|
);
|
||||||
|
expect(normalizedCss).toContain(
|
||||||
|
"#listing.list .item:not(.header) .modified { display: none;"
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(normalizedCss).not.toMatch(
|
||||||
|
/#listing\.list \.item \.(size|modified) \{ display: none;/
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -56,6 +56,8 @@ nav {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 4em;
|
top: 4em;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
height: calc(100vh - 4em);
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[dir="rtl"] nav {
|
html[dir="rtl"] nav {
|
||||||
@@ -182,6 +184,11 @@ html[dir="rtl"] .breadcrumbs a {
|
|||||||
background: var(--textSecondary) !important;
|
background: var(--textSecondary) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vfm-modal {
|
body > div[style*="z-index: 9990"] {
|
||||||
z-index: 9999999 !important;
|
z-index: 10000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#modal-background .button:focus {
|
||||||
|
outline: 1px solid #2195f32d;
|
||||||
|
outline-offset: 1px;
|
||||||
}
|
}
|
||||||
@@ -29,6 +29,13 @@
|
|||||||
|
|
||||||
.epub-reader .tocButton {
|
.epub-reader .tocButton {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
|
/*
|
||||||
|
* vue-reader positions the TOC toggle at top: 10px, which lands under the
|
||||||
|
* fixed 4em header bar (see .header) — so clicks hit the header's Close
|
||||||
|
* button instead of opening the table of contents. Push it just below the
|
||||||
|
* header, tracking the header's height so it stays clear if that changes.
|
||||||
|
*/
|
||||||
|
top: calc(4em + 10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.epub-reader .tocButton.tocButtonExpanded {
|
.epub-reader .tocButton.tocButtonExpanded {
|
||||||
|
|||||||
@@ -14,12 +14,27 @@
|
|||||||
body {
|
body {
|
||||||
padding-bottom: 5em;
|
padding-bottom: 5em;
|
||||||
}
|
}
|
||||||
#listing.list .item .size {
|
#listing.list .item:not(.header) .size {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#listing.list .item .name {
|
#listing.list .item:not(.header) .name {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
#listing.list .item.header .name {
|
||||||
|
margin-right: 0;
|
||||||
|
width: 45%;
|
||||||
|
}
|
||||||
|
#listing.list .item.header .size {
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
#listing.list .item.header .modified {
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
|
#listing.list .item.header p {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
#more {
|
#more {
|
||||||
display: inherit;
|
display: inherit;
|
||||||
}
|
}
|
||||||
@@ -98,8 +113,9 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
background: var(--surfaceSecondary);
|
background: var(--surfaceSecondary);
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
width: 16em;
|
width: 16em;
|
||||||
|
overflow-y: auto;
|
||||||
box-shadow: 0 0 5px var(--borderPrimary);
|
box-shadow: 0 0 5px var(--borderPrimary);
|
||||||
transition: 0.1s ease left;
|
transition: 0.1s ease left;
|
||||||
left: -17em;
|
left: -17em;
|
||||||
@@ -162,10 +178,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 450px) {
|
@media (max-width: 450px) {
|
||||||
#listing.list .item .modified {
|
#listing.list .item:not(.header) .modified {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#listing.list .item .name {
|
#listing.list .item:not(.header) .name {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
#listing.list .item.header {
|
||||||
|
padding: 0.75em 0.5em;
|
||||||
|
}
|
||||||
|
#listing.list .item.header .name {
|
||||||
|
width: 34%;
|
||||||
|
}
|
||||||
|
#listing.list .item.header .size {
|
||||||
|
width: 24%;
|
||||||
|
}
|
||||||
|
#listing.list .item.header .modified {
|
||||||
|
width: 42%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
@import "normalize.css/normalize.css";
|
@import "normalize.css/normalize.css";
|
||||||
@import "vue-toastification/dist/index.css";
|
@import "vue-toastification/dist/index.css";
|
||||||
@import "vue-final-modal/style.css";
|
|
||||||
@import "./_variables.css";
|
@import "./_variables.css";
|
||||||
@import "./_buttons.css";
|
@import "./_buttons.css";
|
||||||
@import "./_inputs.css";
|
@import "./_inputs.css";
|
||||||
|
|||||||
+34
-13
@@ -24,7 +24,7 @@
|
|||||||
"ok": "موافق",
|
"ok": "موافق",
|
||||||
"permalink": "الحصول على رابط دائم",
|
"permalink": "الحصول على رابط دائم",
|
||||||
"previous": "السابق",
|
"previous": "السابق",
|
||||||
"preview": "Preview",
|
"preview": "معاينة",
|
||||||
"publish": "نشر",
|
"publish": "نشر",
|
||||||
"rename": "إعادة تسمية",
|
"rename": "إعادة تسمية",
|
||||||
"replace": "استبدال",
|
"replace": "استبدال",
|
||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "تحديث",
|
"update": "تحديث",
|
||||||
"upload": "رفع",
|
"upload": "رفع",
|
||||||
"openFile": "فتح الملف",
|
"openFile": "فتح الملف",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "إلغاء التغييرات",
|
"discardChanges": "إلغاء التغييرات",
|
||||||
"saveChanges": "Save changes",
|
"stopSearch": "توقف عن البحث",
|
||||||
"editAsText": "Edit as Text",
|
"saveChanges": "حفظ التغييرات",
|
||||||
"increaseFontSize": "Increase font size",
|
"editAsText": "تعديل على شكل نص",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"increaseFontSize": "زيادة حجم الخط",
|
||||||
|
"decreaseFontSize": "تصغير حجم الخط",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "تحميل الملف",
|
"downloadFile": "تحميل الملف",
|
||||||
@@ -79,7 +85,7 @@
|
|||||||
"sortByName": "الترتيب باﻹسم",
|
"sortByName": "الترتيب باﻹسم",
|
||||||
"sortBySize": "الترتيب بالحجم",
|
"sortBySize": "الترتيب بالحجم",
|
||||||
"noPreview": "لا يوجد عرض مسبق لهذا الملف.",
|
"noPreview": "لا يوجد عرض مسبق لهذا الملف.",
|
||||||
"csvTooLarge": "CSV file is too large for preview (>5MB). Please download to view.",
|
"csvTooLarge": "حجم الملف اكبر من (<5MB), يرجى تحميل الملف للمعاينة",
|
||||||
"csvLoadFailed": "Failed to load CSV file.",
|
"csvLoadFailed": "Failed to load CSV file.",
|
||||||
"showingRows": "Showing {count} row(s)",
|
"showingRows": "Showing {count} row(s)",
|
||||||
"columnSeparator": "Column Separator",
|
"columnSeparator": "Column Separator",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "حدد الملف أو المجلد",
|
"click": "حدد الملف أو المجلد",
|
||||||
@@ -137,7 +144,7 @@
|
|||||||
"filesSelected": "تم تحديد {count} ملفات.",
|
"filesSelected": "تم تحديد {count} ملفات.",
|
||||||
"lastModified": "آخر تعديل",
|
"lastModified": "آخر تعديل",
|
||||||
"move": "نقل",
|
"move": "نقل",
|
||||||
"moveMessage": "إختر مكان جديد للملفات أو المجلدات المراد نقلها:",
|
"moveMessage": "اختر منزلاً جديداً لملفك (ملفاتك)/مجلدك (مجلداتك):",
|
||||||
"newArchetype": "إنشاء منشور من المنشور اﻷصلي. الملف سيتم انشاءه في مجلد المحتويات.",
|
"newArchetype": "إنشاء منشور من المنشور اﻷصلي. الملف سيتم انشاءه في مجلد المحتويات.",
|
||||||
"newDir": "مجلد جديد",
|
"newDir": "مجلد جديد",
|
||||||
"newDirMessage": "أدخل اسم المجلد الجديد.",
|
"newDirMessage": "أدخل اسم المجلد الجديد.",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "إختر الملفات التي تريد رفعها.",
|
"uploadMessage": "إختر الملفات التي تريد رفعها.",
|
||||||
"optionalPassword": "كلمة مرور إختيارية",
|
"optionalPassword": "كلمة مرور إختيارية",
|
||||||
"resolution": "الدقة",
|
"resolution": "الدقة",
|
||||||
"discardEditorChanges": "هل تريد بالتأكيد إلغاء التغييرات؟"
|
"discardEditorChanges": "هل تريد بالتأكيد إلغاء التغييرات؟",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "الصور",
|
"images": "الصور",
|
||||||
@@ -188,15 +207,15 @@
|
|||||||
"commandRunner": "منفذ اﻷوامر",
|
"commandRunner": "منفذ اﻷوامر",
|
||||||
"commandRunnerHelp": "هنا بإمكانك تعيين اﻷوامر التي سيتم تنفيذها في اﻷحداث المسماة. يجب كتابة أمر واحد في كل سطر. ستكون المتغيرات البيئية (env) {0} و {1} متاحة، حيث {0} نسبي لـ {1}. لمزيد من المعلومات حول هذه الميزة و المتغيرات البيئية المتاحة، يرجى قراءة {2}.",
|
"commandRunnerHelp": "هنا بإمكانك تعيين اﻷوامر التي سيتم تنفيذها في اﻷحداث المسماة. يجب كتابة أمر واحد في كل سطر. ستكون المتغيرات البيئية (env) {0} و {1} متاحة، حيث {0} نسبي لـ {1}. لمزيد من المعلومات حول هذه الميزة و المتغيرات البيئية المتاحة، يرجى قراءة {2}.",
|
||||||
"commandsUpdated": "تم تحديث اﻷوامر",
|
"commandsUpdated": "تم تحديث اﻷوامر",
|
||||||
"createUserDir": "إنشاء مجلد المستخدم (home) تلقائياً عند إنشاء مستخدم جديد",
|
"createUserDir": "إنشاء مجلد المستخدم الرئيسي تلقائياً عند إنشاء مستخدم جديد",
|
||||||
"minimumPasswordLength": "Minimum password length",
|
"minimumPasswordLength": "Minimum password length",
|
||||||
"tusUploads": "التحميلات المتقطعة",
|
"tusUploads": "التحميلات المتقطعة",
|
||||||
"tusUploadsHelp": "يدعم متصفح الملفات تحميل الملفات المتقطعة، مما يسمح بتحميلات الملفات بشكل فعال و موثوق و قابلة للمتابغة و متقطعة حتى على الشبكات غير الموثوقة.",
|
"tusUploadsHelp": "يدعم متصفح الملفات تحميل الملفات المتقطعة، مما يسمح بتحميلات الملفات بشكل فعال و موثوق و قابلة للمتابغة و متقطعة حتى على الشبكات غير الموثوقة.",
|
||||||
"tusUploadsChunkSize": "يشير إلى الحد اﻷقصى لحجم الطلب (سيتم استخدام التحميل المباشر للتحميلات صغيرة الخحم). يمكنك إدخال عدد صحيح عادي يدل على الحجم بوحدة البايت أو نمظ مثل10MB, 1GB, إلخ.",
|
"tusUploadsChunkSize": "يشير إلى الحد اﻷقصى لحجم الطلب (سيتم استخدام التحميل المباشر للتحميلات صغيرة الخحم). يمكنك إدخال عدد صحيح عادي يدل على الحجم بوحدة البايت أو نمظ مثل10MB, 1GB, إلخ.",
|
||||||
"tusUploadsRetryCount": "عدد مرات إعادة المحاولة إذا فشلت عملية تحميل القطعة.",
|
"tusUploadsRetryCount": "عدد مرات إعادة المحاولة إذا فشلت عملية تحميل القطعة.",
|
||||||
"userHomeBasePath": "المسار الرئيسي لمجلد المستخدم (home)",
|
"userHomeBasePath": "المسار الرئيسي لمجلد المستخدم الرئيسي",
|
||||||
"userScopeGenerationPlaceholder": "سيتم تعيين نطاق المستخدم تلقائياً",
|
"userScopeGenerationPlaceholder": "سيتم تعيين نطاق المستخدم تلقائياً",
|
||||||
"createUserHomeDirectory": "إنشاء مجلد المستخدم (home)",
|
"createUserHomeDirectory": "إنشاء مجلد المستخدم الرئيسي",
|
||||||
"customStylesheet": "ستايل مخصص",
|
"customStylesheet": "ستايل مخصص",
|
||||||
"defaultUserDescription": "هذه اﻹعدادات اﻹفتراضية للمستخدمين الجدد.",
|
"defaultUserDescription": "هذه اﻹعدادات اﻹفتراضية للمستخدمين الجدد.",
|
||||||
"disableExternalLinks": "تعطيل الروابط الخارجية (بإسثناء الوثائق)",
|
"disableExternalLinks": "تعطيل الروابط الخارجية (بإسثناء الوثائق)",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "الصلاحيات",
|
"permissions": "الصلاحيات",
|
||||||
"permissionsHelp": "يمكنك تعيين المستخدم كـ \"مدير\" أو تحديد الصلاحيات بشكل منفرد.\n إذا قمت بتحديد المستخدم كـ \"مدير\"، باقي الخيارات سيتم تحديدها تلقائياً.\n إدارة المستخدمين تبقى صلاحية فريدة للـ \"مدير\" فقط.\n",
|
"permissionsHelp": "يمكنك تعيين المستخدم كـ \"مدير\" أو تحديد الصلاحيات بشكل منفرد.\n إذا قمت بتحديد المستخدم كـ \"مدير\"، باقي الخيارات سيتم تحديدها تلقائياً.\n إدارة المستخدمين تبقى صلاحية فريدة للـ \"مدير\" فقط.\n",
|
||||||
"profileSettings": "إعدادات الحساب",
|
"profileSettings": "إعدادات الحساب",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "منع الوصول إلى الملفات التي تبدأ بنقطة مثل (.git، و .gitignore) في كل مجلد.\n",
|
"ruleExample1": "منع الوصول إلى الملفات التي تبدأ بنقطة مثل (.git، و .gitignore) في كل مجلد.\n",
|
||||||
"ruleExample2": "منع الوصول إلى الملف المسمى Caddyfile في نطاق الجذر.",
|
"ruleExample2": "منع الوصول إلى الملف المسمى Caddyfile في نطاق الجذر.",
|
||||||
"rules": "المجموعات",
|
"rules": "المجموعات",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "إدارة المستخدمين",
|
"userManagement": "إدارة المستخدمين",
|
||||||
"userUpdated": "تم تعديل المستخدم",
|
"userUpdated": "تم تعديل المستخدم",
|
||||||
"username": "إسم المستخدم",
|
"username": "إسم المستخدم",
|
||||||
"users": "المستخدمين"
|
"users": "المستخدمين",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "مساعدة",
|
"help": "مساعدة",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Обнови",
|
"update": "Обнови",
|
||||||
"upload": "Качи",
|
"upload": "Качи",
|
||||||
"openFile": "Отвори файл",
|
"openFile": "Отвори файл",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Изчисти",
|
"discardChanges": "Изчисти",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Запиши промените",
|
"saveChanges": "Запиши промените",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Свали файл",
|
"downloadFile": "Свали файл",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "избери файл или директория",
|
"click": "избери файл или директория",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Изберете опция за качване.",
|
"uploadMessage": "Изберете опция за качване.",
|
||||||
"optionalPassword": "Опционална парола",
|
"optionalPassword": "Опционална парола",
|
||||||
"resolution": "Резолюция",
|
"resolution": "Резолюция",
|
||||||
"discardEditorChanges": "Сигурни ли сте, че искате да откажете направените промени?"
|
"discardEditorChanges": "Сигурни ли сте, че искате да откажете направените промени?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Изображения",
|
"images": "Изображения",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Разрешения",
|
"permissions": "Разрешения",
|
||||||
"permissionsHelp": "Можете да зададете потребител да бъде администратор или да изберете разрешения индивидуално. Ако изберете \"Администратор\" всички други опции ще бъдат автоматично отметнати. Управлението на потребителите е привилегия на администратор.\n",
|
"permissionsHelp": "Можете да зададете потребител да бъде администратор или да изберете разрешения индивидуално. Ако изберете \"Администратор\" всички други опции ще бъдат автоматично отметнати. Управлението на потребителите е привилегия на администратор.\n",
|
||||||
"profileSettings": "Настройки на Профила",
|
"profileSettings": "Настройки на Профила",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "предотвратете достъпа до всеки файл започващ с точка (като .git, .gitignore) във всяка папка.\n",
|
"ruleExample1": "предотвратете достъпа до всеки файл започващ с точка (като .git, .gitignore) във всяка папка.\n",
|
||||||
"ruleExample2": "блокира достъпа до файл именуван Caddyfile поставен в началото за обхвата.",
|
"ruleExample2": "блокира достъпа до файл именуван Caddyfile поставен в началото за обхвата.",
|
||||||
"rules": "Правила",
|
"rules": "Правила",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Управление на потребители",
|
"userManagement": "Управление на потребители",
|
||||||
"userUpdated": "Потребителя е обновен!",
|
"userUpdated": "Потребителя е обновен!",
|
||||||
"username": "Потребителско име",
|
"username": "Потребителско име",
|
||||||
"users": "Потребители"
|
"users": "Потребители",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Помощ",
|
"help": "Помощ",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Actualitzar",
|
"update": "Actualitzar",
|
||||||
"upload": "Pujar",
|
"upload": "Pujar",
|
||||||
"openFile": "Obrir fitxer",
|
"openFile": "Obrir fitxer",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Descartar",
|
"discardChanges": "Descartar",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Descarregar fitxer",
|
"downloadFile": "Descarregar fitxer",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "seleccionar fitxer o carpeta",
|
"click": "seleccionar fitxer o carpeta",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Seleccioneu una opció per pujar.",
|
"uploadMessage": "Seleccioneu una opció per pujar.",
|
||||||
"optionalPassword": "Contrasenya opcional",
|
"optionalPassword": "Contrasenya opcional",
|
||||||
"resolution": "Resolució",
|
"resolution": "Resolució",
|
||||||
"discardEditorChanges": "Esteu segur que voleu descartar els canvis que heu fet?"
|
"discardEditorChanges": "Esteu segur que voleu descartar els canvis que heu fet?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Imatges",
|
"images": "Imatges",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Permisos",
|
"permissions": "Permisos",
|
||||||
"permissionsHelp": "Pots nomenar l'usuari com a administrador o triar els permisos individualment. Si selecciones \"Administrador\", totes les altres opcions s'activaran automàticament. L'administració d'usuaris és un privilegi d'administrador.\n",
|
"permissionsHelp": "Pots nomenar l'usuari com a administrador o triar els permisos individualment. Si selecciones \"Administrador\", totes les altres opcions s'activaran automàticament. L'administració d'usuaris és un privilegi d'administrador.\n",
|
||||||
"profileSettings": "Ajustos del perfil",
|
"profileSettings": "Ajustos del perfil",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "prevé l'accés a una extensió de fitxer (Com .git) en cada carpeta.\n",
|
"ruleExample1": "prevé l'accés a una extensió de fitxer (Com .git) en cada carpeta.\n",
|
||||||
"ruleExample2": "bloqueja l'accés al fitxer anomenat Caddyfile a la carpeta arrel.",
|
"ruleExample2": "bloqueja l'accés al fitxer anomenat Caddyfile a la carpeta arrel.",
|
||||||
"rules": "Regles",
|
"rules": "Regles",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Administració d'usuaris",
|
"userManagement": "Administració d'usuaris",
|
||||||
"userUpdated": "Usuari actualitzat!",
|
"userUpdated": "Usuari actualitzat!",
|
||||||
"username": "Usuari",
|
"username": "Usuari",
|
||||||
"users": "Usuaris"
|
"users": "Usuaris",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Ajuda",
|
"help": "Ajuda",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Aktualizovat",
|
"update": "Aktualizovat",
|
||||||
"upload": "Nahrát",
|
"upload": "Nahrát",
|
||||||
"openFile": "Otevřít soubor",
|
"openFile": "Otevřít soubor",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Zrušit změny",
|
"discardChanges": "Zrušit změny",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Stáhnout soubor",
|
"downloadFile": "Stáhnout soubor",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "vyberte soubor nebo adresář",
|
"click": "vyberte soubor nebo adresář",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Vyberte možnost pro nahrání.",
|
"uploadMessage": "Vyberte možnost pro nahrání.",
|
||||||
"optionalPassword": "Volitelné heslo",
|
"optionalPassword": "Volitelné heslo",
|
||||||
"resolution": "Rozlišení",
|
"resolution": "Rozlišení",
|
||||||
"discardEditorChanges": "Opravdu chcete zrušit provedené změny?"
|
"discardEditorChanges": "Opravdu chcete zrušit provedené změny?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Obrázky",
|
"images": "Obrázky",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Oprávnění",
|
"permissions": "Oprávnění",
|
||||||
"permissionsHelp": "Můžete nastavit uživatele jako administrátora nebo zvolit jednotlivá oprávnění. Pokud vyberete \"Administrátor\", všechny ostatní možnosti budou automaticky zaškrtnuty. Správa uživatelů zůstává výsadou administrátora.\n",
|
"permissionsHelp": "Můžete nastavit uživatele jako administrátora nebo zvolit jednotlivá oprávnění. Pokud vyberete \"Administrátor\", všechny ostatní možnosti budou automaticky zaškrtnuty. Správa uživatelů zůstává výsadou administrátora.\n",
|
||||||
"profileSettings": "Nastavení profilu",
|
"profileSettings": "Nastavení profilu",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "zabraňuje přístupu k jakémukoli skrytému souboru (např. .git, .gitignore) v každé složce.\n",
|
"ruleExample1": "zabraňuje přístupu k jakémukoli skrytému souboru (např. .git, .gitignore) v každé složce.\n",
|
||||||
"ruleExample2": "blokuje přístup k souboru s názvem Caddyfile v kořenovém adresáři.",
|
"ruleExample2": "blokuje přístup k souboru s názvem Caddyfile v kořenovém adresáři.",
|
||||||
"rules": "Pravidla",
|
"rules": "Pravidla",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Správa uživatelů",
|
"userManagement": "Správa uživatelů",
|
||||||
"userUpdated": "Uživatel aktualizován!",
|
"userUpdated": "Uživatel aktualizován!",
|
||||||
"username": "Uživatelské jméno",
|
"username": "Uživatelské jméno",
|
||||||
"users": "Uživatelé"
|
"users": "Uživatelé",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Nápověda",
|
"help": "Nápověda",
|
||||||
|
|||||||
+163
-136
@@ -1,265 +1,292 @@
|
|||||||
{
|
{
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"cancel": "Abbrechen",
|
"cancel": "Abbrechen",
|
||||||
"clear": "Schließen",
|
"clear": "Leeren",
|
||||||
"close": "Schließen",
|
"close": "Schließen",
|
||||||
"continue": "Fortfahren",
|
"continue": "Weiter",
|
||||||
"copy": "Kopieren",
|
"copy": "Kopieren",
|
||||||
"copyFile": "Kopiere Datei",
|
"copyFile": "Datei kopieren",
|
||||||
"copyToClipboard": "In Zwischenablage kopieren",
|
"copyToClipboard": "In Zwischenablage kopieren",
|
||||||
"copyDownloadLinkToClipboard": "Download-Link in die Zwischenablage kopieren",
|
"copyDownloadLinkToClipboard": "Download-Link in Zwischenablage kopieren",
|
||||||
"create": "Neu",
|
"create": "Erstellen",
|
||||||
"delete": "Löschen",
|
"delete": "Löschen",
|
||||||
"download": "Herunterladen",
|
"download": "Herunterladen",
|
||||||
"file": "Datei",
|
"file": "Datei",
|
||||||
"folder": "Ordner",
|
"folder": "Ordner",
|
||||||
"fullScreen": "Vollbildmodus umschalten",
|
"fullScreen": "Vollbild umschalten",
|
||||||
"hideDotfiles": "Versteckte Dateien ausblenden",
|
"hideDotfiles": "Versteckte Dateien ausblenden",
|
||||||
"info": "Info",
|
"info": "Info",
|
||||||
"more": "mehr",
|
"more": "Mehr",
|
||||||
"move": "Verschieben",
|
"move": "Verschieben",
|
||||||
"moveFile": "Verschiebe Datei",
|
"moveFile": "Datei verschieben",
|
||||||
"new": "Neu",
|
"new": "Neu",
|
||||||
"next": "nächste",
|
"next": "Weiter",
|
||||||
"ok": "OK",
|
"ok": "OK",
|
||||||
"permalink": "permanenten Verweis anzeigen",
|
"permalink": "Permanentlink abrufen",
|
||||||
"previous": "vorherige",
|
"previous": "Zurück",
|
||||||
"preview": "Vorschau",
|
"preview": "Vorschau",
|
||||||
"publish": "Veröffentlichen",
|
"publish": "Veröffentlichen",
|
||||||
"rename": "umbenennen",
|
"rename": "Umbenennen",
|
||||||
"replace": "Ersetzen",
|
"replace": "Ersetzen",
|
||||||
"reportIssue": "Fehler melden",
|
"reportIssue": "Problem melden",
|
||||||
|
"resumeTransfer": "Vorherige Übertragung fortsetzen",
|
||||||
|
"resumeTransferTooltip": "Alle Dateien mit Konflikten überspringen, außer denen, die auf dem Server kleiner sind, da wir davon ausgehen, dass deren Übertragung unterbrochen wurde.",
|
||||||
"save": "Speichern",
|
"save": "Speichern",
|
||||||
"schedule": "Planung",
|
"schedule": "Planen",
|
||||||
"search": "Suchen",
|
"search": "Suchen",
|
||||||
"select": "Auswählen",
|
"select": "Auswählen",
|
||||||
"selectMultiple": "Mehrfachauswahl",
|
"selectMultiple": "Mehrfachauswahl",
|
||||||
"share": "Teilen",
|
"share": "Teilen",
|
||||||
"shell": "Kommandozeile ein/ausschalten",
|
"shell": "Shell umschalten",
|
||||||
"submit": "Absenden",
|
"submit": "Absenden",
|
||||||
"switchView": "Ansicht wechseln",
|
"switchView": "Ansicht wechseln",
|
||||||
"toggleSidebar": "Seitenleiste anzeigen",
|
"toggleSidebar": "Seitenleiste umschalten",
|
||||||
"update": "Update",
|
"update": "Aktualisieren",
|
||||||
"upload": "Upload",
|
"upload": "Hochladen",
|
||||||
"openFile": "Datei öffnen",
|
"openFile": "Datei öffnen",
|
||||||
|
"openDirect": "Original anzeigen",
|
||||||
"discardChanges": "Verwerfen",
|
"discardChanges": "Verwerfen",
|
||||||
|
"stopSearch": "Suche beenden",
|
||||||
"saveChanges": "Änderungen speichern",
|
"saveChanges": "Änderungen speichern",
|
||||||
"editAsText": "Als Text bearbeiten",
|
"editAsText": "Als Text bearbeiten",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Schrift vergrößern",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Schrift verkleinern",
|
||||||
|
"overrideAll": "Alle Dateien im Zielordner ersetzen",
|
||||||
|
"skipAll": "Alle in Konflikt stehenden Dateien überspringen",
|
||||||
|
"renameAll": "Alle Dateien umbenennen (Kopie erstellen)",
|
||||||
|
"singleDecision": "Bei jeder Datei mit Konflikt entscheiden"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Download Datei",
|
"downloadFile": "Datei herunterladen",
|
||||||
"downloadFolder": "Download Ordner",
|
"downloadFolder": "Ordner herunterladen",
|
||||||
"downloadSelected": "Auswahl herunterladen"
|
"downloadSelected": "Auswahl herunterladen"
|
||||||
},
|
},
|
||||||
"upload": {
|
"upload": {
|
||||||
"abortUpload": "Sind Sie sicher, dass Sie den Vorgang abbrechen möchten?"
|
"abortUpload": "Upload wirklich abbrechen?"
|
||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
"forbidden": "Sie haben keine Berechtigung dies abzurufen.",
|
"forbidden": "Du hast keine Berechtigung für diesen Zugriff.",
|
||||||
"internal": "Etwas ist schiefgelaufen.",
|
"internal": "Da ist etwas schiefgelaufen.",
|
||||||
"notFound": "Dieser Ort kann nicht angezeigt werden.",
|
"notFound": "Dieser Ort ist nicht erreichbar.",
|
||||||
"connection": "Der Server ist nicht erreichbar."
|
"connection": "Der Server ist nicht erreichbar."
|
||||||
},
|
},
|
||||||
"files": {
|
"files": {
|
||||||
"body": "Body",
|
"body": "Inhalt",
|
||||||
"closePreview": "Vorschau schließen",
|
"closePreview": "Vorschau schließen",
|
||||||
"files": "Dateien",
|
"files": "Dateien",
|
||||||
"folders": "Ordner",
|
"folders": "Ordner",
|
||||||
"home": "Home",
|
"home": "Startseite",
|
||||||
"lastModified": "zuletzt verändert",
|
"lastModified": "Zuletzt geändert",
|
||||||
"loading": "Lade...",
|
"loading": "Wird geladen …",
|
||||||
"lonely": "Hier scheint nichts zu sein...",
|
"lonely": "Hier ist es ganz schön leer …",
|
||||||
"metadata": "Metadaten",
|
"metadata": "Metadaten",
|
||||||
"multipleSelectionEnabled": "Mehrfachauswahl aktiviert",
|
"multipleSelectionEnabled": "Mehrfachauswahl aktiviert",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"size": "Größe",
|
"size": "Größe",
|
||||||
"sortByLastModified": "Nach Änderungsdatum sortieren",
|
"sortByLastModified": "Nach Änderungsdatum sortieren",
|
||||||
"sortByName": "Nach Namen sortieren",
|
"sortByName": "Nach Name sortieren",
|
||||||
"sortBySize": "Nach Größe sortieren",
|
"sortBySize": "Nach Größe sortieren",
|
||||||
"noPreview": "Für diese Datei ist keine Vorschau verfügbar.",
|
"noPreview": "Für diese Datei ist keine Vorschau verfügbar.",
|
||||||
"csvTooLarge": "Die CSV-Datei ist zu groß für die Vorschau (>5 MB). Bitte herunterladen, um sie anzuzeigen.",
|
"csvTooLarge": "Die CSV-Datei ist zu groß für die Vorschau (> 5 MB). Bitte herunterladen, um sie anzuzeigen.",
|
||||||
"csvLoadFailed": "Fehler beim Laden der CSV-Datei.",
|
"csvLoadFailed": "CSV-Datei konnte nicht geladen werden.",
|
||||||
"showingRows": "Showing {count} row(s)",
|
"showingRows": "{count} Zeile(n) angezeigt",
|
||||||
"columnSeparator": "Column Separator",
|
"columnSeparator": "Spaltentrennzeichen",
|
||||||
"csvSeparators": {
|
"csvSeparators": {
|
||||||
"comma": "Comma (,)",
|
"comma": "Komma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semikolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Beides (,) und (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "Dateikodierung"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "Wähle Datei oder Ordner",
|
"click": "Datei oder Verzeichnis auswählen",
|
||||||
"ctrl": {
|
"ctrl": {
|
||||||
"click": "Markiere mehrere Dateien oder Ordner",
|
"click": "mehrere Dateien oder Verzeichnisse auswählen",
|
||||||
"f": "Öffnet eine neue Suche",
|
"f": "Suche öffnen",
|
||||||
"s": "Speichert eine Datei oder einen Ordner am aktuellen Ort"
|
"s": "Datei speichern oder aktuelles Verzeichnis herunterladen"
|
||||||
},
|
},
|
||||||
"del": "Löscht die ausgewählten Elemente",
|
"del": "ausgewählte Elemente löschen",
|
||||||
"doubleClick": "Öffnet eine Datei oder einen Ordner",
|
"doubleClick": "Datei oder Verzeichnis öffnen",
|
||||||
"esc": "Auswahl zurücksetzen und/oder Dialog schließen",
|
"esc": "Auswahl aufheben und/oder Dialog schließen",
|
||||||
"f1": "Diese Informationsseite",
|
"f1": "diese Hilfe anzeigen",
|
||||||
"f2": "Datei umbenennen",
|
"f2": "Datei umbenennen",
|
||||||
"help": "Hilfe"
|
"help": "Hilfe"
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"createAnAccount": "Account erstellen",
|
"createAnAccount": "Konto erstellen",
|
||||||
"loginInstead": "Account besteht bereits",
|
"loginInstead": "Bereits ein Konto vorhanden",
|
||||||
"password": "Passwort",
|
"password": "Passwort",
|
||||||
"passwordConfirm": "Passwort Bestätigung",
|
"passwordConfirm": "Passwort bestätigen",
|
||||||
"passwordsDontMatch": "Passwörter stimmen nicht überein",
|
"passwordsDontMatch": "Passwörter stimmen nicht überein",
|
||||||
"signup": "Registrieren",
|
"signup": "Registrieren",
|
||||||
"submit": "Login",
|
"submit": "Anmelden",
|
||||||
"username": "Benutzername",
|
"username": "Benutzername",
|
||||||
"usernameTaken": "Benutzername ist bereits vergeben",
|
"usernameTaken": "Benutzername bereits vergeben",
|
||||||
"wrongCredentials": "Falsche Zugangsdaten",
|
"wrongCredentials": "Falsche Anmeldedaten",
|
||||||
"passwordTooShort": "Passwort muss mindestens {min} Zeichen lang sein",
|
"passwordTooShort": "Passwort muss mindestens {min} Zeichen lang sein",
|
||||||
"logout_reasons": {
|
"logout_reasons": {
|
||||||
"inactivity": "Du wurdest aufgrund von Inaktivität abgemeldet."
|
"inactivity": "Du wurdest wegen Inaktivität abgemeldet."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"permanent": "Permanent",
|
"permanent": "Permanent",
|
||||||
"prompts": {
|
"prompts": {
|
||||||
"copy": "Kopieren",
|
"copy": "Kopieren",
|
||||||
"copyMessage": "Wählen Sie einen Zielort zum Kopieren:",
|
"copyMessage": "Wähle den Zielort für deine Dateien:",
|
||||||
"currentlyNavigating": "Aktueller Ort:",
|
"currentlyNavigating": "Aktueller Pfad:",
|
||||||
"deleteMessageMultiple": "Sind Sie sicher, dass Sie {count} Datei(en) löschen möchten?",
|
"deleteMessageMultiple": "Möchtest du wirklich {count} Datei(en) löschen?",
|
||||||
"deleteMessageSingle": "Sind Sie sicher, dass Sie diesen Ordner/diese Datei löschen möchten?",
|
"deleteMessageSingle": "Möchtest du diese Datei/diesen Ordner wirklich löschen?",
|
||||||
"deleteMessageShare": "Sind Sie sicher, dass Sie diese Freigabe löschen möchten ({path})?",
|
"deleteMessageShare": "Möchtest du diese Freigabe ({path}) wirklich löschen?",
|
||||||
"deleteUser": "Sind Sie sicher, dass Sie diesen Benutzer löschen möchten?",
|
"deleteUser": "Möchtest du diesen Benutzer wirklich löschen?",
|
||||||
"deleteTitle": "Lösche Dateien",
|
"deleteTitle": "Dateien löschen",
|
||||||
"displayName": "Anzeigename:",
|
"displayName": "Anzeigename:",
|
||||||
"download": "Lade Dateien",
|
"download": "Dateien herunterladen",
|
||||||
"downloadMessage": "Wählen Sie ein Format zum Herunterladen aus.",
|
"downloadMessage": "Wähle das gewünschte Download-Format.",
|
||||||
"error": "Etwas ist schiefgelaufen",
|
"error": "Etwas ist schiefgelaufen",
|
||||||
"fileInfo": "Dateiinformation",
|
"fileInfo": "Dateiinformationen",
|
||||||
"filesSelected": "{count} Dateien ausgewählt.",
|
"filesSelected": "{count} Dateien ausgewählt.",
|
||||||
"lastModified": "Zuletzt geändert",
|
"lastModified": "Zuletzt geändert",
|
||||||
"move": "Verschieben",
|
"move": "Verschieben",
|
||||||
"moveMessage": "Wählen Sie einen neuen Platz für ihre Datei(en)/Ordner:",
|
"moveMessage": "Wähle den neuen Speicherort für deine Datei(en)/Ordner:",
|
||||||
"newArchetype": "Erstelle neuen Beitrag auf dem Archetyp. Ihre Datei wird im Inhalteordner erstellt.",
|
"newArchetype": "Neuen Beitrag basierend auf einem Archetyp erstellen. Die Datei wird im Content-Ordner erstellt.",
|
||||||
"newDir": "Neuer Ordner",
|
"newDir": "Neues Verzeichnis",
|
||||||
"newDirMessage": "Geben Sie den Namen des neuen Ordners an.",
|
"newDirMessage": "Gib einen Namen für das neue Verzeichnis ein.",
|
||||||
"newFile": "Neue Datei",
|
"newFile": "Neue Datei",
|
||||||
"newFileMessage": "Geben Sie den Namen der neuen Datei an.",
|
"newFileMessage": "Gib einen Namen für die neue Datei ein.",
|
||||||
"numberDirs": "Anzahl der Ordner",
|
"numberDirs": "Anzahl der Verzeichnisse",
|
||||||
"numberFiles": "Anzahl der Dateien",
|
"numberFiles": "Anzahl der Dateien",
|
||||||
"rename": "Umbenennen",
|
"rename": "Umbenennen",
|
||||||
"renameMessage": "Fügen Sie einen Namen ein für",
|
"renameMessage": "Neuen Namen eingeben für",
|
||||||
"replace": "Ersetzen",
|
"replace": "Ersetzen",
|
||||||
"replaceMessage": "Eine der Datei mit dem gleichen Namen, wie die Sie hochladen wollen, existiert bereits. Soll die vorhandene Datei übersprungen oder ersetzt werden?\n",
|
"replaceMessage": "Eine der hochzuladenden Dateien hat einen Namenskonflikt. Möchtest du diese Datei überspringen und mit dem Upload fortfahren oder die vorhandene Datei ersetzen?\n",
|
||||||
"schedule": "Plan",
|
"schedule": "Planen",
|
||||||
"scheduleMessage": "Wählen Sie ein Datum und eine Zeit für die Veröffentlichung dieses Beitrags.",
|
"scheduleMessage": "Wähle Datum und Uhrzeit für die geplante Veröffentlichung dieses Beitrags.",
|
||||||
"show": "Anzeigen",
|
"show": "Anzeigen",
|
||||||
"size": "Größe",
|
"size": "Größe",
|
||||||
"upload": "Upload",
|
"upload": "Hochladen",
|
||||||
"uploadFiles": "Upload von {files} Dateien...",
|
"uploadFiles": "{files} Dateien werden hochgeladen …",
|
||||||
"uploadMessage": "Wählen Sie eine Upload-Methode",
|
"uploadMessage": "Wähle eine Upload-Option.",
|
||||||
"optionalPassword": "Optionales Passwort",
|
"optionalPassword": "Optionales Passwort",
|
||||||
"resolution": "Auflösung",
|
"resolution": "Auflösung",
|
||||||
"discardEditorChanges": "Möchten Sie die vorgenommenen Änderungen wirklich verwerfen?"
|
"discardEditorChanges": "Möchtest du deine Änderungen wirklich verwerfen?",
|
||||||
|
"replaceOrSkip": "Dateien ersetzen oder überspringen",
|
||||||
|
"resolveConflict": "Welche Dateien möchtest du behalten?",
|
||||||
|
"singleConflictResolve": "Wenn du beide Versionen auswählst, wird dem Namen der kopierten Datei eine Nummer hinzugefügt.",
|
||||||
|
"fastConflictResolve": "Der Zielordner enthält {count} Dateien mit demselben Namen.",
|
||||||
|
"uploadingFiles": "Dateien werden hochgeladen",
|
||||||
|
"filesInOrigin": "Dateien im Ursprungsordner",
|
||||||
|
"filesInDest": "Dateien im Zielordner",
|
||||||
|
"override": "Überschreiben",
|
||||||
|
"skip": "Überspringen",
|
||||||
|
"forbiddenError": "Zugriff verweigert",
|
||||||
|
"currentPassword": "Dein Passwort",
|
||||||
|
"currentPasswordMessage": "Gib dein Passwort ein, um diese Aktion zu bestätigen."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Bilder",
|
"images": "Bilder",
|
||||||
"music": "Musik",
|
"music": "Musik",
|
||||||
"pdf": "PDF",
|
"pdf": "PDF",
|
||||||
"pressToSearch": "Drücken Sie Enter um zu suchen...",
|
"pressToSearch": "Eingabetaste drücken zum Suchen …",
|
||||||
"search": "Suche...",
|
"search": "Suchen …",
|
||||||
"typeToSearch": "Tippen um zu suchen...",
|
"typeToSearch": "Suchbegriff eingeben …",
|
||||||
"types": "Typen",
|
"types": "Typen",
|
||||||
"video": "Video"
|
"video": "Video"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"aceEditorTheme": "Ace Editor Theme",
|
"aceEditorTheme": "Ace-Editor-Theme",
|
||||||
"admin": "Admin",
|
"admin": "Admin",
|
||||||
"administrator": "Administrator",
|
"administrator": "Administrator",
|
||||||
"allowCommands": "Befehle ausführen",
|
"allowCommands": "Befehle ausführen",
|
||||||
"allowEdit": "Bearbeiten, Umbenennen und Löschen von Dateien oder Ordnern",
|
"allowEdit": "Dateien und Verzeichnisse bearbeiten, umbenennen und löschen",
|
||||||
"allowNew": "Erstellen neuer Dateien und Ordner",
|
"allowNew": "Neue Dateien und Verzeichnisse erstellen",
|
||||||
"allowPublish": "Veröffentlichen von neuen Beiträgen und Seiten",
|
"allowPublish": "Neue Beiträge und Seiten veröffentlichen",
|
||||||
"allowSignup": "Erlaube Benutzern sich zu registrieren",
|
"allowSignup": "Registrierung erlauben",
|
||||||
"hideLoginButton": "Den Login-Button auf öffentlichen Seiten ausblenden",
|
"hideLoginButton": "Anmelde-Button auf öffentlichen Seiten ausblenden",
|
||||||
"avoidChanges": "(leer lassen, um Änderungen zu vermeiden)",
|
"avoidChanges": "(leer lassen, um keine Änderungen vorzunehmen)",
|
||||||
"branding": "Design",
|
"branding": "Branding",
|
||||||
"brandingDirectoryPath": "Designverzeichnispfad",
|
"brandingDirectoryPath": "Branding-Verzeichnispfad",
|
||||||
"brandingHelp": "Sie können das Erscheinungsbild Ihres File Browser anpassen, in dem Sie den Namen ändern, das Logo austauschen oder eigene Stile definieren und sogar externe Links zu GitHub deaktivieren.\nUm mehr Informationen zum Anpassen des Designs zu bekommen, gehen Sie bitte zu {0}.",
|
"brandingHelp": "Du kannst das Erscheinungsbild deiner File-Browser-Instanz anpassen, indem du den Namen änderst, das Logo ersetzt, eigene Styles hinzufügst und sogar externe Links zu GitHub deaktivierst.\nWeitere Informationen zum Branding findest du in der {0}.",
|
||||||
"changePassword": "Passwort ändern",
|
"changePassword": "Passwort ändern",
|
||||||
"commandRunner": "Befehlseingabe",
|
"commandRunner": "Befehlsausführung",
|
||||||
"commandRunnerHelp": "Hier könne Sie Befehle eintragen, welche bei den benannten Aktionen ausgeführt werden. Sie müssen pro Zeile jeweils einen Befehl eingeben. Die Umgebungsvariable {0} und {1} sind verfügbar, wobei {0} relative zu {1} ist. Für mehr Informationen über diese Funktion und die verfügbaren Umgebungsvariablen lesen Sie bitte die {2}.",
|
"commandRunnerHelp": "Hier kannst du Befehle festlegen, die bei bestimmten Ereignissen ausgeführt werden. Schreibe einen Befehl pro Zeile. Die Umgebungsvariablen {0} und {1} sind verfügbar, wobei {0} relativ zu {1} ist. Weitere Informationen zu dieser Funktion und den verfügbaren Umgebungsvariablen findest du in der {2}.",
|
||||||
"commandsUpdated": "Befehle aktualisiert!",
|
"commandsUpdated": "Befehle aktualisiert!",
|
||||||
"createUserDir": "Automatisches Erstellen des Home-Verzeichnisses beim Anlegen neuer Benutzer",
|
"createUserDir": "Benutzerverzeichnis beim Erstellen neuer Benutzer automatisch anlegen",
|
||||||
"minimumPasswordLength": "Mindestlänge für Passwörter",
|
"minimumPasswordLength": "Mindestlänge des Passworts",
|
||||||
"tusUploads": "Gestückelter Upload",
|
"tusUploads": "Uploads in Teilen",
|
||||||
"tusUploadsHelp": "File Browser unterstützt das Hochladen von gestückelten Dateien und ermöglicht so einen effizienten, zuverlässigen, fortsetzbaren und gestückelten Datei-Upload auch in unzuverlässigen Netzwerken.",
|
"tusUploadsHelp": "File Browser unterstützt das Hochladen von Dateien in Teilen. So sind effiziente, zuverlässige und fortsetzbare Uploads auch bei instabilen Netzwerkverbindungen möglich.",
|
||||||
"tusUploadsChunkSize": "Gibt die maximale Größe pro Anfrage an (direkte Uploads werden für kleinere Uploads verwendet). Bitte geben Sie eine Byte-Angabe oder eine Zeichenfolge wie 10 MB, 1 GB usw. an",
|
"tusUploadsChunkSize": "Gibt die maximale Größe einer Anfrage an (kleinere Dateien werden direkt hochgeladen). Du kannst eine Zahl in Bytes oder einen String wie 10MB, 1GB usw. eingeben.",
|
||||||
"tusUploadsRetryCount": "Anzahl der Wiederholungsversuche, wenn das Hochladen eines Stückes fehlschlägt.",
|
"tusUploadsRetryCount": "Anzahl der Wiederholungsversuche bei fehlgeschlagenem Teil-Upload.",
|
||||||
"userHomeBasePath": "Basispfad für Benutzer-Home-Verzeichnisse",
|
"userHomeBasePath": "Basispfad für Benutzerverzeichnisse",
|
||||||
"userScopeGenerationPlaceholder": "Scope wird automatisch generiert",
|
"userScopeGenerationPlaceholder": "Der Bereich wird automatisch generiert",
|
||||||
"createUserHomeDirectory": "Benutzer-Home-Verzeichnis erstellen",
|
"createUserHomeDirectory": "Benutzerverzeichnis erstellen",
|
||||||
"customStylesheet": "Individuelles Stylesheet",
|
"customStylesheet": "Eigenes Stylesheet",
|
||||||
"defaultUserDescription": "Das sind die Standardeinstellung für Benutzer",
|
"defaultUserDescription": "Dies sind die Standardeinstellungen für neue Benutzer.",
|
||||||
"disableExternalLinks": "Externe Links deaktivieren (außer Dokumentation)",
|
"disableExternalLinks": "Externe Links deaktivieren (außer Dokumentation)",
|
||||||
"disableUsedDiskPercentage": "Diagramm zur Festplattennutzung deaktivieren",
|
"disableUsedDiskPercentage": "Speicherplatzanzeige deaktivieren",
|
||||||
"documentation": "Dokumentation",
|
"documentation": "Dokumentation",
|
||||||
"examples": "Beispiele",
|
"examples": "Beispiele",
|
||||||
"executeOnShell": "In Shell ausführen",
|
"executeOnShell": "In Shell ausführen",
|
||||||
"executeOnShellDescription": "Es ist voreingestellt, dass der File Brower Befehle ausführt, indem er die Befehlsdateien direkt aufruft. Wenn Sie wollen, dass sie über einer Kommandozeile (wie Bash oder PowerShell) laufen, könne Sie diese hier definieren mit allen benötigten Argumenten und Optionen. Wenn gesetzt, wird das Kommando das ausgeführt werden soll als Parameter angehängt. Das gilt für Benutzerkommandos sowie auch für Ereignisse.",
|
"executeOnShellDescription": "Standardmäßig führt File Browser Befehle durch direkten Aufruf der Binärdateien aus. Wenn du sie stattdessen in einer Shell (wie Bash oder PowerShell) ausführen möchtest, kannst du diese hier mit den erforderlichen Argumenten und Flags angeben. Der auszuführende Befehl wird dann als Argument angehängt. Dies gilt sowohl für Benutzerbefehle als auch für Event-Hooks.",
|
||||||
"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.",
|
"globalRules": "Dies ist ein globaler Satz von Erlauben- und Verbieten-Regeln. Sie gelten für alle Benutzer. Du kannst in den Einstellungen einzelner Benutzer spezifische Regeln festlegen, um diese zu überschreiben.",
|
||||||
"globalSettings": "Globale Einstellungen",
|
"globalSettings": "Globale Einstellungen",
|
||||||
"hideDotfiles": "Versteckte Dateien ausblenden",
|
"hideDotfiles": "Versteckte Dateien ausblenden",
|
||||||
"insertPath": "Pfad einfügen",
|
"insertPath": "Pfad eingeben",
|
||||||
"insertRegex": "Regulären Ausdruck (Regex) einfügen",
|
"insertRegex": "Regulären Ausdruck eingeben",
|
||||||
"instanceName": "Instanzname",
|
"instanceName": "Instanzname",
|
||||||
"language": "Sprache",
|
"language": "Sprache",
|
||||||
"lockPassword": "Verhindere, dass der Benutzer sein Passwort ändert",
|
"lockPassword": "Benutzer daran hindern, das Passwort zu ändern",
|
||||||
"newPassword": "Ihr neues Passwort.",
|
"newPassword": "Dein neues Passwort",
|
||||||
"newPasswordConfirm": "Bestätigen Sie Ihr neues Passwort",
|
"newPasswordConfirm": "Neues Passwort bestätigen",
|
||||||
"newUser": "Neuer Benutzer",
|
"newUser": "Neuer Benutzer",
|
||||||
"password": "Passwort",
|
"password": "Passwort",
|
||||||
"passwordUpdated": "Passwort aktualisiert!",
|
"passwordUpdated": "Passwort aktualisiert!",
|
||||||
"path": "Pfad",
|
"path": "Pfad",
|
||||||
"perm": {
|
"perm": {
|
||||||
"create": "Dateien und Ordner erstellen",
|
"create": "Dateien und Verzeichnisse erstellen",
|
||||||
"delete": "Dateien und Ordner löschen",
|
"delete": "Dateien und Verzeichnisse löschen",
|
||||||
"download": "Download",
|
"download": "Herunterladen",
|
||||||
"execute": "Befehle ausführen",
|
"execute": "Befehle ausführen",
|
||||||
"modify": "Dateien editieren",
|
"modify": "Dateien bearbeiten",
|
||||||
"rename": "Umbenennen oder Verschieben von Dateien oder Ordnern",
|
"rename": "Dateien und Verzeichnisse umbenennen oder verschieben",
|
||||||
"share": "Datei teilen"
|
"share": "Dateien freigeben (Download-Berechtigung erforderlich)"
|
||||||
},
|
},
|
||||||
"permissions": "Berechtigungen",
|
"permissions": "Berechtigungen",
|
||||||
"permissionsHelp": "Sie können einem Benutzer Administratorrechte einräumen oder die Berechtigungen individuell festlegen. Wenn Sie \"Administrator\" auswählen, werden alle anderen Rechte automatisch vergeben. Die Nutzerverwaltung kann nur durch einen Administrator erfolgen.\n",
|
"permissionsHelp": "Du kannst den Benutzer zum Administrator machen oder die Berechtigungen einzeln festlegen. Wenn du \"Administrator\" wählst, werden automatisch alle anderen Optionen aktiviert. Die Benutzerverwaltung bleibt ein Administratorrecht.\n",
|
||||||
"profileSettings": "Profileinstellungen",
|
"profileSettings": "Profileinstellungen",
|
||||||
"ruleExample1": "Verhindert den Zugang zu versteckten Dateien (dot-Files, wie .git, .gitignore) in allen Ordnern\n",
|
"redirectAfterCopyMove": "Nach Kopieren/Verschieben zum Ziel wechseln",
|
||||||
"ruleExample2": "blockiert den Zugang auf Dateien mit dem Namen Caddyfile in der Wurzel/Basis des Scopes.",
|
"ruleExample1": "verhindert den Zugriff auf alle versteckten Dateien (wie .git, .gitignore) in jedem Ordner.\n",
|
||||||
|
"ruleExample2": "blockiert den Zugriff auf die Datei namens Caddyfile im Stammverzeichnis des Bereichs.",
|
||||||
"rules": "Regeln",
|
"rules": "Regeln",
|
||||||
"rulesHelp": "Hier können Sie erlaubte und verbotene Aktionen für einen einzelnen Benutzer festlegen. Blockierte Dateien werden nicht im Listing angezeigt und sind nicht erreichbar für den Nutzer. Wir unterstützen reguläre Ausdrücke (Regex) und Pfade die relativ zum Benutzerordner sind. \n",
|
"rulesHelp": "Hier kannst du Erlauben- und Verbieten-Regeln für diesen Benutzer festlegen. Blockierte Dateien werden nicht in den Auflistungen angezeigt und sind für den Benutzer nicht zugänglich. Wir unterstützen Regex und Pfade relativ zum Benutzerbereich.\n",
|
||||||
"scope": "Scope",
|
"scope": "Bereich",
|
||||||
"setDateFormat": "Exaktes Datumsformat setzen",
|
"setDateFormat": "Genaues Datumsformat festlegen",
|
||||||
"settingsUpdated": "Einstellungen aktualisiert!",
|
"settingsUpdated": "Einstellungen aktualisiert!",
|
||||||
"shareDuration": "Dauer",
|
"shareDuration": "Freigabedauer",
|
||||||
"shareManagement": "Freigaben verwalten",
|
"shareManagement": "Freigabeverwaltung",
|
||||||
"shareDeleted": "Freigabe gelöscht!",
|
"shareDeleted": "Freigabe gelöscht!",
|
||||||
"singleClick": "Einfacher Klick zum Öffnen von Dateien und Ordnern",
|
"singleClick": "Einfacher Klick zum Öffnen von Dateien und Verzeichnissen",
|
||||||
|
"sunsetBody": "This project is being wound down. It is archived on 2026-09-01, after which there will be no further releases, bug fixes, or security fixes. Existing releases and Docker images stay online. Do not expose this instance directly to the internet without authentication in front of it.",
|
||||||
|
"sunsetLink": "Read the project status, known unfixed security issues, and hardening guidance",
|
||||||
|
"sunsetTitle": "File Browser is being archived",
|
||||||
"themes": {
|
"themes": {
|
||||||
"default": "Systemstandard",
|
"default": "Systemstandard",
|
||||||
"dark": "Dunkel",
|
"dark": "Dunkel",
|
||||||
"light": "Hell",
|
"light": "Hell",
|
||||||
"title": "Erscheinungsbild"
|
"title": "Design"
|
||||||
},
|
},
|
||||||
"user": "Benutzer",
|
"user": "Benutzer",
|
||||||
"userCommands": "Befehle",
|
"userCommands": "Befehle",
|
||||||
"userCommandsHelp": "Eine Liste, mit einem Leerzeichen als Trennung, mit den für diesen Nutzer verfügbaren Befehlen. Beispiel:\n",
|
"userCommandsHelp": "Eine durch Leerzeichen getrennte Liste der verfügbaren Befehle für diesen Benutzer. Beispiel:\n",
|
||||||
"userCreated": "Benutzer angelegt!",
|
"userCreated": "Benutzer erstellt!",
|
||||||
"userDefaults": "Benutzer Standard Einstellungen",
|
"userDefaults": "Standardeinstellungen für Benutzer",
|
||||||
"userDeleted": "Benutzer gelöscht!",
|
"userDeleted": "Benutzer gelöscht!",
|
||||||
"userManagement": "Benutzerverwaltung",
|
"userManagement": "Benutzerverwaltung",
|
||||||
"userUpdated": "Benutzer aktualisiert!",
|
"userUpdated": "Benutzer aktualisiert!",
|
||||||
"username": "Nutzername",
|
"username": "Benutzername",
|
||||||
"users": "Nutzer"
|
"users": "Benutzer",
|
||||||
|
"currentPassword": "Dein aktuelles Passwort"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
|
"diskUsed": "{used} von {total} belegt",
|
||||||
"help": "Hilfe",
|
"help": "Hilfe",
|
||||||
"hugoNew": "Hugo Neu",
|
"hugoNew": "Hugo Neu",
|
||||||
"login": "Anmelden",
|
"login": "Anmelden",
|
||||||
@@ -270,10 +297,10 @@
|
|||||||
"preview": "Vorschau",
|
"preview": "Vorschau",
|
||||||
"settings": "Einstellungen",
|
"settings": "Einstellungen",
|
||||||
"signup": "Registrieren",
|
"signup": "Registrieren",
|
||||||
"siteSettings": "Seiteneinstellungen"
|
"siteSettings": "Website-Einstellungen"
|
||||||
},
|
},
|
||||||
"success": {
|
"success": {
|
||||||
"linkCopied": "Verweis wurde kopiert!"
|
"linkCopied": "Link kopiert!"
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"days": "Tage",
|
"days": "Tage",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Ενημέρωση",
|
"update": "Ενημέρωση",
|
||||||
"upload": "Μεταφόρτωση",
|
"upload": "Μεταφόρτωση",
|
||||||
"openFile": "Άνοιγμα αρχείου",
|
"openFile": "Άνοιγμα αρχείου",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Discard",
|
"discardChanges": "Discard",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Λήψη αρχείου",
|
"downloadFile": "Λήψη αρχείου",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "επιλέξτε αρχείο ή φάκελο",
|
"click": "επιλέξτε αρχείο ή φάκελο",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Επιλέξτε μια επιλογή για τη μεταφόρτωση.",
|
"uploadMessage": "Επιλέξτε μια επιλογή για τη μεταφόρτωση.",
|
||||||
"optionalPassword": "Προαιρετικός κωδικός πρόσβασης",
|
"optionalPassword": "Προαιρετικός κωδικός πρόσβασης",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?"
|
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Εικόνες",
|
"images": "Εικόνες",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Δικαιώματα",
|
"permissions": "Δικαιώματα",
|
||||||
"permissionsHelp": "Μπορείτε να ορίσετε τον χρήστη ως διαχειριστή ή να επιλέξετε τα δικαιώματα μεμονωμένα. Αν επιλέξετε \"Διαχειριστής\", όλες οι υπόλοιπες επιλογές θα είναι αυτόματα επιλεγμένες. Η διαχείριση χρηστών παραμένει προνόμιο ενός χρήστη με τον ρόλο του διαχειριστή.\n",
|
"permissionsHelp": "Μπορείτε να ορίσετε τον χρήστη ως διαχειριστή ή να επιλέξετε τα δικαιώματα μεμονωμένα. Αν επιλέξετε \"Διαχειριστής\", όλες οι υπόλοιπες επιλογές θα είναι αυτόματα επιλεγμένες. Η διαχείριση χρηστών παραμένει προνόμιο ενός χρήστη με τον ρόλο του διαχειριστή.\n",
|
||||||
"profileSettings": "Ρυθμίσεις προφίλ",
|
"profileSettings": "Ρυθμίσεις προφίλ",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "αποκλείει την πρόσβαση σε οποιοδήποτε κρυφό αρχείο (όπως .git, .gitignore) σε κάθε φάκελο.\n",
|
"ruleExample1": "αποκλείει την πρόσβαση σε οποιοδήποτε κρυφό αρχείο (όπως .git, .gitignore) σε κάθε φάκελο.\n",
|
||||||
"ruleExample2": "αποκλείει την πρόσβαση στο αρχείο με το όνομα Caddyfile στον ριζικό φάκελο της εμβέλειας του κανόνα.",
|
"ruleExample2": "αποκλείει την πρόσβαση στο αρχείο με το όνομα Caddyfile στον ριζικό φάκελο της εμβέλειας του κανόνα.",
|
||||||
"rules": "Κανόνες",
|
"rules": "Κανόνες",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Διαχείριση χρηστών",
|
"userManagement": "Διαχείριση χρηστών",
|
||||||
"userUpdated": "Ο χρήστης ενημερώθηκε!",
|
"userUpdated": "Ο χρήστης ενημερώθηκε!",
|
||||||
"username": "Όνομα χρήστη",
|
"username": "Όνομα χρήστη",
|
||||||
"users": "Χρήστες"
|
"users": "Χρήστες",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Βοήθεια",
|
"help": "Βοήθεια",
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
"rename": "Rename",
|
"rename": "Rename",
|
||||||
"replace": "Replace",
|
"replace": "Replace",
|
||||||
"reportIssue": "Report Issue",
|
"reportIssue": "Report Issue",
|
||||||
|
"resumeTransfer": "Resume previous transfer",
|
||||||
|
"resumeTransferTooltip": "Skip all conflicting files, except the ones that are smaller on the server as we suppose that their transfert has been interrupted.",
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"schedule": "Schedule",
|
"schedule": "Schedule",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
@@ -42,11 +44,17 @@
|
|||||||
"update": "Update",
|
"update": "Update",
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
"openFile": "Open file",
|
"openFile": "Open file",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Discard",
|
"discardChanges": "Discard",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Download File",
|
"downloadFile": "Download File",
|
||||||
@@ -87,7 +95,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "select file or directory",
|
"click": "select file or directory",
|
||||||
@@ -158,7 +167,19 @@
|
|||||||
"uploadMessage": "Select an option to upload.",
|
"uploadMessage": "Select an option to upload.",
|
||||||
"optionalPassword": "Optional password",
|
"optionalPassword": "Optional password",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?"
|
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Images",
|
"images": "Images",
|
||||||
@@ -226,11 +247,12 @@
|
|||||||
"execute": "Execute commands",
|
"execute": "Execute commands",
|
||||||
"modify": "Edit files",
|
"modify": "Edit files",
|
||||||
"rename": "Rename or move files and directories",
|
"rename": "Rename or move files and directories",
|
||||||
"share": "Share files"
|
"share": "Share files (require download permission)"
|
||||||
},
|
},
|
||||||
"permissions": "Permissions",
|
"permissions": "Permissions",
|
||||||
"permissionsHelp": "You can set the user to be an administrator or choose the permissions individually. If you select \"Administrator\", all of the other options will be automatically checked. The management of users remains a privilege of an administrator.\n",
|
"permissionsHelp": "You can set the user to be an administrator or choose the permissions individually. If you select \"Administrator\", all of the other options will be automatically checked. The management of users remains a privilege of an administrator.\n",
|
||||||
"profileSettings": "Profile Settings",
|
"profileSettings": "Profile Settings",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "prevents the access to any dotfile (such as .git, .gitignore) in every folder.\n",
|
"ruleExample1": "prevents the access to any dotfile (such as .git, .gitignore) in every folder.\n",
|
||||||
"ruleExample2": "blocks the access to the file named Caddyfile on the root of the scope.",
|
"ruleExample2": "blocks the access to the file named Caddyfile on the root of the scope.",
|
||||||
"rules": "Rules",
|
"rules": "Rules",
|
||||||
@@ -242,6 +264,9 @@
|
|||||||
"shareManagement": "Share Management",
|
"shareManagement": "Share Management",
|
||||||
"shareDeleted": "Share deleted!",
|
"shareDeleted": "Share deleted!",
|
||||||
"singleClick": "Use single clicks to open files and directories",
|
"singleClick": "Use single clicks to open files and directories",
|
||||||
|
"sunsetBody": "This project is being wound down. It is archived on 2026-09-01, after which there will be no further releases, bug fixes, or security fixes. Existing releases and Docker images stay online. Do not expose this instance directly to the internet without authentication in front of it.",
|
||||||
|
"sunsetLink": "Read the project status, known unfixed security issues, and hardening guidance",
|
||||||
|
"sunsetTitle": "File Browser is being archived",
|
||||||
"themes": {
|
"themes": {
|
||||||
"default": "System default",
|
"default": "System default",
|
||||||
"dark": "Dark",
|
"dark": "Dark",
|
||||||
@@ -257,9 +282,11 @@
|
|||||||
"userManagement": "User Management",
|
"userManagement": "User Management",
|
||||||
"userUpdated": "User updated!",
|
"userUpdated": "User updated!",
|
||||||
"username": "Username",
|
"username": "Username",
|
||||||
"users": "Users"
|
"users": "Users",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
|
"diskUsed": "{used} of {total} used",
|
||||||
"help": "Help",
|
"help": "Help",
|
||||||
"hugoNew": "Hugo New",
|
"hugoNew": "Hugo New",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Actualizar",
|
"update": "Actualizar",
|
||||||
"upload": "Subir",
|
"upload": "Subir",
|
||||||
"openFile": "Abrir archivo",
|
"openFile": "Abrir archivo",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Discard",
|
"discardChanges": "Discard",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Guardar cambios",
|
"saveChanges": "Guardar cambios",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Descargar fichero",
|
"downloadFile": "Descargar fichero",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "seleccionar archivo o carpeta",
|
"click": "seleccionar archivo o carpeta",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Seleccione una opción para subir.",
|
"uploadMessage": "Seleccione una opción para subir.",
|
||||||
"optionalPassword": "Contraseña opcional",
|
"optionalPassword": "Contraseña opcional",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?"
|
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Imágenes",
|
"images": "Imágenes",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Permisos",
|
"permissions": "Permisos",
|
||||||
"permissionsHelp": "Puedes nombrar al usuario como administrador o elegir los permisos individualmente. Si seleccionas \"Administrador\", todas las otras opciones serán activadas automáticamente. La administración de usuarios es un privilegio de administrador.\n",
|
"permissionsHelp": "Puedes nombrar al usuario como administrador o elegir los permisos individualmente. Si seleccionas \"Administrador\", todas las otras opciones serán activadas automáticamente. La administración de usuarios es un privilegio de administrador.\n",
|
||||||
"profileSettings": "Ajustes del perfil",
|
"profileSettings": "Ajustes del perfil",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "previene el acceso a una extensión de archivo (Como .git) en cada carpeta.\n",
|
"ruleExample1": "previene el acceso a una extensión de archivo (Como .git) en cada carpeta.\n",
|
||||||
"ruleExample2": "bloquea el acceso al archivo llamado Caddyfile en la carpeta raíz.",
|
"ruleExample2": "bloquea el acceso al archivo llamado Caddyfile en la carpeta raíz.",
|
||||||
"rules": "Reglas",
|
"rules": "Reglas",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Administración de usuarios",
|
"userManagement": "Administración de usuarios",
|
||||||
"userUpdated": "¡Usuario actualizado!",
|
"userUpdated": "¡Usuario actualizado!",
|
||||||
"username": "Usuario",
|
"username": "Usuario",
|
||||||
"users": "Usuarios"
|
"users": "Usuarios",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Ayuda",
|
"help": "Ayuda",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "به روز سانی",
|
"update": "به روز سانی",
|
||||||
"upload": "آپلود",
|
"upload": "آپلود",
|
||||||
"openFile": "باز کردن فایل",
|
"openFile": "باز کردن فایل",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "لغو کردن",
|
"discardChanges": "لغو کردن",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "دانلود فایل",
|
"downloadFile": "دانلود فایل",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "انتخاب فایل یا پوشه",
|
"click": "انتخاب فایل یا پوشه",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "یک گزینه برای آپلود انتخاب کنید.",
|
"uploadMessage": "یک گزینه برای آپلود انتخاب کنید.",
|
||||||
"optionalPassword": "رمز عبور اختیاری",
|
"optionalPassword": "رمز عبور اختیاری",
|
||||||
"resolution": "وضوح تصویر",
|
"resolution": "وضوح تصویر",
|
||||||
"discardEditorChanges": "آیا مطمئن هستید که میخواهید تغییراتی را که ایجاد کردهاید، لغو کنید؟"
|
"discardEditorChanges": "آیا مطمئن هستید که میخواهید تغییراتی را که ایجاد کردهاید، لغو کنید؟",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "تصاویر",
|
"images": "تصاویر",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "دسترسی ها",
|
"permissions": "دسترسی ها",
|
||||||
"permissionsHelp": "شما میتوانید کاربر را به عنوان مدیر تنظیم کنید یا دسترسیها را به صورت جداگانه انتخاب کنید. اگر \"مدیر\" را انتخاب کنید، تمام گزینههای دیگر به طور خودکار اعمال میشوند. مدیریت کاربران همچنان از اختیارات مدیر است.",
|
"permissionsHelp": "شما میتوانید کاربر را به عنوان مدیر تنظیم کنید یا دسترسیها را به صورت جداگانه انتخاب کنید. اگر \"مدیر\" را انتخاب کنید، تمام گزینههای دیگر به طور خودکار اعمال میشوند. مدیریت کاربران همچنان از اختیارات مدیر است.",
|
||||||
"profileSettings": "تنظیمات ناحیه کاربری",
|
"profileSettings": "تنظیمات ناحیه کاربری",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "از دسترسی به هرگونه فایل نقطهای (مانند .git، .gitignore) در هر پوشه جلوگیری میکند.",
|
"ruleExample1": "از دسترسی به هرگونه فایل نقطهای (مانند .git، .gitignore) در هر پوشه جلوگیری میکند.",
|
||||||
"ruleExample2": "دسترسی به فایلی به نام Caddyfile را در ریشه دامنه مسدود میکند.",
|
"ruleExample2": "دسترسی به فایلی به نام Caddyfile را در ریشه دامنه مسدود میکند.",
|
||||||
"rules": "قواعد",
|
"rules": "قواعد",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "مدیریت کاربران",
|
"userManagement": "مدیریت کاربران",
|
||||||
"userUpdated": "کاربر به روز شد!",
|
"userUpdated": "کاربر به روز شد!",
|
||||||
"username": "نام کاربری",
|
"username": "نام کاربری",
|
||||||
"users": "کاربران"
|
"users": "کاربران",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "راهنما",
|
"help": "راهنما",
|
||||||
|
|||||||
+71
-44
@@ -29,6 +29,8 @@
|
|||||||
"rename": "Renommer",
|
"rename": "Renommer",
|
||||||
"replace": "Remplacer",
|
"replace": "Remplacer",
|
||||||
"reportIssue": "Signaler un problème",
|
"reportIssue": "Signaler un problème",
|
||||||
|
"resumeTransfer": "Reprendre le transfert précédent",
|
||||||
|
"resumeTransferTooltip": "Ignorez tous les fichiers en conflit, à l'exception de ceux dont la taille est inférieure sur le serveur, car nous supposons que leur transfert a été interrompu.",
|
||||||
"save": "Enregistrer",
|
"save": "Enregistrer",
|
||||||
"schedule": "Planifier",
|
"schedule": "Planifier",
|
||||||
"search": "Rechercher",
|
"search": "Rechercher",
|
||||||
@@ -42,11 +44,17 @@
|
|||||||
"update": "Mettre à jour",
|
"update": "Mettre à jour",
|
||||||
"upload": "Importer",
|
"upload": "Importer",
|
||||||
"openFile": "Ouvrir le fichier",
|
"openFile": "Ouvrir le fichier",
|
||||||
|
"openDirect": "Affichage brut",
|
||||||
"discardChanges": "Annuler",
|
"discardChanges": "Annuler",
|
||||||
"saveChanges": "Save changes",
|
"stopSearch": "Arrêter recherche",
|
||||||
"editAsText": "Edit as Text",
|
"saveChanges": "Enregistrer changements",
|
||||||
"increaseFontSize": "Increase font size",
|
"editAsText": "Editer comme Texte",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"increaseFontSize": "Augmenter taille police",
|
||||||
|
"decreaseFontSize": "Réduire taille police",
|
||||||
|
"overrideAll": "Remplacer tous les fichiers du dossier de destination",
|
||||||
|
"skipAll": "Ignorer tous les fichiers en conflit",
|
||||||
|
"renameAll": " Renommer tous les fichiers (créer une copie)",
|
||||||
|
"singleDecision": "Choisissez pour chaque fichier en conflit"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Télécharger le fichier",
|
"downloadFile": "Télécharger le fichier",
|
||||||
@@ -79,15 +87,16 @@
|
|||||||
"sortByName": "Trier par nom",
|
"sortByName": "Trier par nom",
|
||||||
"sortBySize": "Trier par taille",
|
"sortBySize": "Trier par taille",
|
||||||
"noPreview": "L'aperçu n'est pas disponible pour ce fichier.",
|
"noPreview": "L'aperçu n'est pas disponible pour ce fichier.",
|
||||||
"csvTooLarge": "CSV file is too large for preview (>5MB). Please download to view.",
|
"csvTooLarge": "Le fichier CSV est trop volumineux pour être prévisualisé (>5MB). Veuillez le télécharger pour le voir.",
|
||||||
"csvLoadFailed": "Failed to load CSV file.",
|
"csvLoadFailed": "Impossible de charger le fichier CSV.",
|
||||||
"showingRows": "Showing {count} row(s)",
|
"showingRows": "Affichage de {count} ligne(s)",
|
||||||
"columnSeparator": "Column Separator",
|
"columnSeparator": "Séparateur de Colonnes",
|
||||||
"csvSeparators": {
|
"csvSeparators": {
|
||||||
"comma": "Comma (,)",
|
"comma": "Virgule (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Point-virgule (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Les (,) et (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "Encodage du fichier"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "Sélectionner un fichier ou dossier",
|
"click": "Sélectionner un fichier ou dossier",
|
||||||
@@ -111,12 +120,12 @@
|
|||||||
"passwordsDontMatch": "Les mots de passe ne concordent pas",
|
"passwordsDontMatch": "Les mots de passe ne concordent pas",
|
||||||
"signup": "S'inscrire",
|
"signup": "S'inscrire",
|
||||||
"submit": "Se connecter",
|
"submit": "Se connecter",
|
||||||
"username": "Utilisateur·ice",
|
"username": "Identifiant",
|
||||||
"usernameTaken": "Le nom d'utilisateur·ice est déjà pris",
|
"usernameTaken": "L'identifiant est déjà pris",
|
||||||
"wrongCredentials": "Identifiants incorrects !",
|
"wrongCredentials": "Identifiants incorrects !",
|
||||||
"passwordTooShort": "Password must be at least {min} characters",
|
"passwordTooShort": "Le mot de passe doit contenir au moins {min} caractères",
|
||||||
"logout_reasons": {
|
"logout_reasons": {
|
||||||
"inactivity": "You have been logged out due to inactivity."
|
"inactivity": "Vous avez été déconnecté'e en raison d'une inactivité prolongée."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"permanent": "Permanent",
|
"permanent": "Permanent",
|
||||||
@@ -127,7 +136,7 @@
|
|||||||
"deleteMessageMultiple": "Êtes-vous sûr de vouloir supprimer ces {count} élément(s) ?",
|
"deleteMessageMultiple": "Êtes-vous sûr de vouloir supprimer ces {count} élément(s) ?",
|
||||||
"deleteMessageSingle": "Êtes-vous sûr de vouloir supprimer cet élément ?",
|
"deleteMessageSingle": "Êtes-vous sûr de vouloir supprimer cet élément ?",
|
||||||
"deleteMessageShare": "Êtes-vous sûr de vouloir supprimer ce partage ({path}) ?",
|
"deleteMessageShare": "Êtes-vous sûr de vouloir supprimer ce partage ({path}) ?",
|
||||||
"deleteUser": "Êtes-vous sûr de vouloir supprimer cet·te utilisateur·ice ?",
|
"deleteUser": "Êtes-vous sûr de vouloir supprimer cet utilisateur ?",
|
||||||
"deleteTitle": "Supprimer",
|
"deleteTitle": "Supprimer",
|
||||||
"displayName": "Nom :",
|
"displayName": "Nom :",
|
||||||
"download": "Télécharger",
|
"download": "Télécharger",
|
||||||
@@ -158,7 +167,19 @@
|
|||||||
"uploadMessage": "Sélectionnez une option d'import.",
|
"uploadMessage": "Sélectionnez une option d'import.",
|
||||||
"optionalPassword": "Mot de passe optionnel",
|
"optionalPassword": "Mot de passe optionnel",
|
||||||
"resolution": "Résolution",
|
"resolution": "Résolution",
|
||||||
"discardEditorChanges": "Êtes-vous sûr de vouloir annuler les modifications apportées ?"
|
"discardEditorChanges": "Êtes-vous sûr de vouloir annuler les modifications apportées ?",
|
||||||
|
"replaceOrSkip": "Remplacer ou ignorer les fichiers",
|
||||||
|
"resolveConflict": "Quels fichiers souhaitez-vous conserver ?",
|
||||||
|
"singleConflictResolve": "Si vous sélectionnez les deux versions, un numéro sera ajouté au nom du fichier copié.",
|
||||||
|
"fastConflictResolve": "Le dossier de destination contient {count} fichiers portant le même nom.",
|
||||||
|
"uploadingFiles": "Importation de fichiers",
|
||||||
|
"filesInOrigin": "Fichiers d'origine",
|
||||||
|
"filesInDest": "Fichiers de destination",
|
||||||
|
"override": "Remplacer",
|
||||||
|
"skip": "Passer",
|
||||||
|
"forbiddenError": "Action non autorisée",
|
||||||
|
"currentPassword": "Votre mot de passe",
|
||||||
|
"currentPasswordMessage": "Entrez votre mot de passe pour valider cette action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Images",
|
"images": "Images",
|
||||||
@@ -171,15 +192,15 @@
|
|||||||
"video": "Vidéo"
|
"video": "Vidéo"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"aceEditorTheme": "Ace editor theme",
|
"aceEditorTheme": "Éditeur de Thème Ace",
|
||||||
"admin": "Admin",
|
"admin": "Admin",
|
||||||
"administrator": "Administrateur·ice",
|
"administrator": "Administrateur'ice",
|
||||||
"allowCommands": "Exécuter des commandes",
|
"allowCommands": "Exécuter des commandes",
|
||||||
"allowEdit": "Éditer, renommer et supprimer des fichiers ou des dossiers",
|
"allowEdit": "Éditer, renommer et supprimer des fichiers ou des dossiers",
|
||||||
"allowNew": "Créer de nouveaux fichiers et dossiers",
|
"allowNew": "Créer de nouveaux fichiers et dossiers",
|
||||||
"allowPublish": "Publier de nouveaux posts et pages",
|
"allowPublish": "Publier de nouveaux posts et pages",
|
||||||
"allowSignup": "Autoriser les utilisateur·ices à s'inscrire",
|
"allowSignup": "Autoriser les utilisateur'ices à s'inscrire",
|
||||||
"hideLoginButton": "Hide the login button from public pages",
|
"hideLoginButton": "Cacher le bouton d’identification sur les pages publiques",
|
||||||
"avoidChanges": "(Laisser vide pour conserver l'actuel)",
|
"avoidChanges": "(Laisser vide pour conserver l'actuel)",
|
||||||
"branding": "Image de marque",
|
"branding": "Image de marque",
|
||||||
"brandingDirectoryPath": "Chemin du dossier d'image de marque",
|
"brandingDirectoryPath": "Chemin du dossier d'image de marque",
|
||||||
@@ -188,34 +209,34 @@
|
|||||||
"commandRunner": "Exécuteur de commandes",
|
"commandRunner": "Exécuteur de commandes",
|
||||||
"commandRunnerHelp": "Ici, vous pouvez définir les commandes qui seront exécutées lors des événements nommés précédemments. Vous devez en écrire une par ligne. Les variables d'environnement {0} et {1} seront disponibles, {0} étant relatif à {1}. Pour plus d'informations sur cette fonctionnalité et les variables d'environnement disponibles, veuillez lire la {2}.",
|
"commandRunnerHelp": "Ici, vous pouvez définir les commandes qui seront exécutées lors des événements nommés précédemments. Vous devez en écrire une par ligne. Les variables d'environnement {0} et {1} seront disponibles, {0} étant relatif à {1}. Pour plus d'informations sur cette fonctionnalité et les variables d'environnement disponibles, veuillez lire la {2}.",
|
||||||
"commandsUpdated": "Commandes mises à jour !",
|
"commandsUpdated": "Commandes mises à jour !",
|
||||||
"createUserDir": "Créer automatiquement un dossier pour l'utilisateur·ice",
|
"createUserDir": "Créer automatiquement un dossier pour l'utilisateur'ice",
|
||||||
"minimumPasswordLength": "Taille minimale du mot de passe",
|
"minimumPasswordLength": "Taille minimale du mot de passe",
|
||||||
"tusUploads": "Uploads segmentés",
|
"tusUploads": "Uploads segmentés",
|
||||||
"tusUploadsHelp": "File Browser prend en charge les uploads segmentés afin de permettre une gestion efficace, fiable et reprenable sur des réseaux instables.",
|
"tusUploadsHelp": "File Browser prend en charge les uploads segmentés afin de permettre une gestion efficace, fiable et reprenable sur des réseaux instables.",
|
||||||
"tusUploadsChunkSize": "Taille maximale autorisée par segment (les uploads directs seront utilisés pour les fichiers plus petits). Vous pouvez entrer un entier en octets ou une chaîne telle que 10MB, 1GB, etc.",
|
"tusUploadsChunkSize": "Taille maximale autorisée par segment (les uploads directs seront utilisés pour les fichiers plus petits). Vous pouvez entrer un entier en octets ou une chaîne telle que 10MB, 1GB, etc.",
|
||||||
"tusUploadsRetryCount": "Nombre de tentatives en cas d'échec d'un segment.",
|
"tusUploadsRetryCount": "Nombre de tentatives en cas d'échec d'un segment.",
|
||||||
"userHomeBasePath": "Chemin de base pour les dossiers personnels des utilisateur·ices",
|
"userHomeBasePath": "Chemin de base pour les dossiers personnels des utilisateur'ices",
|
||||||
"userScopeGenerationPlaceholder": "Le périmètre sera généré automatiquement",
|
"userScopeGenerationPlaceholder": "Le périmètre sera généré automatiquement",
|
||||||
"createUserHomeDirectory": "Créer le dossier personnel de l'utilisateur·ice",
|
"createUserHomeDirectory": "Créer le dossier personnel de l'utilisateur'ice",
|
||||||
"customStylesheet": "Feuille de style personnalisée",
|
"customStylesheet": "Feuille de style personnalisée",
|
||||||
"defaultUserDescription": "Paramètres par défaut pour les nouveaux utilisateur·ices.",
|
"defaultUserDescription": "Paramètres par défaut pour les nouveaux utilisateur'ices.",
|
||||||
"disableExternalLinks": "Désactiver les liens externes (sauf la documentation)",
|
"disableExternalLinks": "Désactiver les liens externes (sauf la documentation)",
|
||||||
"disableUsedDiskPercentage": "Désactiver le graphique de pourcentage d'utilisation du disque",
|
"disableUsedDiskPercentage": "Désactiver le graphique de pourcentage d'utilisation du disque",
|
||||||
"documentation": "documentation",
|
"documentation": "documentation",
|
||||||
"examples": "Exemples",
|
"examples": "Exemples",
|
||||||
"executeOnShell": "Exécuter dans le shell",
|
"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.",
|
"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'ice 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.",
|
"globalRules": "Il s'agit d'un ensemble global de règles d'autorisation et d'interdiction. Elles s'appliquent à tous les utilisateur'ices. Vous pouvez définir des règles spécifiques sur les paramètres de chaque utilisateur'ice pour remplacer celles-ci.",
|
||||||
"globalSettings": "Paramètres globaux",
|
"globalSettings": "Paramètres globaux",
|
||||||
"hideDotfiles": "Cacher les fichiers de configuration commançant par un point",
|
"hideDotfiles": "Cacher les fichiers de configuration commançant par un point",
|
||||||
"insertPath": "Insérer le chemin",
|
"insertPath": "Insérer le chemin",
|
||||||
"insertRegex": "Insérer une expression régulière",
|
"insertRegex": "Insérer une expression régulière",
|
||||||
"instanceName": "Nom de l'instance",
|
"instanceName": "Nom de l'instance",
|
||||||
"language": "Langue",
|
"language": "Langue",
|
||||||
"lockPassword": "Empêcher l'utilisateur·ice de changer son mot de passe",
|
"lockPassword": "Empêcher l'utilisateur'ice de changer son mot de passe",
|
||||||
"newPassword": "Votre nouveau mot de passe",
|
"newPassword": "Votre nouveau mot de passe",
|
||||||
"newPasswordConfirm": "Confirmation du nouveau mot de passe",
|
"newPasswordConfirm": "Confirmation du nouveau mot de passe",
|
||||||
"newUser": "Nouvel utilisateur",
|
"newUser": "Nouvel'le utilisateur'ice",
|
||||||
"password": "Mot de passe",
|
"password": "Mot de passe",
|
||||||
"passwordUpdated": "Mot de passe mis à jour !",
|
"passwordUpdated": "Mot de passe mis à jour !",
|
||||||
"path": "Chemin",
|
"path": "Chemin",
|
||||||
@@ -226,40 +247,46 @@
|
|||||||
"execute": "Exécuter des commandes",
|
"execute": "Exécuter des commandes",
|
||||||
"modify": "Modifier des fichiers",
|
"modify": "Modifier des fichiers",
|
||||||
"rename": "Renommer ou déplacer des fichiers ou des dossiers",
|
"rename": "Renommer ou déplacer des fichiers ou des dossiers",
|
||||||
"share": "Partager des fichiers"
|
"share": "Partager des fichiers (autorisation de téléchargement requise)"
|
||||||
},
|
},
|
||||||
"permissions": "Permissions",
|
"permissions": "Permissions",
|
||||||
"permissionsHelp": "Vous pouvez définir l'utilisateur·ice comme étant administrateur·ice ou encore choisir les permissions individuellement. Si vous sélectionnez \"Administrateur·ice\", toutes les autres options seront automatiquement activées. La gestion des utilisateur·ices est un privilège que seul l'administrateur·ice possède.\n",
|
"permissionsHelp": "Vous pouvez définir l'utilisateur'ice comme étant un'e administrateur'ice ou encore choisir les permissions individuellement. Si vous sélectionnez \"Administrateur'ice\", toutes les autres options seront automatiquement activées. La gestion des utilisateur'ices est un privilège que seul l'administrateur'ice possède.\n",
|
||||||
"profileSettings": "Paramètres du profil",
|
"profileSettings": "Paramètres du profil",
|
||||||
|
"redirectAfterCopyMove": "Rediriger vers la destination après une copie/déplacement",
|
||||||
"ruleExample1": "Bloque l'accès à tous les fichiers commençant par un point (comme par exemple .git, .gitignore) dans tous les dossiers.\n",
|
"ruleExample1": "Bloque l'accès à tous les fichiers commençant par un point (comme par exemple .git, .gitignore) dans tous les dossiers.\n",
|
||||||
"ruleExample2": "Bloque l'accès au fichier nommé \"Caddyfile\" à la racine du dossier utilisateur·ice.",
|
"ruleExample2": "Bloque l'accès au fichier nommé \"Caddyfile\" à la racine du dossier utilisateur'ice",
|
||||||
"rules": "Règles",
|
"rules": "Règles",
|
||||||
"rulesHelp": "Vous pouvez définir ici un ensemble de règles pour cet utilisateur·ice. Les fichiers bloqués ne seront pas affichés et ne seront pas accessibles par l'utilisateur·ice. Les expressions régulières sont supportées et les chemins d'accès sont relatifs par rapport au dossier de l'utilisateur·ice.\n",
|
"rulesHelp": "Vous pouvez définir ici un ensemble de règles pour cet'te utilisateur'ice. Les fichiers bloqués ne seront pas affichés et ne seront pas accessibles par l'utilisateur'ice. Les expressions régulières sont supportées et les chemins d'accès sont relatifs par rapport au dossier de l'utilisateur'ice.\n",
|
||||||
"scope": "Portée du dossier utilisateur·ice",
|
"scope": "Portée du dossier utilisateur'ice",
|
||||||
"setDateFormat": "Définir le format de la date",
|
"setDateFormat": "Définir le format de la date",
|
||||||
"settingsUpdated": "Les paramètres ont été mis à jour !",
|
"settingsUpdated": "Les paramètres ont été mis à jour !",
|
||||||
"shareDuration": "Durée du partage",
|
"shareDuration": "Durée du partage",
|
||||||
"shareManagement": "Gestion des partages",
|
"shareManagement": "Gestion des partages",
|
||||||
"shareDeleted": "Partage supprimé !",
|
"shareDeleted": "Partage supprimé !",
|
||||||
"singleClick": "Utiliser un simple clic pour ouvrir les fichiers et les dossiers",
|
"singleClick": "Utiliser un simple clic pour ouvrir les fichiers et les dossiers",
|
||||||
|
"sunsetBody": "This project is being wound down. It is archived on 2026-09-01, after which there will be no further releases, bug fixes, or security fixes. Existing releases and Docker images stay online. Do not expose this instance directly to the internet without authentication in front of it.",
|
||||||
|
"sunsetLink": "Read the project status, known unfixed security issues, and hardening guidance",
|
||||||
|
"sunsetTitle": "File Browser is being archived",
|
||||||
"themes": {
|
"themes": {
|
||||||
"default": "Par défaut du système",
|
"default": "Par défaut du système",
|
||||||
"dark": "Sombre",
|
"dark": "Sombre",
|
||||||
"light": "Clair",
|
"light": "Clair",
|
||||||
"title": "Thème"
|
"title": "Thème"
|
||||||
},
|
},
|
||||||
"user": "Utilisateur·ice",
|
"user": "Utilisateur'ice",
|
||||||
"userCommands": "Commandes",
|
"userCommands": "Commandes",
|
||||||
"userCommandsHelp": "Une liste séparée par des espaces des commandes permises pour l'utilisateur·ice. Exemple :\n",
|
"userCommandsHelp": "Une liste séparée par des espaces des commandes permises pour l'utilisateur. Exemple :\n",
|
||||||
"userCreated": "Utilisateur·ice créé !",
|
"userCreated": "Utilisateur'ice créé !",
|
||||||
"userDefaults": "Paramètres par défaut de l'utilisateur.ice",
|
"userDefaults": "Paramètres par défaut de l'utilisateur'ice",
|
||||||
"userDeleted": "Utilisateur·ice supprimé !",
|
"userDeleted": "Utilisateur'ice supprimé !",
|
||||||
"userManagement": "Gestion des utilisateur·ices",
|
"userManagement": "Gestion des utilisateur'ices",
|
||||||
"userUpdated": "Utilisateur·ice mis à jour !",
|
"userUpdated": "Utilisateur'ice mis à jour !",
|
||||||
"username": "Nom d'utilisateur·ice",
|
"username": "Nom d'utilisateur'ice",
|
||||||
"users": "Utilisateur·ices"
|
"users": "Utilisateur'ices",
|
||||||
|
"currentPassword": "Mot de Passe Actuel"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
|
"diskUsed": "{used} sur {total} utilisés",
|
||||||
"help": "Aide",
|
"help": "Aide",
|
||||||
"hugoNew": "Nouveau Hugo",
|
"hugoNew": "Nouveau Hugo",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "עדכון",
|
"update": "עדכון",
|
||||||
"upload": "העלאה",
|
"upload": "העלאה",
|
||||||
"openFile": "פתח קובץ",
|
"openFile": "פתח קובץ",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "זריקת השינויים",
|
"discardChanges": "זריקת השינויים",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "הורד קובץ",
|
"downloadFile": "הורד קובץ",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "בחר קובץ או תיקייה",
|
"click": "בחר קובץ או תיקייה",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "בחר אפשרות העלאה.",
|
"uploadMessage": "בחר אפשרות העלאה.",
|
||||||
"optionalPassword": "סיסמא אופציונלית",
|
"optionalPassword": "סיסמא אופציונלית",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "האם אתה בטוח שברצונך לבטל את השינויים שביצעת?"
|
"discardEditorChanges": "האם אתה בטוח שברצונך לבטל את השינויים שביצעת?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "תמונות",
|
"images": "תמונות",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "הרשאות",
|
"permissions": "הרשאות",
|
||||||
"permissionsHelp": "אתה יכול להגדיר את המשתמש להיות מנהל מערכת או לבחור את ההרשאות בנפרד. אם תבחר \"מנהל מערכת\", כל ההרשאות יינתנו אוטומטית. ניהול המשתמשים נשאר הרשאה של מנהל מערכת.\n",
|
"permissionsHelp": "אתה יכול להגדיר את המשתמש להיות מנהל מערכת או לבחור את ההרשאות בנפרד. אם תבחר \"מנהל מערכת\", כל ההרשאות יינתנו אוטומטית. ניהול המשתמשים נשאר הרשאה של מנהל מערכת.\n",
|
||||||
"profileSettings": "הגדרות פרופיל",
|
"profileSettings": "הגדרות פרופיל",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "מנע גישה לקבצים נסתרים (כל קובץ/תיקייה שמתחיל בנקודה, לדוגמא .git)",
|
"ruleExample1": "מנע גישה לקבצים נסתרים (כל קובץ/תיקייה שמתחיל בנקודה, לדוגמא .git)",
|
||||||
"ruleExample2": "חסימת גישה לקובץ בשם Caddyfile בהיקף הראשי.",
|
"ruleExample2": "חסימת גישה לקובץ בשם Caddyfile בהיקף הראשי.",
|
||||||
"rules": "חוקים",
|
"rules": "חוקים",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "ניהול משתמש",
|
"userManagement": "ניהול משתמש",
|
||||||
"userUpdated": "המשתמש עודכן!",
|
"userUpdated": "המשתמש עודכן!",
|
||||||
"username": "שם משתמש",
|
"username": "שם משתמש",
|
||||||
"users": "משתמשים"
|
"users": "משתמשים",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "עזרה",
|
"help": "עזרה",
|
||||||
|
|||||||
+41
-14
@@ -29,6 +29,8 @@
|
|||||||
"rename": "Preimenuj",
|
"rename": "Preimenuj",
|
||||||
"replace": "Zamijeni",
|
"replace": "Zamijeni",
|
||||||
"reportIssue": "Prijavi grešku",
|
"reportIssue": "Prijavi grešku",
|
||||||
|
"resumeTransfer": "Resume previous transfer",
|
||||||
|
"resumeTransferTooltip": "Skip all conflicting files, except the ones that are smaller on the server as we suppose that their transfert has been interrupted.",
|
||||||
"save": "Spremi",
|
"save": "Spremi",
|
||||||
"schedule": "Zakaži",
|
"schedule": "Zakaži",
|
||||||
"search": "Pretraži",
|
"search": "Pretraži",
|
||||||
@@ -42,11 +44,17 @@
|
|||||||
"update": "Ažuriraj",
|
"update": "Ažuriraj",
|
||||||
"upload": "Prenesi",
|
"upload": "Prenesi",
|
||||||
"openFile": "Otvori datoteku",
|
"openFile": "Otvori datoteku",
|
||||||
|
"openDirect": "Pregled neobrađenog",
|
||||||
"discardChanges": "Odbaci",
|
"discardChanges": "Odbaci",
|
||||||
|
"stopSearch": "Prestanak pretraživanja",
|
||||||
"saveChanges": "Spremi promjene",
|
"saveChanges": "Spremi promjene",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Uredi kao tekst",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Povećaj veličinu fonta",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Smanji veličinu fonta",
|
||||||
|
"overrideAll": "Zamijeni sve datoteke u destinacijskoj mapi",
|
||||||
|
"skipAll": "Preskoči sve konfliktirajuće datoteke",
|
||||||
|
"renameAll": "Preimenuj sve datoteke (stvori kopiju)",
|
||||||
|
"singleDecision": "Odluči za svaku konfliktirajuću datoteku"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Preuzmi Datoteku",
|
"downloadFile": "Preuzmi Datoteku",
|
||||||
@@ -79,15 +87,16 @@
|
|||||||
"sortByName": "Sortiraj po nazivu",
|
"sortByName": "Sortiraj po nazivu",
|
||||||
"sortBySize": "Sortiraj po veličini",
|
"sortBySize": "Sortiraj po veličini",
|
||||||
"noPreview": "Pregled nije dostupan za ovu datoteku.",
|
"noPreview": "Pregled nije dostupan za ovu datoteku.",
|
||||||
"csvTooLarge": "CSV file is too large for preview (>5MB). Please download to view.",
|
"csvTooLarge": "CSV datoteka je prevelika za pregled (>5MB). Molimo preuzmite da bi ste ju pregledali.",
|
||||||
"csvLoadFailed": "Failed to load CSV file.",
|
"csvLoadFailed": "Neuspješno učitavanje CSV datoteke.",
|
||||||
"showingRows": "Showing {count} row(s)",
|
"showingRows": "Prikazuje se {count} red(ova)",
|
||||||
"columnSeparator": "Column Separator",
|
"columnSeparator": "Separator stupaca",
|
||||||
"csvSeparators": {
|
"csvSeparators": {
|
||||||
"comma": "Comma (,)",
|
"comma": "Zarez (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Točka zarez (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "I (,) i (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "Kodiranje datoteka"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "odaberi datoteku ili mapu",
|
"click": "odaberi datoteku ili mapu",
|
||||||
@@ -158,7 +167,19 @@
|
|||||||
"uploadMessage": "Odaberite opciju za prijenos.",
|
"uploadMessage": "Odaberite opciju za prijenos.",
|
||||||
"optionalPassword": "Opcionalna lozinka",
|
"optionalPassword": "Opcionalna lozinka",
|
||||||
"resolution": "Rezolucija",
|
"resolution": "Rezolucija",
|
||||||
"discardEditorChanges": "Jeste li sigurni da želite odbaciti promjene koje ste napravili?"
|
"discardEditorChanges": "Jeste li sigurni da želite odbaciti promjene koje ste napravili?",
|
||||||
|
"replaceOrSkip": "Zamijeni ili preskoči datoteke",
|
||||||
|
"resolveConflict": "Koje datoteke želite sačuvati?",
|
||||||
|
"singleConflictResolve": "Ako odaberete obje verzije, u ime kopirane datoteke bit će dodan broj.",
|
||||||
|
"fastConflictResolve": "Destinacijska mapa sadrži {count} istoimenih datoteka.",
|
||||||
|
"uploadingFiles": "Prenošenje datoteka",
|
||||||
|
"filesInOrigin": "Datoteke u izvornoj mapi",
|
||||||
|
"filesInDest": "Datoteke u destinacijskoj mapi",
|
||||||
|
"override": "Prebrisivanje",
|
||||||
|
"skip": "Preskoči",
|
||||||
|
"forbiddenError": "Greška zabrane pristupa",
|
||||||
|
"currentPassword": "Vaša lozinka",
|
||||||
|
"currentPasswordMessage": "Unesite Vašu lozinku da biste validirali ovu akciju."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Slike",
|
"images": "Slike",
|
||||||
@@ -226,11 +247,12 @@
|
|||||||
"execute": "Izvršavanje naredbi",
|
"execute": "Izvršavanje naredbi",
|
||||||
"modify": "Uređivanje datoteka",
|
"modify": "Uređivanje datoteka",
|
||||||
"rename": "Preimenovanje ili premještanje datoteka i mapa",
|
"rename": "Preimenovanje ili premještanje datoteka i mapa",
|
||||||
"share": "Dijeljenje datoteka"
|
"share": "Share files (require download permission)"
|
||||||
},
|
},
|
||||||
"permissions": "Dopuštenja",
|
"permissions": "Dopuštenja",
|
||||||
"permissionsHelp": "Korisnika možete postaviti administratorom ili odabrati dopuštenja individualno. Odabirom na \"Administrator\", sve druge opcije bit će automatski odabrane. Upravljanje korisnicima ostaje privilegija administratora.\n",
|
"permissionsHelp": "Korisnika možete postaviti administratorom ili odabrati dopuštenja individualno. Odabirom na \"Administrator\", sve druge opcije bit će automatski odabrane. Upravljanje korisnicima ostaje privilegija administratora.\n",
|
||||||
"profileSettings": "Postavke profila",
|
"profileSettings": "Postavke profila",
|
||||||
|
"redirectAfterCopyMove": "Preusmjeri na destinaciju nakon kopiranja/premještanja",
|
||||||
"ruleExample1": "onemogućava pristup svakoj datoteci koja započinje točkom (poput .git, .gitignore) u svakoj mapi.\n",
|
"ruleExample1": "onemogućava pristup svakoj datoteci koja započinje točkom (poput .git, .gitignore) u svakoj mapi.\n",
|
||||||
"ruleExample2": "blokira pristup datoteci naziva Caddyfile na korijenu opsega.",
|
"ruleExample2": "blokira pristup datoteci naziva Caddyfile na korijenu opsega.",
|
||||||
"rules": "Pravila",
|
"rules": "Pravila",
|
||||||
@@ -242,6 +264,9 @@
|
|||||||
"shareManagement": "Upravljanje Dijeljenjem",
|
"shareManagement": "Upravljanje Dijeljenjem",
|
||||||
"shareDeleted": "Podjela izbrisana!",
|
"shareDeleted": "Podjela izbrisana!",
|
||||||
"singleClick": "Koristi jednostruke klikove za otvaranje datoteka i mapa",
|
"singleClick": "Koristi jednostruke klikove za otvaranje datoteka i mapa",
|
||||||
|
"sunsetBody": "This project is being wound down. It is archived on 2026-09-01, after which there will be no further releases, bug fixes, or security fixes. Existing releases and Docker images stay online. Do not expose this instance directly to the internet without authentication in front of it.",
|
||||||
|
"sunsetLink": "Read the project status, known unfixed security issues, and hardening guidance",
|
||||||
|
"sunsetTitle": "File Browser is being archived",
|
||||||
"themes": {
|
"themes": {
|
||||||
"default": "Zadano - Sustav",
|
"default": "Zadano - Sustav",
|
||||||
"dark": "Tamno",
|
"dark": "Tamno",
|
||||||
@@ -257,9 +282,11 @@
|
|||||||
"userManagement": "Upravljanje Korisnicima",
|
"userManagement": "Upravljanje Korisnicima",
|
||||||
"userUpdated": "Korisnik ažuriran!",
|
"userUpdated": "Korisnik ažuriran!",
|
||||||
"username": "Korisničko ime",
|
"username": "Korisničko ime",
|
||||||
"users": "Korisnici"
|
"users": "Korisnici",
|
||||||
|
"currentPassword": "Vaša trenutna lozinka"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
|
"diskUsed": "{used} of {total} used",
|
||||||
"help": "Pomoć",
|
"help": "Pomoć",
|
||||||
"hugoNew": "Hugo New",
|
"hugoNew": "Hugo New",
|
||||||
"login": "Prijava",
|
"login": "Prijava",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Frissítés",
|
"update": "Frissítés",
|
||||||
"upload": "Feltöltés",
|
"upload": "Feltöltés",
|
||||||
"openFile": "Fájl megnyitása",
|
"openFile": "Fájl megnyitása",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Discard",
|
"discardChanges": "Discard",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Fájl letöltése",
|
"downloadFile": "Fájl letöltése",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "mappa vagy fájl kijelölése",
|
"click": "mappa vagy fájl kijelölése",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Válasszon egy feltöltési módot.",
|
"uploadMessage": "Válasszon egy feltöltési módot.",
|
||||||
"optionalPassword": "Választható jelszó",
|
"optionalPassword": "Választható jelszó",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?"
|
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Képek",
|
"images": "Képek",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Jogosultságok",
|
"permissions": "Jogosultságok",
|
||||||
"permissionsHelp": "A felhasználót beállíthatja rendszergazdának, vagy egyénileg is kiválaszthatja a jogosultságokat. Ha a \"Rendszergazda\" lehetőséget választja, az összes többi opció automatikusan be lesz jelölve. A felhasználók kezelése továbbra is a rendszergazda kiváltsága marad.\n",
|
"permissionsHelp": "A felhasználót beállíthatja rendszergazdának, vagy egyénileg is kiválaszthatja a jogosultságokat. Ha a \"Rendszergazda\" lehetőséget választja, az összes többi opció automatikusan be lesz jelölve. A felhasználók kezelése továbbra is a rendszergazda kiváltsága marad.\n",
|
||||||
"profileSettings": "Profilbeállítások",
|
"profileSettings": "Profilbeállítások",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "megakadályozza a hozzáférést bármely rejtett fájlhoz (pl. .git, .gitignore) bármely mappában.\n",
|
"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.",
|
"ruleExample2": "blokkolja a hozzáférést a Caddyfile nevű fájlhoz a hatókör gyökerében.",
|
||||||
"rules": "Szabályok",
|
"rules": "Szabályok",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Felhasználókezelés",
|
"userManagement": "Felhasználókezelés",
|
||||||
"userUpdated": "Felhasználó frissítve!",
|
"userUpdated": "Felhasználó frissítve!",
|
||||||
"username": "Felhasználói név",
|
"username": "Felhasználói név",
|
||||||
"users": "Felhasználók"
|
"users": "Felhasználók",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Súgó",
|
"help": "Súgó",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { createI18n } from "vue-i18n";
|
|||||||
|
|
||||||
import("dayjs/locale/ar");
|
import("dayjs/locale/ar");
|
||||||
import("dayjs/locale/bg");
|
import("dayjs/locale/bg");
|
||||||
|
import("dayjs/locale/ca");
|
||||||
import("dayjs/locale/cs");
|
import("dayjs/locale/cs");
|
||||||
import("dayjs/locale/de");
|
import("dayjs/locale/de");
|
||||||
import("dayjs/locale/el");
|
import("dayjs/locale/el");
|
||||||
@@ -16,7 +17,9 @@ import("dayjs/locale/is");
|
|||||||
import("dayjs/locale/it");
|
import("dayjs/locale/it");
|
||||||
import("dayjs/locale/ja");
|
import("dayjs/locale/ja");
|
||||||
import("dayjs/locale/ko");
|
import("dayjs/locale/ko");
|
||||||
|
import("dayjs/locale/lv");
|
||||||
import("dayjs/locale/nb");
|
import("dayjs/locale/nb");
|
||||||
|
import("dayjs/locale/nl");
|
||||||
import("dayjs/locale/nl-be");
|
import("dayjs/locale/nl-be");
|
||||||
import("dayjs/locale/pl");
|
import("dayjs/locale/pl");
|
||||||
import("dayjs/locale/pt-br");
|
import("dayjs/locale/pt-br");
|
||||||
@@ -40,6 +43,18 @@ export function detectLocale() {
|
|||||||
// https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
|
// https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
|
||||||
let locale = navigator.language.toLowerCase();
|
let locale = navigator.language.toLowerCase();
|
||||||
switch (true) {
|
switch (true) {
|
||||||
|
case /^ar\b/.test(locale):
|
||||||
|
locale = "ar";
|
||||||
|
break;
|
||||||
|
case /^bg\b/.test(locale):
|
||||||
|
locale = "bg";
|
||||||
|
break;
|
||||||
|
case /^cs\b/.test(locale):
|
||||||
|
locale = "cs";
|
||||||
|
break;
|
||||||
|
case /^lv\b/.test(locale):
|
||||||
|
locale = "lv";
|
||||||
|
break;
|
||||||
case /^he\b/.test(locale):
|
case /^he\b/.test(locale):
|
||||||
locale = "he";
|
locale = "he";
|
||||||
break;
|
break;
|
||||||
@@ -49,9 +64,6 @@ export function detectLocale() {
|
|||||||
case /^hu\b/.test(locale):
|
case /^hu\b/.test(locale):
|
||||||
locale = "hu";
|
locale = "hu";
|
||||||
break;
|
break;
|
||||||
case /^ar\b/.test(locale):
|
|
||||||
locale = "ar";
|
|
||||||
break;
|
|
||||||
case /^el.*/i.test(locale):
|
case /^el.*/i.test(locale):
|
||||||
locale = "el";
|
locale = "el";
|
||||||
break;
|
break;
|
||||||
@@ -73,8 +85,9 @@ export function detectLocale() {
|
|||||||
case /^pt-br\b/.test(locale):
|
case /^pt-br\b/.test(locale):
|
||||||
locale = "pt-br";
|
locale = "pt-br";
|
||||||
break;
|
break;
|
||||||
|
case /^pt-pt\b/.test(locale):
|
||||||
case /^pt\b/.test(locale):
|
case /^pt\b/.test(locale):
|
||||||
locale = "pt";
|
locale = "pt-pt";
|
||||||
break;
|
break;
|
||||||
case /^ja\b/.test(locale):
|
case /^ja\b/.test(locale):
|
||||||
locale = "ja";
|
locale = "ja";
|
||||||
@@ -110,7 +123,6 @@ export function detectLocale() {
|
|||||||
case /^uk\b/.test(locale):
|
case /^uk\b/.test(locale):
|
||||||
locale = "uk";
|
locale = "uk";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case /^vi\b/.test(locale):
|
case /^vi\b/.test(locale):
|
||||||
locale = "vi";
|
locale = "vi";
|
||||||
break;
|
break;
|
||||||
@@ -118,6 +130,9 @@ export function detectLocale() {
|
|||||||
case /^sv\b/.test(locale):
|
case /^sv\b/.test(locale):
|
||||||
locale = "sv";
|
locale = "sv";
|
||||||
break;
|
break;
|
||||||
|
case /^nl\b/.test(locale):
|
||||||
|
locale = "nl";
|
||||||
|
break;
|
||||||
case /^nl-be\b/.test(locale):
|
case /^nl-be\b/.test(locale):
|
||||||
locale = "nl-be";
|
locale = "nl-be";
|
||||||
break;
|
break;
|
||||||
@@ -125,9 +140,7 @@ export function detectLocale() {
|
|||||||
case /^no\b/.test(locale):
|
case /^no\b/.test(locale):
|
||||||
locale = "no";
|
locale = "no";
|
||||||
break;
|
break;
|
||||||
case /^bg\b/.test(locale):
|
|
||||||
locale = "bg";
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
locale = "en";
|
locale = "en";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Vista",
|
"update": "Vista",
|
||||||
"upload": "Hlaða upp",
|
"upload": "Hlaða upp",
|
||||||
"openFile": "Open file",
|
"openFile": "Open file",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Discard",
|
"discardChanges": "Discard",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Sækja skjal",
|
"downloadFile": "Sækja skjal",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "velja skjal eða möppu",
|
"click": "velja skjal eða möppu",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Select an option to upload.",
|
"uploadMessage": "Select an option to upload.",
|
||||||
"optionalPassword": "Optional password",
|
"optionalPassword": "Optional password",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?"
|
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Myndir",
|
"images": "Myndir",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Heimildir",
|
"permissions": "Heimildir",
|
||||||
"permissionsHelp": "Þú getur stillt notenda sem stjórnanda eða valið einstaklingsbundnar heimildir. Ef þú velur \"Stjórnandi\", þá verða allir aðrir valmöguleikar valdir sjálfrafa. Aðgangstýring notenda er á hendi stjórnenda. \n",
|
"permissionsHelp": "Þú getur stillt notenda sem stjórnanda eða valið einstaklingsbundnar heimildir. Ef þú velur \"Stjórnandi\", þá verða allir aðrir valmöguleikar valdir sjálfrafa. Aðgangstýring notenda er á hendi stjórnenda. \n",
|
||||||
"profileSettings": "Stilla prófíl",
|
"profileSettings": "Stilla prófíl",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "kemur í veg fyrir aðgang að dot-skjali (t.d. .git, .gitignore) í öllum möppum. \n",
|
"ruleExample1": "kemur í veg fyrir aðgang að dot-skjali (t.d. .git, .gitignore) í öllum möppum. \n",
|
||||||
"ruleExample2": "kemur í veg fyrir aðgang að Caddyfile-skjalinu í root-möppu í sýn notandans. ",
|
"ruleExample2": "kemur í veg fyrir aðgang að Caddyfile-skjalinu í root-möppu í sýn notandans. ",
|
||||||
"rules": "Reglur",
|
"rules": "Reglur",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Notendastýring",
|
"userManagement": "Notendastýring",
|
||||||
"userUpdated": "Notandastillingar vistaðar!",
|
"userUpdated": "Notandastillingar vistaðar!",
|
||||||
"username": "Notendanafn",
|
"username": "Notendanafn",
|
||||||
"users": "Notendur"
|
"users": "Notendur",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Hjálp",
|
"help": "Hjálp",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Aggiorna",
|
"update": "Aggiorna",
|
||||||
"upload": "Carica",
|
"upload": "Carica",
|
||||||
"openFile": "Apri file",
|
"openFile": "Apri file",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Ignora",
|
"discardChanges": "Ignora",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Scarica file",
|
"downloadFile": "Scarica file",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "seleziona un file o una cartella",
|
"click": "seleziona un file o una cartella",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Seleziona un'opzione per il caricamento.",
|
"uploadMessage": "Seleziona un'opzione per il caricamento.",
|
||||||
"optionalPassword": "Password opzionale",
|
"optionalPassword": "Password opzionale",
|
||||||
"resolution": "Risoluzione",
|
"resolution": "Risoluzione",
|
||||||
"discardEditorChanges": "Sei sicuro di voler scartare le modifiche apportate?"
|
"discardEditorChanges": "Sei sicuro di voler scartare le modifiche apportate?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Immagini",
|
"images": "Immagini",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Permessi",
|
"permissions": "Permessi",
|
||||||
"permissionsHelp": "È possibile impostare l'utente come amministratore o scegliere i permessi singolarmente. Se si seleziona \"Amministratore\", tutte le altre opzioni saranno automaticamente assegnate. La gestione degli utenti rimane un privilegio di un amministratore.\n",
|
"permissionsHelp": "È possibile impostare l'utente come amministratore o scegliere i permessi singolarmente. Se si seleziona \"Amministratore\", tutte le altre opzioni saranno automaticamente assegnate. La gestione degli utenti rimane un privilegio di un amministratore.\n",
|
||||||
"profileSettings": "Impostazioni del profilo",
|
"profileSettings": "Impostazioni del profilo",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "impedisci l'accesso a qualsiasi file avente come prefisso un punto\n (ad esempio .git, .gitignore) presente in ogni cartella.\n",
|
"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.",
|
"ruleExample2": "blocca l'accesso al file denominato Caddyfile nella radice del campo di applicazione.",
|
||||||
"rules": "Regole",
|
"rules": "Regole",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Gestione degli utenti",
|
"userManagement": "Gestione degli utenti",
|
||||||
"userUpdated": "Utente aggiornato!",
|
"userUpdated": "Utente aggiornato!",
|
||||||
"username": "Nome utente",
|
"username": "Nome utente",
|
||||||
"users": "Utenti"
|
"users": "Utenti",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Aiuto",
|
"help": "Aiuto",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "更新",
|
"update": "更新",
|
||||||
"upload": "アップロード",
|
"upload": "アップロード",
|
||||||
"openFile": "ファイルを開く",
|
"openFile": "ファイルを開く",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Discard",
|
"discardChanges": "Discard",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "ファイルのダウンロード",
|
"downloadFile": "ファイルのダウンロード",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "ファイルやフォルダーを選択",
|
"click": "ファイルやフォルダーを選択",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "アップロードするオプションを選択してください。",
|
"uploadMessage": "アップロードするオプションを選択してください。",
|
||||||
"optionalPassword": "パスワード(オプション)",
|
"optionalPassword": "パスワード(オプション)",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?"
|
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "画像",
|
"images": "画像",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "権限",
|
"permissions": "権限",
|
||||||
"permissionsHelp": "ユーザーを管理者に設定するか、その他の権限を個別に選択することができます。「管理者」を選択すると、他のオプションはすべて自動的にチェックされます。ユーザーを管理するには管理者権限が必要です。\n",
|
"permissionsHelp": "ユーザーを管理者に設定するか、その他の権限を個別に選択することができます。「管理者」を選択すると、他のオプションはすべて自動的にチェックされます。ユーザーを管理するには管理者権限が必要です。\n",
|
||||||
"profileSettings": "プロフィール設定",
|
"profileSettings": "プロフィール設定",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": ".git や .gitignore のようなドットから始まるファイルへのアクセスを禁止します。\n",
|
"ruleExample1": ".git や .gitignore のようなドットから始まるファイルへのアクセスを禁止します。\n",
|
||||||
"ruleExample2": "スコープのルートにある Caddyfile という名前のファイルへのアクセスを禁止します。",
|
"ruleExample2": "スコープのルートにある Caddyfile という名前のファイルへのアクセスを禁止します。",
|
||||||
"rules": "ルール",
|
"rules": "ルール",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "ユーザー管理",
|
"userManagement": "ユーザー管理",
|
||||||
"userUpdated": "ユーザーを更新しました!",
|
"userUpdated": "ユーザーを更新しました!",
|
||||||
"username": "ユーザー名",
|
"username": "ユーザー名",
|
||||||
"users": "ユーザー"
|
"users": "ユーザー",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "ヘルプ",
|
"help": "ヘルプ",
|
||||||
|
|||||||
+113
-86
@@ -14,7 +14,7 @@
|
|||||||
"file": "파일",
|
"file": "파일",
|
||||||
"folder": "폴더",
|
"folder": "폴더",
|
||||||
"fullScreen": "전체 화면 전환",
|
"fullScreen": "전체 화면 전환",
|
||||||
"hideDotfiles": "숨김파일(dotfile)을 표시 안함",
|
"hideDotfiles": "숨김파일(dotfile)을 표시 안 함",
|
||||||
"info": "정보",
|
"info": "정보",
|
||||||
"more": "더보기",
|
"more": "더보기",
|
||||||
"move": "이동",
|
"move": "이동",
|
||||||
@@ -28,25 +28,33 @@
|
|||||||
"publish": "게시",
|
"publish": "게시",
|
||||||
"rename": "이름 바꾸기",
|
"rename": "이름 바꾸기",
|
||||||
"replace": "대체",
|
"replace": "대체",
|
||||||
"reportIssue": "이슈 보내기",
|
"reportIssue": "문제 보고",
|
||||||
|
"resumeTransfer": "이전 전송을 재개",
|
||||||
|
"resumeTransferTooltip": "서버에 있는 파일 중 전송이 중단되었을 가능성이 있는 작은 파일을 제외하고 충돌하는 모든 파일을 건너뜁니다.",
|
||||||
"save": "저장",
|
"save": "저장",
|
||||||
"schedule": "일정",
|
"schedule": "일정",
|
||||||
"search": "검색",
|
"search": "검색",
|
||||||
"select": "선택",
|
"select": "선택",
|
||||||
"selectMultiple": "다중 선택",
|
"selectMultiple": "다중 선택",
|
||||||
"share": "공유",
|
"share": "공유",
|
||||||
"shell": "쉘 전환",
|
"shell": "셸 전환",
|
||||||
"submit": "제출",
|
"submit": "제출",
|
||||||
"switchView": "보기 전환",
|
"switchView": "보기 전환",
|
||||||
"toggleSidebar": "사이드바 전환",
|
"toggleSidebar": "사이드바 전환",
|
||||||
"update": "업데이트",
|
"update": "업데이트",
|
||||||
"upload": "업로드",
|
"upload": "업로드",
|
||||||
"openFile": "파일 열기",
|
"openFile": "파일 열기",
|
||||||
|
"openDirect": "원본 보기",
|
||||||
"discardChanges": "변경 사항 취소",
|
"discardChanges": "변경 사항 취소",
|
||||||
|
"stopSearch": "검색 중단",
|
||||||
"saveChanges": "변경사항 저장",
|
"saveChanges": "변경사항 저장",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "텍스트로 편집",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "글꼴 크기 증가",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "글꼴 크기 감소",
|
||||||
|
"overrideAll": "대상 폴더의 모든 파일을 대체",
|
||||||
|
"skipAll": "충돌하는 모든 파일을 건너뛰기",
|
||||||
|
"renameAll": "모든 파일의 이름 변경 (복사본 생성)",
|
||||||
|
"singleDecision": "충돌하는 각 파일을 확인"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "파일 다운로드",
|
"downloadFile": "파일 다운로드",
|
||||||
@@ -69,36 +77,37 @@
|
|||||||
"folders": "폴더",
|
"folders": "폴더",
|
||||||
"home": "홈",
|
"home": "홈",
|
||||||
"lastModified": "최종 수정",
|
"lastModified": "최종 수정",
|
||||||
"loading": "로딩중...",
|
"loading": "불러오는 중...",
|
||||||
"lonely": "폴더가 비어 있습니다...",
|
"lonely": "외로워요... (비어 있음)",
|
||||||
"metadata": "메타데이터",
|
"metadata": "메타데이터",
|
||||||
"multipleSelectionEnabled": "다중 선택 켜짐",
|
"multipleSelectionEnabled": "다중 선택 켜짐",
|
||||||
"name": "이름",
|
"name": "이름",
|
||||||
"size": "크기",
|
"size": "크기",
|
||||||
"sortByLastModified": "수정시간순 정렬",
|
"sortByLastModified": "수정 시간으로 정렬",
|
||||||
"sortByName": "이름순",
|
"sortByName": "이름으로 정렬",
|
||||||
"sortBySize": "크기순",
|
"sortBySize": "크기로 정렬",
|
||||||
"noPreview": "미리 보기가 지원되지 않는 파일 유형입니다.",
|
"noPreview": "미리 볼 수 없는 파일입니다.",
|
||||||
"csvTooLarge": "CSV file is too large for preview (>5MB). Please download to view.",
|
"csvTooLarge": "CSV 파일이 너무 커서 미리 볼 수 없습니다(5MB 초과). 다운로드 후 보시기 바랍니다.",
|
||||||
"csvLoadFailed": "Failed to load CSV file.",
|
"csvLoadFailed": "CSV 파일을 불러오는 데 실패했습니다.",
|
||||||
"showingRows": "Showing {count} row(s)",
|
"showingRows": "{count}개의 행 보기",
|
||||||
"columnSeparator": "Column Separator",
|
"columnSeparator": "열 구분자",
|
||||||
"csvSeparators": {
|
"csvSeparators": {
|
||||||
"comma": "Comma (,)",
|
"comma": "반점 (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "쌍반점 (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "(,) 및 (;) 모두"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "파일 인코딩"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "파일이나 디렉토리를 선택해주세요.",
|
"click": "파일 또는 디렉터리 선택",
|
||||||
"ctrl": {
|
"ctrl": {
|
||||||
"click": "여러 개의 파일이나 디렉토리를 선택해주세요.",
|
"click": "여러 개의 파일 또는 디렉터리 선택",
|
||||||
"f": "검색창 열기",
|
"f": "검색창 열기",
|
||||||
"s": "파일 또는 디렉토리 다운로드"
|
"s": "파일을 저장하거나 디렉터리를 다운로드"
|
||||||
},
|
},
|
||||||
"del": "선택된 파일 삭제",
|
"del": "선택된 파일 삭제",
|
||||||
"doubleClick": "파일 또는 디렉토리 열기",
|
"doubleClick": "파일 또는 디렉터리 열기",
|
||||||
"esc": "선택 취소/프롬프트 닫기",
|
"esc": "선택을 취소하고/또는 프롬프트 닫기",
|
||||||
"f1": "정보",
|
"f1": "정보",
|
||||||
"f2": "파일 이름 변경",
|
"f2": "파일 이름 변경",
|
||||||
"help": "도움말"
|
"help": "도움말"
|
||||||
@@ -108,49 +117,49 @@
|
|||||||
"loginInstead": "이미 계정이 있습니다",
|
"loginInstead": "이미 계정이 있습니다",
|
||||||
"password": "비밀번호",
|
"password": "비밀번호",
|
||||||
"passwordConfirm": "비밀번호 확인",
|
"passwordConfirm": "비밀번호 확인",
|
||||||
"passwordsDontMatch": "비밀번호가 일치하지 않습니다",
|
"passwordsDontMatch": "비밀번호가 일치하지 않음",
|
||||||
"signup": "가입하기",
|
"signup": "가입하기",
|
||||||
"submit": "로그인",
|
"submit": "로그인",
|
||||||
"username": "사용자 이름",
|
"username": "사용자 이름",
|
||||||
"usernameTaken": "사용자 이름이 존재합니다",
|
"usernameTaken": "사용자 이름이 존재함",
|
||||||
"wrongCredentials": "사용자 이름 또는 비밀번호를 확인하십시오",
|
"wrongCredentials": "사용자 이름 또는 비밀번호를 확인",
|
||||||
"passwordTooShort": "Password must be at least {min} characters",
|
"passwordTooShort": "비밀번호는 최소 {min}자 이상이어야 함",
|
||||||
"logout_reasons": {
|
"logout_reasons": {
|
||||||
"inactivity": "You have been logged out due to inactivity."
|
"inactivity": "활동이 없어 로그아웃 되었습니다."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"permanent": "영구",
|
"permanent": "영구",
|
||||||
"prompts": {
|
"prompts": {
|
||||||
"copy": "복사",
|
"copy": "복사",
|
||||||
"copyMessage": "복사할 디렉토리:",
|
"copyMessage": "파일을 복사할 위치:",
|
||||||
"currentlyNavigating": "현재 위치:",
|
"currentlyNavigating": "현재 위치:",
|
||||||
"deleteMessageMultiple": "{count} 개의 파일을 삭제하시겠습니까?",
|
"deleteMessageMultiple": "정말 {count}개의 파일을 삭제하시겠습니까?",
|
||||||
"deleteMessageSingle": "파일 혹은 디렉토리를 삭제하시겠습니까?",
|
"deleteMessageSingle": "파일 혹은 디렉터리를 삭제하시겠습니까?",
|
||||||
"deleteMessageShare": "이 공유({path})를 삭제하시겠습니까?",
|
"deleteMessageShare": "이 공유({path})를 삭제하시겠습니까?",
|
||||||
"deleteUser": "이 계정을 삭제하시겠습니까?",
|
"deleteUser": "이 계정을 삭제하시겠습니까?",
|
||||||
"deleteTitle": "파일 삭제",
|
"deleteTitle": "파일 삭제",
|
||||||
"displayName": "게시 이름:",
|
"displayName": "표시 이름:",
|
||||||
"download": "파일 다운로드",
|
"download": "파일 다운로드",
|
||||||
"downloadMessage": "다운로드 포맷 설정.",
|
"downloadMessage": "다운로드 할 형식을 선택하십시오.",
|
||||||
"error": "에러 발생!",
|
"error": "에러 발생",
|
||||||
"fileInfo": "파일 정보",
|
"fileInfo": "파일 정보",
|
||||||
"filesSelected": "{count} 개의 파일이 선택되었습니다.",
|
"filesSelected": "{count}개의 파일을 선택했습니다.",
|
||||||
"lastModified": "최종 수정",
|
"lastModified": "최종 수정",
|
||||||
"move": "이동",
|
"move": "이동",
|
||||||
"moveMessage": "이동할 화일 또는 디렉토리를 선택하세요:",
|
"moveMessage": "파일 및 폴더의 새로운 위치를 선택:",
|
||||||
"newArchetype": "원형을 유지하는 포스트를 생성합니다. 파일은 컨텐트 폴더에 생성됩니다.",
|
"newArchetype": "원형을 유지하는 새 포스트를 생성합니다. 파일은 콘텐츠 폴더에 생성됩니다.",
|
||||||
"newDir": "새 디렉토리",
|
"newDir": "새 디렉터리",
|
||||||
"newDirMessage": "새 디렉토리 이름을 입력해주세요.",
|
"newDirMessage": "새 디렉터리의 이름을 입력해주세요.",
|
||||||
"newFile": "새 파일",
|
"newFile": "새 파일",
|
||||||
"newFileMessage": "새 파일 이름을 입력해주세요.",
|
"newFileMessage": "새 파일의 이름을 입력해주세요.",
|
||||||
"numberDirs": "디렉토리 수",
|
"numberDirs": "디렉터리 수",
|
||||||
"numberFiles": "파일 수",
|
"numberFiles": "파일 수",
|
||||||
"rename": "이름 변경",
|
"rename": "이름 변경",
|
||||||
"renameMessage": "새로운 이름을 입력하세요.",
|
"renameMessage": "새 이름을 입력:",
|
||||||
"replace": "대체하기",
|
"replace": "대체하기",
|
||||||
"replaceMessage": "동일한 파일 이름이 존재합니다. 현재 파일을 덮어쓸까요?\n",
|
"replaceMessage": "업로드하려는 파일 중 하나의 이름이 충돌합니다. 해당 파일을 건너뛰고 계속 업로드하시겠습니까, 아니면 기존 파일을 교체하시겠습니까?\n",
|
||||||
"schedule": "일정",
|
"schedule": "일정",
|
||||||
"scheduleMessage": "이 글을 공개할 시간을 알려주세요.",
|
"scheduleMessage": "이 포스트를 공개할 날짜와 시간을 선택하십시오.",
|
||||||
"show": "보기",
|
"show": "보기",
|
||||||
"size": "크기",
|
"size": "크기",
|
||||||
"upload": "업로드",
|
"upload": "업로드",
|
||||||
@@ -158,53 +167,65 @@
|
|||||||
"uploadMessage": "업로드 옵션을 선택하세요.",
|
"uploadMessage": "업로드 옵션을 선택하세요.",
|
||||||
"optionalPassword": "비밀번호 (선택)",
|
"optionalPassword": "비밀번호 (선택)",
|
||||||
"resolution": "해상도",
|
"resolution": "해상도",
|
||||||
"discardEditorChanges": "변경 사항을 취소하시겠습니까?"
|
"discardEditorChanges": "변경 사항을 취소하시겠습니까?",
|
||||||
|
"replaceOrSkip": "파일 대체 또는 건너뛰기",
|
||||||
|
"resolveConflict": "어떤 파일을 유지하시겠습니까?",
|
||||||
|
"singleConflictResolve": "모든 버전을 선택하면 복사한 파일의 이름에 번호를 추가합니다.",
|
||||||
|
"fastConflictResolve": "대상 폴더에 같은 이름을 가진 파일이 {count}개 있습니다.",
|
||||||
|
"uploadingFiles": "파일 업로드 중",
|
||||||
|
"filesInOrigin": "원본 파일",
|
||||||
|
"filesInDest": "대상 경로의 파일",
|
||||||
|
"override": "덮어쓰기",
|
||||||
|
"skip": "건너뛰기",
|
||||||
|
"forbiddenError": "권한 오류",
|
||||||
|
"currentPassword": "기존 비밀번호",
|
||||||
|
"currentPasswordMessage": "기존 비밀번호를 입력해 이 동작을 확인하십시오."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "이미지",
|
"images": "이미지",
|
||||||
"music": "음악",
|
"music": "음악",
|
||||||
"pdf": "PDF",
|
"pdf": "PDF",
|
||||||
"pressToSearch": "검색하려면 엔터를 입력하세요",
|
"pressToSearch": "엔터를 눌러 검색...",
|
||||||
"search": "검색...",
|
"search": "검색...",
|
||||||
"typeToSearch": "검색어 입력...",
|
"typeToSearch": "검색어 입력...",
|
||||||
"types": "Types",
|
"types": "유형",
|
||||||
"video": "비디오"
|
"video": "비디오"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"aceEditorTheme": "Ace editor theme",
|
"aceEditorTheme": "ACE 편집기 테마",
|
||||||
"admin": "관리자",
|
"admin": "관리자",
|
||||||
"administrator": "관리자",
|
"administrator": "관리자",
|
||||||
"allowCommands": "명령 실행",
|
"allowCommands": "명령 실행",
|
||||||
"allowEdit": "파일/디렉토리의 수정/변경/삭제 허용",
|
"allowEdit": "파일 또는 디렉터리의 수정, 이름 변경, 삭제를 허용",
|
||||||
"allowNew": "파일/디렉토리 생성 허용",
|
"allowNew": "파일 및 디렉터리 생성 허용",
|
||||||
"allowPublish": "새 포스트/페이지 생성 허용",
|
"allowPublish": "새 포스트 및 페이지 생성 허용",
|
||||||
"allowSignup": "사용자 가입 허용",
|
"allowSignup": "사용자 가입 허용",
|
||||||
"hideLoginButton": "Hide the login button from public pages",
|
"hideLoginButton": "공개 화면에서 로그인 버튼 숨기기",
|
||||||
"avoidChanges": "(수정하지 않으면 비워두세요)",
|
"avoidChanges": "(수정하지 않으려면 비워둠)",
|
||||||
"branding": "브랜딩",
|
"branding": "브랜딩",
|
||||||
"brandingDirectoryPath": "브랜드 디렉토리 경로",
|
"brandingDirectoryPath": "브랜드 디렉터리 경로",
|
||||||
"brandingHelp": "File Browser 인스턴스는 이름, 로고, 스타일 등을 변경할 수 있습니다. 자세한 사항은 여기{0}에서 확인하세요.",
|
"brandingHelp": "File Browser의 이름을 변경하고, 로고를 바꾸고, 사용자 지정 스타일을 추가하고, GitHub에 대한 외부 링크를 비활성화 하는 등 인스턴스의 모양과 느낌을 사용자화 할 수 있습니다.\n사용자 지정 브랜딩에 대한 자세한 내용은 {0}을(를) 참조하십시오.",
|
||||||
"changePassword": "비밀번호 변경",
|
"changePassword": "비밀번호 변경",
|
||||||
"commandRunner": "명령 실행기",
|
"commandRunner": "명령 실행기",
|
||||||
"commandRunnerHelp": "이벤트에 해당하는 명령을 설정하세요. 줄당 1개의 명령을 적으세요. 환경 변수{0} 와 {1}이 사용가능하며, {0} 은 {1}에 상대 경로 입니다. 자세한 사항은 {2} 를 참조하세요.",
|
"commandRunnerHelp": "여기서는 명명된 이벤트에서 실행될 명령을 설정할 수 있습니다. 한 줄에 하나씩 작성해야 합니다. 환경 변수 {0} 및 {1}을(를) 사용할 수 있으며, {0}은(는) {1}을 기준으로 합니다. 이 기능 및 사용 가능한 환경 변수에 대한 자세한 내용은 {2}을(를) 참조하십시오.",
|
||||||
"commandsUpdated": "명령 수정됨!",
|
"commandsUpdated": "명령 수정됨!",
|
||||||
"createUserDir": "Auto create user home dir while adding new user",
|
"createUserDir": "새로운 유저를 추가할 때 사용자 홈 디렉터리 자동 생성",
|
||||||
"minimumPasswordLength": "최소 비밀번호 길이",
|
"minimumPasswordLength": "최소 비밀번호 길이",
|
||||||
"tusUploads": "분할 업로드",
|
"tusUploads": "분할 업로드",
|
||||||
"tusUploadsHelp": "File Browser는 불안정한 네트워크에서도 효율적이고 신뢰성 있는 분할 업로드를 지원합니다.",
|
"tusUploadsHelp": "File Browser는 파일의 분할 업로드를 통해 불안정한 네트워크 환경에서도 효율적이고 안정적이며, 업로드 재개가 가능하도록 합니다.",
|
||||||
"tusUploadsChunkSize": "업로드 요청의 최대 크기 (예: 10MB, 1GB)",
|
"tusUploadsChunkSize": "업로드 요청의 최대 크기를 지정합니다(보다 작은 크기의 업로드는 직접 업로드 방식을 사용합니다). 바이트 크기를 나타내는 정수 또는 10MB, 1GB 등과 같은 문자열을 입력할 수 있습니다.",
|
||||||
"tusUploadsRetryCount": "업로드 실패 시 재시도 횟수",
|
"tusUploadsRetryCount": "분할 업로드를 실패할 경우 다시 시도할 횟수입니다.",
|
||||||
"userHomeBasePath": "사용자 홈 폴더 기본 경로",
|
"userHomeBasePath": "사용자 홈 디렉터리 기본 경로",
|
||||||
"userScopeGenerationPlaceholder": "범위는 자동으로 생성됩니다.",
|
"userScopeGenerationPlaceholder": "범위는 자동 생성",
|
||||||
"createUserHomeDirectory": "사용자 홈 폴더 생성",
|
"createUserHomeDirectory": "사용자 홈 디렉터리 생성",
|
||||||
"customStylesheet": "커스텀 스타일시트",
|
"customStylesheet": "사용자 지정 스타일시트",
|
||||||
"defaultUserDescription": "아래 사항은 신규 사용자들에 대한 기본 설정입니다.",
|
"defaultUserDescription": "다음은 신규 사용자들에 대한 기본 설정입니다.",
|
||||||
"disableExternalLinks": "외부 링크 감추기",
|
"disableExternalLinks": "외부 링크 비활성화(문서 제외)",
|
||||||
"disableUsedDiskPercentage": "Disable used disk percentage graph",
|
"disableUsedDiskPercentage": "사용한 디스크 비율 그래프 비활성화",
|
||||||
"documentation": "문서",
|
"documentation": "문서",
|
||||||
"examples": "예",
|
"examples": "예시",
|
||||||
"executeOnShell": "쉘에서 실행",
|
"executeOnShell": "셸에서 실행",
|
||||||
"executeOnShellDescription": "기본적으로 File Browser 는 바이너리를 명령어로 호출하여 실행합니다. 쉘을 통해 실행하기를 원한다면, Bash 또는 PowerShell 에 필요한 인수와 플래그를 설정하세요. 사용자 명령어와 이벤트 훅에 모두 적용됩니다.",
|
"executeOnShellDescription": "기본적으로 File Browser는 명령어를 해당 바이너리 파일로 직접 실행합니다. 만약 Bash나 PowerShell과 같은 셸에서 명령어를 실행하려면, 필요한 인수와 플래그를 설정하여 셸 환경을 정의할 수 있습니다. 플래그가 설정된 경우, 실행하는 명령어가 인수로 추가됩니다. 이는 사용자 명령어와 이벤트 후크 모두에 적용됩니다.",
|
||||||
"globalRules": "규칙에 대한 전역설정으로 모든 사용자에게 적용됩니다. 지정된 규칙은 사용자 설정을 덮어쓰기 합니다.",
|
"globalRules": "규칙에 대한 전역설정으로 모든 사용자에게 적용됩니다. 지정된 규칙은 사용자 설정을 덮어쓰기 합니다.",
|
||||||
"globalSettings": "전역 설정",
|
"globalSettings": "전역 설정",
|
||||||
"hideDotfiles": "숨김파일(dotfile)을 표시하지 않습니다.",
|
"hideDotfiles": "숨김파일(dotfile)을 표시하지 않습니다.",
|
||||||
@@ -220,46 +241,52 @@
|
|||||||
"passwordUpdated": "비밀번호 수정 완료!",
|
"passwordUpdated": "비밀번호 수정 완료!",
|
||||||
"path": "경로",
|
"path": "경로",
|
||||||
"perm": {
|
"perm": {
|
||||||
"create": "파일이나 디렉토리 생성하기",
|
"create": "파일 및 디렉터리 생성하기",
|
||||||
"delete": "화일이나 디렉토리 삭제하기",
|
"delete": "파일 및 디렉터리 삭제하기",
|
||||||
"download": "다운로드",
|
"download": "다운로드",
|
||||||
"execute": "명령 실행",
|
"execute": "명령 실행",
|
||||||
"modify": "파일 편집",
|
"modify": "파일 편집",
|
||||||
"rename": "파일 이름 변경 또는 디렉토리 이동",
|
"rename": "파일 및 디렉터리의 이름 변경 또는 이동",
|
||||||
"share": "파일 공유하기"
|
"share": "파일 공유 (다운로드 권한 필요)"
|
||||||
},
|
},
|
||||||
"permissions": "권한",
|
"permissions": "권한",
|
||||||
"permissionsHelp": "사용자를 관리자로 만들거나 권한을 부여할 수 있습니다. 관리자를 선택하면, 모든 옵션이 자동으로 선택됩니다. 사용자 관리는 현재 관리자만 할 수 있습니다.\n",
|
"permissionsHelp": "사용자를 관리자로 설정하거나 개별적으로 권한을 지정할 수 있습니다. \"관리자\"를 선택하면 다른 모든 옵션이 자동으로 선택됩니다. 사용자 관리는 관리자의 권한입니다.\n",
|
||||||
"profileSettings": "프로필 설정",
|
"profileSettings": "프로필 설정",
|
||||||
"ruleExample1": "점(.)으로 시작하는 모든 파일의 접근을 방지합니다.(예 .git, .gitignore)\n",
|
"redirectAfterCopyMove": "복사/이동 후 대상 경로로 이동",
|
||||||
|
"ruleExample1": "각 폴더에 점(.)으로 시작하는 모든 파일의 접근을 방지합니다. (예시: .git, .gitignore)\n",
|
||||||
"ruleExample2": "Caddyfile파일의 접근을 방지합니다.",
|
"ruleExample2": "Caddyfile파일의 접근을 방지합니다.",
|
||||||
"rules": "룰",
|
"rules": "규칙",
|
||||||
"rulesHelp": "사용자별로 규칙을 허용/방지를 지정할 수 있습니다. 방지된 파일은 보이지 않고 사용자들은 접근할 수 없습니다. 사용자의 접근 허용 범위와 관련해 정규표현식(regex)과 경로를 지원합니다.\n",
|
"rulesHelp": "여기에서 특정 사용자에 대한 허용 및 차단 규칙 집합을 정의할 수 있습니다. 차단된 파일은 목록에 표시되지 않으며 해당 사용자는 접근할 수 없습니다. 정규 표현식과 사용자 범위에 대한 상대 경로를 지원합니다.\n",
|
||||||
"scope": "범위",
|
"scope": "범위",
|
||||||
"setDateFormat": "날짜 형식 설정",
|
"setDateFormat": "날짜 형식 설정",
|
||||||
"settingsUpdated": "설정 수정됨!",
|
"settingsUpdated": "설정 수정됨!",
|
||||||
"shareDuration": "공유 기간",
|
"shareDuration": "공유 기간",
|
||||||
"shareManagement": "공유 내역 관리",
|
"shareManagement": "공유 내역 관리",
|
||||||
"shareDeleted": "공유 삭제됨!",
|
"shareDeleted": "공유 삭제됨!",
|
||||||
"singleClick": "한번 클릭으로 파일과 폴더를 열도록 합니다.",
|
"singleClick": "단일 클릭으로 파일 및 디렉터리 열기",
|
||||||
|
"sunsetBody": "This project is being wound down. It is archived on 2026-09-01, after which there will be no further releases, bug fixes, or security fixes. Existing releases and Docker images stay online. Do not expose this instance directly to the internet without authentication in front of it.",
|
||||||
|
"sunsetLink": "Read the project status, known unfixed security issues, and hardening guidance",
|
||||||
|
"sunsetTitle": "File Browser is being archived",
|
||||||
"themes": {
|
"themes": {
|
||||||
"default": "시스템 기본값",
|
"default": "시스템 기본값",
|
||||||
"dark": "다크테마",
|
"dark": "어두운 테마",
|
||||||
"light": "라이트테마",
|
"light": "밝은 테마",
|
||||||
"title": "테마"
|
"title": "테마"
|
||||||
},
|
},
|
||||||
"user": "사용자",
|
"user": "사용자",
|
||||||
"userCommands": "명령어",
|
"userCommands": "명령어",
|
||||||
"userCommandsHelp": "사용에게 허용할 명령어를 공백으로 구분하여 입력하세요. 예:\n",
|
"userCommandsHelp": "사용자에게 허용할 명령어를 공백으로 구분하여 입력하세요. 예:\n",
|
||||||
"userCreated": "사용자 생성됨!",
|
"userCreated": "사용자 생성됨!",
|
||||||
"userDefaults": "사용자 기본 설정",
|
"userDefaults": "사용자 기본 설정",
|
||||||
"userDeleted": "사용자 삭제됨!",
|
"userDeleted": "사용자 삭제됨!",
|
||||||
"userManagement": "사용자 관리",
|
"userManagement": "사용자 관리",
|
||||||
"userUpdated": "사용자 수정됨!",
|
"userUpdated": "사용자 수정됨!",
|
||||||
"username": "사용자 이름",
|
"username": "사용자 이름",
|
||||||
"users": "사용자"
|
"users": "사용자",
|
||||||
|
"currentPassword": "현재 비밀번호"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
|
"diskUsed": "{total} 중 {used} 사용",
|
||||||
"help": "도움말",
|
"help": "도움말",
|
||||||
"hugoNew": "Hugo New",
|
"hugoNew": "Hugo New",
|
||||||
"login": "로그인",
|
"login": "로그인",
|
||||||
@@ -280,6 +307,6 @@
|
|||||||
"hours": "시",
|
"hours": "시",
|
||||||
"minutes": "분",
|
"minutes": "분",
|
||||||
"seconds": "초",
|
"seconds": "초",
|
||||||
"unit": "Time Unit"
|
"unit": "시간 단위"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,309 @@
|
|||||||
|
{
|
||||||
|
"buttons": {
|
||||||
|
"cancel": "Atcelt",
|
||||||
|
"clear": "Tīrs",
|
||||||
|
"close": "Aizvērt",
|
||||||
|
"continue": "Turpināt",
|
||||||
|
"copy": "Kopēt",
|
||||||
|
"copyFile": "Kopēt failu",
|
||||||
|
"copyToClipboard": "Kopēt starpliktuvē",
|
||||||
|
"copyDownloadLinkToClipboard": "Kopēt lejupielādes saiti starpliktuvē",
|
||||||
|
"create": "Izveidot",
|
||||||
|
"delete": "Dzēst",
|
||||||
|
"download": "Lejupielādēt",
|
||||||
|
"file": "Fails",
|
||||||
|
"folder": "Mape",
|
||||||
|
"fullScreen": "Pārslēgt pilnekrāna režīmu",
|
||||||
|
"hideDotfiles": "Slēpt punktfailus",
|
||||||
|
"info": "Informācija",
|
||||||
|
"more": "Vairāk",
|
||||||
|
"move": "Pārvietot",
|
||||||
|
"moveFile": "Pārvietot failu",
|
||||||
|
"new": "Jauns",
|
||||||
|
"next": "Nākamais",
|
||||||
|
"ok": "Labi",
|
||||||
|
"permalink": "Iegūt pastāvīgo saiti",
|
||||||
|
"previous": "Iepriekšējais",
|
||||||
|
"preview": "Priekšskatījums",
|
||||||
|
"publish": "Publicēt",
|
||||||
|
"rename": "Pārdēvēt",
|
||||||
|
"replace": "Aizstāt",
|
||||||
|
"reportIssue": "Ziņot par problēmu",
|
||||||
|
"resumeTransfer": "Resume previous transfer",
|
||||||
|
"resumeTransferTooltip": "Skip all conflicting files, except the ones that are smaller on the server as we suppose that their transfert has been interrupted.",
|
||||||
|
"save": "Saglabāt",
|
||||||
|
"schedule": "Grafiks",
|
||||||
|
"search": "Meklēt",
|
||||||
|
"select": "Izvēlieties",
|
||||||
|
"selectMultiple": "Izvēlieties vairākus",
|
||||||
|
"share": "Dalīties",
|
||||||
|
"shell": "Pārslēgt apvalku",
|
||||||
|
"submit": "Iesniegt",
|
||||||
|
"switchView": "Pārslēgt skatu",
|
||||||
|
"toggleSidebar": "Pārslēgt sānjoslu",
|
||||||
|
"update": "Atjaunināt",
|
||||||
|
"upload": "Augšupielādēt",
|
||||||
|
"openFile": "Atvērt failu",
|
||||||
|
"openDirect": "View raw",
|
||||||
|
"discardChanges": "Izmest",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
|
"saveChanges": "Saglabāt izmaiņas",
|
||||||
|
"editAsText": "Rediģēt kā tekstu",
|
||||||
|
"increaseFontSize": "Palieliniet fonta lielumu",
|
||||||
|
"decreaseFontSize": "Samaziniet fonta lielumu",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
|
},
|
||||||
|
"download": {
|
||||||
|
"downloadFile": "Lejupielādēt failu",
|
||||||
|
"downloadFolder": "Lejupielādēt mapi",
|
||||||
|
"downloadSelected": "Lejupielādēt atlasīto"
|
||||||
|
},
|
||||||
|
"upload": {
|
||||||
|
"abortUpload": "Vai tiešām vēlaties pārtraukt?"
|
||||||
|
},
|
||||||
|
"errors": {
|
||||||
|
"forbidden": "Jums nav atļaujas piekļūt šim.",
|
||||||
|
"internal": "Kaut kas tiešām nogāja greizi.",
|
||||||
|
"notFound": "Šo atrašanās vietu nevar sasniegt.",
|
||||||
|
"connection": "Ar serveri nevar sazināties."
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"body": "Ķermenis",
|
||||||
|
"closePreview": "Aizvērt priekšskatījumu",
|
||||||
|
"files": "Faili",
|
||||||
|
"folders": "Mapes",
|
||||||
|
"home": "Sākums",
|
||||||
|
"lastModified": "Pēdējoreiz modificēts",
|
||||||
|
"loading": "Notiek ielāde...",
|
||||||
|
"lonely": "Šeit ir tukša vieta...",
|
||||||
|
"metadata": "Metadati",
|
||||||
|
"multipleSelectionEnabled": "Vairākas atlases ir iespējotas",
|
||||||
|
"name": "Vārds",
|
||||||
|
"size": "Izmērs",
|
||||||
|
"sortByLastModified": "Kārtot pēc pēdējās modifikācijas",
|
||||||
|
"sortByName": "Kārtot pēc nosaukuma",
|
||||||
|
"sortBySize": "Kārtot pēc izmēra",
|
||||||
|
"noPreview": "Šim failam nav pieejams priekšskatījums.",
|
||||||
|
"csvTooLarge": "CSV fails ir pārāk liels priekšskatīšanai (>5 MB). Lūdzu, lejupielādējiet to, lai skatītu",
|
||||||
|
"csvLoadFailed": "Neizdevās ielādēt CSV failu.",
|
||||||
|
"showingRows": "Rāda {count} rindu(as)",
|
||||||
|
"columnSeparator": "Kolonnu atdalītājs",
|
||||||
|
"csvSeparators": {
|
||||||
|
"comma": "Komats (,)",
|
||||||
|
"semicolon": "Semikols (;)",
|
||||||
|
"both": "Gan (,) gan (;)"
|
||||||
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
|
},
|
||||||
|
"help": {
|
||||||
|
"click": "atlasiet failu vai direktoriju",
|
||||||
|
"ctrl": {
|
||||||
|
"click": "atlasīt vairākus failus vai direktorijus",
|
||||||
|
"f": "atver meklēšanu",
|
||||||
|
"s": "saglabājiet failu vai lejupielādējiet direktoriju, kurā atrodaties"
|
||||||
|
},
|
||||||
|
"del": "dzēst atlasītos vienumus",
|
||||||
|
"doubleClick": "atvērt failu vai direktoriju",
|
||||||
|
"esc": "notīrīt atlasi un/vai aizvērt uzvedni",
|
||||||
|
"f1": "šo informāciju",
|
||||||
|
"f2": "pārdēvēt failu",
|
||||||
|
"help": "Palīdzība"
|
||||||
|
},
|
||||||
|
"login": {
|
||||||
|
"createAnAccount": "Izveidot kontu",
|
||||||
|
"loginInstead": "Jau ir konts",
|
||||||
|
"password": "Parole",
|
||||||
|
"passwordConfirm": "Paroles apstiprināšana",
|
||||||
|
"passwordsDontMatch": "Paroles nesakrīt",
|
||||||
|
"signup": "Reģistrēšanās",
|
||||||
|
"submit": "Pieteikties",
|
||||||
|
"username": "Lietotājvārds",
|
||||||
|
"usernameTaken": "Lietotājvārds jau aizņemts",
|
||||||
|
"wrongCredentials": "Nepareizi akreditācijas dati",
|
||||||
|
"passwordTooShort": "Parolei jābūt vismaz {min} rakstzīmju garai",
|
||||||
|
"logout_reasons": {
|
||||||
|
"inactivity": "Jūs esat atteicies no sistēmas neaktivitātes dēļ."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"permanent": "Pastāvīgs",
|
||||||
|
"prompts": {
|
||||||
|
"copy": "Kopēt",
|
||||||
|
"copyMessage": "Izvēlieties atrašanās vietu, uz kuru kopēt failus:",
|
||||||
|
"currentlyNavigating": "Pašlaik navigācija:",
|
||||||
|
"deleteMessageMultiple": "Vai tiešām vēlaties dzēst {count} failu(s)?",
|
||||||
|
"deleteMessageSingle": "Vai tiešām vēlaties dzēst šo failu/mapi?",
|
||||||
|
"deleteMessageShare": "Vai tiešām vēlaties dzēst šo koplietojumu({path})?",
|
||||||
|
"deleteUser": "Vai tiešām vēlaties dzēst šo lietotāju?",
|
||||||
|
"deleteTitle": "Dzēst failus",
|
||||||
|
"displayName": "Displeja nosaukums:",
|
||||||
|
"download": "Lejupielādēt failus",
|
||||||
|
"downloadMessage": "Izvēlieties formātu, kuru vēlaties lejupielādēt.",
|
||||||
|
"error": "Kaut kas nogāja greizi",
|
||||||
|
"fileInfo": "Informācija par failu",
|
||||||
|
"filesSelected": "{count} atlasīti faili",
|
||||||
|
"lastModified": "Pēdējās izmaiņas",
|
||||||
|
"move": "Pārvietot",
|
||||||
|
"moveMessage": "Izvēlieties jaunu mājvietu failam(iem)/mapei(ēm):",
|
||||||
|
"newArchetype": "Izveidojiet jaunu ierakstu, pamatojoties uz arhtipu. Jūsu fails tiks izveidots satura mapē.",
|
||||||
|
"newDir": "Jauna direktorija",
|
||||||
|
"newDirMessage": "Nosaukums savai jaunajai direktorijai.",
|
||||||
|
"newFile": "Jauns fails",
|
||||||
|
"newFileMessage": "Nosauciet savu jauno failu.",
|
||||||
|
"numberDirs": "Katalogu skaits",
|
||||||
|
"numberFiles": "Failu skaits",
|
||||||
|
"rename": "Pārdēvēt",
|
||||||
|
"renameMessage": "Ievietojiet jaunu nosaukumu",
|
||||||
|
"replace": "Aizstāt",
|
||||||
|
"replaceMessage": "Vienam no failiem, kurus mēģināt augšupielādēt, ir konfliktējošs nosaukums. Vai vēlaties izlaist šo failu un turpināt augšupielādi vai aizstāt esošo?\n",
|
||||||
|
"schedule": "Grafiks",
|
||||||
|
"scheduleMessage": "Izvēlieties datumu un laiku, lai ieplānotu šī ieraksta publicēšanu.",
|
||||||
|
"show": "Rādīt",
|
||||||
|
"size": "Izmērs",
|
||||||
|
"upload": "Augšupielādēt",
|
||||||
|
"uploadFiles": "Notiek {files} failu augšupielāde...",
|
||||||
|
"uploadMessage": "Atlasiet augšupielādes opciju.",
|
||||||
|
"optionalPassword": "Izvēles parole",
|
||||||
|
"resolution": "Izšķirtspēja",
|
||||||
|
"discardEditorChanges": "Vai tiešām vēlaties atmest veiktās izmaiņas?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
|
},
|
||||||
|
"search": {
|
||||||
|
"images": "Attēli",
|
||||||
|
"music": "Mūzika",
|
||||||
|
"pdf": "PDF",
|
||||||
|
"pressToSearch": "Nospiediet taustiņu Enter, lai meklētu...",
|
||||||
|
"search": "Meklē...",
|
||||||
|
"typeToSearch": "Ierakstiet, lai meklētu...",
|
||||||
|
"types": "Veidi",
|
||||||
|
"video": "Video"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"aceEditorTheme": "Ace redaktora tēma",
|
||||||
|
"admin": "Admin",
|
||||||
|
"administrator": "Administrator",
|
||||||
|
"allowCommands": "Izpildīt komandas",
|
||||||
|
"allowEdit": "Rediģēt, pārdēvēt un dzēst failus vai direktorijus",
|
||||||
|
"allowNew": "Izveidojiet jaunus failus un direktorijus",
|
||||||
|
"allowPublish": "Publicēt jaunus ierakstus un lapas",
|
||||||
|
"allowSignup": "Atļaut lietotājiem reģistrēties",
|
||||||
|
"hideLoginButton": "Paslēpt pieteikšanās pogu publiskajās lapās",
|
||||||
|
"avoidChanges": "(atstājiet tukšu, lai izvairītos no izmaiņām)",
|
||||||
|
"branding": "Zīmols",
|
||||||
|
"brandingDirectoryPath": "Zīmola direktorijas ceļš",
|
||||||
|
"brandingHelp": "Jūs varat pielāgot sava failu pārlūka instances izskatu un darbību, mainot tās nosaukumu, aizstājot logotipu, pievienojot pielāgotus stilus un pat atspējojot ārējās saites uz GitHub.\nLai iegūtu plašāku informāciju par pielāgotu zīmola veidošanu, lūdzu, skatiet {0}.",
|
||||||
|
"changePassword": "Mainīt paroli",
|
||||||
|
"commandRunner": "Komandu skrējējs",
|
||||||
|
"commandRunnerHelp": "Šeit varat iestatīt komandas, kas tiek izpildītas nosauktajos notikumos. Katrā rindā jāraksta pa vienai. Būs pieejami vides mainīgie {0} un {1}, kas ir {0} relatīvi pret {1}. Lai iegūtu plašāku informāciju par šo funkciju un pieejamajiem vides mainīgajiem, lūdzu, izlasiet {2}.",
|
||||||
|
"commandsUpdated": "Komandas atjauninātas!",
|
||||||
|
"createUserDir": "Automātiski izveidot lietotāja mājas direktoriju, pievienojot jaunu lietotāju",
|
||||||
|
"minimumPasswordLength": "Minimālais paroles garums",
|
||||||
|
"tusUploads": "Sadalītas augšupielādes",
|
||||||
|
"tusUploadsHelp": "Failu pārlūks atbalsta failu augšupielādi fragmentos, ļaujot izveidot efektīvu, uzticamu, atsākamu un fragmentos sadalītu failu augšupielādi pat neuzticamos tīklos.",
|
||||||
|
"tusUploadsChunkSize": "Norāda pieprasījuma maksimālo izmēru (mazākiem augšupielādes apjomiem tiks izmantota tieša augšupielāde). Varat ievadīt vienkāršu veselu skaitli, kas apzīmē baitu izmēru, vai virkni, piemēram, 10 MB, 1 GB utt.",
|
||||||
|
"tusUploadsRetryCount": "Atkārtotu mēģinājumu skaits, kas jāveic, ja fragmenta augšupielāde neizdodas.",
|
||||||
|
"userHomeBasePath": "Lietotāja mājas direktoriju bāzes ceļš",
|
||||||
|
"userScopeGenerationPlaceholder": "Darbības joma tiks ģenerēta automātiski",
|
||||||
|
"createUserHomeDirectory": "Izveidojiet lietotāja mājas direktoriju",
|
||||||
|
"customStylesheet": "Pielāgota stila lapa",
|
||||||
|
"defaultUserDescription": "Šie ir noklusējuma iestatījumi jaunajiem lietotājiem.",
|
||||||
|
"disableExternalLinks": "Atspējot ārējās saites (izņemot dokumentāciju)",
|
||||||
|
"disableUsedDiskPercentage": "Atspējot izmantotā diska procentuālās daļas grafiku",
|
||||||
|
"documentation": "dokumentācija",
|
||||||
|
"examples": "Piemēri",
|
||||||
|
"executeOnShell": "Izpildīt uz čaulas",
|
||||||
|
"executeOnShellDescription": "Pēc noklusējuma failu pārlūks izpilda komandas, tieši izsaucot to bināros failus. Ja vēlaties tās palaist čaulā (piemēram, Bash vai PowerShell), varat to definēt šeit ar nepieciešamajiem argumentiem un karodziņiem. Ja tas ir iestatīts, izpildītā komanda tiks pievienota kā arguments. Tas attiecas gan uz lietotāja komandām, gan notikumu piesaistes rīkiem.",
|
||||||
|
"globalRules": "Šis ir globāls atļaušanas un aizliegšanas noteikumu kopums. Tie attiecas uz katru lietotāju. Katra lietotāja iestatījumos varat definēt konkrētus noteikumus, lai tos ignorētu.",
|
||||||
|
"globalSettings": "Globālie iestatījumi",
|
||||||
|
"hideDotfiles": "Slēpt punktfailus",
|
||||||
|
"insertPath": "Ievietojiet ceļu",
|
||||||
|
"insertRegex": "Ievietojiet regex izteiksmi",
|
||||||
|
"instanceName": "Gadījuma nosaukums",
|
||||||
|
"language": "Valoda",
|
||||||
|
"lockPassword": "Neļaut lietotājam mainīt paroli",
|
||||||
|
"newPassword": "Jūsu jaunā parole",
|
||||||
|
"newPasswordConfirm": "Apstipriniet savu jauno paroli",
|
||||||
|
"newUser": "Jauns lietotājs",
|
||||||
|
"password": "Parole",
|
||||||
|
"passwordUpdated": "Parole atjaunināta!",
|
||||||
|
"path": "Ceļš",
|
||||||
|
"perm": {
|
||||||
|
"create": "Izveidojiet failus un direktorijus",
|
||||||
|
"delete": "Dzēst failus un direktorijus",
|
||||||
|
"download": "Lejupielādēt",
|
||||||
|
"execute": "Izpildīt komandas",
|
||||||
|
"modify": "Rediģēt failus",
|
||||||
|
"rename": "Pārdēvēt vai pārvietot failus un direktorijus",
|
||||||
|
"share": "Share files (require download permission)"
|
||||||
|
},
|
||||||
|
"permissions": "Atļaujas",
|
||||||
|
"permissionsHelp": "Varat iestatīt lietotāju kā administratoru vai izvēlēties atļaujas individuāli. Ja atlasīsiet “Administrators”, visas pārējās opcijas tiks automātiski atzīmētas. Lietotāju pārvaldība joprojām ir administratora privilēģija.\n",
|
||||||
|
"profileSettings": "Profila iestatījumi",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
|
"ruleExample1": "neļauj piekļūt jebkuram dotfile failam (piemēram, .git, .gitignore) katrā mapē.\n",
|
||||||
|
"ruleExample2": "bloķē piekļuvi failam ar nosaukumu Caddyfile darbības jomas saknē.",
|
||||||
|
"rules": "Noteikumi",
|
||||||
|
"rulesHelp": "Šeit varat definēt atļaušanas un aizliegšanas noteikumu kopu šim konkrētajam lietotājam. Bloķētie faili netiks rādīti sarakstos, un lietotājs tiem nevarēs piekļūt. Mēs atbalstām regulārās izteiksmes un ceļus attiecībā pret lietotāja darbības jomu.\n",
|
||||||
|
"scope": "Darbības joma",
|
||||||
|
"setDateFormat": "Iestatiet precīzu datuma formātu",
|
||||||
|
"settingsUpdated": "Iestatījumi atjaunināti!",
|
||||||
|
"shareDuration": "Kopīgošanas ilgums",
|
||||||
|
"shareManagement": "Kopīgošanas pārvaldība",
|
||||||
|
"shareDeleted": "Kopīgošana ir izdzēsta!",
|
||||||
|
"singleClick": "Failu un direktoriju atvēršanai izmantojiet vienus klikšķi",
|
||||||
|
"themes": {
|
||||||
|
"default": "Sistēmas noklusējums",
|
||||||
|
"dark": "Tumša",
|
||||||
|
"light": "Gaiša",
|
||||||
|
"title": "Tēma"
|
||||||
|
},
|
||||||
|
"user": "Lietotājs",
|
||||||
|
"userCommands": "Komandas",
|
||||||
|
"userCommandsHelp": "Ar atstarpi atdalīts saraksts ar šim lietotājam pieejamajām komandām. Piemērs:\n",
|
||||||
|
"userCreated": "Lietotājs izveidots!",
|
||||||
|
"userDefaults": "Lietotāja noklusējuma iestatījumi",
|
||||||
|
"userDeleted": "Lietotājs izdzēsts!",
|
||||||
|
"userManagement": "Lietotāju pārvaldība",
|
||||||
|
"userUpdated": "Lietotājs atjaunināts!",
|
||||||
|
"username": "Lietotājvārds",
|
||||||
|
"users": "Lietotāji",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
|
},
|
||||||
|
"sidebar": {
|
||||||
|
"diskUsed": "{used} of {total} used",
|
||||||
|
"help": "Palīdzība",
|
||||||
|
"hugoNew": "Hugo Jauns",
|
||||||
|
"login": "Pieteikties",
|
||||||
|
"logout": "Atteikties",
|
||||||
|
"myFiles": "Mani faili",
|
||||||
|
"newFile": "Jauns fails",
|
||||||
|
"newFolder": "Jauna mape",
|
||||||
|
"preview": "Priekšskatījums",
|
||||||
|
"settings": "Iestatījumi",
|
||||||
|
"signup": "Reģistrēties",
|
||||||
|
"siteSettings": "Vietnes iestatījumi"
|
||||||
|
},
|
||||||
|
"success": {
|
||||||
|
"linkCopied": "Saite nokopēta!"
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"days": "Dienas",
|
||||||
|
"hours": "Stundas",
|
||||||
|
"minutes": "Minūtes",
|
||||||
|
"seconds": "Sekundes",
|
||||||
|
"unit": "Laika vienība"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Updaten",
|
"update": "Updaten",
|
||||||
"upload": "Uploaden",
|
"upload": "Uploaden",
|
||||||
"openFile": "Open file",
|
"openFile": "Open file",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Discard",
|
"discardChanges": "Discard",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Bestand downloaden",
|
"downloadFile": "Bestand downloaden",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "selecteer bestand of map",
|
"click": "selecteer bestand of map",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Select an option to upload.",
|
"uploadMessage": "Select an option to upload.",
|
||||||
"optionalPassword": "Optional password",
|
"optionalPassword": "Optional password",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?"
|
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Afbeeldingen",
|
"images": "Afbeeldingen",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Permissies",
|
"permissions": "Permissies",
|
||||||
"permissionsHelp": "U kunt de gebruiker instellen als beheerder of de machtigingen afzonderlijk kiezen. Als u \"Beheerder\" selecteert, worden alle andere opties automatisch gecontroleerd. Het beheer van gebruikers blijft een privilege van een beheerder.\n",
|
"permissionsHelp": "U kunt de gebruiker instellen als beheerder of de machtigingen afzonderlijk kiezen. Als u \"Beheerder\" selecteert, worden alle andere opties automatisch gecontroleerd. Het beheer van gebruikers blijft een privilege van een beheerder.\n",
|
||||||
"profileSettings": "Profielinstellingen",
|
"profileSettings": "Profielinstellingen",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "voorkomt de toegang tot elk puntbestand (zoals .git, .gitignore) in elke map.\n",
|
"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.",
|
"ruleExample2": "blokkeert de toegang tot het bestand met de naam Caddyfile in de hoofdmap van het bereik.",
|
||||||
"rules": "Regels",
|
"rules": "Regels",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Gebruikersbeheer",
|
"userManagement": "Gebruikersbeheer",
|
||||||
"userUpdated": "Gebruiker bijgewerkt!",
|
"userUpdated": "Gebruiker bijgewerkt!",
|
||||||
"username": "Gebruikersnaam",
|
"username": "Gebruikersnaam",
|
||||||
"users": "Gebruikers"
|
"users": "Gebruikers",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Help",
|
"help": "Help",
|
||||||
|
|||||||
@@ -0,0 +1,312 @@
|
|||||||
|
{
|
||||||
|
"buttons": {
|
||||||
|
"cancel": "Annuleren",
|
||||||
|
"clear": "Wissen",
|
||||||
|
"close": "Sluiten",
|
||||||
|
"continue": "Doorgaan",
|
||||||
|
"copy": "Kopiëren",
|
||||||
|
"copyFile": "Bestand kopiëren",
|
||||||
|
"copyToClipboard": "Kopiëren naar klembord",
|
||||||
|
"copyDownloadLinkToClipboard": "Download-link kopiëren naar klembord",
|
||||||
|
"create": "Aanmaken",
|
||||||
|
"delete": "Verwijderen",
|
||||||
|
"download": "Downloaden",
|
||||||
|
"file": "Bestand",
|
||||||
|
"folder": "Map",
|
||||||
|
"fullScreen": "Volledig scherm wisselen",
|
||||||
|
"hideDotfiles": "dot-bestanden verbergen",
|
||||||
|
"info": "Info",
|
||||||
|
"more": "Meer",
|
||||||
|
"move": "Verplaatsen",
|
||||||
|
"moveFile": "Bestand verplaatsen",
|
||||||
|
"new": "Nieuw",
|
||||||
|
"next": "Volgende",
|
||||||
|
"ok": "OK",
|
||||||
|
"permalink": "Permanente link verkrijgen",
|
||||||
|
"previous": "Vorige",
|
||||||
|
"preview": "Voorbeeld",
|
||||||
|
"publish": "Publiceren",
|
||||||
|
"rename": "Hernoemen",
|
||||||
|
"replace": "Vervangen",
|
||||||
|
"reportIssue": "Probleem melden",
|
||||||
|
"resumeTransfer": "Vorige overdracht hervatten",
|
||||||
|
"resumeTransferTooltip": "Alle conflicterende bestanden overslaan, behalve de bestanden die kleiner zijn op de server, omdat we veronderstellen dat hun overdracht is onderbroken.",
|
||||||
|
"save": "Opslaan",
|
||||||
|
"schedule": "Plannen",
|
||||||
|
"search": "Zoeken",
|
||||||
|
"select": "Selecteren",
|
||||||
|
"selectMultiple": "Meervoudige selectie",
|
||||||
|
"share": "Delen",
|
||||||
|
"shell": "Opdrachtvenster wisselen",
|
||||||
|
"submit": "Indienen",
|
||||||
|
"switchView": "Weergave wisselen",
|
||||||
|
"toggleSidebar": "Zijbalk wisselen",
|
||||||
|
"update": "Bijwerken",
|
||||||
|
"upload": "Uploaden",
|
||||||
|
"openFile": "Bestand openen",
|
||||||
|
"openDirect": "Raw weergeven",
|
||||||
|
"discardChanges": "Weggooien",
|
||||||
|
"stopSearch": "Stoppen met zoeken",
|
||||||
|
"saveChanges": "Wijzigingen opslaan",
|
||||||
|
"editAsText": "Als tekst bewerken",
|
||||||
|
"increaseFontSize": "Lettertype vergroten",
|
||||||
|
"decreaseFontSize": "Lettertype verkleinen",
|
||||||
|
"overrideAll": "Alle bestanden in doelmap vervangen",
|
||||||
|
"skipAll": "Alle conflicterende bestanden overslaan",
|
||||||
|
"renameAll": "Alle bestanden hernoemen (een kopie maken)",
|
||||||
|
"singleDecision": "Voor elk conflicterend bestand besluiten"
|
||||||
|
},
|
||||||
|
"download": {
|
||||||
|
"downloadFile": "Bestand downloaden",
|
||||||
|
"downloadFolder": "Map downloaden",
|
||||||
|
"downloadSelected": "Selectie downloaden"
|
||||||
|
},
|
||||||
|
"upload": {
|
||||||
|
"abortUpload": "Weet u zeker dat u wilt afbreken?"
|
||||||
|
},
|
||||||
|
"errors": {
|
||||||
|
"forbidden": "U hebt hier geen toegangsrechten.",
|
||||||
|
"internal": "Er ging iets mis.",
|
||||||
|
"notFound": "Deze locatie kan niet worden bereikt.",
|
||||||
|
"connection": "De server kan niet worden bereikt."
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"body": "Inoud",
|
||||||
|
"closePreview": "Voorbeeld sluiten",
|
||||||
|
"files": "Bestanden",
|
||||||
|
"folders": "Mappen",
|
||||||
|
"home": "Thuis",
|
||||||
|
"lastModified": "Laatst aangepast",
|
||||||
|
"loading": "Laden...",
|
||||||
|
"lonely": "Het is hier wat leeg...",
|
||||||
|
"metadata": "Metagegevens",
|
||||||
|
"multipleSelectionEnabled": "Meervoudige selectie ingeschakeld",
|
||||||
|
"name": "Naam",
|
||||||
|
"size": "Grootte",
|
||||||
|
"sortByLastModified": "Sorteren op laatst aangepast",
|
||||||
|
"sortByName": "Sorteren op naam",
|
||||||
|
"sortBySize": "Sorteren op grootte",
|
||||||
|
"noPreview": "Geen voorbeeld beschikbaar voor dit bestand.",
|
||||||
|
"csvTooLarge": "CSV-bestand is te groot voor voorbeeld (>5MB). Download het om het te bekijken.",
|
||||||
|
"csvLoadFailed": "Laden van CSV-bestand is mislukt.",
|
||||||
|
"showingRows": "{count} rij(en) weergeven",
|
||||||
|
"columnSeparator": "Kolom-scheidingsteken",
|
||||||
|
"csvSeparators": {
|
||||||
|
"comma": "Komma (,)",
|
||||||
|
"semicolon": "Puntkomma (;)",
|
||||||
|
"both": "Beide (,) en (;)"
|
||||||
|
},
|
||||||
|
"fileEncoding": "Bestandscodering"
|
||||||
|
},
|
||||||
|
"help": {
|
||||||
|
"click": "selecteer bestand of map",
|
||||||
|
"ctrl": {
|
||||||
|
"click": "selecteer meerdere bestanden of mappen",
|
||||||
|
"f": "open zoekopdracht",
|
||||||
|
"s": "sla een bestand op of download de huidige map"
|
||||||
|
},
|
||||||
|
"del": "verwijder geselecteerde items",
|
||||||
|
"doubleClick": "open een bestand of map",
|
||||||
|
"esc": "wis de selectie en/of sluit het opdrachtvenster",
|
||||||
|
"f1": "deze informatie",
|
||||||
|
"f2": "hernoem bestand",
|
||||||
|
"help": "Hulp"
|
||||||
|
},
|
||||||
|
"login": {
|
||||||
|
"createAnAccount": "Account aanmaken",
|
||||||
|
"loginInstead": "Heeft al een account",
|
||||||
|
"password": "Wachtwoord",
|
||||||
|
"passwordConfirm": "Wachtwoord bevestigen",
|
||||||
|
"passwordsDontMatch": "Wachtwoorden komen niet overeen",
|
||||||
|
"signup": "Registeren",
|
||||||
|
"submit": "Inloggen",
|
||||||
|
"username": "Gebruikersnaam",
|
||||||
|
"usernameTaken": "Gebruikersnaam reeds in gebruik",
|
||||||
|
"wrongCredentials": "Inloggegevens zijn incorrect",
|
||||||
|
"passwordTooShort": "Wachtwoord moet minstens {min} tekens bevatten",
|
||||||
|
"logout_reasons": {
|
||||||
|
"inactivity": "U bent uitgelogd vanwege inactiviteit."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"permanent": "Permanent",
|
||||||
|
"prompts": {
|
||||||
|
"copy": "Kopiëren",
|
||||||
|
"copyMessage": "Kies een locatie om uw bestanden te kopiëren:",
|
||||||
|
"currentlyNavigating": "Navigeren op:",
|
||||||
|
"deleteMessageMultiple": "Weet u zeker dat u {count} bestand(en) wilt verwijderen?",
|
||||||
|
"deleteMessageSingle": "Weet u zeker dat u dit bestand/deze map wilt verwijderen?",
|
||||||
|
"deleteMessageShare": "Weet u zeker dat u deze gedeelde map ({path}) wilt verwijderen?",
|
||||||
|
"deleteUser": "Weet u zeker dat u deze gebruiker wilt verwijderen?",
|
||||||
|
"deleteTitle": "Bestanden verwijderen",
|
||||||
|
"displayName": "Weergavenaam:",
|
||||||
|
"download": "Bestanden downloaden",
|
||||||
|
"downloadMessage": "Kies het formaat dat u wilt downloaden.",
|
||||||
|
"error": "Er ging iets fout",
|
||||||
|
"fileInfo": "Bestandsinformatie",
|
||||||
|
"filesSelected": "{count} geselecteerde bestanden.",
|
||||||
|
"lastModified": "Laatst aangepast",
|
||||||
|
"move": "Verplaatsen",
|
||||||
|
"moveMessage": "Kies een nieuw Thuis voor uw bestand(en)/map(pen):",
|
||||||
|
"newArchetype": "Maak een nieuw bericht op basis van een archetype. Uw bestand wordt aangemaakt in de inhoudsmap.",
|
||||||
|
"newDir": "Nieuwe map",
|
||||||
|
"newDirMessage": "Voer een naam in voor de nieuwe map.",
|
||||||
|
"newFile": "Nieuw bestand",
|
||||||
|
"newFileMessage": "Voer een naam in voor het nieuwe bestand.",
|
||||||
|
"numberDirs": "Aantal mappen",
|
||||||
|
"numberFiles": "Aantal bestanden",
|
||||||
|
"rename": "Hernoemen",
|
||||||
|
"renameMessage": "Voer een nieuwe naam in voor",
|
||||||
|
"replace": "Vervangen",
|
||||||
|
"replaceMessage": "Een van de bestanden die u probeert te uploaden, geeft conflicten i.v.m. de naamgeving. Wilt u de bestaande bestanden vervangen?\n",
|
||||||
|
"schedule": "Plannen",
|
||||||
|
"scheduleMessage": "Kies een datum en tijd om de publicatie van dit bericht in te plannen.",
|
||||||
|
"show": "Weergeven",
|
||||||
|
"size": "Grootte",
|
||||||
|
"upload": "Uploaden",
|
||||||
|
"uploadFiles": "{files} bestanden uploaden...",
|
||||||
|
"uploadMessage": "Kies een optie bij de upload.",
|
||||||
|
"optionalPassword": "Optioneel wachtwoord",
|
||||||
|
"resolution": "Resolutie",
|
||||||
|
"discardEditorChanges": "Weet u zeker dat u de door u aangebrachte wijzigingen wilt weggooien?",
|
||||||
|
"replaceOrSkip": "Bestanden vervangen of overslaan",
|
||||||
|
"resolveConflict": "Welke bestanden wilt u behouden?",
|
||||||
|
"singleConflictResolve": "Als u beide versies selecteert, wordt er een nummer toegevoegd aan de naam van het gekopieerde bestand.",
|
||||||
|
"fastConflictResolve": "De doelmap daar bevat {count} bestanden met dezelfde naam.",
|
||||||
|
"uploadingFiles": "Bestanden uploaden",
|
||||||
|
"filesInOrigin": "Bestanden in origineel",
|
||||||
|
"filesInDest": "Bestanden in bestemming",
|
||||||
|
"override": "Overschrijven",
|
||||||
|
"skip": "Overslaan",
|
||||||
|
"forbiddenError": "Verboden Fout",
|
||||||
|
"currentPassword": "Uw wachtwoord",
|
||||||
|
"currentPasswordMessage": "Voer uw wachtwoord in om deze actie te valideren."
|
||||||
|
},
|
||||||
|
"search": {
|
||||||
|
"images": "Afbeeldingen",
|
||||||
|
"music": "Muziek",
|
||||||
|
"pdf": "PDF",
|
||||||
|
"pressToSearch": "Druk op enter om te zoeken...",
|
||||||
|
"search": "Zoeken...",
|
||||||
|
"typeToSearch": "Typ om te zoeken...",
|
||||||
|
"types": "Types",
|
||||||
|
"video": "Video"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"aceEditorTheme": "Ace editor-thema",
|
||||||
|
"admin": "Admin",
|
||||||
|
"administrator": "Beheerder",
|
||||||
|
"allowCommands": "Opdrachten uitvoeren",
|
||||||
|
"allowEdit": "Bestanden of mappen bewerken, hernoemen of verwijderen",
|
||||||
|
"allowNew": "Nieuwe bestanden of mappen aanmaken",
|
||||||
|
"allowPublish": "Nieuwe berichten en pagina's publiceren",
|
||||||
|
"allowSignup": "Gebruikers toestaan om zich te registreren",
|
||||||
|
"hideLoginButton": "De inlogknop verbergen van openbare pagina's",
|
||||||
|
"avoidChanges": "(leeg laten om wijzigingen te voorkomen)",
|
||||||
|
"branding": "Branding",
|
||||||
|
"brandingDirectoryPath": "Pad naar map met Branding",
|
||||||
|
"brandingHelp": "U kunt het uiterlijk van uw File Browser aanpassen door de naam te wijzigen, het logo te vervangen, aangepaste stijlen toe te voegen en zelfs externe links naar GitHub uit te schakelen.\nVoor meer informatie over custom branding, bekijk {0}.",
|
||||||
|
"changePassword": "Wachtwoord wijzigen",
|
||||||
|
"commandRunner": "Opdracht uitvoeren",
|
||||||
|
"commandRunnerHelp": "Hier kunt u opdrachten instellen die worden uitgevoerd in de benoemde gebeurtenissen. Noteer één opdracht per regel. De omgevingsvariabelen {0} en {1} zijn beschikbaar, waarbij {0} relatief is ten opzichte van {1}. Raadpleeg {2} voor meer informatie over deze functie en de beschikbare omgevingsvariabelen.",
|
||||||
|
"commandsUpdated": "Opdrachten bijgewerkt!",
|
||||||
|
"createUserDir": "Maak bij het aanmaken van een nieuwe gebruiker automatisch een thuismap aan",
|
||||||
|
"minimumPasswordLength": "Minimale wachtwoordlengte",
|
||||||
|
"tusUploads": "Uploads in brokken",
|
||||||
|
"tusUploadsHelp": "File Browser ondersteunt bestandsuploads in brokken, waardoor efficiënte, betrouwbare, hervatbare bestandsuploads kunnen worden verricht, zelfs over onbetrouwbare netwerken.",
|
||||||
|
"tusUploadsChunkSize": "Geeft de maximale grootte van een verzoek aan (directe uploads worden gebruikt voor kleinere uploads). U kunt een geheel getal invoeren dat de bytegrootte aangeeft, of een tekenreeks zoals 10MB, 1GB enz.",
|
||||||
|
"tusUploadsRetryCount": "Aantal nieuwe pogingen om uit te voeren als een deel niet kan worden geüpload.",
|
||||||
|
"userHomeBasePath": "Basispad voor Thuismappen van de gebruikers",
|
||||||
|
"userScopeGenerationPlaceholder": "Het bereik wordt automatisch gegenereeerd",
|
||||||
|
"createUserHomeDirectory": "Thuismap voor de gebruiker aanmaken",
|
||||||
|
"customStylesheet": "Aangepaste stylesheet",
|
||||||
|
"defaultUserDescription": "Dit zijn de standaardinstellingen voor nieuwe gebruikers.",
|
||||||
|
"disableExternalLinks": "Externe links uitschakelen (behalve documentatie)",
|
||||||
|
"disableUsedDiskPercentage": "Grafiek van gebruikte schijfruimte uitschakelen",
|
||||||
|
"documentation": "documentatie",
|
||||||
|
"examples": "Voorbeelden",
|
||||||
|
"executeOnShell": "Uitvoeren in opdrachtvenster",
|
||||||
|
"executeOnShellDescription": "File Browser voert de opdrachten standaard uit door het rechtstreeks oproepen van hun hun binaire bestanden. Als u ze in plaats daarvan wilt uitvoeren in een opdrachtvenster (zoals Bash of PowerShell), kunt u dit hier definiëren met de vereiste argumenten en vlaggen. Zo 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 toestaan/niet toestaan-regels welke van toepassing zijn op alle gebruikers. U kunt voor elke gebruiker specifieke regels definiëren om deze te overschrijven.",
|
||||||
|
"globalSettings": "Algemene instellingen",
|
||||||
|
"hideDotfiles": "dot-bestanden verbergen",
|
||||||
|
"insertPath": "Pad invoegen",
|
||||||
|
"insertRegex": "Regex-expressie invoegen",
|
||||||
|
"instanceName": "Naam van de instantie",
|
||||||
|
"language": "Taal",
|
||||||
|
"lockPassword": "Voorkomen dat de gebruiker het wachtwoord wijzigt",
|
||||||
|
"newPassword": "Uw nieuwe wachtwoord",
|
||||||
|
"newPasswordConfirm": "Uw nieuwe wachtwoord bevestigen",
|
||||||
|
"newUser": "Nieuwe gebruiker",
|
||||||
|
"password": "Wachtwoord",
|
||||||
|
"passwordUpdated": "Wachtwoord bijgewerkt!",
|
||||||
|
"path": "Pad",
|
||||||
|
"perm": {
|
||||||
|
"create": "Bestanden en mappen aanmaken",
|
||||||
|
"delete": "Bestanden en mappen verwijderen",
|
||||||
|
"download": "Downloaden",
|
||||||
|
"execute": "Opdrachten uitvoeren",
|
||||||
|
"modify": "Bestanden bewerken",
|
||||||
|
"rename": "Bestanden of mappen hernoemen of verplaatsen",
|
||||||
|
"share": "Bestanden delen (download toestemming vereisen)"
|
||||||
|
},
|
||||||
|
"permissions": "Machtigingen",
|
||||||
|
"permissionsHelp": " kunt de gebruiker instellen als beheerder of de machtigingen afzonderlijk kiezen. Als u \"Beheerder\" selecteert, worden alle overige opties automatisch ingeschakeld. Het beheer van gebruikers blijft een privilege van een beheerder.\n",
|
||||||
|
"profileSettings": "Profielinstellingen",
|
||||||
|
"redirectAfterCopyMove": "Doorverwijzen naar bestemming na kopiëren/verplaatsen",
|
||||||
|
"ruleExample1": "voorkomt de toegang tot dot-bestanden (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 voor deze specifieke gebruiker een reeks toestaan/niet toestaan-regels definiëren. De geblokkeerde bestanden verschijnen niet in de lijsten en zijn niet toegankelijk voor de gebruiker. Regex wordt ondersteund en paden zijn relatief ten opzichte van het bereik van gebruikers.\n",
|
||||||
|
"scope": "Bereik",
|
||||||
|
"setDateFormat": "Exacte datumformaat instellen",
|
||||||
|
"settingsUpdated": "Instellingen bijgewerkt!",
|
||||||
|
"shareDuration": "Duur van het delen",
|
||||||
|
"shareManagement": "Beheer van gedeelde mappen en bestanden",
|
||||||
|
"shareDeleted": "Delen opheffen!",
|
||||||
|
"singleClick": "Bestanden en mappen met een enkele klik openen",
|
||||||
|
"sunsetBody": "This project is being wound down. It is archived on 2026-09-01, after which there will be no further releases, bug fixes, or security fixes. Existing releases and Docker images stay online. Do not expose this instance directly to the internet without authentication in front of it.",
|
||||||
|
"sunsetLink": "Read the project status, known unfixed security issues, and hardening guidance",
|
||||||
|
"sunsetTitle": "File Browser is being archived",
|
||||||
|
"themes": {
|
||||||
|
"default": "Systeem standaard",
|
||||||
|
"dark": "Donker",
|
||||||
|
"light": "Licht",
|
||||||
|
"title": "Thema"
|
||||||
|
},
|
||||||
|
"user": "Gebruiker",
|
||||||
|
"userCommands": "Opdrachten",
|
||||||
|
"userCommandsHelp": "Een lijst met beschikbare opdrachten voor de gebruiker gescheiden door spaties. Voorbeeld:\n",
|
||||||
|
"userCreated": "Gebruiker aangemaakt!",
|
||||||
|
"userDefaults": "Standaardinstellingen van gebruiker",
|
||||||
|
"userDeleted": "Gebruiker verwijderd!",
|
||||||
|
"userManagement": "Gebruikers beheren",
|
||||||
|
"userUpdated": "Gebruiker bijgewerkt!",
|
||||||
|
"username": "Gebruikersnaam",
|
||||||
|
"users": "Gebruikers",
|
||||||
|
"currentPassword": "Uw huidige wachtwoord"
|
||||||
|
},
|
||||||
|
"sidebar": {
|
||||||
|
"diskUsed": "{used} van {total} gebruikt",
|
||||||
|
"help": "Hulp",
|
||||||
|
"hugoNew": "Hugo Nieuw",
|
||||||
|
"login": "Inloggen",
|
||||||
|
"logout": "Uitloggen",
|
||||||
|
"myFiles": "Mijn bestanden",
|
||||||
|
"newFile": "Nieuw bestand",
|
||||||
|
"newFolder": "Nieuwe map",
|
||||||
|
"preview": "Voorbeeld",
|
||||||
|
"settings": "Instellingen",
|
||||||
|
"signup": "Registeren",
|
||||||
|
"siteSettings": "Site-instellingen"
|
||||||
|
},
|
||||||
|
"success": {
|
||||||
|
"linkCopied": "Link gekopieerd!"
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"days": "Dagen",
|
||||||
|
"hours": "Uren",
|
||||||
|
"minutes": "Minuten",
|
||||||
|
"seconds": "Seconden",
|
||||||
|
"unit": "Tijdseenheid"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Opptater",
|
"update": "Opptater",
|
||||||
"upload": "Last opp",
|
"upload": "Last opp",
|
||||||
"openFile": "Open file",
|
"openFile": "Open file",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Slett",
|
"discardChanges": "Slett",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Lagre Endringane ",
|
"saveChanges": "Lagre Endringane ",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Nedlast filen",
|
"downloadFile": "Nedlast filen",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "velg fil eller katalog",
|
"click": "velg fil eller katalog",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Velg et alternativ for opplasting.",
|
"uploadMessage": "Velg et alternativ for opplasting.",
|
||||||
"optionalPassword": "Valgfritt passord",
|
"optionalPassword": "Valgfritt passord",
|
||||||
"resolution": "Oppløysning",
|
"resolution": "Oppløysning",
|
||||||
"discardEditorChanges": "Er du sikker på at du vil forkaste endringene du har gjort?"
|
"discardEditorChanges": "Er du sikker på at du vil forkaste endringene du har gjort?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Bilde",
|
"images": "Bilde",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Tilaterser",
|
"permissions": "Tilaterser",
|
||||||
"permissionsHelp": "Du kan angi brukeren som administrator eller velge tillatelsene individuelt. Hvis du velger «Administrator», vil alle de andre alternativene bli automatisk avkrysset. Administrasjon av brukere er fortsatt et privilegium for en administrator.\n",
|
"permissionsHelp": "Du kan angi brukeren som administrator eller velge tillatelsene individuelt. Hvis du velger «Administrator», vil alle de andre alternativene bli automatisk avkrysset. Administrasjon av brukere er fortsatt et privilegium for en administrator.\n",
|
||||||
"profileSettings": "Profil Innstilinger",
|
"profileSettings": "Profil Innstilinger",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "forhindrer tilgang til noen dotfiler (som .git, .gitignore) i alle mapper.\n",
|
"ruleExample1": "forhindrer tilgang til noen dotfiler (som .git, .gitignore) i alle mapper.\n",
|
||||||
"ruleExample2": "blokkerer tilgangen til filen med navnet Caddyfile på roten av omfanget.",
|
"ruleExample2": "blokkerer tilgangen til filen med navnet Caddyfile på roten av omfanget.",
|
||||||
"rules": "Regler",
|
"rules": "Regler",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Brukeradministrasjon",
|
"userManagement": "Brukeradministrasjon",
|
||||||
"userUpdated": "Bruker opprettet!",
|
"userUpdated": "Bruker opprettet!",
|
||||||
"username": "Brukernavn",
|
"username": "Brukernavn",
|
||||||
"users": "Bruker"
|
"users": "Bruker",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Hjelp",
|
"help": "Hjelp",
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
"rename": "Zmień nazwę",
|
"rename": "Zmień nazwę",
|
||||||
"replace": "Zamień",
|
"replace": "Zamień",
|
||||||
"reportIssue": "Zgłoś problem",
|
"reportIssue": "Zgłoś problem",
|
||||||
|
"resumeTransfer": "Wznów poprzedni transfer",
|
||||||
|
"resumeTransferTooltip": "Pomiń wszystkie pliki powodujące konflikty, z wyjątkiem tych, które są mniejsze na serwerze, ponieważ podejrzewamy, że ich transfer został przerwany.",
|
||||||
"save": "Zapisz",
|
"save": "Zapisz",
|
||||||
"schedule": "Harmonogram",
|
"schedule": "Harmonogram",
|
||||||
"search": "Szukaj",
|
"search": "Szukaj",
|
||||||
@@ -42,11 +44,17 @@
|
|||||||
"update": "Aktualizuj",
|
"update": "Aktualizuj",
|
||||||
"upload": "Wyślij",
|
"upload": "Wyślij",
|
||||||
"openFile": "Otwórz plik",
|
"openFile": "Otwórz plik",
|
||||||
|
"openDirect": "Otwórz bezpośrednio",
|
||||||
"discardChanges": "Odrzuć",
|
"discardChanges": "Odrzuć",
|
||||||
|
"stopSearch": "Zatrzymaj wyszukiwanie",
|
||||||
"saveChanges": "Zapisz zmiany",
|
"saveChanges": "Zapisz zmiany",
|
||||||
"editAsText": "Edytuj jako tekst",
|
"editAsText": "Edytuj jako tekst",
|
||||||
"increaseFontSize": "Zwiększ rozmiar czcionki",
|
"increaseFontSize": "Zwiększ rozmiar czcionki",
|
||||||
"decreaseFontSize": "Zmniejsz rozmiar czcionki"
|
"decreaseFontSize": "Zmniejsz rozmiar czcionki",
|
||||||
|
"overrideAll": "Zastąp wszystkie pliki w folderze docelowym",
|
||||||
|
"skipAll": "Pomiń wszystkie pliki powodujące konflikty",
|
||||||
|
"renameAll": "Zmień nazwy wszystkich plików (utwórz kopię)",
|
||||||
|
"singleDecision": "Podejmij decyzję dla każdego pliku powodującego konflikt"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Pobierz plik",
|
"downloadFile": "Pobierz plik",
|
||||||
@@ -87,7 +95,8 @@
|
|||||||
"comma": "Przecinek (,)",
|
"comma": "Przecinek (,)",
|
||||||
"semicolon": "Średnik (;)",
|
"semicolon": "Średnik (;)",
|
||||||
"both": "Zarówno (,), jak i (;)"
|
"both": "Zarówno (,), jak i (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "Kodowanie pliku"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "zaznacz plik lub folder",
|
"click": "zaznacz plik lub folder",
|
||||||
@@ -158,7 +167,19 @@
|
|||||||
"uploadMessage": "Wybierz opcję przesyłania.",
|
"uploadMessage": "Wybierz opcję przesyłania.",
|
||||||
"optionalPassword": "Opcjonalne hasło",
|
"optionalPassword": "Opcjonalne hasło",
|
||||||
"resolution": "Rozdzielczość",
|
"resolution": "Rozdzielczość",
|
||||||
"discardEditorChanges": "Czy na pewno chcesz odrzucić wprowadzone zmiany?"
|
"discardEditorChanges": "Czy na pewno chcesz odrzucić wprowadzone zmiany?",
|
||||||
|
"replaceOrSkip": "Zastąp lub pomiń pliki",
|
||||||
|
"resolveConflict": "Które pliki chcesz zachować?",
|
||||||
|
"singleConflictResolve": "Jeśli wybierzesz obie wersje, do nazwy kopiowanego pliku zostanie dodany numer.",
|
||||||
|
"fastConflictResolve": "W folderze docelowym liczba plików o tej samej nazwie to {count}.",
|
||||||
|
"uploadingFiles": "Wysyłanie plików",
|
||||||
|
"filesInOrigin": "Pliki w miejscu pochodzenia",
|
||||||
|
"filesInDest": "Pliki w miejscu docelowym",
|
||||||
|
"override": "Zastąp",
|
||||||
|
"skip": "Pomiń",
|
||||||
|
"forbiddenError": "Błąd zabronionego dostępu",
|
||||||
|
"currentPassword": "Twoje hasło",
|
||||||
|
"currentPasswordMessage": "Wpisz swoje hasło, aby zatwierdzić tę czynność."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Obrazy",
|
"images": "Obrazy",
|
||||||
@@ -226,11 +247,12 @@
|
|||||||
"execute": "Wykonywanie poleceń",
|
"execute": "Wykonywanie poleceń",
|
||||||
"modify": "Edytowanie plików",
|
"modify": "Edytowanie plików",
|
||||||
"rename": "Zmienianie nazwy lub przenoszenie plików i katalogów",
|
"rename": "Zmienianie nazwy lub przenoszenie plików i katalogów",
|
||||||
"share": "Udostępnianie plików"
|
"share": "Udostępnianie plików (wymaga uprawnienia do pobierania)"
|
||||||
},
|
},
|
||||||
"permissions": "Uprawnienia",
|
"permissions": "Uprawnienia",
|
||||||
"permissionsHelp": "Możesz ustawić użytkownika jako administratora lub wybrać uprawnienia indywidualnie. Jeśli wybierzesz „Administrator”, wszystkie pozostałe opcje zostaną automatycznie zaznaczone. Zarządzanie użytkownikami pozostaje przywilejem administratora.\n",
|
"permissionsHelp": "Możesz ustawić użytkownika jako administratora lub wybrać uprawnienia indywidualnie. Jeśli wybierzesz „Administrator”, wszystkie pozostałe opcje zostaną automatycznie zaznaczone. Zarządzanie użytkownikami pozostaje przywilejem administratora.\n",
|
||||||
"profileSettings": "Twój profil",
|
"profileSettings": "Ustawienia profilu",
|
||||||
|
"redirectAfterCopyMove": "Przekieruj do miejsca docelowego po skopiowaniu lub przeniesieniu",
|
||||||
"ruleExample1": "uniemożliwia dostęp do plików poprzedzonych kropką (takich jak .git, .gitignore) we wszystkich folderach.\n",
|
"ruleExample1": "uniemożliwia dostęp do plików poprzedzonych kropką (takich jak .git, .gitignore) we wszystkich folderach.\n",
|
||||||
"ruleExample2": "blokuje dostęp do pliku o nazwie Caddyfile w katalogu głównym zakresu.",
|
"ruleExample2": "blokuje dostęp do pliku o nazwie Caddyfile w katalogu głównym zakresu.",
|
||||||
"rules": "Uprawnienia",
|
"rules": "Uprawnienia",
|
||||||
@@ -242,6 +264,9 @@
|
|||||||
"shareManagement": "Zarządzanie udostępnianiem",
|
"shareManagement": "Zarządzanie udostępnianiem",
|
||||||
"shareDeleted": "Udostępnienie usunięte!",
|
"shareDeleted": "Udostępnienie usunięte!",
|
||||||
"singleClick": "Używaj pojedynczych kliknięć, aby otwierać pliki i foldery",
|
"singleClick": "Używaj pojedynczych kliknięć, aby otwierać pliki i foldery",
|
||||||
|
"sunsetBody": "This project is being wound down. It is archived on 2026-09-01, after which there will be no further releases, bug fixes, or security fixes. Existing releases and Docker images stay online. Do not expose this instance directly to the internet without authentication in front of it.",
|
||||||
|
"sunsetLink": "Read the project status, known unfixed security issues, and hardening guidance",
|
||||||
|
"sunsetTitle": "File Browser is being archived",
|
||||||
"themes": {
|
"themes": {
|
||||||
"default": "Domyślny systemowy",
|
"default": "Domyślny systemowy",
|
||||||
"dark": "Ciemny",
|
"dark": "Ciemny",
|
||||||
@@ -257,9 +282,11 @@
|
|||||||
"userManagement": "Zarządzanie użytkownikami",
|
"userManagement": "Zarządzanie użytkownikami",
|
||||||
"userUpdated": "Użytkownik zapisany!",
|
"userUpdated": "Użytkownik zapisany!",
|
||||||
"username": "Nazwa użytkownika",
|
"username": "Nazwa użytkownika",
|
||||||
"users": "Użytkownicy"
|
"users": "Użytkownicy",
|
||||||
|
"currentPassword": "Twoje aktualne hasło"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
|
"diskUsed": "Wykorzystano {used} z {total}",
|
||||||
"help": "Pomoc",
|
"help": "Pomoc",
|
||||||
"hugoNew": "Nowy Hugo",
|
"hugoNew": "Nowy Hugo",
|
||||||
"login": "Zaloguj",
|
"login": "Zaloguj",
|
||||||
|
|||||||
@@ -42,11 +42,17 @@
|
|||||||
"update": "Atualizar",
|
"update": "Atualizar",
|
||||||
"upload": "Enviar",
|
"upload": "Enviar",
|
||||||
"openFile": "Abrir",
|
"openFile": "Abrir",
|
||||||
|
"openDirect": "View raw",
|
||||||
"discardChanges": "Discard",
|
"discardChanges": "Discard",
|
||||||
|
"stopSearch": "Stop searching",
|
||||||
"saveChanges": "Save changes",
|
"saveChanges": "Save changes",
|
||||||
"editAsText": "Edit as Text",
|
"editAsText": "Edit as Text",
|
||||||
"increaseFontSize": "Increase font size",
|
"increaseFontSize": "Increase font size",
|
||||||
"decreaseFontSize": "Decrease font size"
|
"decreaseFontSize": "Decrease font size",
|
||||||
|
"overrideAll": "Replace all files in destination folder",
|
||||||
|
"skipAll": "Skip all conflicting files",
|
||||||
|
"renameAll": "Rename all files (create a copy)",
|
||||||
|
"singleDecision": "Decide for each conflicting file"
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"downloadFile": "Baixar arquivo",
|
"downloadFile": "Baixar arquivo",
|
||||||
@@ -87,7 +93,8 @@
|
|||||||
"comma": "Comma (,)",
|
"comma": "Comma (,)",
|
||||||
"semicolon": "Semicolon (;)",
|
"semicolon": "Semicolon (;)",
|
||||||
"both": "Both (,) and (;)"
|
"both": "Both (,) and (;)"
|
||||||
}
|
},
|
||||||
|
"fileEncoding": "File Encoding"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
"click": "selecionar pasta ou arquivo",
|
"click": "selecionar pasta ou arquivo",
|
||||||
@@ -158,7 +165,19 @@
|
|||||||
"uploadMessage": "Selecione uma opção para enviar.",
|
"uploadMessage": "Selecione uma opção para enviar.",
|
||||||
"optionalPassword": "Senha opcional",
|
"optionalPassword": "Senha opcional",
|
||||||
"resolution": "Resolution",
|
"resolution": "Resolution",
|
||||||
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?"
|
"discardEditorChanges": "Are you sure you wish to discard the changes you've made?",
|
||||||
|
"replaceOrSkip": "Replace or skip files",
|
||||||
|
"resolveConflict": "Which files do you want to keep?",
|
||||||
|
"singleConflictResolve": "If you select both versions, a number will be added to the name of the copied file.",
|
||||||
|
"fastConflictResolve": "The destination folder there are {count} files with same name.",
|
||||||
|
"uploadingFiles": "Uploading files",
|
||||||
|
"filesInOrigin": "Files in origin",
|
||||||
|
"filesInDest": "Files in destination",
|
||||||
|
"override": "Overwrite",
|
||||||
|
"skip": "Skip",
|
||||||
|
"forbiddenError": "Forbidden Error",
|
||||||
|
"currentPassword": "Your password",
|
||||||
|
"currentPasswordMessage": "Enter your password to validate this action."
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"images": "Imagens",
|
"images": "Imagens",
|
||||||
@@ -231,6 +250,7 @@
|
|||||||
"permissions": "Permissões",
|
"permissions": "Permissões",
|
||||||
"permissionsHelp": "Pode definir o usuário como administrador ou escolher as permissões manualmente. Se selecionar a opção \"Administrador\", todas as outras opções serão automaticamente selecionadas. A gestão dos usuários é um privilégio restringido aos administradores.\n",
|
"permissionsHelp": "Pode definir o usuário como administrador ou escolher as permissões manualmente. Se selecionar a opção \"Administrador\", todas as outras opções serão automaticamente selecionadas. A gestão dos usuários é um privilégio restringido aos administradores.\n",
|
||||||
"profileSettings": "Configurações do usuário",
|
"profileSettings": "Configurações do usuário",
|
||||||
|
"redirectAfterCopyMove": "Redirect to destination after copy/move",
|
||||||
"ruleExample1": "previne o acesso a qualquer \"dotfile\" (como .git, .gitignore) em qualquer pasta\n",
|
"ruleExample1": "previne o acesso a qualquer \"dotfile\" (como .git, .gitignore) em qualquer pasta\n",
|
||||||
"ruleExample2": "bloqueia o acesso ao arquivo chamado Caddyfile.",
|
"ruleExample2": "bloqueia o acesso ao arquivo chamado Caddyfile.",
|
||||||
"rules": "Regras",
|
"rules": "Regras",
|
||||||
@@ -257,7 +277,8 @@
|
|||||||
"userManagement": "Gerenciamento de usuários",
|
"userManagement": "Gerenciamento de usuários",
|
||||||
"userUpdated": "Usuário atualizado!",
|
"userUpdated": "Usuário atualizado!",
|
||||||
"username": "Nome do usuário",
|
"username": "Nome do usuário",
|
||||||
"users": "Usuários"
|
"users": "Usuários",
|
||||||
|
"currentPassword": "Your Current Password"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"help": "Ajuda",
|
"help": "Ajuda",
|
||||||
|
|||||||
Loaded 100 of 201 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user