Skip to content

Commit

Permalink
切换admin路径为dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
MarSeventh committed Sep 13, 2024
1 parent d72f3d4 commit 4bab285
Show file tree
Hide file tree
Showing 22 changed files with 62 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
- 进入项目对应`部署`->`所有部署`,选择最新的一个,点击后面更多按钮(`···`),选择`重试部署`
- 部署完成后,访问`http(s)://你的域名/admin`即可进入后台管理页面
- 部署完成后,访问`http(s)://你的域名/dashboard`即可进入后台管理页面
#### 3.1.4图片审查
Expand Down
2 changes: 1 addition & 1 deletion admin-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
position: absolute;
right: 0px;
" v-if="showLogoutButton">
<a href="./admin">
<a href="/dashboard">
<el-button
size="mini"
type="warning"
Expand Down
1 change: 1 addition & 0 deletions css/244.38c465e0.css

Large diffs are not rendered by default.

Binary file added css/244.38c465e0.css.gz
Binary file not shown.
1 change: 1 addition & 0 deletions css/522.3ec27238.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added css/522.3ec27238.css.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions functions/api/manage/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function onRequest(context) {
} = context;
//get the request url
const url = new URL(request.url);
//redirect to admin page
return Response.redirect(url.origin+"/admin.html", 302)
//redirect to dashboard page
return Response.redirect(url.origin+"/dashboard", 302)

}
4 changes: 2 additions & 2 deletions functions/file/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export async function onRequest(context) { // Contents of context object
});

if (response.ok) {
// Referer header equal to the admin page
if (request.headers.get('Referer') == url.origin + "/admin") {
// Referer header equal to the dashboard page
if (request.headers.get('Referer') == url.origin + "/dashboard") {
//show the image
return newRes;
}
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/logo.png"><title>Sanyue ImgHub</title><script defer="defer" src="/js/app.d924cb5f.js"></script><link href="/css/app.def7ef9b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but sanyue_imghub doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/logo.png"><title>Sanyue ImgHub</title><script defer="defer" src="/js/app.4e19a760.js"></script><link href="/css/app.def7ef9b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but sanyue_imghub doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
Binary file modified index.html.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions js/244.6a0448bd.js

Large diffs are not rendered by default.

Binary file added js/244.6a0448bd.js.gz
Binary file not shown.
1 change: 1 addition & 0 deletions js/244.6a0448bd.js.map

Large diffs are not rendered by default.

Binary file added js/244.6a0448bd.js.map.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions js/522.61a8dfb4.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added js/522.61a8dfb4.js.gz
Binary file not shown.
1 change: 1 addition & 0 deletions js/522.61a8dfb4.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added js/522.61a8dfb4.js.map.gz
Binary file not shown.
46 changes: 46 additions & 0 deletions js/app.4e19a760.js

Large diffs are not rendered by default.

Binary file added js/app.4e19a760.js.gz
Binary file not shown.
1 change: 1 addition & 0 deletions js/app.4e19a760.js.map

Large diffs are not rendered by default.

Binary file added js/app.4e19a760.js.map.gz
Binary file not shown.

0 comments on commit 4bab285

Please sign in to comment.