Browse Source

发布前准备2

SongZihuan 3 months ago
parent
commit
badc5823e6
59 changed files with 111 additions and 233 deletions
  1. 1 1
      docs/404.html
  2. 0 0
      docs/LICENSE_CN.html
  3. 0 0
      docs/LICENSE_US.html
  4. 2 1
      docs/SH_CONFIG.json
  5. 1 1
      docs/error/4xx/400.html
  6. 1 1
      docs/error/4xx/403.html
  7. 1 1
      docs/error/4xx/404.html
  8. 1 1
      docs/error/4xx/404.signal.html
  9. 0 0
      docs/error/4xx/404.songzihuan.signal.html
  10. 1 1
      docs/error/4xx/405.html
  11. 1 1
      docs/error/4xx/4xx.html
  12. 1 1
      docs/error/5xx/500.html
  13. 1 1
      docs/error/5xx/500.signal.html
  14. 0 0
      docs/error/5xx/500.songzihuan.signal.html
  15. 1 1
      docs/error/5xx/501.html
  16. 1 1
      docs/error/5xx/502.html
  17. 1 1
      docs/error/5xx/503.html
  18. 1 1
      docs/error/5xx/504.html
  19. 1 1
      docs/error/5xx/505.html
  20. 1 1
      docs/error/5xx/506.html
  21. 1 1
      docs/error/5xx/507.html
  22. 1 1
      docs/error/5xx/508.html
  23. 1 1
      docs/error/5xx/509.html
  24. 1 1
      docs/error/5xx/510.html
  25. 1 1
      docs/error/5xx/511.html
  26. 1 1
      docs/error/5xx/5xx.html
  27. 0 0
      docs/images/logo_big.0a1f1ba69deff7a9bbb5.png
  28. 0 0
      docs/images/songzihuan.0a1f1ba69deff7a9bbb5.jpg
  29. 0 0
      docs/index.html
  30. 1 1
      docs/index.new.html
  31. 1 1
      docs/index.new.signal.html
  32. 1 0
      docs/js/common.0a1f1ba69deff7a9bbb5.bundle.js
  33. 10 0
      docs/js/common.0a1f1ba69deff7a9bbb5.bundle.js.LICENSE.txt
  34. 0 0
      docs/js/common.36916dbb39118238ec65.bundle.js
  35. 0 0
      docs/js/err404.0a1f1ba69deff7a9bbb5.bundle.js
  36. 0 0
      docs/js/err4xx.0a1f1ba69deff7a9bbb5.bundle.js
  37. 0 0
      docs/js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js
  38. 0 0
      docs/js/index.0a1f1ba69deff7a9bbb5.bundle.js
  39. 0 0
      docs/js/license.0a1f1ba69deff7a9bbb5.bundle.js
  40. 0 0
      docs/js/mitorg.0a1f1ba69deff7a9bbb5.bundle.js
  41. 0 0
      docs/js/new.0a1f1ba69deff7a9bbb5.bundle.js
  42. 0 0
      docs/js/signal.0a1f1ba69deff7a9bbb5.bundle.js
  43. 0 0
      docs/mitorg.html
  44. 0 0
      docs/style/common.0a1f1ba69deff7a9bbb5.bundle.css
  45. 0 0
      docs/style/err404.0a1f1ba69deff7a9bbb5.bundle.css
  46. 0 0
      docs/style/err4xx.0a1f1ba69deff7a9bbb5.bundle.css
  47. 0 0
      docs/style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css
  48. 0 0
      docs/style/index.0a1f1ba69deff7a9bbb5.bundle.css
  49. 0 0
      docs/style/license.0a1f1ba69deff7a9bbb5.bundle.css
  50. 0 0
      docs/style/mitorg.0a1f1ba69deff7a9bbb5.bundle.css
  51. 0 0
      docs/style/new.0a1f1ba69deff7a9bbb5.bundle.css
  52. 1 1
      github-page/cname.js
  53. 24 17
      package.json
  54. 5 147
      pnpm-lock.yaml
  55. 4 0
      src/common.js
  56. 4 4
      src/utils/file.js
  57. 12 13
      webpack_config_dev.js
  58. 13 14
      webpack_config_github.js
  59. 12 13
      webpack_config_prod.js

