hfs 0.42.3 → 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 +6 -8
- package/admin/assets/{index-08017e15.js → index-5cd667a5.js} +134 -134
- package/admin/assets/index-8ff39373.css +1 -0
- package/{frontend/assets/sha512-f6798733.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-69b26793.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 +1 -1
- 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.file_list.js +15 -2
- package/src/api.lang.js +8 -11
- package/src/api.vfs.js +2 -1
- 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 +19 -27
- package/admin/assets/index-94bbe0be.css +0 -1
- package/frontend/assets/index-5f125477.js +0 -94
- package/frontend/assets/index-a09cacfd.css +0 -1
package/README.md
CHANGED
|
@@ -84,15 +84,12 @@ If you want to run HFS as a service
|
|
|
84
84
|
## Internationalization
|
|
85
85
|
|
|
86
86
|
It is possible to show the Front-end in other languages.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Files are named `hfs-lang-CODE.json`, where `CODE` is the ISO code for your language (e.g. pt-br for Brazilian).
|
|
90
|
-
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).
|
|
91
89
|
|
|
92
|
-
|
|
90
|
+
In the Languages section of the Admin-panel you can install additional language files.
|
|
93
91
|
|
|
94
|
-
|
|
95
|
-
[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).
|
|
96
93
|
|
|
97
94
|
## Plug-ins
|
|
98
95
|
|
|
@@ -168,7 +165,8 @@ This is enough, but you may want to configure generated links accordingly:
|
|
|
168
165
|
|
|
169
166
|
## Hidden features
|
|
170
167
|
|
|
171
|
-
-
|
|
168
|
+
- Appending `#LOGIN` to address will bring up the login dialog
|
|
169
|
+
- Appending ?lang=CODE to address will force a specific language
|
|
172
170
|
|
|
173
171
|
## Contribute
|
|
174
172
|
|