Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Oct 28, 2023
1 parent 056d7dc commit 0e7ac8d
Show file tree
Hide file tree
Showing 27 changed files with 52 additions and 38 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,8 @@ txcid=''
txckey=''

#前端静态文件地址,无法全部修改,请使用替换
staticurl='https://registry.npmmirror.com/ourworldstaticfile/latest/files'
staticurl='https://registry.npmmirror.com/ourworldstaticfile/latest/files'

#附加代码
#可以添加任何代码,如需要添加统计代码,请在此处添加
includecode='<!-- 统计代码 -->'
2 changes: 1 addition & 1 deletion build/ejs/404.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<meta name="keyword" content="<%= process.env.slogan %>">
<% 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/about.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/waline.css" />

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

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include hand.ejs %> <!-- Vertical Navbar --> <!-- Main content --> <!-- Header --> <!-- Main -->
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/admin/admin_index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<link rel="stylesheet" href="<%= process.env.staticurl %>/layui/css/layui.css">
<link id="layui_theme_css" rel="stylesheet" href="<%= process.env.staticurl %>/css/layui-theme-dark.css">
</head>
<%= process.env.includecode %></head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
<!-- 头部区域 -->
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/asdm.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta name="keyword" content="<%= process.env.slogan %>">

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

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include hand.ejs %> <!-- Vertical Navbar --> <!-- Main content --> <!-- Header --> <!-- Main -->
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/comparer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">

</head>
<%= process.env.includecode %></head>

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include hand.ejs %> <!-- Vertical Navbar --> <!-- Main content --> <!-- Header --> <!-- Main -->
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/error.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/waline.css" />

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

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include hand.ejs %> <!-- Vertical Navbar --> <!-- Main content --> <!-- Header --> <!-- Main -->
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/fankui.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/waline.css" />

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

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include hand.ejs %> <!-- Vertical Navbar --> <!-- Main content --> <!-- Header --> <!-- Main -->
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
<%= process.env.siteneme %>分享页面
</title> <link href="https://unpkg.com/@webpixels/[email protected]/dist/index.css" rel="stylesheet">
</head>
<%= process.env.includecode %></head>

<body>
<div>
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/index.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 %>

</head>
<%= process.env.includecode %></head>



Expand Down
2 changes: 1 addition & 1 deletion build/ejs/linkfile.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<link rel="stylesheet" href="https://npm.elemecdn.com/[email protected]/dist/css/mdui.min.css"/>
<script src="https://npm.elemecdn.com/[email protected]/dist/js/mdui.min.js"></script>
<script src="https://npm.elemecdn.com/[email protected]/dist/jquery.min.js"></script>
<script async src="https://umami.192325.xyz/script.js" data-website-id="be8c7cd8-d471-4a0b-b5a7-819a6af35613"></script>

