hfs 0.48.3 → 0.49.0-alpha2
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 +4 -2
- package/admin/assets/index-6afd4b06.js +542 -0
- package/{frontend/assets/sha512-70e9a0d9.js → admin/assets/sha512-f5f12dc1.js} +1 -1
- package/admin/index.html +1 -1
- package/central.json +30 -8
- package/frontend/assets/index-3a379840.js +94 -0
- package/frontend/assets/index-db5f0e4b.css +1 -0
- package/{admin/assets/sha512-2627feb7.js → frontend/assets/sha512-3392c31f.js} +1 -1
- package/frontend/index.html +2 -2
- package/package.json +1 -2
- package/plugins/download-counter/plugin.js +14 -15
- package/src/adminApis.js +1 -0
- package/src/api.auth.js +6 -6
- package/src/api.file_list.js +15 -8
- package/src/api.net.js +97 -72
- package/src/api.plugins.js +15 -26
- package/src/api.vfs.js +9 -12
- package/src/block.js +14 -1
- package/src/commands.js +1 -1
- package/src/comments.js +49 -0
- package/src/config.js +1 -5
- package/src/const.js +3 -2
- package/src/cross.js +43 -2
- package/src/customHtml.js +1 -1
- package/src/debounceAsync.js +18 -1
- package/src/frontEndApis.js +28 -6
- package/src/github.js +24 -30
- package/src/langs/hfs-lang-it.json +5 -3
- package/src/langs/hfs-lang-ru.json +6 -4
- package/src/listen.js +25 -15
- package/src/middlewares.js +3 -1
- package/src/misc.js +6 -5
- package/src/perm.js +19 -12
- package/src/plugins.js +62 -38
- package/src/serveFile.js +2 -3
- package/src/upload.js +5 -1
- package/src/util-files.js +38 -2
- package/src/util-http.js +8 -6
- package/src/vfs.js +24 -32
- package/src/watchLoad.js +5 -12
- package/src/zip.js +4 -4
- package/admin/assets/index-4e55b514.js +0 -536
- package/frontend/assets/index-cadcb0e9.css +0 -1
- package/frontend/assets/index-e24651da.js +0 -94
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as OF,c as UF}from"./index-
|
|
1
|
+
import{g as OF,c as UF}from"./index-6afd4b06.js";function gF(sF,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 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 dF={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,7 +7,7 @@
|
|
|
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-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-6afd4b06.js"></script>
|
|
11
11
|
<link rel="stylesheet" href="/assets/index-1c2b890b.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
package/central.json
CHANGED
|
@@ -5,24 +5,46 @@
|
|
|
5
5
|
"url": "https://ports.yougetsignal.com/check-port.php",
|
|
6
6
|
"headers": {"content-type": "application/x-www-form-urlencoded"},
|
|
7
7
|
"method": "post",
|
|
8
|
-
"selector": "p:nth-child(1)",
|
|
9
8
|
"body": "remoteAddress=$IP&portNumber=$PORT",
|
|
10
9
|
"regexpFailure": "is closed",
|
|
11
10
|
"regexpSuccess": "is open"
|
|
12
11
|
},
|
|
13
12
|
{
|
|
14
|
-
"url": "https://canyouseeme.org
|
|
13
|
+
"url": "https://canyouseeme.org",
|
|
15
14
|
"headers": {"content-type": "application/x-www-form-urlencoded"},
|
|
16
15
|
"method": "post",
|
|
17
|
-
"selector": "div.tool > p:nth-child(1)",
|
|
18
16
|
"body": "port=$PORT",
|
|
19
|
-
"regexpFailure": "
|
|
20
|
-
"regexpSuccess": "
|
|
17
|
+
"regexpFailure": "Error:",
|
|
18
|
+
"regexpSuccess": "Success:"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"url": "http://ifconfig.co/port/$PORT?ip=$IP",
|
|
22
|
+
"regexpFailure": "reachable\": false",
|
|
23
|
+
"regexpSuccess": "reachable\": true"
|
|
21
24
|
}
|
|
22
25
|
],
|
|
23
26
|
"publicIpServices": [
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
+
"http://ipv4.icanhazip.com",
|
|
28
|
+
{ "v": 6, "type": "http", "url": "http://ipv6.icanhazip.com" },
|
|
29
|
+
{
|
|
30
|
+
"v": 4, "type": "dns",
|
|
31
|
+
"ips": ["208.67.222.222", "208.67.220.220"],
|
|
32
|
+
"name": "myip.opendns.com", "dnsRecord": "A"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"v": 4, "type": "dns",
|
|
36
|
+
"ips": ["216.239.32.10", "216.239.34.10", "216.239.36.10", "216.239.38.10"],
|
|
37
|
+
"name": "o-o.myaddr.l.google.com", "dnsRecord": "TXT"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"v": 6, "type": "dns",
|
|
41
|
+
"ips": ["2620:0:ccc::2", "2620:0:ccd::2"],
|
|
42
|
+
"name": "myip.opendns.com", "dnsRecord": "AAAA"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"v": 6, "type": "dns",
|
|
46
|
+
"ips": ["2001:4860:4802:32::a", "2001:4860:4802:34::a", "2001:4860:4802:36::a", "2001:4860:4802:38::a"],
|
|
47
|
+
"name": "o-o.myaddr.l.google.com", "dnsRecord": "TXT"
|
|
48
|
+
}
|
|
27
49
|
]
|
|
28
50
|
}
|