diff --git a/src/layouts/master.vue b/src/layouts/master.vue index df232af..de5f7a3 100644 --- a/src/layouts/master.vue +++ b/src/layouts/master.vue @@ -83,22 +83,6 @@ - - - - - - - - - - - - - - - diff --git a/src/layouts/plaza.vue b/src/layouts/plaza.vue new file mode 100644 index 0000000..4924591 --- /dev/null +++ b/src/layouts/plaza.vue @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index cccefa6..ed9e3de 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,25 +10,42 @@ const router = createRouter({ children: [ { path: "/", - name: "explore", - component: () => import("@/views/explore.vue") + component: () => import("@/layouts/plaza.vue"), + children: [ + { + path: "/", + name: "explore", + component: () => import("@/views/explore.vue") + }, + + { + path: "/p/moments/:alias", + name: "posts.details.moments", + component: () => import("@/views/posts/moments.vue") + }, + { + path: "/p/articles/:alias", + name: "posts.details.articles", + component: () => import("@/views/posts/articles.vue") + }, + + { + path: "/realms/:realmId", + name: "realms.page", + component: () => import("@/views/realms/page.vue") + } + ] }, { - path: "/p/moments/:alias", - name: "posts.details.moments", - component: () => import("@/views/posts/moments.vue") - }, - { - path: "/p/articles/:alias", - name: "posts.details.articles", - component: () => import("@/views/posts/articles.vue") - }, - - { - path: "/realms/:realmId", - name: "realms.page", - component: () => import("@/views/realms/page.vue") + path: "/chat", + children: [ + { + path: ":channel", + name: "chat.channel", + component: () => import("@/views/chat/channel.vue") + } + ] }, { diff --git a/src/scripts/request.ts b/src/scripts/request.ts index 3e048cc..7fba7e6 100644 --- a/src/scripts/request.ts +++ b/src/scripts/request.ts @@ -3,7 +3,8 @@ import { Preferences } from "@capacitor/preferences" const serviceMap: { [id: string]: string } = { interactive: "https://co.solsynth.dev", - identity: "https://id.solsynth.dev" + identity: "https://id.solsynth.dev", + messaging: "http://localhost:8447", } export async function request(service: string, input: string, init?: RequestInit, noRetry?: boolean) { diff --git a/src/views/chat/channel.vue b/src/views/chat/channel.vue new file mode 100644 index 0000000..ccc6e05 --- /dev/null +++ b/src/views/chat/channel.vue @@ -0,0 +1,41 @@ + + + + + + {{ metadata?.name }} + + {{ metadata?.description }} + + + + + Something went wrong... {{ error }} + + + \ No newline at end of file
{{ metadata?.description }}