diff --git a/web/public/locales/en/translation.json b/web/public/locales/en/translation.json
index 3ddc72f110..8ad32c9c30 100644
--- a/web/public/locales/en/translation.json
+++ b/web/public/locales/en/translation.json
@@ -144,10 +144,10 @@
"SystemSetting": "Application Settings",
"UserSetting": "User Info",
"UpdateConfirm": "Update env will restart application, are you sure?",
- "BaseInfo": "Basic Information",
+ "BaseInfo": "Basic Info",
"DB": "Database",
"Delete": "Delete",
- "Detail": "Rules details (experimental version)",
+ "Detail": "Spec Detail",
"Disk": "Hard Disk",
"Memory": "Memory",
"Restart": "Restart",
@@ -167,7 +167,8 @@
"UserInfo": "User Information",
"noAuth": "Not Authenticated",
"showAuth": "Go to Auth",
- "ShutDown": "ShutDown"
+ "ShutDown": "ShutDown",
+ "Subscription": "Subscription Info"
},
"StoragePanel": {
"All": "Total Capacity",
@@ -333,4 +334,4 @@
"Generating": "Generating",
"Start": "Start",
"TryLafAI": "Try 🎉 Laf AI !"
-}
\ No newline at end of file
+}
diff --git a/web/public/locales/zh-CN/translation.json b/web/public/locales/zh-CN/translation.json
index 90227b2e1a..9d777633b9 100644
--- a/web/public/locales/zh-CN/translation.json
+++ b/web/public/locales/zh-CN/translation.json
@@ -167,7 +167,8 @@
"CodeTip": "请输入四位数字验证码",
"TelTip": "请输入有效的手机号码",
"Registered": "注册时间",
- "ShutDown": "关闭应用"
+ "ShutDown": "关闭应用",
+ "Subscription": "订阅信息"
},
"StoragePanel": {
"All": "总容量",
diff --git a/web/public/locales/zh/translation.json b/web/public/locales/zh/translation.json
index b6f425f280..fa1b3afbb1 100644
--- a/web/public/locales/zh/translation.json
+++ b/web/public/locales/zh/translation.json
@@ -167,7 +167,8 @@
"CodeTip": "请输入四位数字验证码",
"TelTip": "请输入有效的手机号码",
"Registered": "注册时间",
- "ShutDown": "关闭应用"
+ "ShutDown": "关闭应用",
+ "Subscription": "订阅信息"
},
"StoragePanel": {
"All": "总容量",
diff --git a/web/src/apis/typing.d.ts b/web/src/apis/typing.d.ts
index be247dc609..313526d87a 100644
--- a/web/src/apis/typing.d.ts
+++ b/web/src/apis/typing.d.ts
@@ -22,6 +22,7 @@ export type TApplicationDetail = {
function_debug_token: string;
host?: string;
origin?: string;
+ subscription: TSubscription;
};
export type TBundle = {
diff --git a/web/src/pages/app/mods/SideBar/index.tsx b/web/src/pages/app/mods/SideBar/index.tsx
index d4ff75b3ea..ce56ffdfb6 100644
--- a/web/src/pages/app/mods/SideBar/index.tsx
+++ b/web/src/pages/app/mods/SideBar/index.tsx
@@ -25,12 +25,17 @@ type TIcon = {
export default function SideBar() {
const { pageId } = useParams();
const navigate = useNavigate();
- const { currentApp, setCurrentPage, userInfo } = useGlobalStore();
-
+ const { currentApp, setCurrentPage, userInfo, regions = [] } = useGlobalStore();
+ const currentRegion = regions.find((item: any) => item.id === currentApp?.regionId) || regions[0];
const ICONS: TIcon[] = [
{
pageId: "nav",
- component: ,
+ component: (
+