Reorganize paths in pages

This commit is contained in:
Jesse Wierzbinski 2023-12-12 11:34:14 -10:00
parent 99fc402f38
commit 96dea34f9a
No known key found for this signature in database
7 changed files with 11 additions and 10 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -101,6 +101,7 @@
"linkify-string": "^4.1.3",
"linkifyjs": "^4.1.3",
"marked": "^9.1.2",
"megalodon": "^9.1.1",
"meilisearch": "^0.36.0",
"next-route-matcher": "^1.0.1",
"oauth4webapi": "^2.4.0",

View file

@ -51,7 +51,7 @@
<script setup lang="ts">
import { useRoute } from 'vue-router';
import LoginInput from "./components/LoginInput.vue"
import LoginInput from "../../components/LoginInput.vue"
import { onMounted, ref } from 'vue';
const query = useRoute().query;

View file

@ -99,7 +99,7 @@
<script setup lang="ts">
import type { APIInstance } from "~types/entities/instance";
import LoginInput from "./components/LoginInput.vue"
import LoginInput from "../../components/LoginInput.vue"
import { computed, ref, watch } from 'vue';
const instanceInfo = await fetch("/api/v1/instance").then(res => res.json()) as APIInstance & {

View file

@ -1,11 +1,11 @@
import Login from "./login.vue";
import Home from "./Home.vue";
import Register from "./Register.vue";
import RegistrationSuccess from "./RegistrationSuccess.vue";
import indexVue from "./pages/index.vue";
import authorizeVue from "./pages/oauth/authorize.vue";
import registerIndexVue from "./pages/register/index.vue";
import successVue from "./pages/register/success.vue";
export default [
{ path: "/", component: Home },
{ path: "/oauth/authorize", component: Login },
{ path: "/register", component: Register },
{ path: "/register/success", component: RegistrationSuccess },
{ path: "/", component: indexVue },
{ path: "/oauth/authorize", component: authorizeVue },
{ path: "/register", component: registerIndexVue },
{ path: "/register/success", component: successVue },
];