3 Commits
Author SHA1 Message Date
deepfal a8329f1179 feat/ui: 添加详情页面样式并更新应用包名
- 新增详情页面样式,包括服务名称、账号、验证码容器等元素的样式
- 更新应用包名从 "com.deepfal.totp.authenticator" 到 "cn.deepfal.band.TOTPauthenticator"
2025-08-14 16:13:04 +08:00
deepfal 031e4823b9 build: 更新版本号至 1.0.1
- 在 manifest.json 文件中将 versionName 从 1.0.0 修改为 1.0.1
- 此更新统一了各个平台的版本号,确保版本一致性
2025-08-14 14:53:18 +08:00
deepfal 17d5662453 refactor/ui: 优化 TOTP 生成器界面和功能
- 更新了 accounts.json 中的示例账户信息
- 修改了 manifest.json 中的包名
- 调整了 index.ux 中的列表项样式
- 移除了 index.ux 中的详情页面相关代码
2025-08-14 14:14:04 +08:00
3 changed files with 7 additions and 19 deletions

No files matched your search

+3 -3
View File
@@ -1,8 +1,8 @@
{ {
"accounts": [ "accounts": [
{ {
"name": "Example Service 1", "name": "Microsoft",
"username": "user1", "username": "example@outlook.com",
"secret": "JBSWY3DPEHPK3PXP", "secret": "JBSWY3DPEHPK3PXP",
"enabled": true, "enabled": true,
"type": "totp" "type": "totp"
@@ -37,7 +37,7 @@
} }
], ],
"settings": { "settings": {
"title": "TOTP验证器", "title": "TOTP",
"refreshInterval": 20, "refreshInterval": 20,
"maxDisplayAccounts": 10 "maxDisplayAccounts": 10
} }
+2 -2
View File
@@ -1,7 +1,7 @@
{ {
"package": "com.example.totp.authenticator", "package": "cn.deepfal.band.TOTPauthenticator",
"name": "TOTP", "name": "TOTP",
"versionName": "1.0.0", "versionName": "1.0.2",
"versionCode": 1, "versionCode": 1,
"minPlatformVersion": 1000, "minPlatformVersion": 1000,
"icon": "/common/logo.png", "icon": "/common/logo.png",
+2 -14
View File
@@ -13,7 +13,7 @@
<list-item class="totp-item" style="height: 115px; margin-bottom: 10px; background-color: #1a1a1a; border-radius: 15px; border: 1px solid #333; flex-direction: column; justify-content: space-between; padding: 8px;" type="account" for="{{totpList}}" onclick="showDetail($idx)"> <list-item class="totp-item" style="height: 115px; margin-bottom: 10px; background-color: #1a1a1a; border-radius: 15px; border: 1px solid #333; flex-direction: column; justify-content: space-between; padding: 8px;" type="account" for="{{totpList}}" onclick="showDetail($idx)">
<div style="flex-direction: column; width: 100%; margin-bottom: 8px;"> <div style="flex-direction: column; width: 100%; margin-bottom: 8px;">
<text style="font-size: 24px; color: #fff; font-weight: bold; margin-bottom: 3px; text-align: left; width: 100%; line-height: 26px;">{{$item.name}}</text> <text style="font-size: 24px; color: #fff; font-weight: bold; margin-bottom: 3px; text-align: left; width: 100%; line-height: 26px;">{{$item.name}}</text>
<text style="font-size: 18px; color: #999; text-align: left; width: 100%; line-height: 20px;" show="{{$item.usr}}">{{$item.usr}}</text> <text style="font-size: 18px; color: #999; text-align: left; width: 100%; line-height: 22px;" show="{{$item.usr}}">{{$item.usr}}</text>
</div> </div>
<div style="align-items: center; justify-content: center; width: 100%; height: 45px;"> <div style="align-items: center; justify-content: center; width: 100%; height: 45px;">
<text style="font-size: 32px; color: #00ff88; font-family: monospace; font-weight: bold; letter-spacing: 4px; text-align: center; width: 100%; line-height: 36px;">{{$item.otp}}</text> <text style="font-size: 32px; color: #00ff88; font-family: monospace; font-weight: bold; letter-spacing: 4px; text-align: center; width: 100%; line-height: 36px;">{{$item.otp}}</text>
@@ -344,6 +344,7 @@ export default {
mode: 'short' mode: 'short'
}) })
} }
} }
</script> </script>
@@ -491,9 +492,6 @@ export default {
.detail-code-digit { .detail-code-digit {
width: 30px; width: 30px;
height: 50px; height: 50px;
/* background-color: rgba(0, 255, 136, 0.1);
border: 1px solid rgba(0, 255, 136, 0.3);
border-radius: 8px; */
margin: 0 1px; margin: 0 1px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@@ -508,16 +506,6 @@ export default {
line-height: 40px; line-height: 40px;
} }
.detail-code-line {
font-size: 36px;
color: #00ff88;
font-weight: bold;
font-family: monospace;
text-align: center;
line-height: 44px;
margin: 0px 0;
}
.detail-code-single { .detail-code-single {
font-size: 32px; font-size: 32px;
color: #00ff88; color: #00ff88;