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.
Files changed (43) hide show
  1. package/README.md +9 -12
  2. package/admin/assets/index-5cd667a5.js +511 -0
  3. package/admin/assets/index-8ff39373.css +1 -0
  4. package/{frontend/assets/sha512-bce9fb1c.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-af87c1bd.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 +2 -2
  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.accounts.js +2 -1
  18. package/src/api.file_list.js +15 -2
  19. package/src/api.lang.js +8 -11
  20. package/src/api.vfs.js +11 -5
  21. package/src/block.js +6 -20
  22. package/src/config.js +6 -2
  23. package/src/const.js +2 -2
  24. package/src/customHtml.js +1 -1
  25. package/src/frontEndApis.js +1 -26
  26. package/src/lang.js +77 -0
  27. package/src/langs/hfs-lang-it.json +100 -0
  28. package/src/langs/hfs-lang-ko.json +103 -0
  29. package/src/langs/hfs-lang-ru.json +106 -0
  30. package/src/langs/hfs-lang-sr.json +108 -0
  31. package/src/langs/hfs-lang-zh.json +98 -0
  32. package/src/listen.js +8 -3
  33. package/src/middlewares.js +10 -0
  34. package/src/misc.js +13 -9
  35. package/src/perm.js +1 -1
  36. package/src/serveFile.js +2 -2
  37. package/src/serveGuiFiles.js +21 -8
  38. package/src/upload.js +1 -1
  39. package/src/vfs.js +27 -33
  40. package/admin/assets/index-1db4299e.js +0 -511
  41. package/admin/assets/index-94bbe0be.css +0 -1
  42. package/frontend/assets/index-297a3f3d.js +0 -94
  43. 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: `sudo npm -g i hfs`
68
- 3. launch: `hfs`
67
+ 2. execute at command line `npx hfs@latest`
69
68
 
70
- Configuration and other files will be stored in `%HOME%/.vfs`
69
+ The `@latest` part is optional, and ensures that you are always up to date.
71
70
 
72
- With this installation method, you can update with `sudo npm -g update hfs` .
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
- In the Languages section of the Admin-panel you'll be able to install lang files.
89
- You can find some of these files at https://github.com/rejetto/hfs/tree/main/langs
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
- 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.
94
91
 
95
- Translation is applied automatically based on the configuration of the visitor's browser.
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
- - 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
173
170
 
174
171
  ## Contribute
175
172