+ 1 - 1
docs/404.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>404 Error - Page Not Found</title><style>body{font-family:Arial,sans-serif;text-align:center;padding-top:50px;background-color:#f8f8f8}h1{font-size:7em;margin-bottom:.5em;color:#c00}h2{font-size:2em;color:#666}p{font-size:1.2em;color:#333}a{color:#007bff;text-decoration:none}a:hover{text-decoration:underline}</style><link href="./style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>404</h1><h2>Oops! The page you're looking for isn't here.</h2><p>We can't seem to find the page you were trying to reach. This might be because of:</p><ul><li>An outdated link</li><li>A mistyped address</li><li>Or the page has been moved</li></ul><p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p><script defer="defer" src="./js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="./js/signal.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>404 Error - Page Not Found</title><style>body{font-family:Arial,sans-serif;text-align:center;padding-top:50px;background-color:#f8f8f8}h1{font-size:7em;margin-bottom:.5em;color:#c00}h2{font-size:2em;color:#666}p{font-size:1.2em;color:#333}a{color:#007bff;text-decoration:none}a:hover{text-decoration:underline}</style><link href="./style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>404</h1><h2>Oops! The page you're looking for isn't here.</h2><p>We can't seem to find the page you were trying to reach. This might be because of:</p><ul><li>An outdated link</li><li>A mistyped address</li><li>Or the page has been moved</li></ul><p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p><script defer="defer" src="./js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="./js/signal.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
docs/LICENSE_CN.html


File diff suppressed because it is too large
+ 0 - 0
docs/LICENSE_US.html


+ 2 - 1
docs/SH_CONFIG.json

@@ -1,4 +1,5 @@
 {
   "ICP": "粤ICP备2022108417号",
-  "WANGAN": "粤公网安备44011402000783号"
+  "WANGAN": "粤公网安备44011402000783号",
+  "注释:": "若您要运行此网站,并公开发布,请根据当地法律进行ICP备案和网安备案。"
 }

+ 1 - 1
docs/error/4xx/400.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Error 400</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err4xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>Error 400 - Bad Request</h1><p>The request sent to the server was invalid or cannot be otherwise served.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err4xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Error 400</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err4xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>Error 400 - Bad Request</h1><p>The request sent to the server was invalid or cannot be otherwise served.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err4xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/4xx/403.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>403 Forbidden</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err4xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>403</h1><p>Forbidden</p><p>The requested resource is forbidden.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err4xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>403 Forbidden</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err4xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>403</h1><p>Forbidden</p><p>The requested resource is forbidden.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err4xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/4xx/404.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>404 Error - Page Not Found</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err404.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>404</h1><h2>Oops! The page you're looking for isn't here.</h2><p>We can't seem to find the page you were trying to reach. This might be because of:</p><ul><li>An outdated link</li><li>A mistyped address</li><li>Or the page has been moved</li></ul><p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err404.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>404 Error - Page Not Found</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err404.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>404</h1><h2>Oops! The page you're looking for isn't here.</h2><p>We can't seem to find the page you were trying to reach. This might be because of:</p><ul><li>An outdated link</li><li>A mistyped address</li><li>Or the page has been moved</li></ul><p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err404.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/4xx/404.signal.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>404 Error - Page Not Found</title><style>body{font-family:Arial,sans-serif;text-align:center;padding-top:50px;background-color:#f8f8f8}h1{font-size:7em;margin-bottom:.5em;color:#c00}h2{font-size:2em;color:#666}p{font-size:1.2em;color:#333}a{color:#007bff;text-decoration:none}a:hover{text-decoration:underline}</style></head><body><h1>404</h1><h2>Oops! The page you're looking for isn't here.</h2><p>We can't seem to find the page you were trying to reach. This might be because of:</p><ul><li>An outdated link</li><li>A mistyped address</li><li>Or the page has been moved</li></ul><p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p><script defer="defer" src="../../js/signal.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>404 Error - Page Not Found</title><style>body{font-family:Arial,sans-serif;text-align:center;padding-top:50px;background-color:#f8f8f8}h1{font-size:7em;margin-bottom:.5em;color:#c00}h2{font-size:2em;color:#666}p{font-size:1.2em;color:#333}a{color:#007bff;text-decoration:none}a:hover{text-decoration:underline}</style></head><body><h1>404</h1><h2>Oops! The page you're looking for isn't here.</h2><p>We can't seem to find the page you were trying to reach. This might be because of:</p><ul><li>An outdated link</li><li>A mistyped address</li><li>Or the page has been moved</li></ul><p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p><script defer="defer" src="../../js/signal.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
docs/error/4xx/404.songzihuan.signal.html


+ 1 - 1
docs/error/4xx/405.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>405 Method Not Allowed</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err4xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>405 Method Not Allowed</h1><p>The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.</p><p>Please refer to our <a href="/">homepage</a> or contact support if you need assistance.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err4xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>405 Method Not Allowed</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err4xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>405 Method Not Allowed</h1><p>The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.</p><p>Please refer to our <a href="/">homepage</a> or contact support if you need assistance.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err4xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/4xx/4xx.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Client Error Page</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err4xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>Client Error</h1><p>Sorry, but the page you are looking for cannot be accessed.</p><p>If you believe this is an error, please check the URL or contact support.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err4xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Client Error Page</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err4xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>Client Error</h1><p>Sorry, but the page you are looking for cannot be accessed.</p><p>If you believe this is an error, please check the URL or contact support.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err4xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/500.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>500 Internal Server Error</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>500</h1><p>Oops! Something went wrong on our end.</p><p>We're working on getting it fixed. Please try again later.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>500 Internal Server Error</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>500</h1><p>Oops! Something went wrong on our end.</p><p>We're working on getting it fixed. Please try again later.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/500.signal.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>500 Internal Server Error</title><style>body{font-family:Arial,sans-serif;text-align:center;margin-top:50px}h1{font-size:3em;color:#900}p{font-size:1.5em;color:#666}</style></head><body><h1>500</h1><p>Oops! Something went wrong on our end.</p><p>We're working on getting it fixed. Please try again later.</p><script defer="defer" src="../../js/signal.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>500 Internal Server Error</title><style>body{font-family:Arial,sans-serif;text-align:center;margin-top:50px}h1{font-size:3em;color:#900}p{font-size:1.5em;color:#666}</style></head><body><h1>500</h1><p>Oops! Something went wrong on our end.</p><p>We're working on getting it fixed. Please try again later.</p><script defer="defer" src="../../js/signal.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
docs/error/5xx/500.songzihuan.signal.html


+ 1 - 1
docs/error/5xx/501.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>501 Internal Server Error</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>501 Internal Server Error</h1><p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p><p>Sorry, the requested feature is not implemented yet or is currently unavailable.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>501 Internal Server Error</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>501 Internal Server Error</h1><p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p><p>Sorry, the requested feature is not implemented yet or is currently unavailable.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/502.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>502 Bad Gateway</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>502 Bad Gateway</h1><p>The server, while acting as a gateway or proxy, received an invalid response from the upstream server.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>502 Bad Gateway</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>502 Bad Gateway</h1><p>The server, while acting as a gateway or proxy, received an invalid response from the upstream server.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/503.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>503 Service Unavailable</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>503 Service Unavailable</h1><p>The service is temporarily unavailable. Please try again later.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>503 Service Unavailable</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>503 Service Unavailable</h1><p>The service is temporarily unavailable. Please try again later.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/504.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>504 Gateway Timeout</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>504 Gateway Timeout</h1><p>The server acting as a gateway or proxy did not receive a timely response from the upstream server.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>504 Gateway Timeout</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>504 Gateway Timeout</h1><p>The server acting as a gateway or proxy did not receive a timely response from the upstream server.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/505.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>505 HTTP Version Not Supported</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>505 HTTP Version Not Supported</h1><p>The HTTP version used in the request is not supported by the server.</p><p>Please check your client's HTTP protocol version and try again.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>505 HTTP Version Not Supported</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>505 HTTP Version Not Supported</h1><p>The HTTP version used in the request is not supported by the server.</p><p>Please check your client's HTTP protocol version and try again.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/506.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Error 506</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>Error 506: Loop Detected</h1><p>The server detected an infinite loop while processing your request.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Error 506</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>Error 506: Loop Detected</h1><p>The server detected an infinite loop while processing your request.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/507.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>507 Insufficient Storage</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>507 Insufficient Storage</h1><p>The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>507 Insufficient Storage</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>507 Insufficient Storage</h1><p>The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/508.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Error 508 - Resource Limit Is Reached</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>Error 508</h1><p>The request could not be completed because the server has reached its resource limit.</p><p>Please try again later or contact the system administrator if the issue persists.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Error 508 - Resource Limit Is Reached</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>Error 508</h1><p>The request could not be completed because the server has reached its resource limit.</p><p>Please try again later or contact the system administrator if the issue persists.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/509.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>509 Bandwidth Limit Exceeded</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>509 Bandwidth Limit Exceeded</h1><p>The server has exceeded the bandwidth specified for this resource.</p><p>Please try again later or contact the server administrator for assistance.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>509 Bandwidth Limit Exceeded</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>509 Bandwidth Limit Exceeded</h1><p>The server has exceeded the bandwidth specified for this resource.</p><p>Please try again later or contact the server administrator for assistance.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/510.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Error 510</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>Error 510 - Gateway Error</h1><p>The server acting as a gateway or proxy received an invalid response from the upstream server.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Error 510</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>Error 510 - Gateway Error</h1><p>The server acting as a gateway or proxy received an invalid response from the upstream server.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/511.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>511 Network Authentication Required</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>511 Network Authentication Required</h1><p>The client needs to authenticate to gain network access. Contact your network administrator for assistance.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>511 Network Authentication Required</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>511 Network Authentication Required</h1><p>The client needs to authenticate to gain network access. Contact your network administrator for assistance.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/error/5xx/5xx.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Server Error</title><link href="../../style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="../../style/err5xx.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><h1>Server Error</h1><p>We're sorry, the server encountered an error and could not complete your request.</p><p>Please try again later or contact the system administrator.</p><script defer="defer" src="../../js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="../../js/err5xx.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Server Error</title><link href="../../style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="../../style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><h1>Server Error</h1><p>We're sorry, the server encountered an error and could not complete your request.</p><p>Please try again later or contact the system administrator.</p><script defer="defer" src="../../js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="../../js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 0 - 0
docs/images/logo_big.36916dbb39118238ec65.png → docs/images/logo_big.0a1f1ba69deff7a9bbb5.png


+ 0 - 0
docs/images/songzihuan.36916dbb39118238ec65.jpg → docs/images/songzihuan.0a1f1ba69deff7a9bbb5.jpg


File diff suppressed because it is too large
+ 0 - 0
docs/index.html


+ 1 - 1
docs/index.new.html

@@ -1 +1 @@
-<!doctype html><html lang="zh"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>站点建设成功</title><link rel="stylesheet" href="./b88d04fba731603756b1.css"><link href="./style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="./style/new.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><div class="success-icon">&#128512;</div><h1>站点建设成功!</h1><p>恭喜您,站点已成功搭建完成。现在您可以开始发布内容和定制您的网站了。</p><p>祝您在互联网世界中探索无限可能!</p><script defer="defer" src="./js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="./js/new.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="zh"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>站点建设成功</title><link rel="stylesheet" href="./b88d04fba731603756b1.css"><link href="./style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="./style/new.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><div class="success-icon">&#128512;</div><h1>站点建设成功!</h1><p>恭喜您,站点已成功搭建完成。现在您可以开始发布内容和定制您的网站了。</p><p>祝您在互联网世界中探索无限可能!</p><script defer="defer" src="./js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="./js/new.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

+ 1 - 1
docs/index.new.signal.html

@@ -1 +1 @@
-<!doctype html><html lang="zh"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>站点建设成功</title><style>body{font-family:Arial,sans-serif;text-align:center;padding-top:50px;background-color:#f0f8ff}h1{color:#007bff;margin-bottom:30px}p{font-size:18px;line-height:1.5}.success-icon{font-size:100px;color:#4caf50;margin-bottom:20px}</style><link href="./style/common.36916dbb39118238ec65.bundle.css" rel="stylesheet"><link href="./style/new.36916dbb39118238ec65.bundle.css" rel="stylesheet"></head><body><div class="success-icon">&#128512;</div><h1>站点建设成功!</h1><p>恭喜您,站点已成功搭建完成。现在您可以开始发布内容和定制您的网站了。</p><p>祝您在互联网世界中探索无限可能!</p><script defer="defer" src="./js/common.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="./js/signal.36916dbb39118238ec65.bundle.js"></script><script defer="defer" src="./js/new.36916dbb39118238ec65.bundle.js"></script></body></html>
+<!doctype html><html lang="zh"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>站点建设成功</title><style>body{font-family:Arial,sans-serif;text-align:center;padding-top:50px;background-color:#f0f8ff}h1{color:#007bff;margin-bottom:30px}p{font-size:18px;line-height:1.5}.success-icon{font-size:100px;color:#4caf50;margin-bottom:20px}</style><link href="./style/common.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"><link href="./style/new.0a1f1ba69deff7a9bbb5.bundle.css" rel="stylesheet"></head><body><div class="success-icon">&#128512;</div><h1>站点建设成功!</h1><p>恭喜您,站点已成功搭建完成。现在您可以开始发布内容和定制您的网站了。</p><p>祝您在互联网世界中探索无限可能!</p><script defer="defer" src="./js/common.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="./js/signal.0a1f1ba69deff7a9bbb5.bundle.js"></script><script defer="defer" src="./js/new.0a1f1ba69deff7a9bbb5.bundle.js"></script></body></html>

File diff suppressed because it is too large
+ 1 - 0
docs/js/common.0a1f1ba69deff7a9bbb5.bundle.js


+ 10 - 0
docs/js/common.0a1f1ba69deff7a9bbb5.bundle.js.LICENSE.txt

@@ -0,0 +1,10 @@
+/*!
+ * jQuery JavaScript Library v3.7.1
+ * https://jquery.com/
+ *
+ * Copyright OpenJS Foundation and other contributors
+ * Released under the MIT license
+ * https://jquery.org/license
+ *
+ * Date: 2023-08-28T13:37Z
+ */

File diff suppressed because it is too large
+ 0 - 0
docs/js/common.36916dbb39118238ec65.bundle.js


+ 0 - 0
docs/js/err404.36916dbb39118238ec65.bundle.js → docs/js/err404.0a1f1ba69deff7a9bbb5.bundle.js


+ 0 - 0
docs/js/err4xx.36916dbb39118238ec65.bundle.js → docs/js/err4xx.0a1f1ba69deff7a9bbb5.bundle.js


+ 0 - 0
docs/js/err5xx.36916dbb39118238ec65.bundle.js → docs/js/err5xx.0a1f1ba69deff7a9bbb5.bundle.js


+ 0 - 0
docs/js/index.36916dbb39118238ec65.bundle.js → docs/js/index.0a1f1ba69deff7a9bbb5.bundle.js


+ 0 - 0
docs/js/license.36916dbb39118238ec65.bundle.js → docs/js/license.0a1f1ba69deff7a9bbb5.bundle.js


+ 0 - 0
docs/js/mitorg.36916dbb39118238ec65.bundle.js → docs/js/mitorg.0a1f1ba69deff7a9bbb5.bundle.js


+ 0 - 0
docs/js/new.36916dbb39118238ec65.bundle.js → docs/js/new.0a1f1ba69deff7a9bbb5.bundle.js


+ 0 - 0
docs/js/signal.36916dbb39118238ec65.bundle.js → docs/js/signal.0a1f1ba69deff7a9bbb5.bundle.js


File diff suppressed because it is too large
+ 0 - 0
docs/mitorg.html


+ 0 - 0
docs/style/common.36916dbb39118238ec65.bundle.css → docs/style/common.0a1f1ba69deff7a9bbb5.bundle.css


+ 0 - 0
docs/style/err404.36916dbb39118238ec65.bundle.css → docs/style/err404.0a1f1ba69deff7a9bbb5.bundle.css


+ 0 - 0
docs/style/err4xx.36916dbb39118238ec65.bundle.css → docs/style/err4xx.0a1f1ba69deff7a9bbb5.bundle.css


+ 0 - 0
docs/style/err5xx.36916dbb39118238ec65.bundle.css → docs/style/err5xx.0a1f1ba69deff7a9bbb5.bundle.css


+ 0 - 0
docs/style/index.36916dbb39118238ec65.bundle.css → docs/style/index.0a1f1ba69deff7a9bbb5.bundle.css


+ 0 - 0
docs/style/license.36916dbb39118238ec65.bundle.css → docs/style/license.0a1f1ba69deff7a9bbb5.bundle.css


+ 0 - 0
docs/style/mitorg.36916dbb39118238ec65.bundle.css → docs/style/mitorg.0a1f1ba69deff7a9bbb5.bundle.css


+ 0 - 0
docs/style/new.36916dbb39118238ec65.bundle.css → docs/style/new.0a1f1ba69deff7a9bbb5.bundle.css


+ 1 - 1
github-page/cname.cjs → github-page/cname.js

@@ -1,4 +1,4 @@
-const fs = require('fs')
+import fs from "fs"
 
 const domain = 'homepage.song-zh.com'
 

+ 24 - 17
package.json

@@ -2,7 +2,14 @@
   "name": "huan-simple-html",
   "version": "1.0.0",
   "description": "一个简单的HTML项目,通过Webpack进行打包。请尽量使用pnpm处理此包。更多细节请查看\"README\"",
-  "keywords": ["html", "css", "javaascript", "webpack", "simple-html", "web-demo"],
+  "keywords": [
+    "html",
+    "css",
+    "javaascript",
+    "webpack",
+    "simple-html",
+    "web-demo"
+  ],
   "author": "宋子桓(Song Zihuan)",
   "license": "MIT LICENSE",
   "main": "src/main.js",
@@ -15,20 +22,19 @@
   "private": false,
   "engines": {
     "node": ">=18",
-    "pnpm": ">8"
+    "pnpm": ">=8"
   },
-  "os": ["windows","linux"],
   "scripts": {
     "lint": "eslint --ext .js,.mjs,.cjs,.ts --fix .",
     "lint:debug": "eslint --ext .js,.mjs,.cjs,.ts --debug --fix .",
-    "dev": "npx webpack server --config webpack_config_dev.cjs",
-    "build:dev": "npx webpack --config webpack_config_dev.cjs",
+    "dev": "npx webpack server --config webpack_config_dev.js",
+    "build:dev": "npx webpack --config webpack_config_dev.js",
     "build:dev:run": "npx pnpm build:dev && npx pnpm dev",
-    "prod": "npx webpack server --config webpack_config_prod.cjs",
-    "build:prod": "npx webpack --config webpack_config_prod.cjs",
+    "prod": "npx webpack server --config webpack_config_prod.js",
+    "build:prod": "npx webpack --config webpack_config_prod.js",
     "build:prod:run": "npx pnpm build:prod && npx pnpm prod",
-    "github": "npx webpack server --config webpack_config_github.cjs",
-    "build:github": "npx webpack --config webpack_config_github.cjs && node ./github-page/cname.cjs",
+    "github": "npx webpack server --config webpack_config_github.js",
+    "build:github": "npx webpack --config webpack_config_github.js && node github-page/cname.js",
     "build:github:run": "npx pnpm build:github && npx pnpm github"
   },
   "devDependencies": {
@@ -36,23 +42,24 @@
     "css-loader": "^7.1.2",
     "eslint": "^8.38.0",
     "eslint-config-prettier": "^8.8.0",
-    "html-loader": "^5.1.0",
-    "html-webpack-plugin": "^5.6.3",
-    "mini-css-extract-plugin": "^2.9.2",
-    "prettier": "^2.8.7",
-    "webpack": "^5.97.1",
-    "webpack-cli": "^6.0.1",
-    "webpack-dev-server": "^5.2.0",
     "eslint-plugin-prettier": "^4.2.1",
     "extract-loader": "^5.1.0",
     "file-loader": "^6.2.0",
+    "html-loader": "^5.1.0",
+    "html-webpack-plugin": "^5.6.3",
     "jquery": "^3.7.1",
+    "mini-css-extract-plugin": "^2.9.2",
     "normalize.css": "^8.0.1",
     "postcss": "^8.5.1",
     "postcss-loader": "^8.1.1",
+    "prettier": "^2.8.7",
     "sass": "^1.83.4",
     "sass-loader": "^16.0.4",
-    "url-loader": "^4.1.1"
+    "terser-webpack-plugin": "^5.3.11",
+    "url-loader": "^4.1.1",
+    "webpack": "^5.97.1",
+    "webpack-cli": "^6.0.1",
+    "webpack-dev-server": "^5.2.0"
   },
   "dependencies": {
   }

File diff suppressed because it is too large
+ 5 - 147
pnpm-lock.yaml


+ 4 - 0
src/common.js

@@ -1,5 +1,6 @@
 // 清理状态
 import 'normalize.css'
+import jQuery from 'jquery';
 
 import Logo from './assets/image/logo.png'
 import WangAn from './assets/image/wangan.png'
@@ -18,3 +19,6 @@ window.Logo = Logo
 window.WangAn = WangAn
 window.SongZihuan = SongZihuan
 window.LogoBig = LogoBin
+
+window.jQuery = jQuery;
+window.$ = jQuery;

+ 4 - 4
src/utils/file.js

@@ -1,11 +1,11 @@
-const path = require('node:path')
-const fs = require('fs')
+import path from "path"
+import fs from "fs"
 
-module.exports = {
+export default {
   getAllFilePaths
 }
 
-function getAllFilePaths(dir) {
+export function getAllFilePaths(dir) {
   return _getAllFilePaths(dir, './', 5)
 }
 

+ 12 - 13
webpack_config_dev.cjs → webpack_config_dev.js

@@ -1,8 +1,12 @@
-const path = require('path')
-const HtmlWebpackPlugin = require('html-webpack-plugin')
-const MiniCssExtractPlugin = require('mini-css-extract-plugin')
-const CopyWebpackPlugin = require('copy-webpack-plugin')
-const filetool = require('./src/utils/file.js')
+import path from "path"
+import HtmlWebpackPlugin from "html-webpack-plugin";
+import MiniCssExtractPlugin from 'mini-css-extract-plugin';
+import CopyWebpackPlugin from "copy-webpack-plugin"
+import filetool from './src/utils/file.js'
+import { fileURLToPath } from 'url';
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
 
 const mode = 'development'
 const dist_name = 'dist-dev'
@@ -82,7 +86,7 @@ AllHTMLLocalFile5xx.forEach((filePath) => {
   )
 })
 
-module.exports = {
+const config =  {
   mode: mode,
 
   context: __dirname,
@@ -171,13 +175,6 @@ module.exports = {
       {
         test: /\.html$/i,
         loader: 'html-loader'
-      },
-      {
-        test: require.resolve('jquery'),
-        loader: 'expose-loader',
-        options: {
-          exposes: ['$', 'jQuery']
-        }
       }
     ]
   },
@@ -257,3 +254,5 @@ module.exports = {
     hot: true
   }
 }
+
+export default config

+ 13 - 14
webpack_config_github.cjs → webpack_config_github.js

@@ -1,9 +1,13 @@
-const path = require('path')
-const HtmlWebpackPlugin = require('html-webpack-plugin')
-const MiniCssExtractPlugin = require('mini-css-extract-plugin')
-const filetool = require('./src/utils/file.js')
-const TerserPlugin = require('terser-webpack-plugin')
-const CopyWebpackPlugin = require('copy-webpack-plugin')
+import path from "path"
+import HtmlWebpackPlugin from "html-webpack-plugin";
+import MiniCssExtractPlugin from 'mini-css-extract-plugin';
+import CopyWebpackPlugin from "copy-webpack-plugin"
+import TerserPlugin from 'terser-webpack-plugin';
+import filetool from './src/utils/file.js'
+import { fileURLToPath } from 'url';
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
 
 const mode = 'production'
 const dist_name = 'docs'
@@ -96,7 +100,7 @@ AllHTMLLocalFile5xx.forEach((filePath) => {
   )
 })
 
-module.exports = {
+const config = {
   mode: mode,
 
   context: __dirname,
@@ -200,13 +204,6 @@ module.exports = {
         test: /\.html$/i,
         loader: 'html-loader'
       },
-      {
-        test: require.resolve('jquery'),
-        loader: 'expose-loader',
-        options: {
-          exposes: ['$', 'jQuery']
-        }
-      }
     ]
   },
 
@@ -292,3 +289,5 @@ module.exports = {
     hot: false
   }
 }
+
+export default config

+ 12 - 13
webpack_config_prod.cjs → webpack_config_prod.js

@@ -1,8 +1,12 @@
-const path = require('path')
-const HtmlWebpackPlugin = require('html-webpack-plugin')
-const MiniCssExtractPlugin = require('mini-css-extract-plugin')
-const filetool = require('./src/utils/file.js')
-const CopyWebpackPlugin = require('copy-webpack-plugin')
+import path from "path"
+import HtmlWebpackPlugin from "html-webpack-plugin";
+import MiniCssExtractPlugin from 'mini-css-extract-plugin';
+import CopyWebpackPlugin from "copy-webpack-plugin"
+import filetool from './src/utils/file.js'
+import { fileURLToPath } from 'url';
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
 
 const mode = 'production'
 const dist_name = 'dist-prod'
@@ -95,7 +99,7 @@ AllHTMLLocalFile5xx.forEach((filePath) => {
   )
 })
 
-module.exports = {
+const config = {
   mode: mode,
 
   context: __dirname,
@@ -184,13 +188,6 @@ module.exports = {
       {
         test: /\.html$/i,
         loader: 'html-loader'
-      },
-      {
-        test: require.resolve('jquery'),
-        loader: 'expose-loader',
-        options: {
-          exposes: ['$', 'jQuery']
-        }
       }
     ]
   },
@@ -277,3 +274,5 @@ module.exports = {
     hot: true
   }
 }
+
+export default config

Some files were not shown because too many files changed in this diff