Explorar o código

style: move LAN access token into a dedicated 安全设置 panel

accessToken field leaves 采集配置 and gets its own panel placed
directly below API 设置 (grid row 2, left column).
KenZ1117 hai 2 semanas
pai
achega
f213028101
Modificáronse 1 ficheiros con 9 adicións e 3 borrados
  1. 9 3
      public/index.html

+ 9 - 3
public/index.html

@@ -543,14 +543,20 @@
 	                <textarea id="settingsCookie" rows="3" placeholder="登录 melody.shop.ele.me 后从 DevTools 复制"></textarea>
 	                <textarea id="settingsCookie" rows="3" placeholder="登录 melody.shop.ele.me 后从 DevTools 复制"></textarea>
 	                <div class="help">Cookie 保存后不再回显;会话过期时粘贴新值即可更新</div>
 	                <div class="help">Cookie 保存后不再回显;会话过期时粘贴新值即可更新</div>
               </div>
               </div>
+	            </div>
+	          </div>
+<div class="panel panel-narrow">
+            <div class="stage-marker"><span class="num">3</span><span>安全设置</span></div>
+            <span class="panel-watermark"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3l7 3v5c0 4.4-3 8.4-7 10-4-1.6-7-5.6-7-10V6Z"/><path d="M9.5 12l1.8 1.8L15 10"/></svg></span>
+            <div class="panel-body">
               <div class="field">
               <div class="field">
                 <label>局域网访问口令(accessToken)</label>
                 <label>局域网访问口令(accessToken)</label>
                 <input type="text" id="settingsAccessToken" placeholder="未设置" autocomplete="off">
                 <input type="text" id="settingsAccessToken" placeholder="未设置" autocomplete="off">
                 <div class="help">设置后,同一局域网的其他电脑访问本服务需要输入此口令(本机 127.0.0.1 不受影响)。留空保持不变;输入 - 清除口令。临时开关也可用环境变量 ACCESS_TOKEN。</div>
                 <div class="help">设置后,同一局域网的其他电脑访问本服务需要输入此口令(本机 127.0.0.1 不受影响)。留空保持不变;输入 - 清除口令。临时开关也可用环境变量 ACCESS_TOKEN。</div>
               </div>
               </div>
-	            </div>
-	          </div>
-	          </div>
+            </div>
+          </div>
+          	          </div>
 	                  </div>
 	                  </div>
       </main>
       </main>
     </div>
     </div>