Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (75 loc) · 3.45 KB
/
Copy pathindex.html
File metadata and controls
78 lines (75 loc) · 3.45 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SQL 格式化与字段解析</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<main class="app-shell">
<header class="topbar">
<div>
<h1>SQL 格式化与字段解析</h1>
<p>雨萱专属SQL格式化处理APP</p>
</div>
<div class="top-actions">
<button id="loadSampleBtn" class="ghost-btn" type="button" title="载入示例 SQL">示例</button>
<button id="clearBtn" class="ghost-btn" type="button" title="清空输入">清空</button>
</div>
</header>
<section class="workspace" aria-label="SQL 工具工作区">
<div class="editor-pane">
<div class="pane-head">
<span>SQL</span>
<div class="editor-tools">
<form id="searchBar" class="search-bar" role="search" aria-label="搜索 SQL" hidden>
<span class="search-glyph" aria-hidden="true">⌕</span>
<textarea
id="searchInput"
placeholder="搜索"
autocomplete="off"
spellcheck="false"
aria-label="搜索 SQL 内容"
rows="1"
></textarea>
<span id="searchCount" class="search-count" aria-live="polite">0/0</span>
<button id="searchPrevBtn" class="icon-btn" type="button" title="上一处" aria-label="上一处">↑</button>
<button id="searchNextBtn" class="icon-btn" type="button" title="下一处" aria-label="下一处">↓</button>
<button id="searchCaseBtn" class="search-toggle" type="button" title="区分大小写" aria-label="区分大小写" aria-pressed="false">Cc</button>
<button id="searchWordBtn" class="search-toggle" type="button" title="整词匹配" aria-label="整词匹配" aria-pressed="false">W</button>
<button id="searchRegexBtn" class="search-toggle" type="button" title="正则表达式" aria-label="正则表达式" aria-pressed="false">.*</button>
</form>
<div class="segmented" role="group" aria-label="编辑器操作">
<button id="pasteBtn" class="ghost-btn" type="button" title="从剪贴板粘贴">粘贴</button>
<button id="formatBtn" class="primary-btn" type="button">格式化</button>
<button id="copyBtn" class="ghost-btn" type="button" title="复制 SQL">复制</button>
</div>
</div>
</div>
<div id="sqlInput" class="sql-editor" aria-label="SQL 编辑器"></div>
</div>
</section>
<section class="analysis-grid" aria-label="SQL 表字段分析">
<div class="summary-strip">
<div>
<span id="tableCount">0</span>
<label>表</label>
</div>
<div>
<span id="fieldCount">0</span>
<label>字段</label>
</div>
<div>
<span id="aliasCount">0</span>
<label>别名</label>
</div>
</div>
<div id="analysisPanel" class="analysis-panel">
<div class="empty-state">粘贴 SQL 后会在这里展示表、别名和字段引用。</div>
</div>
</section>
</main>
<script type="module" src="/src/main.js"></script>
</body>
</html>