🔀 Merge branch 'wei' of gitcode.com:qingss0/micro_servers into wei
This commit is contained in:
commit
0f661a046c
5 files changed
+157
-86
No files matched your search
@@ -0,0 +1,71 @@
|
|||||||
|
code {
|
||||||
|
color: red;
|
||||||
|
background-color: rgb(254, 235, 238);
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
pre > code {
|
||||||
|
display: block;
|
||||||
|
color: white;
|
||||||
|
background-color: rgb(96, 96, 96);
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
blockquote {
|
||||||
|
margin-right: 0px;
|
||||||
|
background-color: #cfcfcf;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* by qing */
|
||||||
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background: #fffbf0;
|
||||||
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto,sans-serif;
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background-color: #eedeb0;
|
||||||
|
border: 1px solid #000000;
|
||||||
|
border-radius: 1.125rem;
|
||||||
|
padding: 1.5rem 1.25rem;
|
||||||
|
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
|
||||||
|
/*max-width: 480px;*/
|
||||||
|
width: 90%;
|
||||||
|
color: #4d3e2b;
|
||||||
|
transition: box-shadow 0.2s, border-color 0.2s;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
border-color: #c7b38a;
|
||||||
|
box-shadow: 0 10px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 移动端微调 */
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
body {
|
||||||
|
padding: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
padding: 1.2rem, 1rem;
|
||||||
|
border-radius: 1rem;
|
||||||
|
border-width: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 极小屏 (宽度 < 360px) */
|
||||||
|
@media (max-width: 360px) {
|
||||||
|
.card {
|
||||||
|
padding: 1rem 0.8rem;
|
||||||
|
border-radius: 0.9rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
+17
-25
@@ -5,34 +5,26 @@
|
|||||||
<!-- 移动端适配核心标签 -->
|
<!-- 移动端适配核心标签 -->
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||||
<title>DNFS · 树状笔记</title>
|
<title>DNFS · 树状笔记</title>
|
||||||
<style>
|
<link rel="stylesheet" href="css/qing.css">
|
||||||
code {
|
|
||||||
color: red;
|
|
||||||
background-color: rgb(254, 235, 238);
|
|
||||||
padding: 5px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
pre > code {
|
|
||||||
display: block;
|
|
||||||
color: white;
|
|
||||||
background-color: rgb(96, 96, 96);
|
|
||||||
padding: 5px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
blockquote {
|
|
||||||
margin-right: 0px;
|
|
||||||
background-color: #cfcfcf;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<center>
|
<div class="box">
|
||||||
<!-- 文章主标题 -->
|
<h1><div id="article-title"></div></h1>
|
||||||
<h1><div id="article-title">title</div></h1>
|
|
||||||
|
|
||||||
<!-- 文章详情 -->
|
</center>
|
||||||
<div>
|
<div id="article-content"></div>
|
||||||
发布时间:<span id="publish-time">2026-1-1</span>
|
<div class="recommend-list" id="recommend-list"></div>
|
||||||
|
<br>
|
||||||
|
<div class="card">
|
||||||
|
<h3>节点操作</h3>
|
||||||
|
<label>新增节点</label><input id="input-note-title"></input><br>
|
||||||
|
<label>节点内容</label><textarea id="input-note-content"></textarea><br>
|
||||||
|
<button id="input-note-submit">提交</button>
|
||||||
|
<button id="input-note-clear">重置</button>
|
||||||
|
</div>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/12.0.0/markdown-it.min.js"></script>
|
||||||
|
<script src="/js/validation.js"></script>
|
||||||
|
<script src="/js/dnfs.js"></script>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
浏览:<span id="visit-count">999</span>
|
浏览:<span id="visit-count">999</span>
|
||||||
|
|||||||
@@ -144,21 +144,23 @@ function load_notes(main_node) {
|
|||||||
}
|
}
|
||||||
for (i in main_node) {
|
for (i in main_node) {
|
||||||
item = main_node[i]
|
item = main_node[i]
|
||||||
|
var card = document.createElement('div');
|
||||||
|
card.className = "card";
|
||||||
var ttl = document.createElement('center');
|
var ttl = document.createElement('center');
|
||||||
ttl.addEventListener('click', function(event) {
|
ttl.addEventListener('click', function(event) {
|
||||||
var id = Number(item.id)
|
var id = Number(item.id)
|
||||||
stack.push(id)
|
stack.push(id)
|
||||||
getNode(token, id).then(load_notes)
|
getNode(token, id).then(load_notes)
|
||||||
});
|
});
|
||||||
var ttl1 =document.createElement('h1');
|
var ttl1 =document.createElement('h3');
|
||||||
ttl1.textContent = item.title
|
ttl1.textContent = item.title
|
||||||
ttl.appendChild(ttl1)
|
ttl.appendChild(ttl1)
|
||||||
recommend_list.appendChild(ttl)
|
card.appendChild(ttl)
|
||||||
var ctt = document.createElement('p');
|
var ctt = document.createElement('p');
|
||||||
renderMarkdown(ctt, item.content);
|
renderMarkdown(ctt, item.content);
|
||||||
recommend_list.appendChild(ctt)
|
card.appendChild(ctt)
|
||||||
|
recommend_list.appendChild(card)
|
||||||
recommend_list.appendChild(document.createElement('br'))
|
recommend_list.appendChild(document.createElement('br'))
|
||||||
recommend_list.appendChild(document.createElement('hr'))
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+33
-30
@@ -5,6 +5,7 @@
|
|||||||
<!-- 移动端适配核心标签 -->
|
<!-- 移动端适配核心标签 -->
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||||
<title>登录</title>
|
<title>登录</title>
|
||||||
|
<link rel="stylesheet" href="css/qing.css">
|
||||||
<style>
|
<style>
|
||||||
.tip-red {color:red;}
|
.tip-red {color:red;}
|
||||||
.tip-yellow {color: orange;}
|
.tip-yellow {color: orange;}
|
||||||
@@ -12,36 +13,38 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>用户登录</h2>
|
<div class="card">
|
||||||
<form action="" id="form" method="post">
|
<h2>用户登录</h2>
|
||||||
<div>
|
<form action="" id="form" method="post">
|
||||||
<label>用户名/推荐邮箱:</label>
|
<div>
|
||||||
<input type="text" id="loginUsername" name="username" placeholder="请输入用户名">
|
<label>用户名/推荐邮箱:</label>
|
||||||
<span id="msgTip" ></span>
|
<input type="text" id="loginUsername" name="username" placeholder="请输入用户名">
|
||||||
<br>
|
<span id="msgTip" ></span>
|
||||||
<label>密码:</label>
|
<br>
|
||||||
<input type="password" id="loginPassword" name="password" placeholder="请输入密码">
|
<label>密码:</label>
|
||||||
<span id="pwdTip"></span>
|
<input type="password" id="loginPassword" name="password" placeholder="请输入密码">
|
||||||
</div>
|
<span id="pwdTip"></span>
|
||||||
<div>
|
</div>
|
||||||
<label>验证邮箱:</label>
|
<div>
|
||||||
<input type="email" id="loginEmail" name="email" placeholder="请输入验证邮箱">
|
<label>验证邮箱:</label>
|
||||||
<span id="emlSub">
|
<input type="email" id="loginEmail" name="email" placeholder="请输入验证邮箱">
|
||||||
<input type="submit" value="发送验证码">
|
<span id="emlSub">
|
||||||
</span>
|
<input type="submit" value="发送验证码">
|
||||||
<span id="emlTip"></span>
|
</span>
|
||||||
</div>
|
<span id="emlTip"></span>
|
||||||
<div>
|
</div>
|
||||||
<button type="button" id="registerBtn">注册</button>
|
<div>
|
||||||
<input type="submit" id="loginBtn" value="登录">
|
<button type="button" id="registerBtn">注册</button>
|
||||||
<input type="reset" id="resetUser" value="重置">
|
<input type="submit" id="loginBtn" value="登录">
|
||||||
</div>
|
<input type="reset" id="resetUser" value="重置">
|
||||||
<div>
|
</div>
|
||||||
<input type="checkbox" id="agreeBox" name="agree" value="access">
|
<div>
|
||||||
<label id="agreement">同意该系统相关用户使用条例</label>
|
<input type="checkbox" id="agreeBox" name="agree" value="access">
|
||||||
<span id="agreeTip"></span>
|
<label id="agreement">同意该系统相关用户使用条例</label>
|
||||||
</div>
|
<span id="agreeTip"></span>
|
||||||
</form>
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
<script src="js/validation.js"></script>
|
<script src="js/validation.js"></script>
|
||||||
<script src="js/login.js"></script>
|
<script src="js/login.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+30
-27
@@ -4,6 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||||
<title>注册页面</title>
|
<title>注册页面</title>
|
||||||
|
<link rel="stylesheet" href="css/qing.css">
|
||||||
<style>
|
<style>
|
||||||
.tip-red {color:red;}
|
.tip-red {color:red;}
|
||||||
.tip-yellow {color: orange;}
|
.tip-yellow {color: orange;}
|
||||||
@@ -11,34 +12,36 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>注册页面</h2>
|
<div class="card">
|
||||||
<form id="form">
|
<h2>注册页面</h2>
|
||||||
<div>
|
<form id="form">
|
||||||
<label>用户名/推荐邮箱:</label>
|
<div>
|
||||||
<input type="text" id="regusername" placeholder="请输入用户名">
|
<label>用户名/推荐邮箱:</label>
|
||||||
<span id="msgTip" ></span>
|
<input type="text" id="regusername" placeholder="请输入用户名">
|
||||||
<br>
|
<span id="msgTip" ></span>
|
||||||
<label>邮箱号:</label>
|
<br>
|
||||||
<input type="email" id="regemail" placeholder="请输入邮箱号">
|
<label>邮箱号:</label>
|
||||||
<div class="code-box">验证码:
|
<input type="email" id="regemail" placeholder="请输入邮箱号">
|
||||||
<input type="text" id="code" placeholder="请输入6位验证码" inputmode="numeric" maxlength="6">
|
<div class="code-box">验证码:
|
||||||
<input type="button" id="getCode" value="获取验证码">
|
<input type="text" id="code" placeholder="请输入6位验证码" inputmode="numeric" maxlength="6">
|
||||||
<span id="codeTip"></span>
|
<input type="button" id="getCode" value="获取验证码">
|
||||||
|
<span id="codeTip"></span>
|
||||||
|
</div>
|
||||||
|
<span id="emlTip"></span>
|
||||||
|
<br>
|
||||||
|
<label>密码:</label>
|
||||||
|
<input type="password" id="regpsw" placeholder="密码至少6位">
|
||||||
|
<label>验证密码:</label>
|
||||||
|
<input type="password" id="repwd" placeholder="请再次输入密码">
|
||||||
|
<span id="pwdTip"></span>
|
||||||
</div>
|
</div>
|
||||||
<span id="emlTip"></span>
|
<div>
|
||||||
<br>
|
<input id="formsub" type="submit" value="提交">
|
||||||
<label>密码:</label>
|
<input id="resetUser" type="reset" value="重置">
|
||||||
<input type="password" id="regpsw" placeholder="密码至少6位">
|
<input type="button" value="返回登录" onclick="location.href='login.html'">
|
||||||
<label>验证密码:</label>
|
</div>
|
||||||
<input type="password" id="repwd" placeholder="请再次输入密码">
|
</form>
|
||||||
<span id="pwdTip"></span>
|
</div>
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<input id="formsub" type="submit" value="提交">
|
|
||||||
<input id="resetUser" type="reset" value="重置">
|
|
||||||
<input type="button" value="返回登录" onclick="location.href='login.html'">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<script src="js/validation.js"></script>
|
<script src="js/validation.js"></script>
|
||||||
<script src="js/register.js?v=6"></script>
|
<script src="js/register.js?v=6"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in new issue
Block a user