From 8b4141078e1e18cc799d3fcdc9dbeabf39e6914b Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 7 Mar 2025 14:44:59 +0800 Subject: [PATCH] feat: add support for one-click revocation of login status of other devices (#7268) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind feature /milestone 2.20.x /area ui #### What this PR does / why we need it: image #### Which issue(s) this PR fixes: Fixes #7267 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 支持批量撤销其他设备的登录状态 ``` --- ui/src/locales/en.yaml | 6 +++ ui/src/locales/zh-CN.yaml | 4 ++ ui/src/locales/zh-TW.yaml | 4 ++ ui/uc-src/modules/profile/tabs/Devices.vue | 51 ++++++++++++++++++++-- 4 files changed, 61 insertions(+), 4 deletions(-) diff --git a/ui/src/locales/en.yaml b/ui/src/locales/en.yaml index a42a8743a..44d716649 100644 --- a/ui/src/locales/en.yaml +++ b/ui/src/locales/en.yaml @@ -1371,6 +1371,12 @@ core: description: >- Are you sure you want to revoke this device? After revoking, this device will be logged out + revoke_others: + title: Revoke all other devices + description: >- + Are you sure you want to revoke all other devices? After you revoke, + other devices will be logged out + toast_success: Login status of other devices has been revoked uc_notification: title: Notifications tabs: diff --git a/ui/src/locales/zh-CN.yaml b/ui/src/locales/zh-CN.yaml index 3f0263752..d8cc65bae 100644 --- a/ui/src/locales/zh-CN.yaml +++ b/ui/src/locales/zh-CN.yaml @@ -1282,6 +1282,10 @@ core: revoke: title: 撤销设备 description: 确定要撤销该设备吗?撤销之后,此设备会退出登录 + revoke_others: + title: 撤销其他所有设备 + description: 确定要撤销其他所有设备吗?撤销之后,其他设备会退出登录 + toast_success: 已撤销其他设备的登录状态 uc_notification: title: 消息 tabs: diff --git a/ui/src/locales/zh-TW.yaml b/ui/src/locales/zh-TW.yaml index f1fbbb127..2a6ce9982 100644 --- a/ui/src/locales/zh-TW.yaml +++ b/ui/src/locales/zh-TW.yaml @@ -1267,6 +1267,10 @@ core: revoke: title: 撤銷設備 description: 確定要撤銷該設備嗎?撤銷之後,此裝置會退出登錄 + revoke_others: + title: 撤銷其他所有設備 + toast_success: 已撤銷其他設備的登入狀態 + description: 確定要撤銷其他所有設備嗎?撤銷之後,其他設備會登出登入 uc_notification: title: 訊息 tabs: diff --git a/ui/uc-src/modules/profile/tabs/Devices.vue b/ui/uc-src/modules/profile/tabs/Devices.vue index 8251aecfc..ae8712cf8 100644 --- a/ui/uc-src/modules/profile/tabs/Devices.vue +++ b/ui/uc-src/modules/profile/tabs/Devices.vue @@ -1,9 +1,14 @@