Repository navigation
Expand file tree
/
Copy pathoptions.html
More file actions
172 lines (146 loc) · 4.81 KB
/
Copy pathoptions.html
File metadata and controls
172 lines (146 loc) · 4.81 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Options - Another New Tab</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="module" src="assets/@fluentui/web-components@2.6.1/web-components.min.js"></script>
<style>
:root {
--body-font: "Segoe UI", Tahoma, Geneva, Verdana, "Microsoft YaHei UI", sans-serif;
--neutral-foreground-rest: #242424;
--neutral-fill-layer-rest: #f5f5f5;
}
body {
font-family: var(--body-font);
margin: 0;
padding: 20px;
background-color: var(--neutral-fill-layer-rest);
color: var(--neutral-foreground-rest);
}
.container {
max-width: 800px;
margin: 0 auto;
}
.section {
margin-bottom: 16px;
padding: 20px;
background-color: var(--neutral-fill-layer-rest);
border-radius: 4px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.form-row {
margin-bottom: 16px;
}
.section h2 {
margin-top: 0;
}
.description {
font-size: 14px;
margin-bottom: 16px;
color: #666;
}
.label-wrapper {
margin-bottom: 8px;
}
fluent-label {
display: block;
font-weight: 600;
margin-bottom: 5px;
}
.page-title {
margin-bottom: 20px;
font-size: 28px;
font-weight: normal;
}
.toast-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}
.toast {
background-color: #107c10;
color: white;
padding: 12px 20px;
border-radius: 4px;
margin-top: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
opacity: 0;
transform: translateY(20px);
transition: opacity 0.3s, transform 0.3s;
}
.toast.visible {
opacity: 1;
transform: translateY(0);
}
fluent-select {
width: 100%;
max-width: 400px;
}
.actions {
margin-top: 20px;
display: flex;
align-items: center;
gap: 12px;
}
.title-field {
width: 100%;
margin-bottom: 4px;
}
@media (prefers-color-scheme: dark) {
:root {
--neutral-foreground-rest: #ffffff;
--neutral-fill-layer-rest: #1e1e1e;
}
.description {
color: #cccccc;
}
}
</style>
</head>
<body>
<div class="container">
<h1 class="page-title" id="options-title"></h1>
<div class="section">
<h2 id="content-control-title"></h2>
<p class="description" id="data-source-description"></p>
<div class="form-row">
<div class="label-wrapper">
<fluent-label for="data-source-selector" id="data-source-label"></fluent-label>
</div>
<fluent-select id="data-source-selector" appearance="outline">
<fluent-option value="jrsc">Jinrishici</fluent-option>
<fluent-option value="hitokoto">Hitokoto</fluent-option>
<fluent-option value="local">Local</fluent-option>
<fluent-option value="random">Random</fluent-option>
</fluent-select>
</div>
<div class="actions">
<fluent-button appearance="accent" id="save-button"></fluent-button>
</div>
</div>
<div class="section">
<h2 id="data-management-title"></h2>
<div class="form-row">
<div class="label-wrapper">
<fluent-label id="refresh-token-label"></fluent-label>
<p class="description" id="refresh-token-description"></p>
</div>
<fluent-button id="refresh-token-button" appearance="accent">
</fluent-button>
</div>
<div class="form-row">
<div class="label-wrapper">
<fluent-label id="reset-visit-count-label"></fluent-label>
<p class="description" id="reset-visit-count-description"></p>
</div>
<fluent-button id="reset-visit-count-button" appearance="accent">
</fluent-button>
</div>
</div>
</div>
<div class="toast-container" id="toast-container"></div>
<script src="options.js"></script>
</body>
</html>