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.
Files changed (44) hide show
  1. package/README.md +4 -2
  2. package/admin/assets/index-6afd4b06.js +542 -0
  3. package/{frontend/assets/sha512-70e9a0d9.js → admin/assets/sha512-f5f12dc1.js} +1 -1
  4. package/admin/index.html +1 -1
  5. package/central.json +30 -8
  6. package/frontend/assets/index-3a379840.js +94 -0
  7. package/frontend/assets/index-db5f0e4b.css +1 -0
  8. package/{admin/assets/sha512-2627feb7.js → frontend/assets/sha512-3392c31f.js} +1 -1
  9. package/frontend/index.html +2 -2
  10. package/package.json +1 -2
  11. package/plugins/download-counter/plugin.js +14 -15
  12. package/src/adminApis.js +1 -0
  13. package/src/api.auth.js +6 -6
  14. package/src/api.file_list.js +15 -8
  15. package/src/api.net.js +97 -72
  16. package/src/api.plugins.js +15 -26
  17. package/src/api.vfs.js +9 -12
  18. package/src/block.js +14 -1
  19. package/src/commands.js +1 -1
  20. package/src/comments.js +49 -0
  21. package/src/config.js +1 -5
  22. package/src/const.js +3 -2
  23. package/src/cross.js +43 -2
  24. package/src/customHtml.js +1 -1
  25. package/src/debounceAsync.js +18 -1
  26. package/src/frontEndApis.js +28 -6
  27. package/src/github.js +24 -30
  28. package/src/langs/hfs-lang-it.json +5 -3
  29. package/src/langs/hfs-lang-ru.json +6 -4
  30. package/src/listen.js +25 -15
  31. package/src/middlewares.js +3 -1
  32. package/src/misc.js +6 -5
  33. package/src/perm.js +19 -12
  34. package/src/plugins.js +62 -38
  35. package/src/serveFile.js +2 -3
  36. package/src/upload.js +5 -1
  37. package/src/util-files.js +38 -2
  38. package/src/util-http.js +8 -6
  39. package/src/vfs.js +24 -32
  40. package/src/watchLoad.js +5 -12
  41. package/src/zip.js +4 -4
  42. package/admin/assets/index-4e55b514.js +0 -536
  43. package/frontend/assets/index-cadcb0e9.css +0 -1
  44. package/frontend/assets/index-e24651da.js +0 -94
@@ -1,4 +1,4 @@
1
- import{g as OF,c as UF}from"./index-e24651da.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:{}};/*
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-4e55b514.js"></script>
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": "I could not see your service",
20
- "regexpSuccess": "I can see your service"
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
- "https://checkip.amazonaws.com",
25
- "https://ipinfo.io/ip",
26
- "https://ifconfig.io/ip"
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
  }