=> {
}
};
-const onSelectPage = (e: unknown): void => {
+const onSelectPage = (e: any): void => {
getData(e);
};
diff --git a/src/pages/projects/_projectId/servers/_serverId/activity.vue b/src/pages/projects/_projectId/servers/_serverId/activity.vue
index c811b3d..786a3ed 100644
--- a/src/pages/projects/_projectId/servers/_serverId/activity.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/activity.vue
@@ -6,7 +6,7 @@
Servers
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
Time at which access to the server is possible
@@ -68,7 +68,7 @@
diff --git a/src/pages/projects/_projectId/servers/_serverId/destroy.vue b/src/pages/projects/_projectId/servers/_serverId/destroy.vue
index 482974a..fbeee43 100644
--- a/src/pages/projects/_projectId/servers/_serverId/destroy.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/destroy.vue
@@ -6,7 +6,7 @@
Servers
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
@@ -26,7 +26,7 @@
diff --git a/src/pages/projects/_projectId/servers/_serverId/firewall.vue b/src/pages/projects/_projectId/servers/_serverId/firewall.vue
index 46f2f44..8faa796 100644
--- a/src/pages/projects/_projectId/servers/_serverId/firewall.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/firewall.vue
@@ -6,7 +6,7 @@
Servers
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
In addition to creating your own, some add-ons come with their own.
@@ -99,7 +99,7 @@
diff --git a/src/pages/projects/_projectId/servers/_serverId/index.vue b/src/pages/projects/_projectId/servers/_serverId/index.vue
index b633fe8..d778521 100644
--- a/src/pages/projects/_projectId/servers/_serverId/index.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/index.vue
@@ -6,7 +6,7 @@
Servers
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
@@ -17,13 +17,13 @@
diff --git a/src/pages/projects/_projectId/servers/_serverId/members/_memberId/index.vue b/src/pages/projects/_projectId/servers/_serverId/members/_memberId/index.vue
index a439828..347a416 100644
--- a/src/pages/projects/_projectId/servers/_serverId/members/_memberId/index.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/members/_memberId/index.vue
@@ -7,7 +7,7 @@
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
import { onMounted } from "vue";
-import { useServerStore } from "@/store";
+import { useProjectStore } from "@/store";
import { Tabs } from "@/components";
// Tabs section
import { tabMenu } from "@/pages/projects/_projectId/servers/_serverId/tab";
-const serverStore = useServerStore();
+const projectStore = useProjectStore();
const props = defineProps({
projectId: {
@@ -52,6 +52,6 @@ const props = defineProps({
onMounted(async () => {
document.title = "Server member";
- serverStore.serverNameByID(props.projectId, props.serverId);
+ projectStore.serverNameByID(props.projectId, props.serverId);
});
diff --git a/src/pages/projects/_projectId/servers/_serverId/members/add.vue b/src/pages/projects/_projectId/servers/_serverId/members/add.vue
index 63d3427..da61e50 100644
--- a/src/pages/projects/_projectId/servers/_serverId/members/add.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/members/add.vue
@@ -7,7 +7,7 @@
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
import { onMounted, ref } from "vue";
import { useRoute } from "vue-router";
-import { useAuthStore, useServerStore } from "@/store";
+import { useAuthStore, useProjectStore } from "@/store";
import { Badge, Pagination, SvgIcon, Tabs } from "@/components";
import { showApiError, showMessage } from "@/utils";
import { defaultPageData, PageData } from "@/interface/page";
@@ -78,7 +78,7 @@ import { tabMenu } from "@/pages/projects/_projectId/servers/_serverId/tab";
const route = useRoute();
const authStore = useAuthStore();
-const serverStore = useServerStore();
+const projectStore = useProjectStore();
const pageData = ref(defaultPageData);
const props = defineProps({
@@ -92,7 +92,7 @@ const props = defineProps({
}
});
-const onSelectPage = (e: unknown): void => {
+const onSelectPage = (e: any): void => {
getData(e);
};
@@ -157,7 +157,7 @@ const addingMember = async (index: number): Promise => {
onMounted(async () => {
document.title = "Server member add";
- serverStore.serverNameByID(props.projectId, props.serverId);
+ projectStore.serverNameByID(props.projectId, props.serverId);
await getData(route.query);
});
diff --git a/src/pages/projects/_projectId/servers/_serverId/members/index.vue b/src/pages/projects/_projectId/servers/_serverId/members/index.vue
index afa27dc..516e381 100644
--- a/src/pages/projects/_projectId/servers/_serverId/members/index.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/members/index.vue
@@ -6,7 +6,7 @@
Servers
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
add new
@@ -77,7 +77,7 @@
diff --git a/src/pages/projects/_projectId/servers/_serverId/session/_sessionId.vue b/src/pages/projects/_projectId/servers/_serverId/session/_sessionId.vue
index 058dc4b..93856c6 100644
--- a/src/pages/projects/_projectId/servers/_serverId/session/_sessionId.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/session/_sessionId.vue
@@ -7,7 +7,7 @@
-
{{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+
{{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
import { onMounted } from "vue";
-import { useServerStore } from "@/store";
+import { useProjectStore } from "@/store";
-const serverStore = useServerStore();
+const projectStore = useProjectStore();
const props = defineProps({
projectId: {
@@ -46,6 +46,6 @@ const props = defineProps({
onMounted(async () => {
document.title = "Server session info";
- serverStore.serverNameByID(props.projectId, props.serverId);
+ projectStore.serverNameByID(props.projectId, props.serverId);
});
diff --git a/src/pages/projects/_projectId/servers/_serverId/session/index.vue b/src/pages/projects/_projectId/servers/_serverId/session/index.vue
index f22cc9c..1150942 100644
--- a/src/pages/projects/_projectId/servers/_serverId/session/index.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/session/index.vue
@@ -6,7 +6,7 @@
Servers
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
@@ -33,13 +33,13 @@
diff --git a/src/pages/projects/_projectId/servers/_serverId/setting.vue b/src/pages/projects/_projectId/servers/_serverId/setting.vue
index ec93c4c..49478a3 100644
--- a/src/pages/projects/_projectId/servers/_serverId/setting.vue
+++ b/src/pages/projects/_projectId/servers/_serverId/setting.vue
@@ -6,7 +6,7 @@
Servers
- {{ serverStore.getServerNameByID(props.projectId, props.serverId) }}
+ {{ projectStore.getServerNameByID(props.projectId, props.serverId) }}
@@ -141,7 +141,7 @@