From 478083beef4af982c07e9bd780a8da7ce129fbcc Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Mon, 31 Jul 2023 20:50:09 +0200 Subject: [PATCH] chore: fix build --- frontend/src/app/router.options.ts | 9 ++++++++- frontend/src/composables/useApiHelper.ts | 1 - frontend/src/pages/auth/settings/security.vue | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/router.options.ts b/frontend/src/app/router.options.ts index ad3ab1211..680eedcc1 100644 --- a/frontend/src/app/router.options.ts +++ b/frontend/src/app/router.options.ts @@ -1,4 +1,11 @@ -import { RouterConfig } from "@nuxt/schema"; +// import { RouterOptions } from "@nuxt/schema"; +import { RouterHistory, RouterOptions } from "vue-router"; + +type RouterConfig = Partial> & { + history?: (baseURL?: string) => RouterHistory; + routes?: (_routes: RouterOptions$1["routes"]) => RouterOptions$1["routes"]; + hashMode?: boolean; +}; export default { scrollBehavior(to, from, savedPosition) { diff --git a/frontend/src/composables/useApiHelper.ts b/frontend/src/composables/useApiHelper.ts index 2292c61f2..1bb512d16 100644 --- a/frontend/src/composables/useApiHelper.ts +++ b/frontend/src/composables/useApiHelper.ts @@ -20,7 +20,6 @@ import { } from "hangar-internal"; import { AsyncData } from "nuxt/app"; import { ComputedRef, Ref } from "vue"; -import { NuxtApp } from "@nuxt/schema"; import { useApi, useInternalApi } from "~/composables/useApi"; import { createError, hasPerms, ref, useAsyncData } from "#imports"; import { handleRequestError } from "~/composables/useErrorHandling"; diff --git a/frontend/src/pages/auth/settings/security.vue b/frontend/src/pages/auth/settings/security.vue index 972156f77..723c148ad 100644 --- a/frontend/src/pages/auth/settings/security.vue +++ b/frontend/src/pages/auth/settings/security.vue @@ -266,7 +266,7 @@ async function generateNewCodes() { Confirm that you saved the backup codes by entering one of them below - +

Devices