From 2554b58be690bb839f2c480e14f997d06be637ee Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 25 Aug 2025 20:31:43 +0800 Subject: [PATCH] :sparkles: Show automated account in pfc --- assets/i18n/en-US.json | 3 ++- assets/i18n/zh-CN.json | 3 ++- lib/widgets/account/account_pfc.dart | 12 ++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/assets/i18n/en-US.json b/assets/i18n/en-US.json index a68ad59e..c2c6097a 100644 --- a/assets/i18n/en-US.json +++ b/assets/i18n/en-US.json @@ -943,5 +943,6 @@ "pin": "Pin", "unpinPostHint": "Are you sure you want to unpin this post?", "all": "All", - "statusPresent": "Present" + "statusPresent": "Present", + "accountAutomated": "Automated" } diff --git a/assets/i18n/zh-CN.json b/assets/i18n/zh-CN.json index 3a10939e..4473fc18 100644 --- a/assets/i18n/zh-CN.json +++ b/assets/i18n/zh-CN.json @@ -856,5 +856,6 @@ "copySecretHint": "请复制此密钥并将其存放在安全的地方。您将无法再次看到它。", "expiresIn": "过期时间(秒)", "isOidc": "OIDC 兼容", - "statusPresent": "至今" + "statusPresent": "至今", + "accountAutomated": "机器人" } diff --git a/lib/widgets/account/account_pfc.dart b/lib/widgets/account/account_pfc.dart index 69f1f434..bffa6493 100644 --- a/lib/widgets/account/account_pfc.dart +++ b/lib/widgets/account/account_pfc.dart @@ -98,6 +98,18 @@ class AccountProfileCard extends HookConsumerWidget { ], ), ), + if (data.automatedId != null) + Row( + spacing: 6, + children: [ + Icon( + Symbols.smart_toy, + size: 17, + fill: 1, + ).padding(right: 2), + Text('accountAutomated').tr(), + ], + ), if (data.profile.timeZone.isNotEmpty && !kIsWeb) Row( spacing: 6,