diff --git a/packages/app/constants/settings/about/index.jsx b/packages/app/constants/settings/about/index.jsx
index e162b190..610c0f02 100755
--- a/packages/app/constants/settings/about/index.jsx
+++ b/packages/app/constants/settings/about/index.jsx
@@ -22,7 +22,7 @@ const Footer = (props) => {
{isDevMode ? : }
- {isDevMode ? "development" : "stable"}
+ {isDevMode ? "development" : "production"}
@@ -38,6 +38,7 @@ export default {
const isProduction = import.meta.env.PROD
const [serverManifest, setServerManifest] = React.useState(null)
+ const [serverOrigin, setServerOrigin] = React.useState(null)
const checkServerVersion = async () => {
const serverManifest = await app.cores.api.customRequest()
@@ -45,8 +46,17 @@ export default {
setServerManifest(serverManifest.data)
}
+ const checkServerOrigin = async () => {
+ const instance = app.cores.api.instance()
+
+ if (instance) {
+ setServerOrigin(instance.origin)
+ }
+ }
+
React.useEffect(() => {
checkServerVersion()
+ checkServerOrigin()
}, [])
return
@@ -83,22 +93,12 @@ export default {
v{serverManifest?.LINEBRIDGE_SERVER_VERSION ?? "Unknown"}
+
-
- Origin address
-
+ Server origin
- {app.cores.api?.namespaces.main.origin ?? "Unknown"}
-
-
-
-
- Server Time
-
-
-
- {moment(serverManifest?.requestTime).format("YYYY-MM-DD HH:mm:ss")}
+
{serverOrigin ?? "Unknown"}
diff --git a/packages/app/constants/settings/about/index.less b/packages/app/constants/settings/about/index.less
index 3af67a79..c975b1f5 100755
--- a/packages/app/constants/settings/about/index.less
+++ b/packages/app/constants/settings/about/index.less
@@ -46,7 +46,6 @@
.texts {
display: flex;
flex-direction: column;
-
}
h1,
@@ -87,6 +86,7 @@
flex-direction: row;
margin-left: 10px;
+ margin-top: 5px;
}
}
}