huan-simple-html 1.1.1 → 1.2.2
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 -30
- package/.npmignore +71 -70
- package/LICENSE +7 -7
- package/LICENSE_CN +7 -7
- package/README.md +31 -29
- package/README_EN.md +31 -29
- package/REEPORT +14 -14
- package/REPORT_EN +14 -14
- package/config.json +4 -4
- package/crlf2lf.sh +9 -0
- package/package.json +3 -3
- package/src/assets/image/logo.png +0 -0
- package/src/common.js +0 -4
- package/src/html/LICENSE_CN.html +47 -47
- package/src/html/LICENSE_US.html +45 -45
- package/src/html/error/4xx/400.html +11 -11
- package/src/html/error/4xx/403.html +12 -12
- package/src/html/error/4xx/404.html +18 -18
- package/src/html/error/4xx/404.signal.html +56 -56
- package/src/html/error/4xx/404.songzihuan.signal.html +57 -57
- package/src/html/error/4xx/405.html +12 -12
- package/src/html/error/4xx/4xx.html +12 -12
- package/src/html/error/5xx/500.html +12 -12
- package/src/html/error/5xx/500.signal.html +29 -29
- package/src/html/error/5xx/500.songzihuan.signal.html +30 -30
- package/src/html/error/5xx/501.html +12 -12
- package/src/html/error/5xx/502.html +11 -11
- package/src/html/error/5xx/503.html +12 -12
- package/src/html/error/5xx/504.html +11 -11
- package/src/html/error/5xx/505.html +12 -12
- package/src/html/error/5xx/506.html +11 -11
- package/src/html/error/5xx/507.html +12 -12
- package/src/html/error/5xx/508.html +12 -12
- package/src/html/error/5xx/509.html +12 -12
- package/src/html/error/5xx/510.html +11 -11
- package/src/html/error/5xx/511.html +14 -14
- package/src/html/error/5xx/5xx.html +12 -12
- package/src/html/index.html +124 -84
- package/src/html/index.new.html +15 -15
- package/src/html/index.new.signal.html +42 -42
- package/src/html/mitorg.html +5072 -5072
- package/src/style/error/404.css +30 -30
- package/src/style/error/4xx.css +16 -16
- package/src/style/error/5xx.css +15 -15
- package/src/style/index/index.css +34 -25
- package/src/style/index/license.css +3 -3
- package/src/style/index/mitorg.css +106 -106
- package/src/style/index/new.css +21 -21
- package/webpack_config_dev.js +3 -3
- package/src/assets/image/logo_big.png +0 -0
- package/src/assets/image/songzihuan.jpg +0 -0
package/.eslintignore
CHANGED
@@ -1,30 +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?
|
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/.npmignore
CHANGED
@@ -1,70 +1,71 @@
|
|
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
|
-
.npmrc
|
13
|
-
pnpm-lock.yaml
|
14
|
-
package-lock.json
|
15
|
-
yarn.lock
|
16
|
-
|
17
|
-
# Pack
|
18
|
-
huan-*.tgz
|
19
|
-
|
20
|
-
# Build
|
21
|
-
dist
|
22
|
-
dist-*
|
23
|
-
dist-ssr
|
24
|
-
dist-dev
|
25
|
-
dist-prod
|
26
|
-
|
27
|
-
# Git
|
28
|
-
.git
|
29
|
-
.gitignore
|
30
|
-
|
31
|
-
# Github
|
32
|
-
github-page
|
33
|
-
docs
|
34
|
-
.github
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
!.
|
43
|
-
!.
|
44
|
-
!.
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
.
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
ntuser.dat
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
Recycle
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
*.
|
67
|
-
*.
|
68
|
-
*.
|
69
|
-
*.
|
70
|
-
*.
|
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
|
+
.npmrc
|
13
|
+
pnpm-lock.yaml
|
14
|
+
package-lock.json
|
15
|
+
yarn.lock
|
16
|
+
|
17
|
+
# Pack
|
18
|
+
huan-*.tgz
|
19
|
+
|
20
|
+
# Build
|
21
|
+
dist
|
22
|
+
dist-*
|
23
|
+
dist-ssr
|
24
|
+
dist-dev
|
25
|
+
dist-prod
|
26
|
+
|
27
|
+
# Git
|
28
|
+
.git
|
29
|
+
.gitignore
|
30
|
+
|
31
|
+
# Github
|
32
|
+
github-page
|
33
|
+
docs
|
34
|
+
.github
|
35
|
+
public/CNAME
|
36
|
+
|
37
|
+
# Local
|
38
|
+
*.local
|
39
|
+
|
40
|
+
# Hidden
|
41
|
+
.*
|
42
|
+
!.prettierrc.cjs
|
43
|
+
!.npmignore
|
44
|
+
!.eslintignore
|
45
|
+
!.eslintrc.cjs
|
46
|
+
!public/.__ignore__
|
47
|
+
|
48
|
+
# IDE
|
49
|
+
.vscode
|
50
|
+
.idea
|
51
|
+
|
52
|
+
# System
|
53
|
+
.DS_Store
|
54
|
+
desktop.ini
|
55
|
+
thumbs.db
|
56
|
+
iconcache.db
|
57
|
+
IconCache.db
|
58
|
+
ntuser.dat
|
59
|
+
ntuser.dat.log
|
60
|
+
hiberfil.sys
|
61
|
+
pagefile.sys
|
62
|
+
$Recycle.Bin
|
63
|
+
Recycle Bin
|
64
|
+
|
65
|
+
# Other
|
66
|
+
*.suo
|
67
|
+
*.ntvs*
|
68
|
+
*.njsproj
|
69
|
+
*.sln
|
70
|
+
*.sw?
|
71
|
+
*.bak
|
package/LICENSE
CHANGED
@@ -1,8 +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
|
-
|
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
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
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
美国麻省理工学院授权协议(MIT LICENSE)
|
2
|
-
版权所有(c)2025 宋子桓(Song Zihuan)
|
3
|
-
现授予的权限,免费向任何人索取该软件和相关的文档文件( “软件” ) ,以处理软件,没有任何限制,包括但不限于使用权,复制,修改,合并,出版,发行,授权,和/或销售软件的副本,并允许的人提供的软件是这样做,但须符合下列条件:
|
4
|
-
上述版权声明和本许可声明中应包括所有副本或实质性部分的软件。
|
5
|
-
该软件是“按原样”提供,不做任何保证,明示或暗示,包括但不限于适销性,针对特定用途的适用性和非侵权的。在任何情况下,作者或版权持有人对任何索赔,损害赔偿或其他责任,无论是在一项行动的合同,侵权或其他因出于或有关的软件或利用等交易必须软件。
|
6
|
-
|
7
|
-
以下声明非 美国麻省理工学院授权协议(MIT LICENSE) 的任何部分:
|
1
|
+
美国麻省理工学院授权协议(MIT LICENSE)
|
2
|
+
版权所有(c)2025 宋子桓(Song Zihuan)
|
3
|
+
现授予的权限,免费向任何人索取该软件和相关的文档文件( “软件” ) ,以处理软件,没有任何限制,包括但不限于使用权,复制,修改,合并,出版,发行,授权,和/或销售软件的副本,并允许的人提供的软件是这样做,但须符合下列条件:
|
4
|
+
上述版权声明和本许可声明中应包括所有副本或实质性部分的软件。
|
5
|
+
该软件是“按原样”提供,不做任何保证,明示或暗示,包括但不限于适销性,针对特定用途的适用性和非侵权的。在任何情况下,作者或版权持有人对任何索赔,损害赔偿或其他责任,无论是在一项行动的合同,侵权或其他因出于或有关的软件或利用等交易必须软件。
|
6
|
+
|
7
|
+
以下声明非 美国麻省理工学院授权协议(MIT LICENSE) 的任何部分:
|
8
8
|
翻译声明:这是一份 美国麻省理工学院授权协议(MIT LICENSE) 的非官方中文简体翻译。它并非 美国麻省理工学院授权协议(MIT LICENSE) 发布,也不是使用 美国麻省理工学院授权协议(MIT LICENSE) 授权的软件的法定发布条款,只有 美国麻省理工学院授权协议(MIT LICENSE) 的英文原版具有这样的效力。然而,我们希望这份翻译能够帮助中文读者更好的理解 美国麻省理工学院授权协议(MIT LICENSE) 。
|
package/README.md
CHANGED
@@ -1,30 +1,32 @@
|
|
1
|
-
# 简单的欢迎页面(SIMPLE-HTML)
|
2
|
-
|
3
|
-
这是一个简单的欢迎页面,我使用了静态的HTML+CSS+JS进行编码。
|
4
|
-
|
5
|
-
`index.new.html` 页面,可以作为你的默认建站页面。
|
6
|
-
|
7
|
-
错误码页面在error文件夹下。
|
8
|
-
|
9
|
-
注意:`.signal.html` 文件为内联样式之后的文件它可以作为一个单独的页面使用。
|
10
|
-
|
11
|
-
注意:`.songzihuan.signal.html` 为添加作者个人样式的`signal.html文件`文件。
|
12
|
-
|
13
|
-
## 作者信息
|
14
|
-
作者:宋子桓(Song Zihuan)
|
15
|
-
|
16
|
-
作者 Github:[github.com/SongZihuan](https://github.com/SongZihuan)
|
17
|
-
|
18
|
-
作者主页:[song-zh.com](https://song-zh.com)
|
19
|
-
|
20
|
-
作者邮箱:songzihuan@song-zh.com
|
21
|
-
|
22
|
-
## 项目信息
|
23
|
-
项目托管地址:[github.com/SongZihuan/simple-html](https://github.com/SongZihuan/simple-html)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
1
|
+
# 简单的欢迎页面(SIMPLE-HTML)
|
2
|
+
|
3
|
+
这是一个简单的欢迎页面,我使用了静态的HTML+CSS+JS进行编码。
|
4
|
+
|
5
|
+
`index.new.html` 页面,可以作为你的默认建站页面。
|
6
|
+
|
7
|
+
错误码页面在error文件夹下。
|
8
|
+
|
9
|
+
注意:`.signal.html` 文件为内联样式之后的文件它可以作为一个单独的页面使用。
|
10
|
+
|
11
|
+
注意:`.songzihuan.signal.html` 为添加作者个人样式的`signal.html文件`文件。
|
12
|
+
|
13
|
+
## 作者信息
|
14
|
+
作者:宋子桓(Song Zihuan)
|
15
|
+
|
16
|
+
作者 Github:[github.com/SongZihuan](https://github.com/SongZihuan)
|
17
|
+
|
18
|
+
作者主页:[song-zh.com](https://song-zh.com)
|
19
|
+
|
20
|
+
作者邮箱:songzihuan@song-zh.com
|
21
|
+
|
22
|
+
## 项目信息
|
23
|
+
项目托管地址:[github.com/SongZihuan/simple-html](https://github.com/SongZihuan/simple-html)
|
24
|
+
|
25
|
+
Github Page托管: [github.com/huan-simple-html/huan-simple-html.github.io](https://github.com/huan-simple-html/huan-simple-html.github.io)
|
26
|
+
|
27
|
+
站点地址:[homepage.song-zh.com](https://homepage.song-zh.com/)
|
28
|
+
|
29
|
+
最后更新时间:2025年1月27日。
|
30
|
+
|
31
|
+
## 特别注意
|
30
32
|
备注:以上README为作者原文。
|
package/README_EN.md
CHANGED
@@ -1,30 +1,32 @@
|
|
1
|
-
# Simple Welcome Page (SIMPLE-HTML)
|
2
|
-
|
3
|
-
This is a simple welcome page. I used static HTML+CSS+JS to code it.
|
4
|
-
|
5
|
-
The `index.new.html` page can be used as your default website page.
|
6
|
-
|
7
|
-
The error code page is in the error folder.
|
8
|
-
|
9
|
-
Note: The `.signal.html` file is a file after the inline style. It can be used as a separate page.
|
10
|
-
|
11
|
-
Note: `.songzihuan.signal.html` is the `signal.html file` file with the author's personal style added.
|
12
|
-
|
13
|
-
## Author information
|
14
|
-
Author: Song Zihuan
|
15
|
-
|
16
|
-
Author Github: [github.com/SongZihuan](https://github.com/SongZihuan)
|
17
|
-
|
18
|
-
Author homepage: [song-zh.com](https://song-zh.com)
|
19
|
-
|
20
|
-
Author email: songzihuan@song-zh.com
|
21
|
-
|
22
|
-
## Project information
|
23
|
-
Project hosting address: [github.com/SongZihuan/simple-html](https://github.com/SongZihuan/simple-html)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
1
|
+
# Simple Welcome Page (SIMPLE-HTML)
|
2
|
+
|
3
|
+
This is a simple welcome page. I used static HTML+CSS+JS to code it.
|
4
|
+
|
5
|
+
The `index.new.html` page can be used as your default website page.
|
6
|
+
|
7
|
+
The error code page is in the error folder.
|
8
|
+
|
9
|
+
Note: The `.signal.html` file is a file after the inline style. It can be used as a separate page.
|
10
|
+
|
11
|
+
Note: `.songzihuan.signal.html` is the `signal.html file` file with the author's personal style added.
|
12
|
+
|
13
|
+
## Author information
|
14
|
+
Author: Song Zihuan
|
15
|
+
|
16
|
+
Author Github: [github.com/SongZihuan](https://github.com/SongZihuan)
|
17
|
+
|
18
|
+
Author homepage: [song-zh.com](https://song-zh.com)
|
19
|
+
|
20
|
+
Author email: songzihuan@song-zh.com
|
21
|
+
|
22
|
+
## Project information
|
23
|
+
Project hosting address: [github.com/SongZihuan/simple-html](https://github.com/SongZihuan/simple-html)
|
24
|
+
|
25
|
+
Github Page hosting: [github.com/huan-simple-html/huan-simple-html.github.io](https://github.com/huan-simple-html/huan-simple-html.github.io)
|
26
|
+
|
27
|
+
Site address: [homepage.song-zh.com](https://homepage.song-zh.com/)
|
28
|
+
|
29
|
+
Last updated: January 27, 2025.
|
30
|
+
|
31
|
+
## Special Note
|
30
32
|
Note: The above is the English translation of the author's [README.md](/README.md) (machine translation involved)
|
package/REEPORT
CHANGED
@@ -1,15 +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
|
-
|
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
15
|
备注:以上REPORT为作者原文。
|
package/REPORT_EN
CHANGED
@@ -1,15 +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
|
-
|
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
15
|
Note: The above text is machine translated.
|
package/config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
{
|
2
|
-
"ICP": "粤ICP备2022108417号",
|
3
|
-
"WANGAN": "粤公网安备44011402000783号",
|
4
|
-
"注释:": "若您要运行此网站,并公开发布,请根据当地法律进行ICP备案和网安备案。"
|
1
|
+
{
|
2
|
+
"ICP": "粤ICP备2022108417号",
|
3
|
+
"WANGAN": "粤公网安备44011402000783号",
|
4
|
+
"注释:": "若您要运行此网站,并公开发布,请根据当地法律进行ICP备案和网安备案。"
|
5
5
|
}
|
package/crlf2lf.sh
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# 使用Git Bash运行
|
2
|
+
# 需要先安装<chocolatey>
|
3
|
+
# 安装命令:iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
4
|
+
# 若安装过程提示无权限执行脚本,则:Set-ExecutionPolicy Bypass -Scope Process -Force
|
5
|
+
# 并且删除<C:\ProgramData\chocolatey>目录。
|
6
|
+
# 安装完成后使用<choco --version>查看版本,确定安装成功
|
7
|
+
# 安装<dos2unix>:choco install dos2unix
|
8
|
+
|
9
|
+
find . -type f -name '*' -print0 | xargs -0 dos2unix
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "huan-simple-html",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.2.2",
|
4
4
|
"description": "一个简单的HTML项目,通过Webpack进行打包。请尽量使用pnpm处理此包。更多细节请查看\"README.md\"",
|
5
5
|
"keywords": [
|
6
6
|
"html",
|
@@ -64,9 +64,9 @@
|
|
64
64
|
"build:prod": "npx webpack --config webpack_config_prod.js",
|
65
65
|
"build:prod:run": "npx pnpm build:prod && npx pnpm prod",
|
66
66
|
"github": "npx webpack server --config webpack_config_github.js",
|
67
|
-
"build:github": "npx webpack --config webpack_config_github.js
|
68
|
-
"pack": "npx pnpm run init && npx pnpm run lint && npx pnpm pack",
|
67
|
+
"build:github": "npx webpack --config webpack_config_github.js",
|
69
68
|
"build:github:run": "npx pnpm build:github && npx pnpm github",
|
69
|
+
"pack": "npx pnpm run init && npx pnpm run lint && npx pnpm pack",
|
70
70
|
"login:npmjs": "npx pnpm login --registry=https://registry.npmjs.org",
|
71
71
|
"publish:npmjs": "npx pnpm publish --registry=https://registry.npmjs.org"
|
72
72
|
}
|
Binary file
|
package/src/common.js
CHANGED
@@ -4,8 +4,6 @@ import jQuery from 'jquery'
|
|
4
4
|
|
5
5
|
import Logo from './assets/image/logo.png'
|
6
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
7
|
|
10
8
|
document.addEventListener('DOMContentLoaded', function () {
|
11
9
|
// 动态设置favicon
|
@@ -17,8 +15,6 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
17
15
|
|
18
16
|
window.Logo = Logo
|
19
17
|
window.WangAn = WangAn
|
20
|
-
window.SongZihuan = SongZihuan
|
21
|
-
window.LogoBig = LogoBin
|
22
18
|
|
23
19
|
window.jQuery = jQuery
|
24
20
|
window.$ = jQuery
|
package/src/html/LICENSE_CN.html
CHANGED
@@ -1,48 +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>
|
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
48
|
</html>
|