Skip to content

Commit 2e8a18e

Browse files
committed
feat: admin panel
1 parent 686d5cd commit 2e8a18e

27 files changed

Lines changed: 4641 additions & 1908 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ dist-ssr
2424
*.sw?
2525

2626
data/**
27-
oneblog.*
27+
oneblog.*
28+
*lock*

deno.lock

Lines changed: 438 additions & 138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,60 @@
77
<title>Blog - Loading</title>
88
<script type="module" defer src="/src/main.ts"></script>
99
</head>
10-
<body></body>
10+
<body>
11+
<style>
12+
body {
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
height: 100vh;
17+
background-color: #f5f5f5;
18+
margin: 0;
19+
font-family: Arial, sans-serif;
20+
}
21+
22+
/* SVG版本 - 更精确的Android风格 */
23+
.loader {
24+
width: 60px;
25+
height: 60px;
26+
animation: rotate 2s linear infinite;
27+
margin: 0 auto 20px;
28+
}
29+
30+
.loader circle {
31+
fill: none;
32+
stroke: #8addf4;
33+
stroke-width: 4;
34+
stroke-linecap: round;
35+
animation: dash 1.5s ease-in-out infinite;
36+
}
37+
38+
@keyframes rotate {
39+
100% {
40+
transform: rotate(360deg);
41+
}
42+
}
43+
44+
@keyframes dash {
45+
0% {
46+
stroke-dasharray: 1, 150;
47+
stroke-dashoffset: 0;
48+
}
49+
50% {
50+
stroke-dasharray: 90, 150;
51+
stroke-dashoffset: -35;
52+
}
53+
100% {
54+
stroke-dasharray: 90, 150;
55+
stroke-dashoffset: -124;
56+
}
57+
}
58+
</style>
59+
<div class="loader-container">
60+
<svg class="loader" viewBox="0 0 50 50">
61+
<circle cx="25" cy="25" r="20"></circle>
62+
</svg>
63+
<div class="loading-text">加载中...</div>
64+
</div>
65+
</body>
1166
</html>

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"serve": "deno task serve"
1111
},
1212
"dependencies": {
13+
"@muyajs/core": "^0.0.32",
1314
"vue": "^3.5.13"
1415
},
1516
"devDependencies": {
@@ -36,6 +37,8 @@
3637
"static_dir": "static/",
3738
"config": "config.json",
3839
"index": "index.bjson",
39-
"server": "http://localhost:4560"
40+
"___comment___": "当评论系统启用时,指定评论系统API地址",
41+
"server": "http://localhost:4560",
42+
"admin": false
4043
}
4144
}

0 commit comments

Comments
 (0)