feat(auth): 添加登出功能并优化认证处理

- 添加了登出相关的API端点和常量定义
- 实现了登出功能及密码验证登出逻辑
- 添加了登出会话清理和浏览器存储清除
- 在用户信息模态框中集成了登出按钮
- 添加了登出相关的国际化翻译
- 优化了API客户端中的认证错误处理
- 实现了无效令牌的自动处理机制
- 更新了GitNexus索引统计数据
- 修改了构建输出目录配置
- 清理了不必要的注释和代码
- 调整了移动端头部组件结构
- 优化了游戏历史记录查询逻辑
- 添加了控制台日志用于调试
- 设置默认注册邀请码为D97DBC16
- 在.gitignore中添加构建产物忽略规则
This commit is contained in:
JiaJun
2026-05-29 16:26:35 +08:00
parent dbfe5701aa
commit 15c519a42c
26 changed files with 527 additions and 87 deletions

View File

@@ -160,6 +160,8 @@ export default {
tel: 'Phone',
registeredAt: 'Registered at',
copyInviteLink: 'Copy invite link',
logout: 'Log out',
loggingOut: 'Logging out...',
signature:
'My signature is as unique as my personality. This area will later display the real profile summary.',
},
@@ -244,6 +246,8 @@ export default {
lobbyInitFailed: 'Failed to load the game lobby',
loginRequired: 'Please log in before entering the game',
loginSuccess: 'Login successful',
logoutSuccess: 'Logged out',
logoutLocalOnly: 'Logout request failed. Local session was cleared.',
registerSuccess: 'Registration successful',
inviteLinkCopied: 'Invite link copied',
inviteLinkCopyFailed:

View File

@@ -159,6 +159,8 @@ export default {
tel: 'Telepon',
registeredAt: 'Tanggal daftar',
copyInviteLink: 'Salin tautan undangan',
logout: 'Keluar',
loggingOut: 'Keluar...',
signature:
'Tanda tanganku seunik diriku. Bagian ini nantinya akan menampilkan ringkasan profil yang sebenarnya.',
},
@@ -243,6 +245,8 @@ export default {
lobbyInitFailed: 'Gagal memuat lobby game',
loginRequired: 'Silakan masuk sebelum memasuki game',
loginSuccess: 'Berhasil masuk',
logoutSuccess: 'Berhasil keluar',
logoutLocalOnly: 'Permintaan keluar gagal. Sesi lokal telah dibersihkan.',
registerSuccess: 'Pendaftaran berhasil',
inviteLinkCopied: 'Tautan undangan disalin',
inviteLinkCopyFailed:
@@ -362,7 +366,7 @@ export default {
message: 'Pesan',
bgm: 'BGM',
id: 'ID',
fullscreen: 'Layar Penuh',
fullscreen: 'Layar',
login: 'Masuk',
register: 'Daftar',
},

View File

@@ -162,6 +162,8 @@ export default {
tel: 'Telefon',
registeredAt: 'Tarikh daftar',
copyInviteLink: 'Salin pautan jemputan',
logout: 'Log Keluar',
loggingOut: 'Sedang log keluar...',
signature:
'Tandatangan saya unik seperti personaliti saya. Bahagian ini akan memaparkan ringkasan profil sebenar kemudian.',
},
@@ -246,6 +248,9 @@ export default {
lobbyInitFailed: 'Gagal memuatkan lobi permainan',
loginRequired: 'Sila log masuk sebelum memasuki permainan',
loginSuccess: 'Log masuk berjaya',
logoutSuccess: 'Telah log keluar',
logoutLocalOnly:
'Permintaan log keluar gagal. Sesi tempatan telah dikosongkan.',
registerSuccess: 'Pendaftaran berjaya',
inviteLinkCopied: 'Pautan jemputan telah disalin',
inviteLinkCopyFailed:
@@ -366,7 +371,7 @@ export default {
message: 'Mesej',
bgm: 'BGM',
id: 'ID',
fullscreen: 'Skrin Penuh',
fullscreen: 'Skrin',
login: 'Log Masuk',
register: 'Daftar',
},

View File

@@ -157,6 +157,8 @@ export default {
tel: '电话',
registeredAt: '注册时间',
copyInviteLink: '复制邀请链接',
logout: '退出登录',
loggingOut: '退出中...',
signature: '我的个性签名和灵魂一样独特,后续这里会接真实资料字段。',
},
message: {
@@ -238,6 +240,8 @@ export default {
lobbyInitFailed: '游戏大厅加载失败',
loginRequired: '请先登录后进入游戏',
loginSuccess: '登录成功',
logoutSuccess: '已退出登录',
logoutLocalOnly: '退出接口请求失败,已清除本地登录状态',
registerSuccess: '注册成功',
inviteLinkCopied: '邀请链接已复制',
inviteLinkCopyFailed: '邀请链接复制失败,请手动复制',