Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Nov 11, 2023
1 parent 7e7eaf2 commit 5b3abdf
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 65 deletions.
3 changes: 0 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,6 @@ app.use("/scratch", router_scratch);
var apiserver = require("./server/router_api.js");
app.use("/api", apiserver);

app.get("/fankui", function (req, res, next) {
res.render("ejs/fankui.ejs");
});
app.get("/about", function (req, res, next) {
res.render("ejs/about.ejs");
});
Expand Down
44 changes: 0 additions & 44 deletions build/ejs/fankui.ejs

This file was deleted.

39 changes: 29 additions & 10 deletions build/ejs/hand.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,24 @@
<div class="mdui-dialog-content">涉及代码请去Github
Discussions,站务请去兔小巢(测试阶段不会受理大型站务问题),涉及漏洞、安全问题请加QQ1847261658或[email protected]</div>
<div class="mdui-dialog-actions">
<div class="mdui-tab"><a href="https://github.com/orgs/<%= process.env.siteneme %>Org/discussions"
class="mdui-ripple md3botton"><i class="mdui-icon material-icons">feedback</i><label>Github
Discussions</label></a><a href="/user/tuxiaochao" class="mdui-ripple md3botton"><i
class="mdui-icon material-icons">feedback</i><label>兔小巢</label></a></div><button
class="mdui-btn mdui-ripple md3botton mdui-text-color-theme-text" mdui-dialog-close>关闭</button>
<div class="mdui-tab">
<a href="https://github.com/orgs/<%= process.env.siteneme %>Org/discussions" class="mdui-ripple md3botton">
<i class="mdui-icon material-icons">feedback</i>
<label>Github Discussions</label>
</a>
<a href="/user/tuxiaochao" class="mdui-ripple md3botton">
<i class="mdui-icon material-icons">feedback</i>
<label>兔小巢</label>
</a>
<a onclick="markdevice()" class="mdui-ripple md3botton">
<i class="mdui-icon material-icons">notifications_active</i>
<label>标记设备(测试版)</label>
</a>
</div>
<button class="mdui-btn mdui-ripple md3botton mdui-text-color-theme-text" mdui-dialog-close>关闭</button>
</div>
</div>

<script>if (localStorage.darkTheme) {
document.body.classList.add("mdui-theme-layout-dark");
document.body.setAttribute("dark", "");
Expand Down Expand Up @@ -145,6 +156,8 @@
}
jQuery(document).ready(function () {
getCDNinfo();
window.clarity("identify", "<%= username %>", "ourworld-user-<%= userid %>", window.location.pathname, "<%= nickname %>")
});
</script>
<script>
Expand Down Expand Up @@ -195,10 +208,16 @@
}
</style>
<script>// 控制台安全提示
window.console.log('%c%s', 'color: red; background: yellow; font-size: 72px;', '警告!');
window.console.log('%c%s', 'color: red; background: yellow; font-size: 24px;', '如果你在接受远程控制,请立刻退出,不要急着看下面的内容');
window.console.log('%c%s', 'color: red; background: yellow; font-size: 24px;', '使用此控制台会让攻击者利用Self-XSS(自跨站脚本)攻击来冒充你,并窃取你的信息,盗取你的账户,删掉你的所有作品');
window.console.log('%c%s', 'color: red; background: yellow; font-size: 24px;', '请永远不要在这里粘贴或输入任何文字,不论他们告诉你这有多安全,管理员不需要查看控制台获取你的日志,OurWorld无法使用控制台进行调试或操作,任何希望你使用"检查"或F12按钮打开这里的人都是骗子,请立刻关掉这个网页并在官方渠道反馈(右上角头像旁反馈按钮)');
//window.console.log('%c%s', 'color: red; background: yellow; font-size: 72px;', '警告!');
//window.console.log('%c%s', 'color: red; background: yellow; font-size: 24px;', '如果你在接受远程控制,请立刻退出,不要急着看下面的内容');
//window.console.log('%c%s', 'color: red; background: yellow; font-size: 24px;', '使用此控制台会让攻击者利用Self-XSS(自跨站脚本)攻击来冒充你,并窃取你的信息,盗取你的账户,删掉你的所有作品');
//window.console.log('%c%s', 'color: red; background: yellow; font-size: 24px;', '请永远不要在这里粘贴或输入任何文字,不论他们告诉你这有多安全,管理员不需要查看控制台获取你的日志,OurWorld无法使用控制台进行调试或操作,任何希望你使用"检查"或F12按钮打开这里的人都是骗子,请立刻关掉这个网页并在官方渠道反馈(右上角头像旁反馈按钮)');
</script>

<style></style>
<script>
markdevice = function () {
window.clarity("identify", "<%= username %>", "ourworld-user-<%= userid %>", window.location.pathname, "<%= nickname %>")
automsg('已尝试标记这个设备')
}
</script>
2 changes: 1 addition & 1 deletion build/ejs/python/my_python_projects.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link type="text/css" rel="stylesheet" href="<%= process.env.staticurl %>/css/main.css" />

<% include ../linkfile.ejs %>
<%- process.env.includecode %><% include linkfile.ejs %></head>
<%- process.env.includecode %></head>

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include ../hand.ejs %>
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/python/python_edit.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/pythonstatic/css/solarized.css" />
<link type="text/css" rel="stylesheet" href="<%= process.env.staticurl %>/pythonstatic/showWorks.css" />
<% include ../linkfile.ejs %>
<%- process.env.includecode %><% include linkfile.ejs %></head>
<%- process.env.includecode %></head>

<body class="mdui-theme-accent-blue">
<script>
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/python/python_play.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<% include ../linkfile.ejs %>

<%- process.env.includecode %><% include linkfile.ejs %>
<%- process.env.includecode %>
</head>

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/python/python_projects.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/main.css">
<% include ../linkfile.ejs %>

<%- process.env.includecode %><% include linkfile.ejs %></head>
<%- process.env.includecode %></head>



Expand Down
2 changes: 1 addition & 1 deletion build/ejs/scratch/my_scratch_projects.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link type="text/css" rel="stylesheet" href="<%= process.env.staticurl %>/css/main.css" />

<% include ../linkfile.ejs %>
<%- process.env.includecode %><% include linkfile.ejs %></head>
<%- process.env.includecode %></head>

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include ../hand.ejs %>
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/scratch/scratch_edit.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Scratch编程 - <%= process.env.siteneme %></title>
<link rel="shortcut icon" href="<%= process.env.staticurl %>/img/siteicon.png"><% include ../linkfile.ejs %>
<%- process.env.includecode %><% include linkfile.ejs %></head>
<%- process.env.includecode %></head>

<body>

Expand Down
2 changes: 1 addition & 1 deletion build/ejs/scratch/scratch_play.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
integrity="sha512-ygEyjMC6rqnzJqWGjRTJUPYMEs9JUOm3i7OWUS9CgQ4XkBUvMsgCS1I8JqavidQ2ClHcREB7IbA2mN08+r9Elg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<% include ../linkfile.ejs %>
<%- process.env.includecode %><% include linkfile.ejs %></head>
<%- process.env.includecode %></head>

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include ../hand.ejs %>
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/scratch/scratch_projects.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/main.css">
<% include ../linkfile.ejs %>

<%- process.env.includecode %><% include linkfile.ejs %></head>
<%- process.env.includecode %></head>



Expand Down

0 comments on commit 5b3abdf

Please sign in to comment.