-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
60 lines (54 loc) · 2.24 KB
/
Copy pathpopup.html
File metadata and controls
60 lines (54 loc) · 2.24 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UI Style Skill Extractor</title>
<link rel="stylesheet" href="popup.css" />
</head>
<body>
<main class="app">
<header class="hero">
<p class="eyebrow">MV3 UI Skill MVP</p>
<h1>网页 UI 风格分析</h1>
<p class="hero-copy">打开插件后自动分析当前页面,并生成可复制导出的 Skill。</p>
</header>
<section id="statusCard" class="card status-card" data-state="idle">
<div class="status-row">
<span id="statusBadge" class="badge">待开始</span>
<button id="retryButton" class="ghost-button" type="button">重新分析</button>
</div>
<h2 id="statusTitle">等待分析当前页面</h2>
<p id="statusMessage" class="muted">插件会在打开时自动尝试分析当前激活标签页。</p>
</section>
<section id="skillSection" class="card hidden">
<div class="section-title-row">
<h2>Skill 成品</h2>
<div class="actions">
<button id="copyButton" class="primary-button" type="button">复制</button>
<button id="exportMdButton" class="ghost-button" type="button">导出 MD</button>
<button id="exportJsonButton" class="ghost-button" type="button">导出 JSON</button>
</div>
</div>
<textarea id="skillOutput" readonly spellcheck="false"></textarea>
</section>
<section id="summarySection" class="card hidden">
<div class="section-title-row">
<h2>风格摘要</h2>
<span id="pageHost" class="mini-label"></span>
</div>
<p id="summaryText" class="summary-text"></p>
<div id="tokenGrid" class="token-grid"></div>
</section>
<section id="componentsSection" class="card hidden">
<h2>组件模式</h2>
<div id="componentsList" class="components-list"></div>
</section>
<section id="errorHelpSection" class="card hidden">
<h2>下一步建议</h2>
<ul id="suggestionList" class="suggestion-list"></ul>
</section>
</main>
<script src="popup.js"></script>
</body>
</html>