feat: add activation-code auth
Deploy Speaking Practice / deploy (push) Successful in 24s

This commit is contained in:
TTlaji committed 2026-06-05 16:56:30 +08:00
1 parent 8f3fd04618
commit 2d3ff21222
17 files changed
+1566 -136

No files matched your search

+9 -11
View File
@@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Speaking Lab</title>
<link rel="stylesheet" href="./styles.css?v=20260604-study-toolbar">
<title>Speaking Lab 学习页</title>
<link rel="stylesheet" href="./styles.css?v=20260605-auth">
</head>
<body>
<header class="topbar">
@@ -13,12 +13,9 @@
</div>
<div class="top-actions">
<form id="loginForm" class="login-form">
<input id="emailInput" type="email" placeholder="邮箱" autocomplete="email" required>
<input id="passwordInput" type="password" placeholder="密码" autocomplete="current-password" required>
<button id="loginBtn" type="submit">登录 / 注册</button>
</form>
<div id="userMenu" class="user-menu" hidden>
<a class="secondary-action" href="./index.html">首页</a>
<a id="adminEntryBtn" class="secondary-action" href="./admin.html" hidden>后台</a>
<div id="userMenu" class="user-menu">
<span id="userLabel"></span>
<button id="logoutBtn" type="button">退出</button>
</div>
@@ -31,8 +28,8 @@
<div class="video-frame">
<video id="video" controls preload="metadata" crossorigin="anonymous"></video>
<div id="emptyVideo" class="empty-video">
<strong>选择或上传一个视频</strong>
<span>支持本地 MP4/WebM 和 HLS 地址</span>
<strong>选择一个视频</strong>
<span>从首页选择素材后开始练习。</span>
</div>
</div>
@@ -77,6 +74,7 @@
</aside>
</main>
<script src="./app.js?v=20260604-study-toolbar"></script>
<script src="./auth.js?v=20260605-auth"></script>
<script src="./app.js?v=20260605-auth"></script>
</body>
</html>