@liujitcn/kratos-taro-app-system 0.0.81 → 0.0.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build.mjs CHANGED
@@ -8,7 +8,6 @@ var systemPages = {
8
8
  "pages/my/my": {
9
9
  style: {
10
10
  navigationStyle: "custom",
11
- navigationBarTextStyle: "white",
12
11
  navigationBarTitleText: ""
13
12
  }
14
13
  },
@@ -22,7 +21,6 @@ var systemPages = {
22
21
  "pagesMember/profile/profile": {
23
22
  style: {
24
23
  navigationStyle: "custom",
25
- navigationBarTextStyle: "white",
26
24
  navigationBarTitleText: ""
27
25
  }
28
26
  },
package/dist/module.mjs CHANGED
@@ -6,7 +6,6 @@ var systemPages = {
6
6
  "pages/my/my": {
7
7
  style: {
8
8
  navigationStyle: "custom",
9
- navigationBarTextStyle: "white",
10
9
  navigationBarTitleText: ""
11
10
  }
12
11
  },
@@ -20,7 +19,6 @@ var systemPages = {
20
19
  "pagesMember/profile/profile": {
21
20
  style: {
22
21
  navigationStyle: "custom",
23
- navigationBarTextStyle: "white",
24
22
  navigationBarTitleText: ""
25
23
  }
26
24
  },
@@ -104,7 +102,6 @@ var zh_CN_default = {
104
102
  "system.profile.account": "\u8D26\u53F7",
105
103
  "system.profile.avatar_change": "\u70B9\u51FB\u4FEE\u6539\u5934\u50CF",
106
104
  "system.profile.avatar_upload_failed": "\u4E0A\u4F20\u5934\u50CF\u5931\u8D25",
107
- "system.profile.avatar_update": "\u66F4\u65B0\u5934\u50CF\u6635\u79F0",
108
105
  "system.profile.gender": "\u6027\u522B",
109
106
  "system.profile.email": "\u90AE\u7BB1",
110
107
  "system.profile.email_placeholder": "\u8BF7\u8F93\u5165\u90AE\u7BB1",
@@ -153,24 +150,20 @@ var zh_CN_default = {
153
150
  "system.settings.mfa_disable_factor_required": "\u8BF7\u8F93\u5165\u52A8\u6001\u53E3\u4EE4\u6216\u6062\u590D\u7801\u3002",
154
151
  "system.settings.mfa_disable_action": "\u7981\u7528",
155
152
  "system.settings.mfa_disable_success": "\u591A\u56E0\u7D20\u8BA4\u8BC1\u5DF2\u7981\u7528",
156
- "system.settings.mfa_copy_uri": "\u590D\u5236\u7ED1\u5B9A\u5730\u5740",
157
- "system.settings.mfa_copy_success": "\u590D\u5236\u6210\u529F",
158
- "system.notification.title": "\u6D88\u606F\u4E2D\u5FC3",
153
+ "system.notification.title": "\u6D88\u606F",
159
154
  "system.notification.sender.system": "\u7CFB\u7EDF",
160
- "system.notification.description": "\u67E5\u770B\u7CFB\u7EDF\u901A\u77E5\u548C\u4E1A\u52A1\u6D88\u606F",
161
155
  "system.notification.empty": "\u6682\u65E0\u6D88\u606F",
162
- "system.notification.action.view_all": "\u67E5\u770B\u5168\u90E8",
156
+ "system.notification.empty_inbox_hint": "\u65B0\u6D88\u606F\u5C06\u5728\u6B64\u663E\u793A",
157
+ "system.notification.empty_unread_hint": "\u5168\u90E8\u6D88\u606F\u5747\u5DF2\u8BFB\u5B8C",
158
+ "system.notification.empty_archived_hint": "\u5F52\u6863\u7684\u6D88\u606F\u5C06\u5728\u6B64\u663E\u793A",
163
159
  "system.notification.view.inbox": "\u5168\u90E8",
164
160
  "system.notification.view.unread": "\u672A\u8BFB",
165
161
  "system.notification.view.archived": "\u5DF2\u5F52\u6863",
166
- "system.notification.category_filter": "\u5206\u7C7B ID",
167
162
  "system.notification.mark_all_read": "\u5168\u90E8\u5DF2\u8BFB",
168
163
  "system.notification.action.archive": "\u5F52\u6863",
169
164
  "system.notification.action.restore": "\u6062\u590D",
170
165
  "system.notification.action.delete": "\u5220\u9664",
171
- "system.ai.model.provider_placeholder": "\u9009\u62E9\u4F9B\u5E94\u5546",
172
166
  "system.ai.model.model_placeholder": "\u9009\u62E9\u6A21\u578B",
173
- "system.ai.model.load_failed": "\u52A0\u8F7D\u4F9B\u5E94\u5546\u548C\u6A21\u578B\u5931\u8D25",
174
167
  "system.ai.model.title": "\u9009\u62E9\u6A21\u578B",
175
168
  "system.ai.model.provider_model_count": "{providers} \u4E2A\u4F9B\u5E94\u5546 \xB7 {models} \u4E2A\u6A21\u578B",
176
169
  "system.ai.model.empty": "\u6682\u65E0\u53EF\u9009\u6A21\u578B",
@@ -256,7 +249,6 @@ var en_US_default = {
256
249
  "system.profile.account": "Account",
257
250
  "system.profile.avatar_change": "Tap to change avatar",
258
251
  "system.profile.avatar_upload_failed": "Avatar upload failed",
259
- "system.profile.avatar_update": "Update avatar and name",
260
252
  "system.profile.gender": "Gender",
261
253
  "system.profile.email": "Email",
262
254
  "system.profile.email_placeholder": "Enter email",
@@ -305,24 +297,20 @@ var en_US_default = {
305
297
  "system.settings.mfa_disable_factor_required": "Enter a TOTP code or recovery code.",
306
298
  "system.settings.mfa_disable_action": "Disable",
307
299
  "system.settings.mfa_disable_success": "Multi-factor authentication disabled",
308
- "system.settings.mfa_copy_uri": "Copy binding address",
309
- "system.settings.mfa_copy_success": "Copied",
310
- "system.notification.title": "Message Center",
300
+ "system.notification.title": "Messages",
311
301
  "system.notification.sender.system": "System",
312
- "system.notification.description": "View system notifications and business messages",
313
302
  "system.notification.empty": "No messages",
314
- "system.notification.action.view_all": "View all",
303
+ "system.notification.empty_inbox_hint": "New messages will appear here",
304
+ "system.notification.empty_unread_hint": "You're all caught up",
305
+ "system.notification.empty_archived_hint": "Archived messages will appear here",
315
306
  "system.notification.view.inbox": "All",
316
307
  "system.notification.view.unread": "Unread",
317
308
  "system.notification.view.archived": "Archived",
318
- "system.notification.category_filter": "Category ID",
319
309
  "system.notification.mark_all_read": "Mark all read",
320
310
  "system.notification.action.archive": "Archive",
321
311
  "system.notification.action.restore": "Restore",
322
312
  "system.notification.action.delete": "Delete",
323
- "system.ai.model.provider_placeholder": "Select a provider",
324
313
  "system.ai.model.model_placeholder": "Select a model",
325
- "system.ai.model.load_failed": "Failed to load providers and models",
326
314
  "system.ai.model.title": "Select Model",
327
315
  "system.ai.model.provider_model_count": "{providers} providers \xB7 {models} models",
328
316
  "system.ai.model.empty": "No models available",
@@ -408,7 +396,6 @@ var ja_JP_default = {
408
396
  "system.profile.account": "\u30A2\u30AB\u30A6\u30F3\u30C8",
409
397
  "system.profile.avatar_change": "\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30A2\u30D0\u30BF\u30FC\u3092\u5909\u66F4\u3057\u307E\u3059",
410
398
  "system.profile.avatar_upload_failed": "\u30A2\u30D0\u30BF\u30FC\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
411
- "system.profile.avatar_update": "\u30A2\u30D0\u30BF\u30FC\u306E\u30CB\u30C3\u30AF\u30CD\u30FC\u30E0\u3092\u66F4\u65B0",
412
399
  "system.profile.gender": "\u6027\u5225",
413
400
  "system.profile.email": "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",
414
401
  "system.profile.email_placeholder": "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
@@ -457,24 +444,20 @@ var ja_JP_default = {
457
444
  "system.settings.mfa_disable_factor_required": "TOTP \u30B3\u30FC\u30C9\u307E\u305F\u306F\u30EA\u30AB\u30D0\u30EA\u30FC\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
458
445
  "system.settings.mfa_disable_action": "\u7121\u52B9\u306B\u3059\u308B",
459
446
  "system.settings.mfa_disable_success": "\u591A\u8981\u7D20\u8A8D\u8A3C\u3092\u7121\u52B9\u306B\u3057\u307E\u3057\u305F",
460
- "system.settings.mfa_copy_uri": "\u767B\u9332\u30A2\u30C9\u30EC\u30B9\u3092\u30B3\u30D4\u30FC",
461
- "system.settings.mfa_copy_success": "\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
462
- "system.notification.title": "\u30E1\u30C3\u30BB\u30FC\u30B8\u30BB\u30F3\u30BF\u30FC",
447
+ "system.notification.title": "\u30E1\u30C3\u30BB\u30FC\u30B8",
463
448
  "system.notification.sender.system": "\u30B7\u30B9\u30C6\u30E0",
464
- "system.notification.description": "\u30B7\u30B9\u30C6\u30E0\u901A\u77E5\u3068\u696D\u52D9\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u78BA\u8A8D",
465
449
  "system.notification.empty": "\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3042\u308A\u307E\u305B\u3093",
466
- "system.notification.action.view_all": "\u3059\u3079\u3066\u8868\u793A",
450
+ "system.notification.empty_inbox_hint": "\u65B0\u3057\u3044\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3053\u3053\u306B\u8868\u793A\u3055\u308C\u307E\u3059",
451
+ "system.notification.empty_unread_hint": "\u3059\u3079\u3066\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u65E2\u8AAD\u306B\u3057\u307E\u3057\u305F",
452
+ "system.notification.empty_archived_hint": "\u30A2\u30FC\u30AB\u30A4\u30D6\u6E08\u307F\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3053\u3053\u306B\u8868\u793A\u3055\u308C\u307E\u3059",
467
453
  "system.notification.view.inbox": "\u3059\u3079\u3066",
468
454
  "system.notification.view.unread": "\u672A\u8AAD",
469
455
  "system.notification.view.archived": "\u30A2\u30FC\u30AB\u30A4\u30D6\u6E08\u307F",
470
- "system.notification.category_filter": "\u30AB\u30C6\u30B4\u30EAID",
471
456
  "system.notification.mark_all_read": "\u3059\u3079\u3066\u65E2\u8AAD",
472
457
  "system.notification.action.archive": "\u30A2\u30FC\u30AB\u30A4\u30D6",
473
458
  "system.notification.action.restore": "\u5FA9\u5143",
474
459
  "system.notification.action.delete": "\u524A\u9664",
475
- "system.ai.model.provider_placeholder": "\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3092\u9078\u629E",
476
460
  "system.ai.model.model_placeholder": "\u30E2\u30C7\u30EB\u3092\u9078\u629E",
477
- "system.ai.model.load_failed": "\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3068\u30E2\u30C7\u30EB\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",
478
461
  "system.ai.model.title": "\u30E2\u30C7\u30EB\u3092\u9078\u629E",
479
462
  "system.ai.model.provider_model_count": "{providers} \u30D7\u30ED\u30D0\u30A4\u30C0\u30FC \xB7 {models} \u30E2\u30C7\u30EB",
480
463
  "system.ai.model.empty": "\u9078\u629E\u53EF\u80FD\u306A\u30E2\u30C7\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",
@@ -560,7 +543,6 @@ var zh_TW_default = {
560
543
  "system.profile.account": "\u8CEC\u865F",
561
544
  "system.profile.avatar_change": "\u9EDE\u9078\u4FEE\u6539\u982D\u50CF",
562
545
  "system.profile.avatar_upload_failed": "\u4E0A\u50B3\u982D\u50CF\u5931\u6557",
563
- "system.profile.avatar_update": "\u66F4\u65B0\u982D\u50CF\u66B1\u7A31",
564
546
  "system.profile.gender": "\u6027\u5225",
565
547
  "system.profile.email": "\u96FB\u5B50\u90F5\u4EF6",
566
548
  "system.profile.email_placeholder": "\u8ACB\u8F38\u5165\u96FB\u5B50\u90F5\u4EF6",
@@ -609,24 +591,20 @@ var zh_TW_default = {
609
591
  "system.settings.mfa_disable_factor_required": "\u8ACB\u8F38\u5165\u52D5\u614B\u5BC6\u78BC\u6216\u6062\u5FA9\u78BC\u3002",
610
592
  "system.settings.mfa_disable_action": "\u505C\u7528",
611
593
  "system.settings.mfa_disable_success": "\u591A\u56E0\u7D20\u8A8D\u8B49\u5DF2\u505C\u7528",
612
- "system.settings.mfa_copy_uri": "\u8907\u88FD\u7D81\u5B9A\u5730\u5740",
613
- "system.settings.mfa_copy_success": "\u8907\u88FD\u6210\u529F",
614
- "system.notification.title": "\u6D88\u606F\u4E2D\u5FC3",
594
+ "system.notification.title": "\u6D88\u606F",
615
595
  "system.notification.sender.system": "\u7CFB\u7D71",
616
- "system.notification.description": "\u67E5\u770B\u7CFB\u7D71\u901A\u77E5\u548C\u696D\u52D9\u6D88\u606F",
617
596
  "system.notification.empty": "\u66AB\u7121\u6D88\u606F",
618
- "system.notification.action.view_all": "\u67E5\u770B\u5168\u90E8",
597
+ "system.notification.empty_inbox_hint": "\u65B0\u8A0A\u606F\u5C07\u5728\u6B64\u986F\u793A",
598
+ "system.notification.empty_unread_hint": "\u5168\u90E8\u8A0A\u606F\u5747\u5DF2\u8B80\u5B8C",
599
+ "system.notification.empty_archived_hint": "\u5C01\u5B58\u7684\u8A0A\u606F\u5C07\u5728\u6B64\u986F\u793A",
619
600
  "system.notification.view.inbox": "\u5168\u90E8",
620
601
  "system.notification.view.unread": "\u672A\u8B80",
621
602
  "system.notification.view.archived": "\u5DF2\u6B78\u6A94",
622
- "system.notification.category_filter": "\u5206\u985E ID",
623
603
  "system.notification.mark_all_read": "\u5168\u90E8\u5DF2\u8B80",
624
604
  "system.notification.action.archive": "\u6B78\u6A94",
625
605
  "system.notification.action.restore": "\u6062\u5FA9",
626
606
  "system.notification.action.delete": "\u522A\u9664",
627
- "system.ai.model.provider_placeholder": "\u9078\u64C7\u4F9B\u61C9\u5546",
628
607
  "system.ai.model.model_placeholder": "\u9078\u64C7\u6A21\u578B",
629
- "system.ai.model.load_failed": "\u8F09\u5165\u4F9B\u61C9\u5546\u8207\u6A21\u578B\u5931\u6557",
630
608
  "system.ai.model.title": "\u9078\u64C7\u6A21\u578B",
631
609
  "system.ai.model.provider_model_count": "{providers} \u500B\u4F9B\u61C9\u5546 \xB7 {models} \u500B\u6A21\u578B",
632
610
  "system.ai.model.empty": "\u66AB\u7121\u53EF\u9078\u6A21\u578B",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "git@github.com:liujitcn/kratos-admin.git"
9
9
  },
10
- "version": "0.0.81",
10
+ "version": "0.0.83",
11
11
  "type": "module",
12
12
  "files": [
13
13
  "dist",
@@ -38,8 +38,8 @@
38
38
  "@tarojs/components": "4.2.1",
39
39
  "@tarojs/taro": "4.2.1",
40
40
  "react": "18.3.1",
41
- "@liujitcn/kratos-taro-app-core": "^0.0.81",
42
- "@liujitcn/kratos-taro-app-ui": "^0.0.81"
41
+ "@liujitcn/kratos-taro-app-core": "^0.0.83",
42
+ "@liujitcn/kratos-taro-app-ui": "^0.0.83"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "pnpm run build:entries && pnpm pack --pack-destination ../../../dist/npm",
@@ -68,7 +68,6 @@
68
68
  "system.profile.account": "Account",
69
69
  "system.profile.avatar_change": "Tap to change avatar",
70
70
  "system.profile.avatar_upload_failed": "Avatar upload failed",
71
- "system.profile.avatar_update": "Update avatar and name",
72
71
  "system.profile.gender": "Gender",
73
72
  "system.profile.email": "Email",
74
73
  "system.profile.email_placeholder": "Enter email",
@@ -117,24 +116,20 @@
117
116
  "system.settings.mfa_disable_factor_required": "Enter a TOTP code or recovery code.",
118
117
  "system.settings.mfa_disable_action": "Disable",
119
118
  "system.settings.mfa_disable_success": "Multi-factor authentication disabled",
120
- "system.settings.mfa_copy_uri": "Copy binding address",
121
- "system.settings.mfa_copy_success": "Copied",
122
- "system.notification.title": "Message Center",
119
+ "system.notification.title": "Messages",
123
120
  "system.notification.sender.system": "System",
124
- "system.notification.description": "View system notifications and business messages",
125
121
  "system.notification.empty": "No messages",
126
- "system.notification.action.view_all": "View all",
122
+ "system.notification.empty_inbox_hint": "New messages will appear here",
123
+ "system.notification.empty_unread_hint": "You're all caught up",
124
+ "system.notification.empty_archived_hint": "Archived messages will appear here",
127
125
  "system.notification.view.inbox": "All",
128
126
  "system.notification.view.unread": "Unread",
129
127
  "system.notification.view.archived": "Archived",
130
- "system.notification.category_filter": "Category ID",
131
128
  "system.notification.mark_all_read": "Mark all read",
132
129
  "system.notification.action.archive": "Archive",
133
130
  "system.notification.action.restore": "Restore",
134
131
  "system.notification.action.delete": "Delete",
135
- "system.ai.model.provider_placeholder": "Select a provider",
136
132
  "system.ai.model.model_placeholder": "Select a model",
137
- "system.ai.model.load_failed": "Failed to load providers and models",
138
133
  "system.ai.model.title": "Select Model",
139
134
  "system.ai.model.provider_model_count": "{providers} providers · {models} models",
140
135
  "system.ai.model.empty": "No models available",
@@ -68,7 +68,6 @@
68
68
  "system.profile.account": "アカウント",
69
69
  "system.profile.avatar_change": "クリックしてアバターを変更します",
70
70
  "system.profile.avatar_upload_failed": "アバターのアップロードに失敗しました",
71
- "system.profile.avatar_update": "アバターのニックネームを更新",
72
71
  "system.profile.gender": "性別",
73
72
  "system.profile.email": "メールアドレス",
74
73
  "system.profile.email_placeholder": "メールアドレスを入力してください",
@@ -117,24 +116,20 @@
117
116
  "system.settings.mfa_disable_factor_required": "TOTP コードまたはリカバリーコードを入力してください。",
118
117
  "system.settings.mfa_disable_action": "無効にする",
119
118
  "system.settings.mfa_disable_success": "多要素認証を無効にしました",
120
- "system.settings.mfa_copy_uri": "登録アドレスをコピー",
121
- "system.settings.mfa_copy_success": "コピーしました",
122
- "system.notification.title": "メッセージセンター",
119
+ "system.notification.title": "メッセージ",
123
120
  "system.notification.sender.system": "システム",
124
- "system.notification.description": "システム通知と業務メッセージを確認",
125
121
  "system.notification.empty": "メッセージはありません",
126
- "system.notification.action.view_all": "すべて表示",
122
+ "system.notification.empty_inbox_hint": "新しいメッセージはここに表示されます",
123
+ "system.notification.empty_unread_hint": "すべてのメッセージを既読にしました",
124
+ "system.notification.empty_archived_hint": "アーカイブ済みのメッセージはここに表示されます",
127
125
  "system.notification.view.inbox": "すべて",
128
126
  "system.notification.view.unread": "未読",
129
127
  "system.notification.view.archived": "アーカイブ済み",
130
- "system.notification.category_filter": "カテゴリID",
131
128
  "system.notification.mark_all_read": "すべて既読",
132
129
  "system.notification.action.archive": "アーカイブ",
133
130
  "system.notification.action.restore": "復元",
134
131
  "system.notification.action.delete": "削除",
135
- "system.ai.model.provider_placeholder": "プロバイダーを選択",
136
132
  "system.ai.model.model_placeholder": "モデルを選択",
137
- "system.ai.model.load_failed": "プロバイダーとモデルを読み込めませんでした",
138
133
  "system.ai.model.title": "モデルを選択",
139
134
  "system.ai.model.provider_model_count": "{providers} プロバイダー · {models} モデル",
140
135
  "system.ai.model.empty": "選択可能なモデルがありません",
@@ -68,7 +68,6 @@
68
68
  "system.profile.account": "账号",
69
69
  "system.profile.avatar_change": "点击修改头像",
70
70
  "system.profile.avatar_upload_failed": "上传头像失败",
71
- "system.profile.avatar_update": "更新头像昵称",
72
71
  "system.profile.gender": "性别",
73
72
  "system.profile.email": "邮箱",
74
73
  "system.profile.email_placeholder": "请输入邮箱",
@@ -117,24 +116,20 @@
117
116
  "system.settings.mfa_disable_factor_required": "请输入动态口令或恢复码。",
118
117
  "system.settings.mfa_disable_action": "禁用",
119
118
  "system.settings.mfa_disable_success": "多因素认证已禁用",
120
- "system.settings.mfa_copy_uri": "复制绑定地址",
121
- "system.settings.mfa_copy_success": "复制成功",
122
- "system.notification.title": "消息中心",
119
+ "system.notification.title": "消息",
123
120
  "system.notification.sender.system": "系统",
124
- "system.notification.description": "查看系统通知和业务消息",
125
121
  "system.notification.empty": "暂无消息",
126
- "system.notification.action.view_all": "查看全部",
122
+ "system.notification.empty_inbox_hint": "新消息将在此显示",
123
+ "system.notification.empty_unread_hint": "全部消息均已读完",
124
+ "system.notification.empty_archived_hint": "归档的消息将在此显示",
127
125
  "system.notification.view.inbox": "全部",
128
126
  "system.notification.view.unread": "未读",
129
127
  "system.notification.view.archived": "已归档",
130
- "system.notification.category_filter": "分类 ID",
131
128
  "system.notification.mark_all_read": "全部已读",
132
129
  "system.notification.action.archive": "归档",
133
130
  "system.notification.action.restore": "恢复",
134
131
  "system.notification.action.delete": "删除",
135
- "system.ai.model.provider_placeholder": "选择供应商",
136
132
  "system.ai.model.model_placeholder": "选择模型",
137
- "system.ai.model.load_failed": "加载供应商和模型失败",
138
133
  "system.ai.model.title": "选择模型",
139
134
  "system.ai.model.provider_model_count": "{providers} 个供应商 · {models} 个模型",
140
135
  "system.ai.model.empty": "暂无可选模型",
@@ -68,7 +68,6 @@
68
68
  "system.profile.account": "賬號",
69
69
  "system.profile.avatar_change": "點選修改頭像",
70
70
  "system.profile.avatar_upload_failed": "上傳頭像失敗",
71
- "system.profile.avatar_update": "更新頭像暱稱",
72
71
  "system.profile.gender": "性別",
73
72
  "system.profile.email": "電子郵件",
74
73
  "system.profile.email_placeholder": "請輸入電子郵件",
@@ -117,24 +116,20 @@
117
116
  "system.settings.mfa_disable_factor_required": "請輸入動態密碼或恢復碼。",
118
117
  "system.settings.mfa_disable_action": "停用",
119
118
  "system.settings.mfa_disable_success": "多因素認證已停用",
120
- "system.settings.mfa_copy_uri": "複製綁定地址",
121
- "system.settings.mfa_copy_success": "複製成功",
122
- "system.notification.title": "消息中心",
119
+ "system.notification.title": "消息",
123
120
  "system.notification.sender.system": "系統",
124
- "system.notification.description": "查看系統通知和業務消息",
125
121
  "system.notification.empty": "暫無消息",
126
- "system.notification.action.view_all": "查看全部",
122
+ "system.notification.empty_inbox_hint": "新訊息將在此顯示",
123
+ "system.notification.empty_unread_hint": "全部訊息均已讀完",
124
+ "system.notification.empty_archived_hint": "封存的訊息將在此顯示",
127
125
  "system.notification.view.inbox": "全部",
128
126
  "system.notification.view.unread": "未讀",
129
127
  "system.notification.view.archived": "已歸檔",
130
- "system.notification.category_filter": "分類 ID",
131
128
  "system.notification.mark_all_read": "全部已讀",
132
129
  "system.notification.action.archive": "歸檔",
133
130
  "system.notification.action.restore": "恢復",
134
131
  "system.notification.action.delete": "刪除",
135
- "system.ai.model.provider_placeholder": "選擇供應商",
136
132
  "system.ai.model.model_placeholder": "選擇模型",
137
- "system.ai.model.load_failed": "載入供應商與模型失敗",
138
133
  "system.ai.model.title": "選擇模型",
139
134
  "system.ai.model.provider_model_count": "{providers} 個供應商 · {models} 個模型",
140
135
  "system.ai.model.empty": "暫無可選模型",
package/src/pages.ts CHANGED
@@ -5,7 +5,6 @@ export const systemPages: Record<string, KratosTaroPageConfig> = {
5
5
  'pages/my/my': {
6
6
  style: {
7
7
  navigationStyle: 'custom',
8
- navigationBarTextStyle: 'white',
9
8
  navigationBarTitleText: '',
10
9
  },
11
10
  },
@@ -19,7 +18,6 @@ export const systemPages: Record<string, KratosTaroPageConfig> = {
19
18
  'pagesMember/profile/profile': {
20
19
  style: {
21
20
  navigationStyle: 'custom',
22
- navigationBarTextStyle: 'white',
23
21
  navigationBarTitleText: '',
24
22
  },
25
23
  },
@@ -14,8 +14,8 @@ page {
14
14
  }
15
15
 
16
16
  .my-viewport--weapp .my-content {
17
- /* 44PX 是系统导航栏高度,88px 按设计稿转换为 44 物理像素。 */
18
- padding-top: calc(44PX + 88px);
17
+ /* k-top 在小程序端自带 44PX 状态栏高度的导航带,页面不再额外让出顶部空间 */
18
+ padding-top: 0;
19
19
  }
20
20
 
21
21
  .my-stack {
@@ -29,7 +29,7 @@ export default function MyPage() {
29
29
  const gearIcon = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(
30
30
  `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="${
31
31
  themeStore.theme === 'light' ? '#102232' : '#e9f4f6'
32
- }" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.6 1.6 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.6 1.6 0 0 0-2.7 1.1 2 2 0 1 1-4 0 1.6 1.6 0 0 0-2.6-1.1 2 2 0 1 1-2.8-2.8A1.6 1.6 0 0 0 3 13.9a2 2 0 1 1 0-4 1.6 1.6 0 0 0 1.5-2.7 2 2 0 1 1 2.8-2.8A1.6 1.6 0 0 0 10 4.6a2 2 0 1 1 4 0 1.6 1.6 0 0 0 2.7.6 2 2 0 1 1 2.8 2.8 1.6 1.6 0 0 0-.1 2.6"/></svg>`,
32
+ }" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.6 1.6 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.6 1.6 0 0 0-2.7 1.1 2 2 0 1 1-4 0 1.6 1.6 0 0 0-2.6-1.1 2 2 0 1 1-2.8-2.8A1.6 1.6 0 0 0 3 13.9a2 2 0 1 1 0-4 1.6 1.6 0 0 0 1.5-2.7 2 2 0 1 1 2.8-2.8A1.6 1.6 0 0 0 10 4.6a2 2 0 1 1 4 0 1.6 1.6 0 0 0 2.7.6 2 2 0 1 1 2.8 2.8 1.6 1.6 0 0 0-.1 2.6a2.2 2.2 0 1 1 0 4.4Z"/></svg>`,
33
33
  )}`
34
34
  /** 个人卡账号行:登录展示账号,未登录提示去登录。 */
35
35
  const accountText =
@@ -64,8 +64,6 @@ export default function MyPage() {
64
64
  className='k-glass k-glass--lit k-pfx my-profile'
65
65
  onClick={() => navigateAppRoute('app/profile')}
66
66
  >
67
- <View className='k-cnr k-cnr--tr' aria-hidden />
68
- <View className='k-cnr k-cnr--bl' aria-hidden />
69
67
  <View className='my-pfx-main'>
70
68
  {isLoggedIn && profile ? (
71
69
  <Image
@@ -26,6 +26,7 @@ export default function MessageDetailPage() {
26
26
  if (!value.read_at) await defNotificationService.MarkNotificationRead({ ids: [id] })
27
27
  }
28
28
 
29
+ /** 将系统通知发送者映射到当前语言。 */
29
30
  function resolveSenderName(value?: string) {
30
31
  if (value === '系统' || value === '__I18N__:system.notification.sender.system') {
31
32
  return t('system.notification.sender.system')
@@ -2,7 +2,13 @@ import type { CSSProperties } from 'react'
2
2
  import { useDidShow } from '@tarojs/taro'
3
3
  import { Button, Text, View } from '@tarojs/components'
4
4
  import { useRef, useState } from 'react'
5
- import { getMpCapsuleRightGap, navigateAppView, t, useThemeStore } from '@liujitcn/kratos-taro-app-core'
5
+ import {
6
+ getMpCapsuleRightGap,
7
+ KratosEmpty,
8
+ navigateAppView,
9
+ t,
10
+ useThemeStore,
11
+ } from '@liujitcn/kratos-taro-app-core'
6
12
  import { UniIcon } from '@liujitcn/kratos-taro-app-ui'
7
13
  import { defNotificationService } from '../../../api/base/v1/notification'
8
14
  import type { Notification, NotificationCategory } from '../../../rpc/base/v1/notification'
@@ -155,6 +161,15 @@ export default function MessageInboxPage() {
155
161
  navigateAppView('MESSAGE_DETAIL', { id: String(item.id) })
156
162
  }
157
163
 
164
+ /** 空态提示语随当前视图切换。 */
165
+ function emptyHintKey() {
166
+ if (selectedView === NotificationView.NOTIFICATION_VIEW_UNREAD)
167
+ return 'system.notification.empty_unread_hint'
168
+ if (selectedView === NotificationView.NOTIFICATION_VIEW_ARCHIVED)
169
+ return 'system.notification.empty_archived_hint'
170
+ return 'system.notification.empty_inbox_hint'
171
+ }
172
+
158
173
  return (
159
174
  <View
160
175
  className={`message-page ${
@@ -163,7 +178,7 @@ export default function MessageInboxPage() {
163
178
  >
164
179
  <View className='k-top message-header' style={topNavStyle}>
165
180
  <View className='message-header__title'>
166
- <Text className='k-top__t2'>{t('system.notification.title')}</Text>
181
+ <Text className='message-header__text'>{t('system.notification.title')}</Text>
167
182
  {unreadTotal > 0 && <View className='message-unread-dot' aria-hidden='true' />}
168
183
  </View>
169
184
  {selectedView !== NotificationView.NOTIFICATION_VIEW_ARCHIVED && unreadTotal > 0 && (
@@ -227,9 +242,11 @@ export default function MessageInboxPage() {
227
242
  </View>
228
243
  <View className='message-item__body'>
229
244
  <Text className='k-msg-item__title'>{item.title}</Text>
230
- <Text className='k-msg-item__meta'>{item.category_name}</Text>
245
+ <View className='k-msg-item__foot'>
246
+ <Text className='k-msg-item__meta'>{item.category_name}</Text>
247
+ <Text className='k-msg-item__time'>{item.received_at}</Text>
248
+ </View>
231
249
  </View>
232
- <Text className='k-msg-item__time'>{item.received_at}</Text>
233
250
  </View>
234
251
  {(selectedView === NotificationView.NOTIFICATION_VIEW_ARCHIVED ||
235
252
  item.allow_archive ||
@@ -283,7 +300,13 @@ export default function MessageInboxPage() {
283
300
  </Button>
284
301
  )}
285
302
  {finished && items.length === 0 && (
286
- <View className='empty'>{t('system.notification.empty')}</View>
303
+ <KratosEmpty
304
+ icon={
305
+ <UniIcon type='notification-filled' size={26} color='var(--kratos-color-primary)' />
306
+ }
307
+ title={t('system.notification.empty')}
308
+ description={t(emptyHintKey())}
309
+ />
287
310
  )}
288
311
  </View>
289
312
  )
@@ -7,16 +7,35 @@
7
7
  }
8
8
 
9
9
  .message-header {
10
+ /* 标题绝对居中后头部不再依赖流内内容撑高,保证标题行与筛选行留出间距 */
11
+ min-height: 76px;
10
12
  padding: 20px 4px 24px;
11
13
  }
12
14
 
15
+ /* 标题排版与 k-page-nav__title/k-top__title 同规格,绝对居中后文字与红点同行排布 */
13
16
  .message-header__title {
17
+ position: absolute;
18
+ left: 50%;
14
19
  display: flex;
15
20
  align-items: center;
16
21
  min-width: 0;
22
+ max-width: calc(100% - 190px);
23
+ overflow: hidden;
24
+ font-size: 16PX;
25
+ font-weight: 700;
26
+ color: var(--kratos-color-text);
27
+ transform: translateX(-50%);
28
+ white-space: nowrap;
29
+ }
30
+
31
+ .message-header__text {
32
+ min-width: 0;
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
17
35
  }
18
36
 
19
37
  .message-unread-dot {
38
+ flex-shrink: 0;
20
39
  width: 12px;
21
40
  height: 12px;
22
41
  margin-left: 12px;
@@ -39,10 +58,6 @@
39
58
  min-width: 0;
40
59
  }
41
60
 
42
- .message-item__body .k-msg-item__meta {
43
- display: block;
44
- }
45
-
46
61
  .load-more {
47
62
  box-sizing: border-box;
48
63
  width: 100%;
@@ -61,13 +76,6 @@
61
76
  border: 0;
62
77
  }
63
78
 
64
- .empty {
65
- padding: 120px 0;
66
- color: var(--kratos-color-text-dim);
67
- font-family: var(--kratos-font-mono);
68
- text-align: center;
69
- }
70
-
71
79
  .detail-page {
72
80
  box-sizing: border-box;
73
81
  min-height: 100vh;
@@ -94,7 +102,8 @@
94
102
 
95
103
  .detail-meta {
96
104
  display: flex;
97
- flex-wrap: wrap;
105
+ align-items: center;
106
+ justify-content: space-between;
98
107
  gap: 18px;
99
108
  margin: 24px 0 36px;
100
109
  padding-bottom: 28px;
@@ -107,6 +116,10 @@
107
116
  .detail-category {
108
117
  display: inline-flex;
109
118
  align-items: center;
119
+ min-width: 0;
120
+ overflow: hidden;
121
+ text-overflow: ellipsis;
122
+ white-space: nowrap;
110
123
  }
111
124
 
112
125
  .detail-category__icon {
@@ -164,8 +164,6 @@ export default function ProfilePage() {
164
164
  </View>
165
165
 
166
166
  <View className='k-glass k-glass--lit k-pfx profile-id' onClick={() => void onAvatarChange()}>
167
- <View className='k-cnr k-cnr--tl' aria-hidden />
168
- <View className='k-cnr k-cnr--br' aria-hidden />
169
167
  <View className='profile-id__main'>
170
168
  <View className='k-pfx__av'>
171
169
  <Image className='profile-av-img' src={userInfo.avatar ? formatSrc(userInfo.avatar) : defaultAvatar} mode='aspectFill' />