forked from yangjj-iso/Boss-Helper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadvanced.html
More file actions
635 lines (564 loc) · 17.5 KB
/
Copy pathadvanced.html
File metadata and controls
635 lines (564 loc) · 17.5 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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>BOSS海投助手 - 高级选项</title>
<style>
:root {
color-scheme: light;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Inter, Arial, "Microsoft YaHei", sans-serif;
background:
radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 32%),
linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
color: #0f172a;
}
button,
input,
textarea {
font: inherit;
}
.page {
min-height: 100vh;
padding: 20px;
}
.panel {
max-width: 720px;
margin: 0 auto;
border-radius: 20px;
background: rgba(255, 255, 255, 0.97);
border: 1px solid rgba(203, 213, 225, 0.88);
box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
overflow: hidden;
}
.header {
padding: 20px 22px 16px;
border-bottom: 1px solid rgba(226, 232, 240, 0.96);
background:
radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 34%),
linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}
.header-top {
display: flex;
align-items: center;
gap: 14px;
}
.logo {
width: 42px;
height: 42px;
border-radius: 13px;
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
color: #fff;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 24px rgba(8, 145, 178, 0.18);
flex: 0 0 auto;
}
.logo svg {
width: 20px;
height: 20px;
stroke: currentColor;
fill: none;
stroke-width: 1.9;
stroke-linecap: round;
stroke-linejoin: round;
}
.title h1 {
margin: 0;
font-size: 22px;
line-height: 1.2;
}
.title p {
margin: 6px 0 0;
font-size: 13px;
line-height: 1.5;
color: #64748b;
}
.body {
display: grid;
gap: 16px;
padding: 20px 22px 22px;
}
.section {
display: grid;
gap: 12px;
}
.section-head strong {
font-size: 14px;
color: #0f172a;
}
.grid-two {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.field {
display: grid;
gap: 8px;
}
.field label {
font-size: 13px;
font-weight: 600;
color: #475569;
}
.field input,
.field textarea,
.field select {
width: 100%;
border: 1px solid #d7e0ea;
border-radius: 13px;
background: rgba(255, 255, 255, 0.98);
color: #0f172a;
outline: none;
padding: 12px 14px;
transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.field input,
.field select {
height: 46px;
}
.field textarea {
min-height: 136px;
resize: vertical;
line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder {
color: #94a3b8;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.button:focus-visible {
border-color: #14b8a6;
box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}
.hint {
font-size: 12px;
line-height: 1.5;
color: #64748b;
}
.toggle-grid {
display: grid;
gap: 10px;
}
.media-card {
display: grid;
gap: 12px;
padding: 14px;
border-radius: 16px;
border: 1px solid rgba(226, 232, 240, 0.96);
background: rgba(248, 250, 252, 0.92);
}
.media-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.media-copy {
display: grid;
gap: 4px;
}
.media-copy strong {
font-size: 14px;
color: #0f172a;
}
.media-copy span {
font-size: 12px;
color: #64748b;
}
.switch {
position: relative;
width: 44px;
height: 26px;
flex: 0 0 auto;
}
.switch input {
position: absolute;
inset: 0;
opacity: 0;
margin: 0;
}
.switch-track {
width: 100%;
height: 100%;
border-radius: 999px;
background: #dbe4ee;
transition: background 0.18s ease;
}
.switch-track::after {
content: "";
position: absolute;
top: 3px;
left: 3px;
width: 20px;
height: 20px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
transition: transform 0.18s ease;
}
.switch input:checked+.switch-track {
background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
}
.switch input:checked+.switch-track::after {
transform: translateX(18px);
}
.media-actions {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.ghost-button {
height: 40px;
padding: 0 14px;
border-radius: 12px;
border: 1px solid rgba(59, 130, 246, 0.38);
background: rgba(239, 246, 255, 0.92);
color: #2563eb;
cursor: pointer;
font-weight: 600;
}
.provider-group {
display: none;
gap: 12px;
}
.provider-group.active {
display: grid;
}
.test-output {
min-height: 76px;
padding: 10px 12px;
border-radius: 12px;
border: 1px solid rgba(226, 232, 240, 0.96);
background: rgba(248, 250, 252, 0.92);
color: #475569;
font-size: 12px;
line-height: 1.55;
white-space: pre-wrap;
}
.file-name {
font-size: 12px;
color: #64748b;
}
.activity-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.activity-option {
display: flex;
align-items: center;
gap: 10px;
min-height: 44px;
padding: 0 12px;
border-radius: 13px;
border: 1px solid rgba(226, 232, 240, 0.96);
background: rgba(248, 250, 252, 0.92);
color: #334155;
}
.activity-option input {
width: 16px;
height: 16px;
margin: 0;
accent-color: #0f766e;
flex: 0 0 auto;
}
.toggle {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 52px;
padding: 0 14px;
border-radius: 14px;
border: 1px solid rgba(226, 232, 240, 0.96);
background: rgba(248, 250, 252, 0.92);
font-size: 14px;
color: #334155;
}
.toggle input {
width: 16px;
height: 16px;
margin: 0;
accent-color: #0f766e;
flex: 0 0 auto;
}
.footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-top: 2px;
}
.status {
font-size: 12px;
line-height: 1.5;
color: #64748b;
}
.button {
height: 44px;
border: 0;
border-radius: 12px;
padding: 0 16px;
cursor: pointer;
background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
color: #fff;
font-weight: 700;
box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}
@media (max-width: 640px) {
.page {
padding: 14px;
}
.grid-two {
grid-template-columns: 1fr;
}
.activity-grid {
grid-template-columns: 1fr;
}
.footer {
flex-direction: column;
align-items: stretch;
}
.button {
width: 100%;
}
}
</style>
</head>
<body>
<main class="page">
<section class="panel">
<header class="header">
<div class="header-top">
<div class="logo" aria-hidden="true">
<svg viewBox="0 0 24 24">
<path d="M8 7V6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1"></path>
<rect x="4" y="7" width="16" height="11" rx="3"></rect>
<path d="M4 12h16"></path>
<path d="M10 12v2"></path>
<path d="M14 12v2"></path>
</svg>
</div>
<div class="title">
<h1>BOSS海投助手</h1>
<p>高级选项</p>
</div>
</div>
</header>
<section class="body">
<section class="section">
<div class="section-head">
<strong>筛选</strong>
</div>
<div class="grid-two">
<div class="field">
<label for="salaryKeywords">薪资</label>
<input id="salaryKeywords" type="text" placeholder="20K, 25-35K" />
</div>
<div class="field">
<label for="companyKeywords">公司</label>
<input id="companyKeywords" type="text" placeholder="字节, 腾讯, 外企" />
</div>
</div>
<div class="field">
<label for="excludeCompanyKeywords">排除公司</label>
<input id="excludeCompanyKeywords" type="text" placeholder="培训, 外包, 猎头" />
</div>
</section>
<section class="section">
<div class="section-head">
<strong>图片简历</strong>
</div>
<div class="media-card">
<div class="media-row">
<div class="media-copy">
<strong>发送图片简历</strong>
<span>JPG</span>
</div>
<label class="switch" aria-label="发送图片简历">
<input id="sendImageResume" type="checkbox" />
<span class="switch-track"></span>
</label>
</div>
<div class="media-actions">
<button class="ghost-button" type="button" id="imageResumeButton">添加图片简历</button>
<span class="file-name" id="imageResumeName">未选择</span>
</div>
<input id="imageResumeInput" type="file" accept=".jpg,.jpeg,image/jpeg" hidden />
</div>
</section>
<section class="section">
<div class="section-head">
<strong>招聘者状态</strong>
</div>
<div class="activity-grid">
<label class="activity-option"><input type="checkbox" data-activity-option="在线" /> 在线</label>
<label class="activity-option"><input type="checkbox" data-activity-option="刚刚活跃" /> 刚刚活跃</label>
<label class="activity-option"><input type="checkbox" data-activity-option="今日活跃" /> 今日活跃</label>
<label class="activity-option"><input type="checkbox" data-activity-option="3日内活跃" /> 3日内活跃</label>
<label class="activity-option"><input type="checkbox" data-activity-option="本周活跃" /> 本周活跃</label>
</div>
</section>
<section class="section">
<div class="section-head">
<strong>招呼语</strong>
</div>
<div class="field">
<label for="greetTemplate">打招呼语模板</label>
<textarea id="greetTemplate" placeholder="支持 {jobTitle} {companyName} {location} {salary}"></textarea>
<div class="hint">支持变量:{jobTitle} {companyName} {location} {salary}</div>
</div>
</section>
<section class="section">
<div class="section-head">
<strong>运行</strong>
</div>
<div class="grid-two">
<div class="field">
<label for="pollIntervalMs">间隔(ms)</label>
<input id="pollIntervalMs" type="number" min="600" step="100" />
</div>
</div>
<div class="toggle-grid">
<label class="toggle">
<span>自动打招呼</span>
<input id="autoGreet" type="checkbox" />
</label>
<label class="toggle">
<span>自动切下一个</span>
<input id="autoNext" type="checkbox" />
</label>
</div>
</section>
<section class="section">
<div class="section-head">
<strong>自动回复</strong>
</div>
<div class="toggle-grid">
<label class="toggle">
<span>自动回复聊天</span>
<input id="autoReplyEnabled" type="checkbox" />
</label>
</div>
<div class="hint">仅在聊天输入框可见时生效,建议谨慎开启。</div>
<div class="field">
<label for="autoReplyProvider">服务商</label>
<select id="autoReplyProvider">
<option value="doubao">豆包(字节)</option>
<option value="deepseek">DeepSeek</option>
<option value="yuanbao">腾讯元宝/混元</option>
<option value="other">其他</option>
</select>
</div>
<div class="field">
<label for="autoReplySystemPrompt">提示词</label>
<textarea id="autoReplySystemPrompt" placeholder="定义你的回复风格、重点信息等"></textarea>
</div>
<div class="grid-two">
<div class="field">
<label for="autoReplyTemperature">随机度(0-1)</label>
<input id="autoReplyTemperature" type="number" min="0" max="1" step="0.1" />
</div>
<div class="field">
<label for="autoReplyMaxTokens">回复长度上限</label>
<input id="autoReplyMaxTokens" type="number" min="64" max="4096" step="64" />
</div>
</div>
<div class="provider-group" data-provider="doubao">
<div class="grid-two">
<div class="field">
<label for="doubaoApiKey">豆包 API Key</label>
<input id="doubaoApiKey" type="password" placeholder="sk-..." />
</div>
<div class="field">
<label for="doubaoModel">豆包 Model</label>
<input id="doubaoModel" type="text" placeholder="填写你的模型ID" />
</div>
</div>
<div class="field">
<label for="doubaoEndpoint">豆包 Endpoint</label>
<input id="doubaoEndpoint" type="text"
placeholder="https://ark.cn-beijing.volces.com/api/v3/chat/completions" />
</div>
</div>
<div class="provider-group" data-provider="deepseek">
<div class="grid-two">
<div class="field">
<label for="deepseekApiKey">DeepSeek API Key</label>
<input id="deepseekApiKey" type="password" placeholder="sk-..." />
</div>
<div class="field">
<label for="deepseekModel">DeepSeek Model</label>
<input id="deepseekModel" type="text" placeholder="deepseek-chat" />
</div>
</div>
<div class="field">
<label for="deepseekEndpoint">DeepSeek Endpoint</label>
<input id="deepseekEndpoint" type="text" placeholder="https://api.deepseek.com/chat/completions" />
</div>
</div>
<div class="provider-group" data-provider="yuanbao">
<div class="grid-two">
<div class="field">
<label for="yuanbaoApiKey">腾讯元宝 API Key</label>
<input id="yuanbaoApiKey" type="password" placeholder="sk-..." />
</div>
<div class="field">
<label for="yuanbaoModel">腾讯元宝 Model</label>
<input id="yuanbaoModel" type="text" placeholder="hunyuan-lite" />
</div>
</div>
<div class="field">
<label for="yuanbaoEndpoint">腾讯元宝 Endpoint</label>
<input id="yuanbaoEndpoint" type="text"
placeholder="https://api.hunyuan.cloud.tencent.com/v1/chat/completions" />
</div>
</div>
<div class="provider-group" data-provider="other">
<div class="grid-two">
<div class="field">
<label for="otherApiKey">API Key</label>
<input id="otherApiKey" type="password" placeholder="sk-..." />
</div>
<div class="field">
<label for="otherModel">Model</label>
<input id="otherModel" type="text" placeholder="gpt-4o" />
</div>
</div>
<div class="field">
<label for="otherEndpoint">Endpoint</label>
<input id="otherEndpoint" type="text"
placeholder="https://api.openai.com/v1/chat/completions" />
</div>
</div>
<div class="field">
<label for="autoReplyTestInput">自动回复测试内容</label>
<textarea id="autoReplyTestInput" placeholder="输入一段测试对话,如:你好方便发份简历过来吗"></textarea>
<div class="hint">点击测试不会发送到聊天框,仅验证 API 是否可用。</div>
</div>
<div class="field">
<button class="ghost-button" type="button" id="autoReplyTestButton">测试自动回复</button>
<div class="test-output" id="autoReplyTestResult">等待测试。</div>
</div>
</section>
<div class="footer">
<div class="status" id="saveStatus">设置会自动保存</div>
<button class="button" type="button" id="closeButton">关闭窗口</button>
</div>
</section>
</section>
</main>
<script src="src/advanced.js"></script>
</body>
</html>