hfs 0.42.2 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -12
- package/admin/assets/index-5cd667a5.js +511 -0
- package/admin/assets/index-8ff39373.css +1 -0
- package/{frontend/assets/sha512-bce9fb1c.js → admin/assets/sha512-55ff2fa3.js} +1 -1
- package/admin/index.html +2 -2
- package/frontend/assets/index-27488fde.js +94 -0
- package/frontend/assets/index-54a5c76f.css +1 -0
- package/{admin/assets/sha512-af87c1bd.js → frontend/assets/sha512-8ebf6e2a.js} +1 -1
- package/frontend/fontello.css +9 -3
- package/frontend/fontello.woff2 +0 -0
- package/frontend/index.html +2 -2
- package/package.json +2 -2
- package/plugins/antibrute/plugin.js +1 -1
- package/plugins/download-counter/plugin.js +10 -3
- package/plugins/download-counter/public/main.js +12 -2
- package/src/adminApis.js +3 -3
- package/src/api.accounts.js +2 -1
- package/src/api.file_list.js +15 -2
- package/src/api.lang.js +8 -11
- package/src/api.vfs.js +11 -5
- package/src/block.js +6 -20
- package/src/config.js +6 -2
- package/src/const.js +2 -2
- package/src/customHtml.js +1 -1
- package/src/frontEndApis.js +1 -26
- package/src/lang.js +77 -0
- package/src/langs/hfs-lang-it.json +100 -0
- package/src/langs/hfs-lang-ko.json +103 -0
- package/src/langs/hfs-lang-ru.json +106 -0
- package/src/langs/hfs-lang-sr.json +108 -0
- package/src/langs/hfs-lang-zh.json +98 -0
- package/src/listen.js +8 -3
- package/src/middlewares.js +10 -0
- package/src/misc.js +13 -9
- package/src/perm.js +1 -1
- package/src/serveFile.js +2 -2
- package/src/serveGuiFiles.js +21 -8
- package/src/upload.js +1 -1
- package/src/vfs.js +27 -33
- package/admin/assets/index-1db4299e.js +0 -511
- package/admin/assets/index-94bbe0be.css +0 -1
- package/frontend/assets/index-297a3f3d.js +0 -94
- package/frontend/assets/index-a09cacfd.css +0 -1
package/README.md
CHANGED
|
@@ -64,12 +64,11 @@ If you don't like this behavior, disable it in the Admin-panel or enter this con
|
|
|
64
64
|
If your system is not Windows/Linux/Mac, you can try this alternative version:
|
|
65
65
|
|
|
66
66
|
1. [install node.js](https://nodejs.org)
|
|
67
|
-
2. execute
|
|
68
|
-
3. launch: `hfs`
|
|
67
|
+
2. execute at command line `npx hfs@latest`
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
The `@latest` part is optional, and ensures that you are always up to date.
|
|
71
70
|
|
|
72
|
-
|
|
71
|
+
Configuration and other files will be stored in `%HOME%/.vfs`
|
|
73
72
|
|
|
74
73
|
### Service
|
|
75
74
|
|
|
@@ -85,15 +84,12 @@ If you want to run HFS as a service
|
|
|
85
84
|
## Internationalization
|
|
86
85
|
|
|
87
86
|
It is possible to show the Front-end in other languages.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Files are named `hfs-lang-CODE.json`, where `CODE` is the ISO code for your language (e.g. pt-br for Brazilian).
|
|
91
|
-
To download a file: open it, right-click on the "Raw" button, Save.
|
|
87
|
+
Translation for some languages is already provided. If you find an error, consider reporting it
|
|
88
|
+
or [editing the source file](https://github.com/rejetto/hfs/tree/main/src/langs).
|
|
92
89
|
|
|
93
|
-
|
|
90
|
+
In the Languages section of the Admin-panel you can install additional language files.
|
|
94
91
|
|
|
95
|
-
|
|
96
|
-
[Check the language configuration of your browser](https://gtranslate.io/detect-browser-language).
|
|
92
|
+
If your language is missing, please consider [translating yourself](https://github.com/rejetto/hfs/wiki/Translation).
|
|
97
93
|
|
|
98
94
|
## Plug-ins
|
|
99
95
|
|
|
@@ -169,7 +165,8 @@ This is enough, but you may want to configure generated links accordingly:
|
|
|
169
165
|
|
|
170
166
|
## Hidden features
|
|
171
167
|
|
|
172
|
-
-
|
|
168
|
+
- Appending `#LOGIN` to address will bring up the login dialog
|
|
169
|
+
- Appending ?lang=CODE to address will force a specific language
|
|
173
170
|
|
|
174
171
|
## Contribute
|
|
175
172
|
|