-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (84 loc) · 3.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="zh-hant">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>首頁</title>
<!-- link -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css">
<link rel="stylesheet" href="./css/index.css">
<!-- script -->
<script src="https://cdn.jsdelivr.net/gh/pardnchiu/PDRenderKit@1.0.0/dist/PDRenderKit.js" copyright="Pardn Ltd"></script>
<script src="./js/index.js"></script>
<!-- inline-style -->
<style>
.dom-temp {
display: none !important;
}
</style>
</head>
<body id="body">
<!-- 登入 -->
<section class="login dom-temp" :if="is_guest">
<h1>{{ login.title }}</h1>
<section>
<label>
<input type="password" placeholder="API Key" :model="key">
</label>
<i class="fa-solid fa-eye-slash" @click="show"></i>
</section>
<button @click="login">
前往
<i class="fa-solid fa-arrow-right"></i>
</button>
</section>
<section class="dom-temp" :else>
<!-- 頂部導覽列 -->
<section :path="./view/body-top.html"></section>
<!-- 左側導覽列 -->
<section :path="./view/body-left.html"></section>
<section class="body-right">
<!-- 頂部導覽列 -->
<nav>
<button @click="body_left_show">
<i class="fa-solid fa-bars"></i>
</button>
<a :href="e.href" :for="e in top_tab">{{ e.title }}</a>
</nav>
<!-- -->
<p class="hint">還沒想好放什麼合適</p>
</section>
</section>
<script>
document.addEventListener("DOMContentLoaded", function () {
page = new PD({
id: "body",
data: {
is_guest: false,
login: {
title: "LOGIN",
email: "",
password: "",
},
title: "管理後台",
left: {
is_body_left_min: $cookie("is_body_left_min"),
is_database_list: 0,
is_database_add: 0,
is_article_add: 0,
is_folder_image: 0,
is_file_edit: 0,
is_json_edit: 0
},
},
event: {
...default_events,
},
next: () => {
}
});
});
</script>
</body>
</html>