-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
372 lines (352 loc) · 13.6 KB
/
Copy pathindex.html
File metadata and controls
372 lines (352 loc) · 13.6 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta name="color-scheme" content="dark light" />
<title>文件夹快捷轨</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main class="app-shell" id="appShell" data-theme="dark">
<header class="rail drag-region" id="rail" aria-label="文件夹快捷入口">
<div class="brand" title="按住空白区域可拖动快捷轨">
<span class="brand-mark" aria-hidden="true">
<svg viewBox="0 0 24 24">
<path d="M3.5 6.75h6l1.7 2h9.3v9.5H3.5z" />
<path d="M7 12.25h10M12 9.75v5" />
</svg>
</span>
<span class="brand-copy">
<strong>快捷轨</strong>
<small id="syncLabel">同步中</small>
</span>
</div>
<div class="rail-divider" aria-hidden="true"></div>
<nav class="pinned-viewport" aria-label="已置顶文件夹">
<button
class="scroll-nudge left"
id="scrollLeftButton"
type="button"
aria-label="向左滚动"
>
<svg viewBox="0 0 24 24"><path d="m14.5 6-6 6 6 6" /></svg>
</button>
<div class="pinned-list" id="pinnedList"></div>
<button
class="scroll-nudge right"
id="scrollRightButton"
type="button"
aria-label="向右滚动"
>
<svg viewBox="0 0 24 24"><path d="m9.5 6 6 6-6 6" /></svg>
</button>
</nav>
<div class="rail-actions no-drag">
<button
class="icon-button"
id="dockButton"
type="button"
title="联动吸附:移动 Eagle 或快捷轨时一起移动"
aria-label="联动吸附"
>
<svg viewBox="0 0 24 24">
<path d="M9.5 14.5l5-5M7 17H5.5a3.5 3.5 0 0 1 0-7H9M15 10h3.5a3.5 3.5 0 0 1 0 7H15" />
</svg>
<span class="state-dot"></span>
</button>
<button
class="icon-button"
id="topmostButton"
type="button"
title="切换系统置顶"
aria-label="切换系统置顶"
>
<svg viewBox="0 0 24 24">
<path d="m8 4 8 8M14.5 3.5l6 6-4 1.5-4 4-1.5 4-6-6 4-1.5 4-4z" />
</svg>
<span class="state-dot"></span>
</button>
<button
class="manage-button"
id="manageButton"
type="button"
aria-expanded="false"
aria-controls="managerPanel"
>
<svg viewBox="0 0 24 24">
<path d="M12 5v14M5 12h14" />
</svg>
<span>管理</span>
</button>
<button
class="icon-button hide-button"
id="hideButton"
type="button"
title="隐藏快捷轨(可从插件面板再次打开)"
aria-label="隐藏快捷轨"
>
<svg viewBox="0 0 24 24"><path d="M6 6l12 12M18 6 6 18" /></svg>
</button>
</div>
<div
class="pin-context-strip no-drag"
id="pinContextStrip"
role="dialog"
aria-label="快捷入口设置"
aria-hidden="true"
hidden
>
<div class="pin-context-identity">
<span class="pin-context-icon" id="pinContextIcon" aria-hidden="true"></span>
<span class="pin-context-copy">
<small>正在编辑</small>
<strong id="pinContextName">快捷入口</strong>
</span>
</div>
<div class="pin-context-divider" aria-hidden="true"></div>
<div class="pin-context-colors">
<span class="pin-context-label">快捷色</span>
<div class="pin-context-palette" id="pinContextPalette" role="group" aria-label="快捷入口颜色">
<button
class="pin-color-reset"
id="pinContextResetColor"
type="button"
data-pin-color=""
title="恢复文件夹原色"
aria-label="恢复文件夹原色"
>
原
</button>
<button type="button" data-pin-color="red" title="红色" aria-label="红色"></button>
<button type="button" data-pin-color="orange" title="橙色" aria-label="橙色"></button>
<button type="button" data-pin-color="yellow" title="黄色" aria-label="黄色"></button>
<button type="button" data-pin-color="green" title="绿色" aria-label="绿色"></button>
<button type="button" data-pin-color="aqua" title="青色" aria-label="青色"></button>
<button type="button" data-pin-color="blue" title="蓝色" aria-label="蓝色"></button>
<button type="button" data-pin-color="purple" title="紫色" aria-label="紫色"></button>
<button type="button" data-pin-color="pink" title="粉色" aria-label="粉色"></button>
</div>
</div>
<div class="pin-context-actions" id="pinContextActions">
<div class="pin-context-size-actions">
<button
class="pin-context-size"
id="pinContextAdjustLengthButton"
type="button"
>
调长度
</button>
<button
class="pin-context-size"
id="pinContextResetLengthButton"
type="button"
>
默认长度
</button>
</div>
<button class="pin-context-remove" id="pinContextRemoveButton" type="button">
从快捷轨移除
</button>
<button
class="pin-context-close"
id="pinContextCloseButton"
type="button"
title="关闭"
aria-label="关闭快捷入口设置"
>
<svg viewBox="0 0 24 24"><path d="M7 7l10 10M17 7 7 17" /></svg>
</button>
</div>
<div class="pin-context-confirm" id="pinContextConfirm" hidden>
<span>确认只从快捷轨移除?</span>
<button
class="pin-context-confirm-remove"
id="pinContextConfirmRemoveButton"
type="button"
>
确认移除
</button>
<button
class="pin-context-cancel"
id="pinContextCancelRemoveButton"
type="button"
>
取消
</button>
</div>
</div>
<div
class="pin-length-actions no-drag"
id="pinLengthActions"
aria-hidden="true"
hidden
>
<span class="pin-length-readout">
<small>卡片长度</small>
<strong id="pinLengthValue">0px</strong>
</span>
<button
class="pin-length-confirm"
id="pinLengthConfirmButton"
type="button"
title="确认长度"
aria-label="确认长度"
>
<svg viewBox="0 0 24 24"><path d="m6 12 4 4 8-9" /></svg>
</button>
<button
class="pin-length-cancel"
id="pinLengthCancelButton"
type="button"
title="取消调整"
aria-label="取消调整"
>
<svg viewBox="0 0 24 24"><path d="M7 7l10 10M17 7 7 17" /></svg>
</button>
</div>
</header>
<section class="manager-panel" id="managerPanel" aria-hidden="true">
<div class="manager-heading">
<div>
<p class="eyebrow">QUICK ACCESS / 实时同步</p>
<h1>把常用目录留在手边</h1>
</div>
<div class="library-chip">
<span class="pulse" aria-hidden="true"></span>
<span id="libraryName">当前资源库</span>
</div>
</div>
<div class="manager-grid">
<section class="folder-picker" aria-labelledby="folderPickerTitle">
<div class="section-toolbar">
<div class="section-title">
<h2 id="folderPickerTitle">选择快捷入口</h2>
<p id="folderCount">正在读取文件夹…</p>
<div class="tree-actions" aria-label="文件夹树操作">
<button id="expandAllButton" type="button">全部展开</button>
<span aria-hidden="true">/</span>
<button id="collapseAllButton" type="button">全部收起</button>
</div>
</div>
<label class="search-box">
<svg viewBox="0 0 24 24">
<circle cx="10.8" cy="10.8" r="6.3" />
<path d="m15.5 15.5 4 4" />
</svg>
<input
id="searchInput"
type="search"
placeholder="搜索名称或完整路径"
autocomplete="off"
spellcheck="false"
/>
<kbd>/</kbd>
</label>
</div>
<div class="folder-list" id="folderList" role="tree" aria-multiselectable="true"></div>
<div class="empty-state" id="emptyState" hidden>
<svg viewBox="0 0 48 48">
<path d="M8 15h13l3 4h16v19H8z" />
<path d="m18 28 12 0" />
</svg>
<p>没有找到匹配的文件夹</p>
</div>
</section>
<aside class="selection-panel" aria-label="快捷入口管理">
<div class="side-mode-tabs" role="tablist" aria-label="管理视图">
<button
class="side-mode-tab active"
id="orderTabButton"
type="button"
role="tab"
aria-selected="true"
aria-controls="orderView"
>
快捷顺序
</button>
<button
class="side-mode-tab"
id="usageTabButton"
type="button"
role="tab"
aria-selected="false"
aria-controls="usageView"
>
使用统计
</button>
</div>
<section class="side-view order-view" id="orderView" role="tabpanel" aria-labelledby="orderTabButton">
<div class="selection-heading">
<div>
<p class="eyebrow">PINNED / MANUAL ORDER</p>
<h2 id="selectionTitle">已置顶 <span id="pinnedCount">0</span></h2>
</div>
<button class="text-button" id="clearButton" type="button">清空</button>
</div>
<div class="selected-list" id="selectedList"></div>
<p class="selection-tip">
<span aria-hidden="true">↕</span>
拖动可手动排序;快捷轨中的顺序会立即更新
</p>
</section>
<section
class="side-view usage-view"
id="usageView"
role="tabpanel"
aria-labelledby="usageTabButton"
hidden
>
<div class="usage-heading">
<div>
<p class="eyebrow">FOLDER FREQUENCY</p>
<h2>文件夹使用次数</h2>
</div>
<div class="usage-summary" id="usageSummary">0 次 · 0 个文件夹</div>
</div>
<div class="usage-periods" role="group" aria-label="统计时间范围">
<button type="button" data-usage-period="day">天</button>
<button type="button" data-usage-period="week">周</button>
<button class="active" type="button" data-usage-period="month">月</button>
</div>
<p class="usage-range-label" id="usageRangeLabel">最近 30 天的文件夹切换</p>
<div class="usage-selection-toolbar">
<span>快捷轨已选 <strong id="usageSelectedCount">0</strong></span>
<div>
<button id="selectAllUsageButton" type="button">全选</button>
<button id="clearUsageSelectionButton" type="button">取消全选</button>
</div>
</div>
<div class="usage-list" id="usageList" aria-live="polite"></div>
<div class="usage-actions">
<p>
<strong>点击顺序就是快捷轨顺序。</strong>
再点一次可取消;“全选”会按当前使用排行加入。
</p>
</div>
</section>
</aside>
</div>
<footer class="manager-footer">
<p>
<span class="live-dot" aria-hidden="true"></span>
文件夹结构与使用次数会在本地自动同步,无需重新打开插件。
</p>
<div class="footer-actions">
<span id="saveState">更改自动保存</span>
<button class="done-button" id="doneButton" type="button">
完成
<svg viewBox="0 0 24 24"><path d="m7 12 3 3 7-7" /></svg>
</button>
</div>
</footer>
</section>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
</main>
<script src="js/core.js"></script>
<script src="js/plugin.js"></script>
</body>
</html>