From 0e7ac8d61a5918b24b2919465699a8abd07454a4 Mon Sep 17 00:00:00 2001 From: SUNWUYUAN <1847261658@qq.com> Date: Sat, 28 Oct 2023 10:30:48 +0800 Subject: [PATCH] 1 --- .env.example | 6 +++++- build/ejs/404.ejs | 2 +- build/ejs/about.ejs | 2 +- build/ejs/admin/admin_index.ejs | 2 +- build/ejs/asdm.ejs | 2 +- build/ejs/comparer.ejs | 2 +- build/ejs/error.ejs | 2 +- build/ejs/fankui.ejs | 2 +- build/ejs/home.ejs | 2 +- build/ejs/index.ejs | 2 +- build/ejs/linkfile.ejs | 2 +- build/ejs/login_or_register.ejs | 2 +- build/ejs/my_info.ejs | 4 ++-- build/ejs/python/my_python_projects.ejs | 2 +- build/ejs/python/python_edit.ejs | 7 +++---- build/ejs/python/python_play.ejs | 7 +++---- build/ejs/python/python_projects.ejs | 17 +++++++++++++---- build/ejs/repw.ejs | 2 +- build/ejs/scratch/my_scratch_projects.ejs | 2 +- build/ejs/scratch/scratch_edit.ejs | 2 +- build/ejs/scratch/scratch_play.ejs | 6 +++--- build/ejs/scratch/scratch_projects.ejs | 2 +- build/ejs/share.ejs | 2 +- build/ejs/user.ejs | 2 +- build/ejs/waline_login.ejs | 2 +- "build/ejs/\345\210\206\347\273\204 4 (7).svg" | 3 +++ index.html | 2 +- 27 files changed, 52 insertions(+), 38 deletions(-) create mode 100644 "build/ejs/\345\210\206\347\273\204 4 (7).svg" diff --git a/.env.example b/.env.example index e69881b..8a09671 100644 --- a/.env.example +++ b/.env.example @@ -60,4 +60,8 @@ txcid='' txckey='' #前端静态文件地址,无法全部修改,请使用替换 -staticurl='https://registry.npmmirror.com/ourworldstaticfile/latest/files' \ No newline at end of file +staticurl='https://registry.npmmirror.com/ourworldstaticfile/latest/files' + +#附加代码 +#可以添加任何代码,如需要添加统计代码,请在此处添加 +includecode='' \ No newline at end of file diff --git a/build/ejs/404.ejs b/build/ejs/404.ejs index 4cc8ea7..90dc3b1 100644 --- a/build/ejs/404.ejs +++ b/build/ejs/404.ejs @@ -12,7 +12,7 @@ <% include linkfile.ejs %> - +<%= process.env.includecode %> <% include hand.ejs %> diff --git a/build/ejs/about.ejs b/build/ejs/about.ejs index da61753..4cf6540 100644 --- a/build/ejs/about.ejs +++ b/build/ejs/about.ejs @@ -12,7 +12,7 @@ <% include linkfile.ejs %> - +<%= process.env.includecode %> <% include hand.ejs %> diff --git a/build/ejs/admin/admin_index.ejs b/build/ejs/admin/admin_index.ejs index 6155a53..d29a2f6 100644 --- a/build/ejs/admin/admin_index.ejs +++ b/build/ejs/admin/admin_index.ejs @@ -18,7 +18,7 @@ - +<%= process.env.includecode %>
diff --git a/build/ejs/asdm.ejs b/build/ejs/asdm.ejs index a896520..a25d180 100644 --- a/build/ejs/asdm.ejs +++ b/build/ejs/asdm.ejs @@ -11,7 +11,7 @@ <% include linkfile.ejs %> - +<%= process.env.includecode %> <% include hand.ejs %> diff --git a/build/ejs/comparer.ejs b/build/ejs/comparer.ejs index 3e27928..fad12f7 100644 --- a/build/ejs/comparer.ejs +++ b/build/ejs/comparer.ejs @@ -386,7 +386,7 @@ - +<%= process.env.includecode %> <% include hand.ejs %> diff --git a/build/ejs/error.ejs b/build/ejs/error.ejs index 5e6e798..99edb87 100644 --- a/build/ejs/error.ejs +++ b/build/ejs/error.ejs @@ -12,7 +12,7 @@ <% include linkfile.ejs %> - +<%= process.env.includecode %> <% include hand.ejs %> diff --git a/build/ejs/fankui.ejs b/build/ejs/fankui.ejs index 6278393..f9fe8a2 100644 --- a/build/ejs/fankui.ejs +++ b/build/ejs/fankui.ejs @@ -12,7 +12,7 @@ <% include linkfile.ejs %> - +<%= process.env.includecode %> <% include hand.ejs %> diff --git a/build/ejs/home.ejs b/build/ejs/home.ejs index 9113d5b..7d93484 100644 --- a/build/ejs/home.ejs +++ b/build/ejs/home.ejs @@ -6,7 +6,7 @@ <%= process.env.siteneme %>分享页面 - +<%= process.env.includecode %>
diff --git a/build/ejs/index.ejs b/build/ejs/index.ejs index 402cf58..b70a90a 100644 --- a/build/ejs/index.ejs +++ b/build/ejs/index.ejs @@ -18,7 +18,7 @@ <% include linkfile.ejs %> - +<%= process.env.includecode %> diff --git a/build/ejs/linkfile.ejs b/build/ejs/linkfile.ejs index a27db4a..a763c39 100644 --- a/build/ejs/linkfile.ejs +++ b/build/ejs/linkfile.ejs @@ -1,7 +1,7 @@ - + - +
home diff --git a/build/ejs/python/python_play.ejs b/build/ejs/python/python_play.ejs index 35c540a..cd00d76 100644 --- a/build/ejs/python/python_play.ejs +++ b/build/ejs/python/python_play.ejs @@ -6,11 +6,11 @@ Python编程 - <%= process.env.siteneme %> - + <% include ../linkfile.ejs %> - +<%= process.env.includecode %> @@ -22,8 +22,7 @@ - +
diff --git a/build/ejs/python/python_projects.ejs b/build/ejs/python/python_projects.ejs index 5749e63..c4cf637 100644 --- a/build/ejs/python/python_projects.ejs +++ b/build/ejs/python/python_projects.ejs @@ -18,7 +18,7 @@ <% include ../linkfile.ejs %> - +<%= process.env.includecode %> @@ -74,7 +74,7 @@ laypage.render({ elem: 'python_change_page' , count: <%= python_count %> - , limit: 8 + , limit: 16 , theme: '#448aff' , jump: function (obj, first) { $.ajax({ @@ -86,10 +86,15 @@ $("#python_projects").html(""); for (var i = 0; i < d.length; i++) { tzzt='' + if (d[i].state == 2) { tzzt = 'stars' } + if (d[i].description == "") { + + d[i].description = '暂无简介' +} $("#python_projects").append(`
@@ -99,7 +104,7 @@
${tzzt}${d[i].title}
${d[i].description}
-
+
${d[i].nickname}
${d[i].motto}
@@ -142,6 +147,10 @@ tzzt = 'stars' } + if (d[i].description == "") { + +d[i].description = '暂无简介' +} $("#python_projects").append(`
@@ -151,7 +160,7 @@
${tzzt}${d[i].title}
${d[i].description}
-
+
${d[i].nickname}
${d[i].motto}
diff --git a/build/ejs/repw.ejs b/build/ejs/repw.ejs index 36f938a..20e02bd 100644 --- a/build/ejs/repw.ejs +++ b/build/ejs/repw.ejs @@ -17,7 +17,7 @@ <% include linkfile.ejs %> - + <%= process.env.includecode %> <% include hand.ejs %> diff --git a/build/ejs/scratch/my_scratch_projects.ejs b/build/ejs/scratch/my_scratch_projects.ejs index 270d755..ec1deff 100644 --- a/build/ejs/scratch/my_scratch_projects.ejs +++ b/build/ejs/scratch/my_scratch_projects.ejs @@ -14,7 +14,7 @@ <% include ../linkfile.ejs %> - +<%= process.env.includecode %> <% include ../hand.ejs %> diff --git a/build/ejs/scratch/scratch_edit.ejs b/build/ejs/scratch/scratch_edit.ejs index 1bd70a5..36d8057 100644 --- a/build/ejs/scratch/scratch_edit.ejs +++ b/build/ejs/scratch/scratch_edit.ejs @@ -5,7 +5,7 @@ Scratch编程 - <%= process.env.siteneme %> <% include ../linkfile.ejs %> - +<%= process.env.includecode %> diff --git a/build/ejs/scratch/scratch_play.ejs b/build/ejs/scratch/scratch_play.ejs index 7ce8ac1..652ac71 100644 --- a/build/ejs/scratch/scratch_play.ejs +++ b/build/ejs/scratch/scratch_play.ejs @@ -21,7 +21,7 @@ integrity="sha512-ygEyjMC6rqnzJqWGjRTJUPYMEs9JUOm3i7OWUS9CgQ4XkBUvMsgCS1I8JqavidQ2ClHcREB7IbA2mN08+r9Elg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <% include ../linkfile.ejs %> - +<%= process.env.includecode %> <% include ../hand.ejs %> @@ -51,9 +51,9 @@
- -
diff --git a/build/ejs/scratch/scratch_projects.ejs b/build/ejs/scratch/scratch_projects.ejs index ea9fe3b..044fb38 100644 --- a/build/ejs/scratch/scratch_projects.ejs +++ b/build/ejs/scratch/scratch_projects.ejs @@ -18,7 +18,7 @@ <% include ../linkfile.ejs %> - +<%= process.env.includecode %> diff --git a/build/ejs/share.ejs b/build/ejs/share.ejs index a1bf9a9..a3f2df3 100644 --- a/build/ejs/share.ejs +++ b/build/ejs/share.ejs @@ -6,7 +6,7 @@ <%= process.env.siteneme %>分享页面 - +<%= process.env.includecode %>
wallpaper diff --git a/build/ejs/user.ejs b/build/ejs/user.ejs index da46bd6..32d71ea 100644 --- a/build/ejs/user.ejs +++ b/build/ejs/user.ejs @@ -15,7 +15,7 @@ <% include linkfile.ejs %> - +<%= process.env.includecode %> <% include hand.ejs %> diff --git a/build/ejs/waline_login.ejs b/build/ejs/waline_login.ejs index 0d1a6f2..2ac57e8 100644 --- a/build/ejs/waline_login.ejs +++ b/build/ejs/waline_login.ejs @@ -4,7 +4,7 @@ 登录认证 - <%= process.env.siteneme %> - +<%= process.env.includecode %> diff --git "a/build/ejs/\345\210\206\347\273\204 4 (7).svg" "b/build/ejs/\345\210\206\347\273\204 4 (7).svg" new file mode 100644 index 0000000..316616a --- /dev/null +++ "b/build/ejs/\345\210\206\347\273\204 4 (7).svg" @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/index.html b/index.html index 7846e56..7654022 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ OurWorld - +<%= process.env.includecode %>