hfs 0.56.0 → 0.57.0-beta2
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/admin/assets/{index-DlA4sSmp.js → index-Cl7PJ7_4.js} +263 -263
- package/admin/assets/{sha512--f9T-TYW.js → sha512-DwXzavpM.js} +1 -1
- package/admin/index.html +14 -2
- package/frontend/assets/index-legacy-0ZDBWQI9.js +50 -0
- package/frontend/assets/{sha512-legacy-CX3vTVvC.js → sha512-legacy-slBG5k4n.js} +1 -1
- package/frontend/index.html +1 -1
- package/package.json +2 -2
- package/plugins/antibrute/plugin.js +25 -27
- package/src/SendList.js +2 -2
- package/src/acme.js +1 -2
- package/src/adminApis.js +1 -0
- package/src/api.accounts.js +3 -0
- package/src/api.auth.js +27 -4
- package/src/api.get_file_list.js +2 -6
- package/src/api.log.js +9 -4
- package/src/api.monitor.js +1 -1
- package/src/api.plugins.js +13 -0
- package/src/apiMiddleware.js +1 -1
- package/src/auth.js +17 -1
- package/src/comments.js +31 -8
- package/src/config.js +2 -0
- package/src/connections.js +16 -5
- package/src/const.js +4 -4
- package/src/cross-const.js +2 -1
- package/src/cross.js +13 -3
- package/src/customHtml.js +4 -2
- package/src/events.js +7 -5
- package/src/fileAttr.js +10 -5
- package/src/frontEndApis.js +0 -12
- package/src/geo.js +1 -0
- package/src/langs/hfs-lang-ar.json +4 -1
- package/src/langs/hfs-lang-de.json +4 -1
- package/src/langs/hfs-lang-el.json +4 -1
- package/src/langs/hfs-lang-es.json +4 -1
- package/src/langs/hfs-lang-fi.json +4 -1
- package/src/langs/hfs-lang-fr.json +4 -1
- package/src/langs/hfs-lang-hu.json +4 -1
- package/src/langs/hfs-lang-it.json +4 -1
- package/src/langs/hfs-lang-ja.json +4 -1
- package/src/langs/hfs-lang-ko.json +4 -1
- package/src/langs/hfs-lang-ms.json +4 -1
- package/src/langs/hfs-lang-nl.json +4 -1
- package/src/langs/hfs-lang-pt-br.json +4 -1
- package/src/langs/hfs-lang-ro.json +4 -1
- package/src/langs/hfs-lang-ru.json +16 -13
- package/src/langs/hfs-lang-sr.json +4 -1
- package/src/langs/hfs-lang-th.json +4 -1
- package/src/langs/hfs-lang-tr.json +7 -1
- package/src/langs/hfs-lang-uk.json +4 -1
- package/src/langs/hfs-lang-vi.json +8 -5
- package/src/langs/hfs-lang-zh-tw.json +4 -1
- package/src/langs/hfs-lang-zh.json +4 -1
- package/src/listen.js +3 -2
- package/src/log.js +10 -3
- package/src/middlewares.js +7 -23
- package/src/misc.js +6 -35
- package/src/perm.js +5 -3
- package/src/plugins.js +44 -4
- package/src/roots.js +1 -3
- package/src/serveGuiAndSharedFiles.js +18 -10
- package/src/serveGuiFiles.js +2 -4
- package/src/throttler.js +3 -2
- package/src/update.js +1 -1
- package/src/upload.js +1 -1
- package/src/vfs.js +1 -1
- package/README.md +0 -177
- package/frontend/assets/index-legacy-3T51dA5w.js +0 -50
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as UF,g as gF}from"./index-
|
|
1
|
+
import{c as UF,g as gF}from"./index-Cl7PJ7_4.js";function RF(sF,xF){for(var eF=0;eF<xF.length;eF++){const tF=xF[eF];if(typeof tF!="string"&&!Array.isArray(tF)){for(const w in tF)if(w!=="default"&&!(w in sF)){const lF=Object.getOwnPropertyDescriptor(tF,w);lF&&Object.defineProperty(sF,w,lF.get?lF:{enumerable:!0,get:()=>tF[w]})}}}return Object.freeze(Object.defineProperty(sF,Symbol.toStringTag,{value:"Module"}))}var yF={exports:{}};/*
|
|
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,12 +7,24 @@
|
|
|
7
7
|
<link rel="icon" type="image/svg+xml" href="/hfs-logo-icon.svg" />
|
|
8
8
|
<link href="../frontend/fontello.css" rel="stylesheet" />
|
|
9
9
|
<link href="../frontend/fontello.woff2" rel="prefetch" />
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-Cl7PJ7_4.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/index-1er1P1Ap.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<style class="removeAtBoot">@media (prefers-color-scheme: dark) { html { background-color: #000; color: #888; } }</style>
|
|
15
|
-
<div id="root"
|
|
15
|
+
<div id="root">Loading... <span id="loadingPerc"/></div>
|
|
16
16
|
<script nomodule>document.getElementById('root').innerText = "Please use a newer browser"</script>
|
|
17
|
+
<script>
|
|
18
|
+
(function(){ // legacy way to not pollute global scope
|
|
19
|
+
const total = 2600*1000 // no need to be precise, but stay on the abundant side
|
|
20
|
+
const t = setInterval(function() {
|
|
21
|
+
const e = document.getElementById('loadingPerc')
|
|
22
|
+
if (!e) // when load is complete the element will be removed
|
|
23
|
+
return clearInterval(t)
|
|
24
|
+
const v = performance.getEntriesByType('resource').reduce((acc, res) => acc + (res.transferSize || 0), 0)
|
|
25
|
+
e.innerText = Math.min(100, Math.round(v / total * 100)) + '%'
|
|
26
|
+
}, 200)
|
|
27
|
+
})()
|
|
28
|
+
</script>
|
|
17
29
|
</body>
|
|
18
30
|
</html>
|