-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (113 loc) · 3.81 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
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="/src/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mew Rename</title>
<script type="module" src="/src/main.ts" defer></script>
</head>
<body>
<main id="container">
<h1 id="app-title">MewRename</h1>
<form id="rename-form">
<div class="grid flex-grid">
<div class="row">
<label for="root-input">文件夹:</label>
<div class="cell fixed-cell">
<input type="text" id="root-input" placeholder="文件夹路径" />
<span class="vilidity" data-hint="路径不存在或不是文件夹"></span>
</div>
<button type="button" id="browse-button">浏览</button>
</div>
<div class="row">
<label for="pattern">匹配模式:</label>
<div class="cell flex-cell">
<input
type="text"
id="pattern-input"
placeholder="源文本或正则表达式"
/>
<span class="vilidity" data-hint="无效的正则表达式"></span>
</div>
</div>
<div class="row">
<label for="replacement">替换文本:</label>
<div class="cell fixed-cell">
<input
type="text"
id="replacement-input"
placeholder="替换目标文本"
/>
</div>
<button type="button" id="execute-button">执行</button>
</div>
</div>
<details>
<summary>详细设置</summary>
<div class="grid fixed-grid">
<div class="row">
<div class="row-item">
<input type="checkbox" id="use-regex" />启用正则表达式
</div>
<div class="row-item">
<label for="depth">递归深度:</label>
<input
type="number"
id="depth-number"
min="0"
max="99"
value="1"
placeholder="1"
/>
</div>
<div class="row-item">
<label for="replace-all">替换方向和次数:</label>
<input
type="number"
id="count-number"
min="-9"
max="9"
value="0"
placeholder="0"
/>
</div>
</div>
<div class="row">
<div class="row-item">
<label for="target">作用目标:</label>
<select id="target-select">
<option value="NAME">文件名</option>
<option value="STEM">基础名</option>
<option value="SUFFIX">扩展名</option>
</select>
</div>
<div class="row-item">
<label for="filter-input">过滤器:</label>
<div>
<input
type="text"
id="filter-input"
value="*"
placeholder="*"
pattern="^(\*|\?|\/|(?![\.]{2,})[\-A-Za-z0-9_\.]+)?$"
/>
<span class="vilidity" data-hint="无效的过滤规则"></span>
</div>
</div>
</div>
</div>
</details>
</form>
<div id="table-container"></div>
<footer>
<nav>
<a id="nav-about">关于</a>
<a id="nav-help">帮助</a>
<a id="nav-donate">捐赠</a>
<a id="nav-licence">许可证</a>
</nav>
</footer>
</main>
</body>
</html>