<script> function automsg(msg) {
mdui.snackbar({
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/login_or_register.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/layui/css/layui.css">
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/main.css">
<% 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
4 changes: 2 additions & 2 deletions build/ejs/my_info.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>个人中心 - <%= process.env.siteneme %>
</title>
<link rel="shortcut icon" href="<%= process.env.staticurl %>/img/icon.ico">
<link rel="shortcut icon" href="<%= process.env.staticurl %>/img/ownew.svg">
<meta name="description" content="<%= process.env.slogan %>">
<meta name="keyword" content="<%= process.env.slogan %>">
<link rel="stylesheet" type="text/css" href="<%= process.env.staticurl %>/layui/css/layui.css">
<% 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/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 %>
</head>
<%= process.env.includecode %></head>

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include ../hand.ejs %>
Expand Down
7 changes: 3 additions & 4 deletions build/ejs/python/python_edit.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Python编程 - <%= process.env.siteneme %>
</title>
<link rel="shortcut icon" href='<%= process.env.staticurl %>/img/icon.ico'>
<link rel="shortcut icon" href='<%= process.env.staticurl %>/img/ownew.svg'>
<link rel="stylesheet" href="<%= process.env.staticurl %>/pythonstatic/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="<%= process.env.staticurl %>/layui/css/layui.css">
<link rel="stylesheet" href="<%= process.env.staticurl %>/pythonstatic/css/CodeMirror.css" />
<link rel="stylesheet" href='<%= process.env.staticurl %>/pythonstatic/css/style.css' />
<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 %>
</head>
<%= process.env.includecode %></head>

<body class="mdui-theme-accent-blue">
<script>
Expand All @@ -27,8 +27,7 @@
(delete localStorage.darkTheme)
);
</script>
<script async src="https://umami.192325.xyz/script.js"
data-website-id="be8c7cd8-d471-4a0b-b5a7-819a6af35613"></script>

<div>
<div class="mdui-toolbar">
<a class="mdui-btn mdui-btn-icon" id="toggle" href="/"><i class="mdui-icon material-icons">home</i></a>
Expand Down
7 changes: 3 additions & 4 deletions build/ejs/python/python_play.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Python编程 - <%= process.env.siteneme %>
</title>
<link rel="shortcut icon" href='<%= process.env.staticurl %>/img/icon.ico'>
<link rel="shortcut icon" href='<%= process.env.staticurl %>/img/ownew.svg'>

<% include ../linkfile.ejs %>

</head>
<%= process.env.includecode %></head>

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">

Expand All @@ -22,8 +22,7 @@



<script async src="https://umami.192325.xyz/script.js"
data-website-id="be8c7cd8-d471-4a0b-b5a7-819a6af35613"></script>


<div class="mdui-container" style="margin:40px auto">
<div>
Expand Down
17 changes: 13 additions & 4 deletions 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 %>

</head>
<%= process.env.includecode %></head>



Expand Down Expand Up @@ -74,7 +74,7 @@
laypage.render({
elem: 'python_change_page'
, count: <%= python_count %>
, limit: 8
, limit: 16
, theme: '#448aff'
, jump: function (obj, first) {
$.ajax({
Expand All @@ -86,10 +86,15 @@
$("#python_projects").html("");
for (var i = 0; i < d.length; i++) {
tzzt=''
if (d[i].state == 2) {
tzzt = '<i class="mdui-icon material-icons">stars</i>'
}
if (d[i].description == "") {
d[i].description = '暂无简介'
}
$("#python_projects").append(`
<div class="mdui-col-md-3 mdui-col-sm-6 mdui-col-xs-12" style="margin:5px 0px 5px 0px;">
<div class="">
Expand All @@ -99,7 +104,7 @@
<div class="mdui-card-primary-title substr">${tzzt}${d[i].title}</div>
<div class="mdui-card-primary-subtitle substr">${d[i].description}</div>
</div>
<div class="mdui-card-header mdui-ripple" onclick='window.open('/user?id=${d[i].authorid},'_self')'>
<div class="mdui-card-header mdui-ripple" onclick='window.open("/user?id=${d[i].authorid}","_self")'>
<img class="mdui-card-header-avatar" src="<%= process.env.qiniuurl%>/user/${d[i].authorid}.png" />
<div class="mdui-card-header-title">${d[i].nickname}</div>
<div class="mdui-card-header-subtitle">${d[i].motto}</div>
Expand Down Expand Up @@ -142,6 +147,10 @@
tzzt = '<i class="mdui-icon material-icons">stars</i>'
}
if (d[i].description == "") {
d[i].description = '暂无简介'
}
$("#python_projects").append(`
<div class="mdui-col-md-3 mdui-col-sm-6 mdui-col-xs-12" style="margin:5px 0px 5px 0px;">
<div class="">
Expand All @@ -151,7 +160,7 @@
<div class="mdui-card-primary-title substr">${tzzt}${d[i].title}</div>
<div class="mdui-card-primary-subtitle substr">${d[i].description}</div>
</div>
<div class="mdui-card-header mdui-ripple" onclick='window.open('/user?id=${d[i].authorid},'_self')'>
<div class="mdui-card-header mdui-ripple" onclick='window.open("/user?id=${d[i].authorid}","_self")'>
<img class="mdui-card-header-avatar" src="<%= process.env.qiniuurl%>/user/${d[i].authorid}.png" />
<div class="mdui-card-header-title">${d[i].nickname}</div>
<div class="mdui-card-header-subtitle">${d[i].motto}</div>
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/repw.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/layui/css/layui.css">
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/main.css">
<% 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/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 %>
</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/ownew.svg"><% include ../linkfile.ejs %>
</head>
<%= process.env.includecode %></head>

<body>

Expand Down
6 changes: 3 additions & 3 deletions 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 %>
</head>
<%= process.env.includecode %></head>

<body class="mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include ../hand.ejs %>
Expand Down Expand Up @@ -51,9 +51,9 @@
</div>
</div>
<div class="layui-row scratch-player-bottom">
<button id="greenFlag" class="mdui-btn mdui-color-theme-accent mdui-ripple"
<button id="greenFlag" class="mdui-btn mdui-color-theme-accent mdui-ripple md3botton"
onclick="greenFlag()" style="display: none;">开始</button>
<button id="stopAll" class="mdui-btn mdui-color-red mdui-ripple" onclick="stopAll()"
<button id="stopAll" class="mdui-btn mdui-color-red mdui-ripple md3botton" onclick="stopAll()"
style="display: none;">停止</button>
</div>
</div>
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 %>

</head>
<%= process.env.includecode %></head>



Expand Down
2 changes: 1 addition & 1 deletion build/ejs/share.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>
<%= process.env.siteneme %>分享页面
</title>
</head>
<%= process.env.includecode %></head>

<body><a href="https://owscr.link">
<article class="movie-card"> <img src="<%= process.env.staticurl %>/img/owshare.png" alt="wallpaper" />
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/user.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<link type="text/css" rel="stylesheet" href="<%= process.env.staticurl %>/css/main.css" />
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/waline.css" />
<% include linkfile.ejs %>
</head>
<%= process.env.includecode %></head>

<body class="mdui-theme-primary-blue mdui-theme-accent-blue mdui-loaded mdui-appbar-with-toolbar">
<% include hand.ejs %>
Expand Down
2 changes: 1 addition & 1 deletion build/ejs/waline_login.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>登录认证 - <%= process.env.siteneme %>
</title>
</head>
<%= process.env.includecode %></head>

<body>
<script> window.location.replace('/user/walinelogin') </script>
Expand Down
3 changes: 3 additions & 0 deletions build/ejs/分组 4 (7).svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<link href="https://unpkg.com/@webpixels/[email protected]/dist/index.css" rel="stylesheet">
<title>OurWorld</title>
</head>
<%= process.env.includecode %></head>

<body>

Expand Down

0 comments on commit 0e7ac8d

Please sign in to comment.