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
@@ -0,0 +1 @@
1
+ :root{height:100dvh}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:100vh;background:#000}#root{min-height:100%;display:flex}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.MuiTreeItem-content{box-sizing:border-box}ol,ul{margin-top:.2em}.dialog-backdrop{position:fixed;inset:0;background:#888a;display:flex;justify-content:center;align-items:center;z-index:1000}.dialog{background:#fff;background:var(--bg);padding:max(.5em,1vw);border-radius:1em;position:relative;margin:0 3vw;overflow:hidden;max-height:calc(100vh - 2em);display:flex;flex-direction:column;justify-content:center}.dialog-icon{color:#fff;background-color:var(--color);position:absolute;top:0;width:2em;height:1.8em;text-align:center;border-radius:.8em 0}.dialog-title{font-size:120%;margin-top:-.4em;padding:0 .5em}.dialog-closer~.dialog-title{margin-right:2em}.dialog-type~.dialog-title{margin-left:2em}.dialog-icon~.dialog-title{text-align:center}.dialog-closer{border-radius:0 .8em;right:0;padding:0;background-color:#c88}.dialog-icon~.dialog-content{margin-top:2em}.dialog-type{left:0;top:0;overflow:hidden;line-height:1.8em;opacity:.8}.dialog-content{overflow:auto;max-height:calc(100vh - 4.5em)}.dialog-content p{white-space:pre-wrap;margin:.5em 0}.dialog-confirm .dialog-content button{margin-top:1em}.dialog-alert-info{--color: #282 }.dialog-alert-warning{--color: #c91 }.dialog-alert-error{--color: #822}@media (max-width: 42em){.dialog-icon{font-size:120%}.dialog-icon~.dialog-content{margin-top:2.5em}.dialog-title{margin-top:-.2em}}.dialog-prompt label{display:block;margin-bottom:.5em;margin-left:.1em}
@@ -1,4 +1,4 @@
1
- import{c as SF}from"./index-297a3f3d.js";function OF(iF,hF){for(var eF=0;eF<hF.length;eF++){const tF=hF[eF];if(typeof tF!="string"&&!Array.isArray(tF)){for(const w in tF)if(w!=="default"&&!(w in iF)){const lF=Object.getOwnPropertyDescriptor(tF,w);lF&&Object.defineProperty(iF,w,lF.get?lF:{enumerable:!0,get:()=>tF[w]})}}}return Object.freeze(Object.defineProperty(iF,Symbol.toStringTag,{value:"Module"}))}var EF={},UF={get exports(){return EF},set exports(iF){EF=iF}};/*
1
+ import{c as SF}from"./index-5cd667a5.js";function OF(iF,hF){for(var eF=0;eF<hF.length;eF++){const tF=hF[eF];if(typeof tF!="string"&&!Array.isArray(tF)){for(const w in tF)if(w!=="default"&&!(w in iF)){const lF=Object.getOwnPropertyDescriptor(tF,w);lF&&Object.defineProperty(iF,w,lF.get?lF:{enumerable:!0,get:()=>tF[w]})}}}return Object.freeze(Object.defineProperty(iF,Symbol.toStringTag,{value:"Module"}))}var EF={},UF={get exports(){return EF},set exports(iF){EF=iF}};/*
2
2
  * [js-sha512]{@link https://github.com/emn178/js-sha512}
3
3
  *
4
4
  * @version 0.8.0
package/admin/index.html CHANGED
@@ -7,8 +7,8 @@
7
7
  <title>HFS Admin</title>
8
8
 
9
9
  <link rel="icon" type="image/svg+xml" href="/hfs-logo-icon.svg" />
10
- <script type="module" crossorigin src="/assets/index-1db4299e.js"></script>
11
- <link rel="stylesheet" href="/assets/index-94bbe0be.css">
10
+ <script type="module" crossorigin src="/assets/index-5cd667a5.js"></script>
11
+ <link rel="stylesheet" href="/assets/index-8ff39373.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="root"></div>