-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
);
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index 441abe7..e2d4f4d 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -81,7 +81,9 @@
"realtime": "Realtime",
"period1d": "1 Day",
"period7d": "7 Days",
- "period30d": "30 Days"
+ "period30d": "30 Days",
+ "tsdbRequired": "Enable TSDB to use historical data",
+ "loginRequired": "Please login to view"
},
"footer": {
"themeBy": "Theme by "
@@ -115,6 +117,7 @@
"packetLoss": "Packet Loss",
"clearSelections": "Clear",
"peakCut": "Peak cut",
+ "loginRequired": "Please login to view",
"period1d": "1 Day",
"period7d": "7 Days",
"period30d": "30 Days"
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index 307c915..8a71686 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -81,7 +81,9 @@
"realtime": "实时",
"period1d": "1 天",
"period7d": "7 天",
- "period30d": "30 天"
+ "period30d": "30 天",
+ "tsdbRequired": "需要开启 TSDB 才能启用历史记录功能",
+ "loginRequired": "请登录后查看"
},
"footer": {
"themeBy": "主题-"
@@ -116,6 +118,7 @@
"packetLoss": "丢包率",
"clearSelections": "清除",
"peakCut": "削峰",
+ "loginRequired": "请登录后查看",
"period1d": "1 天",
"period7d": "7 天",
"period30d": "30 天"
diff --git a/src/types/nezha-api.ts b/src/types/nezha-api.ts
index de348c6..c49a203 100644
--- a/src/types/nezha-api.ts
+++ b/src/types/nezha-api.ts
@@ -156,6 +156,7 @@ export interface SettingResponse {
data: {
config: SettingConfig;
version: string;
+ tsdb_enabled?: boolean;
};
}