-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
765 lines (694 loc) · 26.4 KB
/
index.html
File metadata and controls
765 lines (694 loc) · 26.4 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
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CodexTools</title>
<meta
name="description"
content="CodexTools is a standalone Go + React manager for Codex workflows, relay setup, script tooling, diagnostics, and repair operations."
/>
<meta property="og:title" content="CodexTools" />
<meta
property="og:description"
content="Standalone Go + React manager for Codex workflows, relay setup, script tooling, diagnostics, and repair operations."
/>
<meta property="og:type" content="website" />
<meta property="og:image" content="./assets/screenshot-home.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="CodexTools" />
<meta
name="twitter:description"
content="Standalone Go + React manager for Codex workflows, relay setup, script tooling, diagnostics, and repair operations."
/>
<meta name="twitter:image" content="./assets/screenshot-home.png" />
<style>
:root {
--bg: #eef5fb;
--card: rgba(255, 255, 255, 0.88);
--text: #142033;
--muted: #536076;
--line: rgba(116, 142, 175, 0.24);
--primary: #1367d1;
--primary-soft: #dbeafe;
--accent: #0f766e;
--shadow: 0 22px 64px rgba(35, 58, 99, 0.12);
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
color: var(--text);
background:
radial-gradient(circle at top right, rgba(139, 199, 255, 0.32), transparent 24%),
radial-gradient(circle at top left, rgba(120, 226, 183, 0.18), transparent 22%),
var(--bg);
}
.page {
width: min(1160px, calc(100vw - 32px));
margin: 0 auto;
padding: 28px 0 56px;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 24px;
}
.brand h1 {
margin: 0;
font-size: clamp(30px, 4vw, 54px);
line-height: 1;
}
.brand p {
margin: 10px 0 0;
color: var(--muted);
font-size: 15px;
line-height: 1.6;
max-width: 760px;
}
.lang-switch {
display: inline-flex;
gap: 8px;
}
.lang-switch button {
border: 1px solid var(--line);
border-radius: 999px;
background: var(--card);
color: var(--text);
cursor: pointer;
font: inherit;
font-weight: 700;
padding: 10px 16px;
}
.lang-switch button.active {
background: var(--primary);
border-color: var(--primary);
color: #fff;
}
.hero,
.section {
border: 1px solid var(--line);
border-radius: 28px;
background: var(--card);
box-shadow: var(--shadow);
}
.hero {
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
gap: 20px;
padding: 24px;
}
.hero-copy h2 {
margin: 0;
font-size: clamp(28px, 3vw, 44px);
line-height: 1.08;
}
.hero-copy p {
margin: 16px 0 0;
color: var(--muted);
line-height: 1.7;
}
.hero-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 20px;
}
.hero-links a {
border-radius: 999px;
text-decoration: none;
font-weight: 700;
padding: 11px 16px;
}
.hero-links a.primary {
background: var(--primary);
color: #fff;
}
.hero-links a.secondary {
background: var(--primary-soft);
color: var(--primary);
}
.hero-shot,
.telegram-code,
.origin-panel {
display: block;
border-radius: 24px;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.72);
}
.hero-shot {
min-height: 100%;
padding: 22px;
}
.hero-shot pre,
.telegram-code pre {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
color: var(--muted);
font: 600 13px/1.7 ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.origin {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
gap: 18px;
}
.origin-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 16px;
}
.origin-actions a {
border-radius: 999px;
background: var(--primary-soft);
color: var(--primary);
font-weight: 700;
padding: 10px 14px;
text-decoration: none;
}
.origin-panel {
padding: 18px;
}
.origin-panel a {
color: var(--accent);
display: block;
font-weight: 700;
line-height: 1.8;
text-decoration: none;
word-break: break-word;
}
.grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
margin-top: 18px;
}
.screenshots {
display: grid;
gap: 18px;
}
.screenshot-lead {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
}
.screenshot-lead p {
margin: 0;
max-width: 760px;
}
.shot-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 16px;
}
.shot-card {
border: 1px solid var(--line);
border-radius: 22px;
background: rgba(255, 255, 255, 0.72);
overflow: hidden;
}
.shot-card img {
display: block;
width: 100%;
height: auto;
background: #f8fafc;
}
.shot-caption {
border-top: 1px solid var(--line);
padding: 16px 18px 18px;
}
.shot-caption h4 {
margin: 0 0 6px;
font-size: 18px;
}
.shot-caption p {
margin: 0;
}
.release {
overflow: hidden;
position: relative;
}
.release::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(135deg, rgba(19, 103, 209, 0.08), transparent 34%),
linear-gradient(315deg, rgba(15, 118, 110, 0.08), transparent 38%);
}
.release > * {
position: relative;
}
.release-head {
align-items: flex-start;
display: flex;
justify-content: space-between;
gap: 18px;
}
.release-badge {
border: 1px solid rgba(19, 103, 209, 0.2);
border-radius: 999px;
background: rgba(219, 234, 254, 0.78);
color: var(--primary);
flex: 0 0 auto;
font-weight: 800;
padding: 9px 13px;
}
.release-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin-top: 18px;
}
.release-item {
border: 1px solid var(--line);
border-radius: 18px;
background: rgba(255, 255, 255, 0.72);
padding: 16px;
min-height: 150px;
}
.release-item strong {
color: var(--text);
display: block;
font-size: 17px;
margin-bottom: 8px;
}
.release-item p {
margin: 0;
}
.card {
border: 1px solid var(--line);
border-radius: 24px;
background: rgba(255, 255, 255, 0.74);
padding: 20px;
}
.card h3,
.section h3 {
margin: 0 0 10px;
font-size: 22px;
}
.card p,
.section p,
.section li {
color: var(--muted);
line-height: 1.7;
}
.section {
margin-top: 18px;
padding: 24px;
}
.feature-list {
display: grid;
gap: 14px;
padding: 0;
list-style: none;
margin: 18px 0 0;
}
.feature-list li {
border: 1px solid var(--line);
border-radius: 20px;
background: rgba(255, 255, 255, 0.72);
padding: 14px 16px;
}
.feature-list strong {
color: var(--text);
display: block;
margin-bottom: 4px;
}
.telegram {
display: grid;
grid-template-columns: 220px minmax(0, 1fr);
gap: 20px;
align-items: center;
}
.telegram-qr {
border: 1px solid var(--line);
border-radius: 24px;
background: #fff;
padding: 14px;
width: min(220px, 100%);
}
.telegram-qr img {
display: block;
width: 100%;
height: auto;
image-rendering: pixelated;
}
.telegram a {
color: var(--accent);
font-weight: 700;
text-decoration: none;
}
[data-lang] { display: none; }
[data-lang].active { display: block; }
@media (max-width: 920px) {
.hero,
.grid,
.screenshot-lead,
.release-grid,
.origin,
.telegram {
grid-template-columns: 1fr;
}
.screenshot-lead {
display: block;
}
.release-head {
flex-direction: column;
}
.topbar {
align-items: start;
flex-direction: column;
}
}
</style>
</head>
<body>
<div class="page">
<div class="topbar">
<div class="brand">
<h1>CodexTools</h1>
<p data-lang="en" class="active">
A standalone manager extracted from the Codex++ Go refactor, designed to make launch, relay setup, script management, diagnostics, and repair workflows clearer for non-technical users.
</p>
<p data-lang="zh">
这是从 Codex++ Go 重构版中独立拆出的管理器项目,目标是把启动、Relay 配置、脚本管理、诊断和修复流程做得更适合非技术用户。
</p>
</div>
<div class="lang-switch">
<button class="active" data-switch="en" type="button">English</button>
<button data-switch="zh" type="button">中文</button>
</div>
</div>
<section class="hero">
<div class="hero-copy">
<div data-lang="en" class="active">
<h2>One repository for the refactored manager, ready to ship on its own.</h2>
<p>
CodexTools keeps the refactored Go backend and the redesigned React manager UI in one standalone project. It reduces monorepo coupling, preserves the existing command surface, and presents a simpler interface for setup, launch, and recovery.
</p>
<div class="hero-links">
<a class="primary" href="../README.md">Open README</a>
<a class="secondary" href="./downloads.html">Downloads</a>
<a class="secondary" href="https://t.me/wanai8">Telegram</a>
</div>
</div>
<div data-lang="zh">
<h2>把重构后的管理器独立成一个可以单独发布的仓库。</h2>
<p>
CodexTools 把 Go 后端和重新设计后的 React 管理界面放进同一个独立项目中,降低对原单体仓库的路径依赖,同时保留原有命令能力,并把配置、启动和修复流程做得更直观。
</p>
<div class="hero-links">
<a class="primary" href="../README.zh-CN.md">查看说明</a>
<a class="secondary" href="./downloads.html">下载页面</a>
<a class="secondary" href="https://t.me/wanai8">电报群</a>
</div>
</div>
</div>
<div class="hero-shot">
<div data-lang="en" class="active">
<h3>Repository contents</h3>
<pre>main.go entry point
manager.go HTTP manager + commands
launcher.go silent launcher
helper.go helper server + relay proxy
bridge.go CDP bridge injection
settings.go settings + dist lookup
relay.go relay configuration
repair.go repair + provider sync
scripts.go user scripts + market
entrypoints.go desktop entries + watcher
diagnostics.go logs + support reports
types.go/util.go shared structures + helpers
web/ React + Vite UI
docs/ GitHub Pages assets</pre>
</div>
<div data-lang="zh">
<h3>仓库内容结构</h3>
<pre>main.go 程序入口
manager.go HTTP 管理器与命令分发
launcher.go 静默启动器
helper.go helper 服务与中转代理
bridge.go CDP 桥接注入
settings.go 设置与前端产物查找
relay.go 中转配置
repair.go 修复与 Provider 同步
scripts.go 用户脚本与脚本市场
entrypoints.go 桌面入口与 watcher
diagnostics.go 日志与诊断报告
types.go/util.go 共享结构与工具函数
web/ React + Vite 前端
docs/ GitHub Pages 资源</pre>
</div>
</div>
</section>
<div class="grid">
<article class="card">
<div data-lang="en" class="active">
<h3>Standalone structure</h3>
<p>The web UI lives in `web/`, while the Go backend is split by manager, launcher, relay, bridge, repair, scripts, diagnostics, and shared helpers. Release builds still use one `package main` for simple desktop packaging.</p>
</div>
<div data-lang="zh">
<h3>独立结构</h3>
<p>前端在 `web/`,Go 后端按管理器、启动器、中转、桥接、修复、脚本、诊断和共享工具拆分。发布构建仍保留同一个 `package main`,便于桌面包继续使用现有构建方式。</p>
</div>
</article>
<article class="card">
<div data-lang="en" class="active">
<h3>Practical UI</h3>
<p>The first screen prioritizes launch, connection, health checks, and repair actions instead of exposing every setting up front.</p>
</div>
<div data-lang="zh">
<h3>实用界面</h3>
<p>首页优先展示启动、连接、状态检查和修复入口,而不是一开始就把所有设置堆出来。</p>
</div>
</article>
<article class="card">
<div data-lang="en" class="active">
<h3>Operations built in</h3>
<p>Relay setup, script market operations, diagnostics, logs, and legacy conversation repair remain available inside one manager.</p>
</div>
<div data-lang="zh">
<h3>运维能力内置</h3>
<p>Relay 配置、脚本市场、诊断报告、日志和旧对话修复都保留在同一个管理器中。</p>
</div>
</article>
</div>
<section class="section screenshots">
<div data-lang="en" class="active">
<div class="screenshot-lead">
<div>
<h3>Manager screenshots</h3>
<p>
The desktop manager is organized around everyday actions: start Codex, confirm connection mode, finish first-run setup, and keep page enhancements visible without editing local files by hand.
</p>
</div>
</div>
<div class="shot-grid">
<article class="shot-card">
<img src="./assets/screenshot-home.png" alt="CodexTools home dashboard showing launch status, connection mode, UI enhancement mode, and repair entry points" />
<div class="shot-caption">
<h4>Home dashboard</h4>
<p>The first screen shows whether the local setup is ready, exposes the primary launch button, and keeps connection, UI features, and repair entry points close together.</p>
</div>
</article>
<article class="shot-card">
<img src="./assets/screenshot-onboarding.png" alt="CodexTools beginner guide showing system detection, Codex install status, CCSwitch import, mode selection, and launch steps" />
<div class="shot-caption">
<h4>Beginner guide</h4>
<p>The guided flow checks platform and architecture, confirms Codex installation, imports CCSwitch providers, selects the connection mode, and ends at launch.</p>
</div>
</article>
</div>
</div>
<div data-lang="zh">
<div class="screenshot-lead">
<div>
<h3>管理器界面截图</h3>
<p>
桌面管理器围绕日常操作组织:启动 Codex、确认连接模式、完成新手配置,并把页面增强能力放在可见位置,不需要手动找本地配置文件。
</p>
</div>
</div>
<div class="shot-grid">
<article class="shot-card">
<img src="./assets/screenshot-home.png" alt="CodexTools 首页仪表盘,展示启动状态、连接模式、界面增强模式和修复入口" />
<div class="shot-caption">
<h4>首页仪表盘</h4>
<p>首页直接显示本地环境是否就绪,提供主要启动按钮,并把连接服务、界面功能、入口修复和关键状态集中到一个页面。</p>
</div>
</article>
<article class="shot-card">
<img src="./assets/screenshot-onboarding.png" alt="CodexTools 新手引导,展示系统识别、Codex 安装状态、CCSwitch 导入、模式选择和启动步骤" />
<div class="shot-caption">
<h4>新手安装引导</h4>
<p>新手流程按顺序完成系统识别、Codex 安装检查、CCSwitch 导入、连接模式选择和启动,降低第一次配置成本。</p>
</div>
</article>
</div>
</div>
</section>
<section class="section release">
<div data-lang="en" class="active">
<div class="release-head">
<div>
<h3>New in CodexTools 1.1.8</h3>
<p>
This release focuses on making the standalone manager easier to install, safer to launch, and clearer when users switch between official login and relay/API modes.
</p>
</div>
<span class="release-badge">v1.1.8</span>
</div>
<div class="release-grid">
<article class="release-item">
<strong>Ready-to-use desktop builds</strong>
<p>macOS and Windows packages are now published from the standalone project, with direct download links on the downloads page.</p>
</article>
<article class="release-item">
<strong>Relay mode switcher</strong>
<p>The manager restores a clearer mode switch for official login, compatible API, and relay workflows.</p>
</article>
<article class="release-item">
<strong>Mixed API restart fixes</strong>
<p>Restart handling was adjusted so switching API modes is less confusing and avoids stale launch state.</p>
</article>
<article class="release-item">
<strong>Safer launcher behavior</strong>
<p>If injection fails, the launcher now degrades more gracefully instead of leaving non-technical users stuck at a dead end.</p>
</article>
</div>
</div>
<div data-lang="zh">
<div class="release-head">
<div>
<h3>CodexTools 1.1.8 新版本内容</h3>
<p>
这一版重点解决独立安装、桌面启动、官方登录与中转/API 模式切换时的稳定性问题,让非技术用户更容易判断下一步该做什么。
</p>
</div>
<span class="release-badge">v1.1.8</span>
</div>
<div class="release-grid">
<article class="release-item">
<strong>独立桌面下载包</strong>
<p>macOS 和 Windows 包已经从独立项目发布,下载页提供直接下载入口。</p>
</article>
<article class="release-item">
<strong>中转模式切换</strong>
<p>恢复更清晰的模式切换入口,方便在官方登录、兼容 API 和中转流程之间切换。</p>
</article>
<article class="release-item">
<strong>混合 API 重启修复</strong>
<p>优化模式切换后的重启处理,减少旧启动状态残留导致的误判。</p>
</article>
<article class="release-item">
<strong>启动器降级处理</strong>
<p>当注入失败时,启动器会更平稳地降级处理,避免用户卡在不可理解的失败状态。</p>
</article>
</div>
</div>
</section>
<section class="section">
<div data-lang="en" class="active">
<h3>Detailed feature layout</h3>
<ul class="feature-list">
<li><strong>Home surface</strong>Launch, inspect current status, and jump directly to the next repair action.</li>
<li><strong>Connection management</strong>Configure official login, compatible APIs, relay profiles, protocols, and relay tests.</li>
<li><strong>Enhancement controls</strong>Toggle UI enhancement capabilities and switch launch behavior by mode.</li>
<li><strong>Script center</strong>Install, enable, disable, update, and remove user scripts from one place.</li>
<li><strong>Repair and maintenance</strong>Fix entry paths, shortcuts, backend state, and other local setup issues.</li>
<li><strong>Logs and diagnostics</strong>Expose readable runtime logs and copyable diagnostics for support workflows.</li>
</ul>
</div>
<div data-lang="zh">
<h3>功能详细布置</h3>
<ul class="feature-list">
<li><strong>首页启动面板</strong>直接启动、查看当前状态,并跳到下一步需要处理的修复动作。</li>
<li><strong>连接方式管理</strong>配置官方登录、兼容 API、中转配置、协议和连通性测试。</li>
<li><strong>增强功能控制</strong>统一管理增强功能,并按模式切换启动行为。</li>
<li><strong>脚本中心</strong>在同一处完成用户脚本安装、启用、禁用、更新和移除。</li>
<li><strong>修复与维护</strong>处理入口路径、快捷方式、后端状态和其他本地环境问题。</li>
<li><strong>日志与诊断</strong>提供可读日志和可复制诊断报告,方便排查和支持沟通。</li>
</ul>
</div>
</section>
<section class="section origin">
<div>
<div data-lang="en" class="active">
<h3>Project origin and thanks</h3>
<p>
CodexTools is a standalone Go refactor and manager UI project based on the earlier Codex++ work. Thanks to the original Codex++ project for the foundation, workflow ideas, and user-facing tool direction.
</p>
<div class="origin-actions">
<a href="https://github.com/BigPizzaV3/CodexPlusPlus">Original project</a>
<a href="https://github.com/hereww/CodexPlusPlus">Refactor source</a>
</div>
</div>
<div data-lang="zh">
<h3>项目来源与鸣谢</h3>
<p>
CodexTools 是基于早期 Codex++ 工作继续拆分出的独立 Go 重构和管理器界面项目。感谢原 Codex++ 项目提供的基础能力、工作流思路和面向用户的工具方向。
</p>
<div class="origin-actions">
<a href="https://github.com/BigPizzaV3/CodexPlusPlus">原始项目</a>
<a href="https://github.com/hereww/CodexPlusPlus">重构来源</a>
</div>
</div>
</div>
<div class="origin-panel">
<div data-lang="en" class="active">
<h3>Navigation</h3>
<a href="https://github.com/BigPizzaV3/CodexPlusPlus">github.com/BigPizzaV3/CodexPlusPlus</a>
<a href="https://github.com/hereww/CodexPlusPlus">github.com/hereww/CodexPlusPlus</a>
<a href="https://github.com/hereww/codextools">github.com/hereww/codextools</a>
</div>
<div data-lang="zh">
<h3>项目导航</h3>
<a href="https://github.com/BigPizzaV3/CodexPlusPlus">github.com/BigPizzaV3/CodexPlusPlus</a>
<a href="https://github.com/hereww/CodexPlusPlus">github.com/hereww/CodexPlusPlus</a>
<a href="https://github.com/hereww/codextools">github.com/hereww/codextools</a>
</div>
</div>
</section>
<section class="section telegram">
<div class="telegram-qr">
<img src="./assets/telegram-qr.png" alt="Telegram group QR code for https://t.me/wanai8" />
</div>
<div>
<div data-lang="en" class="active">
<h3>Telegram community</h3>
<p>Join the user group for installation help, relay setup questions, and release follow-up.</p>
<p><a href="https://t.me/wanai8">https://t.me/wanai8</a></p>
</div>
<div data-lang="zh">
<h3>Telegram 交流群</h3>
<p>用于安装协助、Relay 配置交流和版本更新跟进。</p>
<p><a href="https://t.me/wanai8">https://t.me/wanai8</a></p>
</div>
</div>
</section>
</div>
<script>
const buttons = document.querySelectorAll("[data-switch]");
const blocks = document.querySelectorAll("[data-lang]");
function setLanguage(lang) {
document.documentElement.lang = lang === "zh" ? "zh-CN" : "en";
buttons.forEach((button) => {
button.classList.toggle("active", button.getAttribute("data-switch") === lang);
});
blocks.forEach((block) => {
block.classList.toggle("active", block.getAttribute("data-lang") === lang);
});
}
buttons.forEach((button) => {
button.addEventListener("click", () => setLanguage(button.getAttribute("data-switch")));
});
setLanguage("en");
</script>
</body>
</html>