diff --git a/resource/i18n/en.json b/resource/i18n/en.json index f1812cfe1..8a0d205e1 100644 --- a/resource/i18n/en.json +++ b/resource/i18n/en.json @@ -161,6 +161,7 @@ "home": { "title": "My Data", "getInfos": "Refresh my data", + "getGroupInfos": "Refresh group data", "cancelRequest": "Cancel request", "requesting": "Requesting", "siteName": "Site name", @@ -171,11 +172,12 @@ "showHnR": "H&R", "showLastUpdateTimeAsRelativeTime":"Last update time as relative time", "selectColumns": "Select Columns", + "selectedTags": "Selected Tags", "week": "Expressed in weeks", "timeline": "Time line", "settings": "Settings", "statistic": "Statistic", - "openAllSites": "Open all sites", + "openAllSites": "Open group sites", "openAllUnReadMsg": "Open a site with unread messages", "openAllStatusErr": "Open a site with abnormal status", "newMessage": "New message", @@ -191,6 +193,12 @@ "control_panel": "ControlPanel", "security": "Security", "2FA": "2FA", + "tags": { + "__all__": "ALL", + "__unTagged__": "UnTagged", + "__unReadMsg__": "UnReadMsg", + "__statusError__": "StatusError" + }, "headers": { "date": "Date", "site": "Site", @@ -731,6 +739,8 @@ "editor": { "defaultClient": "Download server (if not selected, the default download server of the basic settings will prevail)", "name": "Site name", + "siteGroup": "Site Group", + "siteGroupTip": "Press Enter to add multiple group.", "tags": "Tags", "inputTags": "press Enter to add multiple", "schema": "Site schema", diff --git a/resource/i18n/zh-CN.json b/resource/i18n/zh-CN.json index 890b98561..b0c9f711e 100644 --- a/resource/i18n/zh-CN.json +++ b/resource/i18n/zh-CN.json @@ -158,6 +158,7 @@ "home": { "title": "我的数据", "getInfos": "刷新我的数据", + "getGroupInfos": "刷新分组数据", "cancelRequest": "取消请求", "requesting": "正在请求", "siteName": "网站名称", @@ -168,11 +169,12 @@ "showHnR": "H&R", "showLastUpdateTimeAsRelativeTime": "最后更新时间显示为相对时间", "selectColumns": "过滤列", + "selectedTags": "标签分组过滤", "week": "时间显示为周数", "timeline": "时间轴", "settings": "参数", "statistic": "数据图表", - "openAllSites": "打开所有站点", + "openAllSites": "打开分组站点", "openAllUnReadMsg": "打开有未读消息的站点", "openAllStatusErr": "打开状态异常的站点", "newMessage": "新消息", @@ -188,6 +190,12 @@ "control_panel": "控制面板", "security": "安全设置", "2FA": "2FA", + "tags": { + "__all__": "全部", + "__unTagged__": "未加标签", + "__unReadMsg__": "未读消息", + "__statusError__": "状态异常" + }, "headers": { "date": "日期", "site": "站点", @@ -727,6 +735,8 @@ "editor": { "defaultClient": "指定下载服务器(如不选择则以基本设置的默认下载服务器为准)", "name": "站点名称", + "siteGroup": "站点分组", + "siteGroupTip": "分组输入完成后按回车添加,可添加多个", "tags": "站点标签", "inputTags": "标签输入完成后按回车添加,可添加多个", "schema": "网站架构", diff --git a/src/interface/common.ts b/src/interface/common.ts index c7ff60ba8..79efcd118 100644 --- a/src/interface/common.ts +++ b/src/interface/common.ts @@ -304,6 +304,8 @@ export interface Site { // 启用默认快捷链接 enableDefaultQuickLink?: boolean; userQuickLinks?: UserQuickLink[]; + // 使用站点标签进行分组 + // siteGroups?: string[]; } /** diff --git a/src/interface/enum.ts b/src/interface/enum.ts index a4a367a6a..5f22cc0d2 100644 --- a/src/interface/enum.ts +++ b/src/interface/enum.ts @@ -446,3 +446,17 @@ export enum ERestoreError { needSecretKey = "needSecretKey", errorSecretKey = "errorSecretKey" } + +export enum ETagType { + all = "__all__", + unTagged = "__unTagged__", + unReadMsg = "__unReadMsg__", + statusError = "__statusError__", +} + +export enum EOpenType { + openAllSites = "openAllSites", + openAllUnReadMsg = "openAllUnReadMsg", + openAllStatusErr = "openAllStatusErr", +} + diff --git a/src/options/views/Home.vue b/src/options/views/Home.vue index 3a91a381a..f33935b87 100644 --- a/src/options/views/Home.vue +++ b/src/options/views/Home.vue @@ -3,18 +3,19 @@ {{ $t("home.title") }} - + cached - {{ $t("home.getInfos") }} + {{ $t("home.getGroupInfos") }} - + timeline - + equalizer +
@@ -62,6 +63,19 @@ (+{{ selectedHeaders.length - 1 }} others) + + + @@ -70,7 +84,7 @@ enterkeyhint="search"> -