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.
Files changed (41) hide show
  1. package/README.md +6 -8
  2. package/admin/assets/{index-08017e15.js → index-5cd667a5.js} +134 -134
  3. package/admin/assets/index-8ff39373.css +1 -0
  4. package/{frontend/assets/sha512-f6798733.js → admin/assets/sha512-55ff2fa3.js} +1 -1
  5. package/admin/index.html +2 -2
  6. package/frontend/assets/index-27488fde.js +94 -0
  7. package/frontend/assets/index-54a5c76f.css +1 -0
  8. package/{admin/assets/sha512-69b26793.js → frontend/assets/sha512-8ebf6e2a.js} +1 -1
  9. package/frontend/fontello.css +9 -3
  10. package/frontend/fontello.woff2 +0 -0
  11. package/frontend/index.html +2 -2
  12. package/package.json +1 -1
  13. package/plugins/antibrute/plugin.js +1 -1
  14. package/plugins/download-counter/plugin.js +10 -3
  15. package/plugins/download-counter/public/main.js +12 -2
  16. package/src/adminApis.js +3 -3
  17. package/src/api.file_list.js +15 -2
  18. package/src/api.lang.js +8 -11
  19. package/src/api.vfs.js +2 -1
  20. package/src/block.js +6 -20
  21. package/src/config.js +6 -2
  22. package/src/const.js +2 -2
  23. package/src/customHtml.js +1 -1
  24. package/src/frontEndApis.js +1 -26
  25. package/src/lang.js +77 -0
  26. package/src/langs/hfs-lang-it.json +100 -0
  27. package/src/langs/hfs-lang-ko.json +103 -0
  28. package/src/langs/hfs-lang-ru.json +106 -0
  29. package/src/langs/hfs-lang-sr.json +108 -0
  30. package/src/langs/hfs-lang-zh.json +98 -0
  31. package/src/listen.js +8 -3
  32. package/src/middlewares.js +10 -0
  33. package/src/misc.js +13 -9
  34. package/src/perm.js +1 -1
  35. package/src/serveFile.js +2 -2
  36. package/src/serveGuiFiles.js +21 -8
  37. package/src/upload.js +1 -1
  38. package/src/vfs.js +19 -27
  39. package/admin/assets/index-94bbe0be.css +0 -1
  40. package/frontend/assets/index-5f125477.js +0 -94
  41. 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
- In the Languages section of the Admin-panel you'll be able to install lang files.
88
- You can find some of these files at https://github.com/rejetto/hfs/tree/main/langs
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
- If your language is missing, please consider [translating yourself](#translate-to-your-language).
90
+ In the Languages section of the Admin-panel you can install additional language files.
93
91
 
94
- Translation is applied automatically based on the configuration of the visitor's browser.
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
- - Going to address `#LOGIN` will bring up the login dialog
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