huan-simple-html 1.0.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.
- package/.eslintignore +30 -0
- package/.eslintrc.cjs +127 -0
- package/.npmignore +65 -0
- package/.prettierrc.cjs +14 -0
- package/LICENSE +8 -0
- package/LICENSE_CN +8 -0
- package/README +19 -0
- package/README_EN +19 -0
- package/REEPORT +15 -0
- package/REPORT_EN +15 -0
- package/config.json +5 -0
- package/package.json +65 -0
- package/public/.__ignore__ +1 -0
- package/src/404.js +1 -0
- package/src/4xx.js +1 -0
- package/src/5xx.js +1 -0
- package/src/assets/image/logo.png +0 -0
- package/src/assets/image/logo_big.png +0 -0
- package/src/assets/image/songzihuan.jpg +0 -0
- package/src/assets/image/wangan.png +0 -0
- package/src/common.js +24 -0
- package/src/html/LICENSE_CN.html +48 -0
- package/src/html/LICENSE_US.html +46 -0
- package/src/html/error/4xx/400.html +12 -0
- package/src/html/error/4xx/403.html +13 -0
- package/src/html/error/4xx/404.html +19 -0
- package/src/html/error/4xx/404.signal.html +57 -0
- package/src/html/error/4xx/404.songzihuan.signal.html +58 -0
- package/src/html/error/4xx/405.html +13 -0
- package/src/html/error/4xx/4xx.html +13 -0
- package/src/html/error/5xx/500.html +13 -0
- package/src/html/error/5xx/500.signal.html +30 -0
- package/src/html/error/5xx/500.songzihuan.signal.html +31 -0
- package/src/html/error/5xx/501.html +13 -0
- package/src/html/error/5xx/502.html +12 -0
- package/src/html/error/5xx/503.html +13 -0
- package/src/html/error/5xx/504.html +12 -0
- package/src/html/error/5xx/505.html +13 -0
- package/src/html/error/5xx/506.html +12 -0
- package/src/html/error/5xx/507.html +13 -0
- package/src/html/error/5xx/508.html +13 -0
- package/src/html/error/5xx/509.html +13 -0
- package/src/html/error/5xx/510.html +12 -0
- package/src/html/error/5xx/511.html +15 -0
- package/src/html/error/5xx/5xx.html +13 -0
- package/src/html/index.html +85 -0
- package/src/html/index.new.html +16 -0
- package/src/html/index.new.signal.html +43 -0
- package/src/html/mitorg.html +5073 -0
- package/src/index.js +1 -0
- package/src/license.js +1 -0
- package/src/main.js +0 -0
- package/src/mitorg.js +1 -0
- package/src/new.js +1 -0
- package/src/signal.js +1 -0
- package/src/style/error/404.css +31 -0
- package/src/style/error/4xx.css +17 -0
- package/src/style/error/5xx.css +15 -0
- package/src/style/index/index.css +26 -0
- package/src/style/index/license.css +4 -0
- package/src/style/index/mitorg.css +106 -0
- package/src/style/index/new.css +22 -0
- package/src/utils/file.js +45 -0
- package/webpack_config_dev.js +258 -0
- package/webpack_config_github.js +293 -0
- package/webpack_config_prod.js +278 -0
package/.eslintignore
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Logs
|
2
|
+
logs
|
3
|
+
*.log
|
4
|
+
npm-debug.log*
|
5
|
+
yarn-debug.log*
|
6
|
+
yarn-error.log*
|
7
|
+
pnpm-debug.log*
|
8
|
+
lerna-debug.log*
|
9
|
+
|
10
|
+
node_modules
|
11
|
+
dist
|
12
|
+
dist-ssr
|
13
|
+
dist-*
|
14
|
+
dist-development
|
15
|
+
dist-production
|
16
|
+
dist-dev
|
17
|
+
dist-prod
|
18
|
+
docs
|
19
|
+
*.local
|
20
|
+
|
21
|
+
# Editor directories and files
|
22
|
+
.vscode/*
|
23
|
+
!.vscode/extensions.json
|
24
|
+
.idea
|
25
|
+
.DS_Store
|
26
|
+
*.suo
|
27
|
+
*.ntvs*
|
28
|
+
*.njsproj
|
29
|
+
*.sln
|
30
|
+
*.sw?
|
package/.eslintrc.cjs
ADDED
@@ -0,0 +1,127 @@
|
|
1
|
+
/*!
|
2
|
+
* https://eslint.bootcss.com/docs/rules/
|
3
|
+
* https://eslint.vuejs.org/rules/
|
4
|
+
*/
|
5
|
+
|
6
|
+
module.exports = {
|
7
|
+
root: true,
|
8
|
+
env: {
|
9
|
+
browser: true,
|
10
|
+
node: true,
|
11
|
+
es6: true
|
12
|
+
},
|
13
|
+
parserOptions: {
|
14
|
+
sourceType: 'module'
|
15
|
+
},
|
16
|
+
extends: ['prettier', 'eslint:recommended', 'plugin:prettier/recommended'],
|
17
|
+
plugins: ['prettier'],
|
18
|
+
rules: {
|
19
|
+
'no-undef': 'off',
|
20
|
+
'prettier/prettier': 'warn',
|
21
|
+
'no-unused-vars': 'warn',
|
22
|
+
// 禁用debugger
|
23
|
+
'no-debugger': 'warn',
|
24
|
+
// 禁止出现重复的 case 标签
|
25
|
+
'no-duplicate-case': 'warn',
|
26
|
+
// 禁止出现空语句块
|
27
|
+
// 'no-empty': 'warn',
|
28
|
+
// 禁止不必要的括号
|
29
|
+
'no-extra-parens': 'off',
|
30
|
+
// 禁止对 function 声明重新赋值
|
31
|
+
'no-func-assign': 'warn',
|
32
|
+
// 禁止在 return、throw、continue 和 break 语句之后出现不可达代码
|
33
|
+
'no-unreachable': 'warn',
|
34
|
+
// 强制所有控制语句使用一致的括号风格
|
35
|
+
curly: 'warn',
|
36
|
+
// 要求 switch 语句中有 default 分支
|
37
|
+
'default-case': 'warn',
|
38
|
+
// 强制尽可能地使用点号
|
39
|
+
'dot-notation': 'warn',
|
40
|
+
// 要求使用 === 和 !==
|
41
|
+
// eqeqeq: 'warn',
|
42
|
+
// 禁止 if 语句中 return 语句之后有 else 块
|
43
|
+
'no-else-return': 'warn',
|
44
|
+
// 禁止出现空函数
|
45
|
+
// 'no-empty-function': 'warn',
|
46
|
+
// 禁用不必要的嵌套块
|
47
|
+
'no-lone-blocks': 'warn',
|
48
|
+
// 禁止使用多个空格
|
49
|
+
'no-multi-spaces': 'warn',
|
50
|
+
// 禁止多次声明同一变量
|
51
|
+
'no-redeclare': 'warn',
|
52
|
+
// 禁止在 return 语句中使用赋值语句
|
53
|
+
'no-return-assign': 'warn',
|
54
|
+
// 禁用不必要的 return await
|
55
|
+
'no-return-await': 'warn',
|
56
|
+
// 禁止自我赋值
|
57
|
+
'no-self-assign': 'warn',
|
58
|
+
// 禁止自身比较
|
59
|
+
'no-self-compare': 'warn',
|
60
|
+
// 禁止不必要的 catch 子句
|
61
|
+
'no-useless-catch': 'warn',
|
62
|
+
// 禁止多余的 return 语句
|
63
|
+
'no-useless-return': 'warn',
|
64
|
+
// 禁止变量声明与外层作用域的变量同名
|
65
|
+
'no-shadow': 'off',
|
66
|
+
// 允许delete变量
|
67
|
+
'no-delete-var': 'off',
|
68
|
+
// 强制数组方括号中使用一致的空格
|
69
|
+
'array-bracket-spacing': 'warn',
|
70
|
+
// 强制在代码块中使用一致的大括号风格
|
71
|
+
'brace-style': 'warn',
|
72
|
+
// 强制使用骆驼拼写法命名约定
|
73
|
+
// camelcase: 'warn',
|
74
|
+
// 强制使用一致的缩进
|
75
|
+
indent: 'off',
|
76
|
+
// 强制在 JSX 属性中一致地使用双引号或单引号
|
77
|
+
// 'jsx-quotes': 'warn',
|
78
|
+
// 强制可嵌套的块的最大深度4
|
79
|
+
'max-depth': 'warn',
|
80
|
+
// 强制最大行数 300
|
81
|
+
// "max-lines": ["warn", { "max": 1200 }],
|
82
|
+
// 强制函数最大代码行数 50
|
83
|
+
// 'max-lines-per-function': ['warn', { max: 70 }],
|
84
|
+
// 强制函数块最多允许的的语句数量20
|
85
|
+
'max-statements': ['warn', 100],
|
86
|
+
// 强制回调函数最大嵌套深度
|
87
|
+
'max-nested-callbacks': ['warn', 5],
|
88
|
+
// 强制每一行中所允许的最大语句数量
|
89
|
+
'max-statements-per-line': ['warn', { max: 1 }],
|
90
|
+
// 要求方法链中每个调用都有一个换行符
|
91
|
+
'newline-per-chained-call': ['warn', { ignoreChainWithDepth: 3 }],
|
92
|
+
// 禁止 if 作为唯一的语句出现在 else 语句中
|
93
|
+
'no-lonely-if': 'warn',
|
94
|
+
// 禁止空格和 tab 的混合缩进
|
95
|
+
'no-mixed-spaces-and-tabs': 'warn',
|
96
|
+
// 禁止出现多行空行
|
97
|
+
'no-multiple-empty-lines': 'warn',
|
98
|
+
// 禁止出现;
|
99
|
+
semi: ['warn', 'never'],
|
100
|
+
// 强制在块之前使用一致的空格
|
101
|
+
'space-before-blocks': 'warn',
|
102
|
+
// 强制在 function的左括号之前使用一致的空格
|
103
|
+
// 'space-before-function-paren': ['warn', 'never'],
|
104
|
+
// 强制在圆括号内使用一致的空格
|
105
|
+
'space-in-parens': 'warn',
|
106
|
+
// 要求操作符周围有空格
|
107
|
+
'space-infix-ops': 'warn',
|
108
|
+
// 强制在一元操作符前后使用一致的空格
|
109
|
+
'space-unary-ops': 'warn',
|
110
|
+
// 强制在注释中 // 或 /* 使用一致的空格
|
111
|
+
// "spaced-comment": "warn",
|
112
|
+
// 强制在 switch 的冒号左右有空格
|
113
|
+
'switch-colon-spacing': 'warn',
|
114
|
+
// 强制箭头函数的箭头前后使用一致的空格
|
115
|
+
'arrow-spacing': 'warn',
|
116
|
+
'no-var': 'warn',
|
117
|
+
'prefer-const': 'warn',
|
118
|
+
'prefer-rest-params': 'warn',
|
119
|
+
'no-useless-escape': 'warn',
|
120
|
+
'no-irregular-whitespace': 'warn',
|
121
|
+
'no-prototype-builtins': 'warn',
|
122
|
+
'no-fallthrough': 'warn',
|
123
|
+
'no-extra-boolean-cast': 'warn',
|
124
|
+
'no-case-declarations': 'warn',
|
125
|
+
'no-async-promise-executor': 'warn'
|
126
|
+
}
|
127
|
+
}
|
package/.npmignore
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
# Logs
|
2
|
+
logs
|
3
|
+
*.log
|
4
|
+
npm-debug.log*
|
5
|
+
yarn-debug.log*
|
6
|
+
yarn-error.log*
|
7
|
+
pnpm-debug.log*
|
8
|
+
lerna-debug.log*
|
9
|
+
|
10
|
+
# Node
|
11
|
+
node_modules
|
12
|
+
huan-simple-html-1.0.0.tgz
|
13
|
+
.npmrc
|
14
|
+
|
15
|
+
# Build
|
16
|
+
dist
|
17
|
+
dist-*
|
18
|
+
dist-ssr
|
19
|
+
dist-dev
|
20
|
+
dist-prod
|
21
|
+
|
22
|
+
# Git
|
23
|
+
.git
|
24
|
+
.gitignore
|
25
|
+
|
26
|
+
# Github
|
27
|
+
github-page
|
28
|
+
docs
|
29
|
+
.github
|
30
|
+
|
31
|
+
# Local
|
32
|
+
*.local
|
33
|
+
|
34
|
+
# Hidden
|
35
|
+
.*
|
36
|
+
!.prettierrc.cjs
|
37
|
+
!.npmignore
|
38
|
+
!.eslintignore
|
39
|
+
!.eslintrc.cjs
|
40
|
+
!public/.__ignore__
|
41
|
+
|
42
|
+
# IDE
|
43
|
+
.vscode
|
44
|
+
.idea
|
45
|
+
|
46
|
+
# System
|
47
|
+
.DS_Store
|
48
|
+
desktop.ini
|
49
|
+
thumbs.db
|
50
|
+
iconcache.db
|
51
|
+
IconCache.db
|
52
|
+
ntuser.dat
|
53
|
+
ntuser.dat.log
|
54
|
+
hiberfil.sys
|
55
|
+
pagefile.sys
|
56
|
+
$Recycle.Bin
|
57
|
+
Recycle Bin
|
58
|
+
|
59
|
+
# Other
|
60
|
+
*.suo
|
61
|
+
*.ntvs*
|
62
|
+
*.njsproj
|
63
|
+
*.sln
|
64
|
+
*.sw?
|
65
|
+
*.bak
|
package/.prettierrc.cjs
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
module.exports = {
|
2
|
+
printWidth: 120, // 换行字符串阈值
|
3
|
+
tabWidth: 2, // 设置工具每一个水平缩进的空格数
|
4
|
+
useTabs: false,
|
5
|
+
semi: false, // 句末是否加分号
|
6
|
+
vueIndentScriptAndStyle: true,
|
7
|
+
singleQuote: true, // 用单引号
|
8
|
+
trailingComma: 'none', // 最后一个对象元素符加逗号
|
9
|
+
bracketSpacing: true,
|
10
|
+
jsxBracketSameLine: true, // jsx > 是否另取一行
|
11
|
+
arrowParens: 'always', // 不需要写文件开头的 @prettier
|
12
|
+
insertPragma: false, // 不需要自动在文件开头加入 @prettier
|
13
|
+
endOfLine: 'lf' // 换行符使用
|
14
|
+
}
|
package/LICENSE
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
Copyright (c) 2025 宋子桓(Song Zihuan)
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
5
|
+
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/LICENSE_CN
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
美国麻省理工学院授权协议(MIT LICENSE)
|
2
|
+
版权所有(c)2025 宋子桓(Song Zihuan)
|
3
|
+
现授予的权限,免费向任何人索取该软件和相关的文档文件( “软件” ) ,以处理软件,没有任何限制,包括但不限于使用权,复制,修改,合并,出版,发行,授权,和/或销售软件的副本,并允许的人提供的软件是这样做,但须符合下列条件:
|
4
|
+
上述版权声明和本许可声明中应包括所有副本或实质性部分的软件。
|
5
|
+
该软件是“按原样”提供,不做任何保证,明示或暗示,包括但不限于适销性,针对特定用途的适用性和非侵权的。在任何情况下,作者或版权持有人对任何索赔,损害赔偿或其他责任,无论是在一项行动的合同,侵权或其他因出于或有关的软件或利用等交易必须软件。
|
6
|
+
|
7
|
+
以下声明非 美国麻省理工学院授权协议(MIT LICENSE) 的任何部分:
|
8
|
+
翻译声明:这是一份 美国麻省理工学院授权协议(MIT LICENSE) 的非官方中文简体翻译。它并非 美国麻省理工学院授权协议(MIT LICENSE) 发布,也不是使用 美国麻省理工学院授权协议(MIT LICENSE) 授权的软件的法定发布条款,只有 美国麻省理工学院授权协议(MIT LICENSE) 的英文原版具有这样的效力。然而,我们希望这份翻译能够帮助中文读者更好的理解 美国麻省理工学院授权协议(MIT LICENSE) 。
|
package/README
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
简单的欢迎页面(SIMPLE-HTML)
|
2
|
+
===================================
|
3
|
+
这是一个简单的欢迎页面,我使用了静态的HTML+CSS+JS进行编码。
|
4
|
+
index.new.html页面,可以作为你的默认建站页面。
|
5
|
+
错误码页面在error文件夹下。
|
6
|
+
注意:`.signal.html` 文件为内联样式之后的文件它可以作为一个单独的页面使用。
|
7
|
+
|
8
|
+
作者:宋子桓(Song Zihuan)
|
9
|
+
作者 Github:https://github.com/SongZihuan
|
10
|
+
作者主页:https://song-zh.com
|
11
|
+
作者邮箱:songzihuan@song-zh.com
|
12
|
+
|
13
|
+
项目托管地址:https://github.com/SongZihuan/simple-html
|
14
|
+
Github Page托管: https://github.com/huan-simple-html/huan-simple-html.github.io
|
15
|
+
测试访问:https://homepage.song-zh.com/
|
16
|
+
|
17
|
+
最后更新时间:2025年1月19日。
|
18
|
+
|
19
|
+
备注:以上README为作者原文。
|
package/README_EN
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Simple Welcome Page (SIMPLE-HTML)
|
2
|
+
====================================
|
3
|
+
This is a simple welcome page. I used static HTML+CSS+JS for coding.
|
4
|
+
The index.new.html page can be used as your default website page.
|
5
|
+
The error code page is in the error folder.
|
6
|
+
Note: The `.signal.html` file is a file after inline style. It can be used as a separate page.
|
7
|
+
|
8
|
+
Author: 宋子桓 (Song Zihuan)
|
9
|
+
Author Github: https://github.com/SongZihuan
|
10
|
+
Author homepage: https://song-zh.com
|
11
|
+
Author email: songzihuan@song-zh.com
|
12
|
+
|
13
|
+
Project hosting address: https://github.com/SongZihuan/simple-html
|
14
|
+
Github Page hosting: https://github.com/huan-simple-html/huan-simple-html.github.io
|
15
|
+
Test access: https://homepage.song-zh.com/
|
16
|
+
|
17
|
+
Last updated: January 19, 2025.
|
18
|
+
|
19
|
+
Note: The above text is machine translated.
|
package/REEPORT
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
如何报告 Simple-HTML
|
2
|
+
|
3
|
+
作者:宋子桓(Song Zihuan)
|
4
|
+
作者 Github:https://github.com/SongZihuan
|
5
|
+
作者主页:https://song-zh.com
|
6
|
+
作者邮箱:songzihuan@song-zh.com
|
7
|
+
|
8
|
+
Github:https://github.com/SongZihuan/simple-html
|
9
|
+
Github Issues:https://github.com/SongZihuan/simple-html/issues
|
10
|
+
|
11
|
+
报告:您可以通过 Github Issues 或作者邮箱报告问题并联系作者。
|
12
|
+
质量保证:如果您仅拥有此项目根目录下的 LICENSE 文件中的许可证,您将无法获得任何质量保证。但作者很乐意为您解决问题,除非此项目已存档为只读。
|
13
|
+
其他 Fork 版本:请联系 Fork 版本的作者寻求帮助。
|
14
|
+
|
15
|
+
备注:以上REPORT为作者原文。
|
package/REPORT_EN
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
How to report of simple-html
|
2
|
+
|
3
|
+
Author: 宋子桓(Song Zihuan)
|
4
|
+
Author Github: https://github.com/SongZihuan
|
5
|
+
Author Website: https://song-zh.com
|
6
|
+
Author Email: songzihuan@song-zh.com
|
7
|
+
|
8
|
+
Github: https://github.com/SongZihuan/simple-html
|
9
|
+
Github Issues: https://github.com/SongZihuan/simple-html/issues
|
10
|
+
|
11
|
+
Report: You can report issues and contact the author through Github Issues or Author Email.
|
12
|
+
Quality Assurance: If you only have the license in the LICENSE file in the root directory of this project, you will not get any quality assurance. But the author is happy to solve the problem for you, unless this project has been archived as read-only.
|
13
|
+
Other Fork versions: Please contact the author of the Fork version for assistance.
|
14
|
+
|
15
|
+
Note: The above text is machine translated.
|
package/config.json
ADDED
package/package.json
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"name": "huan-simple-html",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "一个简单的HTML项目,通过Webpack进行打包。请尽量使用pnpm处理此包。更多细节请查看\"README\"",
|
5
|
+
"keywords": [
|
6
|
+
"html",
|
7
|
+
"css",
|
8
|
+
"javaascript",
|
9
|
+
"webpack",
|
10
|
+
"simple-html",
|
11
|
+
"web-demo"
|
12
|
+
],
|
13
|
+
"author": "宋子桓(Song Zihuan)",
|
14
|
+
"license": "MIT LICENSE",
|
15
|
+
"main": "src/main.js",
|
16
|
+
"module": "src/main.js",
|
17
|
+
"browser": "src/main.js",
|
18
|
+
"repository": "https://github.com/SongZihuan/simple-html",
|
19
|
+
"bug": "https://github.com/SongZihuan/simple-html/issues",
|
20
|
+
"homepage": "https://homepage.song-zh.com",
|
21
|
+
"type": "module",
|
22
|
+
"private": false,
|
23
|
+
"engines": {
|
24
|
+
"node": ">=18",
|
25
|
+
"pnpm": ">=8"
|
26
|
+
},
|
27
|
+
"devDependencies": {
|
28
|
+
"copy-webpack-plugin": "^12.0.2",
|
29
|
+
"css-loader": "^7.1.2",
|
30
|
+
"eslint": "^8.38.0",
|
31
|
+
"eslint-config-prettier": "^8.8.0",
|
32
|
+
"eslint-plugin-prettier": "^4.2.1",
|
33
|
+
"extract-loader": "^5.1.0",
|
34
|
+
"file-loader": "^6.2.0",
|
35
|
+
"html-loader": "^5.1.0",
|
36
|
+
"html-webpack-plugin": "^5.6.3",
|
37
|
+
"jquery": "^3.7.1",
|
38
|
+
"mini-css-extract-plugin": "^2.9.2",
|
39
|
+
"normalize.css": "^8.0.1",
|
40
|
+
"postcss": "^8.5.1",
|
41
|
+
"postcss-loader": "^8.1.1",
|
42
|
+
"prettier": "^2.8.7",
|
43
|
+
"sass": "^1.83.4",
|
44
|
+
"sass-loader": "^16.0.4",
|
45
|
+
"terser-webpack-plugin": "^5.3.11",
|
46
|
+
"url-loader": "^4.1.1",
|
47
|
+
"webpack": "^5.97.1",
|
48
|
+
"webpack-cli": "^6.0.1",
|
49
|
+
"webpack-dev-server": "^5.2.0"
|
50
|
+
},
|
51
|
+
"dependencies": {},
|
52
|
+
"scripts": {
|
53
|
+
"lint": "eslint --ext .js,.mjs,.cjs,.ts --fix .",
|
54
|
+
"lint:debug": "eslint --ext .js,.mjs,.cjs,.ts --debug --fix .",
|
55
|
+
"dev": "npx webpack server --config webpack_config_dev.js",
|
56
|
+
"build:dev": "npx webpack --config webpack_config_dev.js",
|
57
|
+
"build:dev:run": "npx pnpm build:dev && npx pnpm dev",
|
58
|
+
"prod": "npx webpack server --config webpack_config_prod.js",
|
59
|
+
"build:prod": "npx webpack --config webpack_config_prod.js",
|
60
|
+
"build:prod:run": "npx pnpm build:prod && npx pnpm prod",
|
61
|
+
"github": "npx webpack server --config webpack_config_github.js",
|
62
|
+
"build:github": "npx webpack --config webpack_config_github.js && node github-page/cname.js",
|
63
|
+
"build:github:run": "npx pnpm build:github && npx pnpm github"
|
64
|
+
}
|
65
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
Placeholder file, meaningless.
|
package/src/404.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
import './style/error/404.css'
|
package/src/4xx.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
import './style/error/4xx.css'
|
package/src/5xx.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
import './style/error/5xx.css'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/src/common.js
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
// 清理状态
|
2
|
+
import 'normalize.css'
|
3
|
+
import jQuery from 'jquery';
|
4
|
+
|
5
|
+
import Logo from './assets/image/logo.png'
|
6
|
+
import WangAn from './assets/image/wangan.png'
|
7
|
+
import SongZihuan from './assets/image/songzihuan.jpg'
|
8
|
+
import LogoBin from './assets/image/logo_big.png'
|
9
|
+
|
10
|
+
document.addEventListener('DOMContentLoaded', function () {
|
11
|
+
// 动态设置favicon
|
12
|
+
const link = document.createElement('link')
|
13
|
+
link.rel = 'shortcut icon'
|
14
|
+
link.href = Logo // 或者 favicon.png 对于PNG格式
|
15
|
+
document.head.appendChild(link)
|
16
|
+
})
|
17
|
+
|
18
|
+
window.Logo = Logo
|
19
|
+
window.WangAn = WangAn
|
20
|
+
window.SongZihuan = SongZihuan
|
21
|
+
window.LogoBig = LogoBin
|
22
|
+
|
23
|
+
window.jQuery = jQuery;
|
24
|
+
window.$ = jQuery;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>美国麻省理工学院授权协议(MIT LICENSE)</title>
|
7
|
+
<link rel="stylesheet" href="../style/index/license.css">
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<pre id="license-content"></pre>
|
11
|
+
|
12
|
+
<hr>
|
13
|
+
<pre>以下内容非 协议文本,提供额外信息及操作链接:</pre>
|
14
|
+
|
15
|
+
<pre><a href="./LICENSE_US.html" target="_blank">前往浏览英文原文</a></pre>
|
16
|
+
<pre><a href="https://mit-license.org/" target="_blank">访问 美国麻省理工学院授权协议(MIT LICENSE) 官网</a></pre>
|
17
|
+
<pre><a href="https://mit-license-org.song-zh.com/" target="_blank">访问 美国麻省理工学院授权协议(MIT LICENSE) 官网(CDN)</a></pre>
|
18
|
+
<pre><a href="./mitorg.html" target="_blank">访问 美国麻省理工学院授权协议(MIT LICENSE) 官网(备份)</a></pre>
|
19
|
+
<pre><a href="/LICENSE_CN" target="_blank">下载协议(中文译文)文件</a></pre>
|
20
|
+
<pre><a href="/LICENSE" target="_blank">下载协议(英文原文)文件</a></pre>
|
21
|
+
|
22
|
+
<script>
|
23
|
+
const LICENSE_BAK = `美国麻省理工学院授权协议(MIT LICENSE)
|
24
|
+
版权所有(c)2025 宋子桓(Song Zihuan)
|
25
|
+
现授予的权限,免费向任何人索取该软件和相关的文档文件( “软件” ) ,以处理软件,没有任何限制,包括但不限于使用权,复制,修改,合并,出版,发行,授权,和/或销售软件的副本,并允许的人提供的软件是这样做,但须符合下列条件:
|
26
|
+
上述版权声明和本许可声明中应包括所有副本或实质性部分的软件。
|
27
|
+
该软件是“按原样”提供,不做任何保证,明示或暗示,包括但不限于适销性,针对特定用途的适用性和非侵权的。在任何情况下,作者或版权持有人对任何索赔,损害赔偿或其他责任,无论是在一项行动的合同,侵权或其他因出于或有关的软件或利用等交易必须软件。
|
28
|
+
|
29
|
+
以下声明非 美国麻省理工学院授权协议(MIT LICENSE) 的任何部分:
|
30
|
+
翻译声明:这是一份 美国麻省理工学院授权协议(MIT LICENSE) 的非官方中文简体翻译。它并非 美国麻省理工学院授权协议(MIT LICENSE) 发布,也不是使用 美国麻省理工学院授权协议(MIT LICENSE) 授权的软件的法定发布条款,只有 美国麻省理工学院授权协议(MIT LICENSE) 的英文原版具有这样的效力。然而,我们希望这份翻译能够帮助中文读者更好的理解 美国麻省理工学院授权协议(MIT LICENSE) 。`
|
31
|
+
|
32
|
+
fetch('/LICENSE_CN')
|
33
|
+
.then(response => {
|
34
|
+
if (!response.ok) {
|
35
|
+
throw new Error('Network response was not ok');
|
36
|
+
}
|
37
|
+
return response.text();
|
38
|
+
})
|
39
|
+
.then(licenseText => {
|
40
|
+
document.getElementById('license-content').innerText = licenseText;
|
41
|
+
})
|
42
|
+
.catch(error => {
|
43
|
+
document.getElementById('license-content').innerText = LICENSE_BAK;
|
44
|
+
console.error('There has been a problem with your fetch operation:', error);
|
45
|
+
});
|
46
|
+
</script>
|
47
|
+
</body>
|
48
|
+
</html>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>美国麻省理工学院授权协议(MIT LICENSE)</title>
|
7
|
+
<link rel="stylesheet" href="../style/index/license.css">
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<pre id="license-content"></pre>
|
11
|
+
|
12
|
+
<hr>
|
13
|
+
|
14
|
+
<pre><a href="./LICENSE_CN.html" target="_blank">前往浏览中文译文</a></pre>
|
15
|
+
<pre><a href="https://mit-license.org/" target="_blank">访问 MIT LICENSE 官网</a></pre>
|
16
|
+
<pre><a href="https://mit-license-org.song-zh.com/" target="_blank">访问 MIT LICENSE 官网(CDN)</a></pre>
|
17
|
+
<pre><a href="./mitorg.html" target="_blank">访问 MIT LICENSE 官网(备份)</a></pre>
|
18
|
+
<pre><a href="/LICENSE" target="_blank">下载 LICENSE 文件</a></pre>
|
19
|
+
|
20
|
+
<script>
|
21
|
+
const LICENSE_BAK = `The MIT License (MIT)
|
22
|
+
Copyright (c) 2025 宋子桓(Song Zihuan)
|
23
|
+
|
24
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
25
|
+
|
26
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
27
|
+
|
28
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.`
|
29
|
+
|
30
|
+
fetch('/LICENSE')
|
31
|
+
.then(response => {
|
32
|
+
if (!response.ok) {
|
33
|
+
throw new Error('Network response was not ok');
|
34
|
+
}
|
35
|
+
return response.text();
|
36
|
+
})
|
37
|
+
.then(licenseText => {
|
38
|
+
document.getElementById('license-content').innerText = licenseText;
|
39
|
+
})
|
40
|
+
.catch(error => {
|
41
|
+
document.getElementById('license-content').innerText = LICENSE_BAK;
|
42
|
+
console.error('There has been a problem with your fetch operation:', error);
|
43
|
+
});
|
44
|
+
</script>
|
45
|
+
</body>
|
46
|
+
</html>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>Error 400</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<h1>Error 400 - Bad Request</h1>
|
10
|
+
<p>The request sent to the server was invalid or cannot be otherwise served.</p>
|
11
|
+
</body>
|
12
|
+
</html>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>403 Forbidden</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<h1>403</h1>
|
10
|
+
<p>Forbidden</p>
|
11
|
+
<p>The requested resource is forbidden.</p>
|
12
|
+
</body>
|
13
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>404 Error - Page Not Found</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<h1>404</h1>
|
10
|
+
<h2>Oops! The page you're looking for isn't here.</h2>
|
11
|
+
<p>We can't seem to find the page you were trying to reach. This might be because of:</p>
|
12
|
+
<ul>
|
13
|
+
<li>An outdated link</li>
|
14
|
+
<li>A mistyped address</li>
|
15
|
+
<li>Or the page has been moved</li>
|
16
|
+
</ul>
|
17
|
+
<p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<!--
|
5
|
+
此HTML文件已被压缩为单一文件,无需额外加载样式表或脚本。
|
6
|
+
所有必要的样式已内联编写,确保页面在无外部资源的情况下正常显示。
|
7
|
+
这样的设计有利于简化部署和提高加载速度,特别适合静态页面展示。
|
8
|
+
-->
|
9
|
+
<meta charset="UTF-8">
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
11
|
+
<title>404 Error - Page Not Found</title>
|
12
|
+
<style>
|
13
|
+
body {
|
14
|
+
font-family: Arial, sans-serif;
|
15
|
+
text-align: center;
|
16
|
+
padding-top: 50px;
|
17
|
+
background-color: #f8f8f8;
|
18
|
+
}
|
19
|
+
|
20
|
+
h1 {
|
21
|
+
font-size: 7em;
|
22
|
+
margin-bottom: 0.5em;
|
23
|
+
color: #cc0000;
|
24
|
+
}
|
25
|
+
|
26
|
+
h2 {
|
27
|
+
font-size: 2em;
|
28
|
+
color: #666;
|
29
|
+
}
|
30
|
+
|
31
|
+
p {
|
32
|
+
font-size: 1.2em;
|
33
|
+
color: #333;
|
34
|
+
}
|
35
|
+
|
36
|
+
a {
|
37
|
+
color: #007bff;
|
38
|
+
text-decoration: none;
|
39
|
+
}
|
40
|
+
|
41
|
+
a:hover {
|
42
|
+
text-decoration: underline;
|
43
|
+
}
|
44
|
+
</style>
|
45
|
+
</head>
|
46
|
+
<body>
|
47
|
+
<h1>404</h1>
|
48
|
+
<h2>Oops! The page you're looking for isn't here.</h2>
|
49
|
+
<p>We can't seem to find the page you were trying to reach. This might be because of:</p>
|
50
|
+
<ul>
|
51
|
+
<li>An outdated link</li>
|
52
|
+
<li>A mistyped address</li>
|
53
|
+
<li>Or the page has been moved</li>
|
54
|
+
</ul>
|
55
|
+
<p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|