mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Reorganize paths in pages
This commit is contained in:
parent
99fc402f38
commit
96dea34f9a
|
|
@ -101,6 +101,7 @@
|
||||||
"linkify-string": "^4.1.3",
|
"linkify-string": "^4.1.3",
|
||||||
"linkifyjs": "^4.1.3",
|
"linkifyjs": "^4.1.3",
|
||||||
"marked": "^9.1.2",
|
"marked": "^9.1.2",
|
||||||
|
"megalodon": "^9.1.1",
|
||||||
"meilisearch": "^0.36.0",
|
"meilisearch": "^0.36.0",
|
||||||
"next-route-matcher": "^1.0.1",
|
"next-route-matcher": "^1.0.1",
|
||||||
"oauth4webapi": "^2.4.0",
|
"oauth4webapi": "^2.4.0",
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import LoginInput from "./components/LoginInput.vue"
|
import LoginInput from "../../components/LoginInput.vue"
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
|
|
||||||
const query = useRoute().query;
|
const query = useRoute().query;
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { APIInstance } from "~types/entities/instance";
|
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';
|
import { computed, ref, watch } from 'vue';
|
||||||
|
|
||||||
const instanceInfo = await fetch("/api/v1/instance").then(res => res.json()) as APIInstance & {
|
const instanceInfo = await fetch("/api/v1/instance").then(res => res.json()) as APIInstance & {
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
import Login from "./login.vue";
|
import indexVue from "./pages/index.vue";
|
||||||
import Home from "./Home.vue";
|
import authorizeVue from "./pages/oauth/authorize.vue";
|
||||||
import Register from "./Register.vue";
|
import registerIndexVue from "./pages/register/index.vue";
|
||||||
import RegistrationSuccess from "./RegistrationSuccess.vue";
|
import successVue from "./pages/register/success.vue";
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{ path: "/", component: Home },
|
{ path: "/", component: indexVue },
|
||||||
{ path: "/oauth/authorize", component: Login },
|
{ path: "/oauth/authorize", component: authorizeVue },
|
||||||
{ path: "/register", component: Register },
|
{ path: "/register", component: registerIndexVue },
|
||||||
{ path: "/register/success", component: RegistrationSuccess },
|
{ path: "/register/success", component: successVue },
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue