Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Feb 25, 2024
1 parent 8afd55f commit 0634de1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ app.all("*", function (req, res, next) {
nickname: "",
is_admin: 0,
};
console.log("未找到JWT Token");
//console.log("未找到JWT Token");
next();
}
});
Expand Down
15 changes: 12 additions & 3 deletions views/html-head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/projectspage.css">
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/main.css">
<link rel="stylesheet" href="<%= process.env.staticurl %>/css/waline.css" />

<meta name="view-transition" content="same-origin">

</head>
<style>
:not(:defined) {
Expand Down Expand Up @@ -86,7 +89,7 @@
<mdui-navigation-rail alignment="start" class="pc">
<mdui-button-icon icon="menu" slot="top" class="open-tools" ></mdui-button-icon>
<mdui-fab lowered icon="add" slot="top" class="open-add"></mdui-fab>
<mdui-button-icon icon="account_circle" slot="bottom" class="open-user"></mdui-button-icon>
<mdui-button-icon icon="<% if (login==false) { %>login<% } else { %>account_circle<% } %>" slot="bottom" class="open-user"></mdui-button-icon>

<mdui-navigation-rail-item icon="home" href="/" value="/">主页</mdui-navigation-rail-item>
<mdui-navigation-rail-item icon="code" href="/scratch" value="/scratch">Scratch</mdui-navigation-rail-item>
Expand All @@ -95,7 +98,7 @@
<mdui-bottom-app-bar scroll-behavior="hide" scroll-threshold="30" class="mobile">
<mdui-button-icon icon="menu" class="open-tools"></mdui-button-icon>
<mdui-button-icon icon="home" href="/"></mdui-button-icon>
<mdui-button-icon icon="account_circle" class="open-user"></mdui-button-icon>
<mdui-button-icon icon="<% if (login==false) { %>login<% } else { %>account_circle<% } %>" class="open-user"></mdui-button-icon>
<mdui-button-icon icon="code" class="open-types"></mdui-button-icon>
<div style="flex-grow: 1"></div>
<mdui-fab icon="add" class="open-add"></mdui-fab>
Expand Down Expand Up @@ -201,6 +204,7 @@
word-wrap: break-word;
word-break: break-all;
}
</style>
<!-- Filled -->
<link href="<%= process.env.staticurl %>/font1.css" rel="stylesheet">
Expand All @@ -223,6 +227,11 @@
display: none !important
}
}
.cover1{
background: rgb(0 0 0 / 0%);
backdrop-filter: blur(10px);
}
</style>
<script type="module">
var tauributton = document.querySelector('#tauributton');
Expand All @@ -240,7 +249,7 @@
document
.getElementById('titlebar-close')
.addEventListener('click', () => appWindow.close())</script>
<mdui-top-app-bar data-tauri-drag-region >
<mdui-top-app-bar data-tauri-drag-region class="cover1">

<div style="flex-grow: 1"></div>

Expand Down
2 changes: 1 addition & 1 deletion views/scratch/scratch_play.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="mdui-center">
<img class="green-flag"
src="<%= process.env.staticurl %>/scratchstatic/assets/2e0c4790f8f9cf28e3c346b9cef0fcb6.svg">
<div style="font-size: small; width: 88px;text-align: center;">点击运行</div>
<div style="font-size: small; width: 88px;text-align: center;">点击加载</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 0634de1

Please sign in to comment.