Migrate to Vue 3 and Vite

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-07-12 10:55:28 +02:00
parent 8f4099ee33
commit ee20e03cc2
464 changed files with 31515 additions and 32758 deletions

View File

@@ -1,19 +1,19 @@
import { RouteConfig } from "vue-router";
import { ImportedComponent } from "vue/types/options";
import { RouteRecordRaw } from "vue-router";
import { i18n } from "@/utils/i18n";
const { t } = i18n.global.t;
export enum ErrorRouteName {
ERROR = "Error",
}
export const errorRoutes: RouteConfig[] = [
export const errorRoutes: RouteRecordRaw[] = [
{
path: "/error",
name: ErrorRouteName.ERROR,
component: (): Promise<ImportedComponent> =>
import(/* webpackChunkName: "Error" */ "../views/Error.vue"),
component: (): Promise<any> => import("../views/ErrorView.vue"),
meta: {
announcer: { message: (): string => i18n.t("Error") as string },
announcer: { message: (): string => t("Error") },
},
},
];