File size: 3,596 Bytes
2986042
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <link rel="icon" type="image/x-icon" href="/web/favicon.ico">
  <link rel="apple-touch-icon" href="/web/apple-touch-icon.png">
  <link rel="manifest" href="/web/manifest.json">
  <meta name="theme-color" content="#3b82f6">
  <title data-i18n="settings.title">系统设置 - Claude Code & Codex Proxy</title>
  <link rel="stylesheet" href="/web/assets/css/styles.css?v=__VERSION__">
  <script defer src="/web/assets/locales/zh-CN.js?v=__VERSION__"></script>
  <script defer src="/web/assets/locales/en.js?v=__VERSION__"></script>
  <script defer src="/web/assets/js/i18n.js?v=__VERSION__"></script>
  <script defer src="/web/assets/js/template-engine.js?v=__VERSION__"></script>
  <script defer src="/web/assets/js/ui.js?v=__VERSION__"></script>
  <script defer src="/web/assets/js/settings.js?v=__VERSION__"></script>
</head>
<body>
  <div class="app-container">
    <main class="main-content">
      <div class="content-area">
        <section id="settings-group-nav-section" class="mt-2 mb-2 settings-group-nav-section" hidden>
          <div class="time-range-container settings-group-nav-container">
            <div id="settings-group-nav" class="time-range-selector settings-group-nav">
              <!-- 动态填充:分组快捷跳转 -->
            </div>
          </div>
        </section>

        <section class="glass-card mb-6">
          <div class="table-container settings-table-container mobile-card-table-container">
            <table class="modern-table settings-table mobile-card-table">
              <thead>
                <tr>
                  <th class="settings-head-item" data-i18n="settings.configItem">配置项</th>
                  <th class="settings-head-value" data-i18n="settings.currentValue">当前值</th>
                  <th class="settings-head-actions" data-i18n="common.actions">操作</th>
                </tr>
              </thead>
              <tbody id="settings-tbody">
                <!-- 动态填充 -->
              </tbody>
            </table>
          </div>
          <div class="settings-save-actions">
            <button id="save-all-btn" class="btn btn-primary settings-save-btn" data-i18n="settings.saveAll">
              保存所有更改
            </button>
          </div>
        </section>
      </div>
    </main>
  </div>

  <!-- 设置行模板 -->
  <template id="tpl-setting-row">
    <tr class="mobile-card-row setting-data-row" data-key="{{key}}">
      <td class="setting-col-description" data-mobile-label="{{mobileLabelDescription}}">{{description}}</td>
      <td class="setting-col-value" data-mobile-label="{{mobileLabelValue}}">{{{inputHtml}}}</td>
      <td class="setting-col-actions" data-mobile-label="{{mobileLabelActions}}">
        <button class="btn-icon setting-reset-btn" data-key="{{key}}" data-i18n-title="settings.resetToDefault" title="重置为默认值">
          <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
            <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/>
            <path d="M3 3v5h5"/>
          </svg>
        </button>
      </td>
    </tr>
  </template>

  <!-- 分组标题行模板 -->
  <template id="tpl-setting-group-row">
    <tr class="setting-group-row" id="settings-group-{{groupId}}" data-group="{{groupId}}">
      <td colspan="3" class="setting-group-cell">
        {{groupName}}
      </td>
    </tr>
  </template>

</body>
</html>