-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
216 lines (191 loc) · 6.71 KB
/
Copy pathpopup.html
File metadata and controls
216 lines (191 loc) · 6.71 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>智能表单数据模拟助手</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 320px;
min-height: 200px;
font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.container {
padding: 20px;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.logo {
font-size: 24px;
font-weight: bold;
margin-bottom: 5px;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.subtitle {
font-size: 12px;
opacity: 0.9;
}
.controls {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 15px;
}
.btn {
padding: 12px 20px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-primary {
background: rgba(255, 255, 255, 0.2);
color: white;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.1);
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-icon {
width: 16px;
height: 16px;
}
.status {
background: rgba(255, 255, 255, 0.1);
padding: 10px;
border-radius: 6px;
font-size: 12px;
text-align: center;
margin-top: 10px;
}
.features {
margin-top: 15px;
font-size: 11px;
opacity: 0.8;
line-height: 1.4;
}
.feature-item {
display: flex;
align-items: center;
gap: 5px;
margin-bottom: 3px;
}
.feature-dot {
width: 4px;
height: 4px;
background: white;
border-radius: 50%;
}
.sponsor{
margin-top: 15px;
text-align: center;
font-size: 12px;
opacity: 0.6;
}
.footer {
text-align: center;
font-size: 10px;
opacity: 0.6;
}
.loading {
display: inline-block;
width: 12px;
height: 12px;
border: 2px solid rgba(255,255,255,0.3);
border-top: 2px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.hidden {
display: none;
}
a{
color: bisque;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="logo">📝 智能填充</div>
<div class="subtitle">一键生成表单测试数据</div>
</div>
<div class="controls">
<button class="btn btn-primary" id="quickFill">
<svg class="btn-icon" viewBox="0 0 24 24" fill="currentColor">
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"/>
</svg>
快速填充当前页面
</button>
<button class="btn btn-secondary" id="repeatFill">
<svg class="btn-icon" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/>
</svg>
重复上次填充
</button>
<button class="btn btn-secondary" id="openSettings">
<svg class="btn-icon" viewBox="0 0 24 24" fill="currentColor">
<path d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"/>
</svg>
插件设置
</button>
</div>
<div class="status" id="status">
<span id="statusText">就绪</span>
<span class="loading hidden" id="loading"></span>
</div>
<!-- <div class="features">
<div class="feature-item">
<div class="feature-dot"></div>
<span>完美兼容 Vue2/Vue3/原生JS</span>
</div>
<div class="feature-item">
<div class="feature-dot"></div>
<span>智能识别20+种表单类型</span>
</div>
<div class="feature-item">
<div class="feature-dot"></div>
<span>支持右键菜单精准填充</span>
</div>
</div> -->
<div class="sponsor">
<a href="https://ifdian.net/a/SmartAutoInput">Ad</a>
|
<a href="https://ifdian.net/a/SmartAutoInput">感谢您的支持</a>
</div>
<div class="footer">
v1.0.0 | 专为前端测试设计
</div>
</div>
<script src="popup.js"></script>
</body>
</html>