From 297947266d6435ac318b8d8272b129e7dad74f94 Mon Sep 17 00:00:00 2001 From: jezzahehn Date: Tue, 20 May 2025 18:21:58 -0400 Subject: [PATCH] chore: Refactored home page content out of App.vue and into separate index.vue file created for the vue-router --- src/App.vue | 41 +++++++------------------------------ src/routes/index.vue | 48 +++++++++++++++++++++++--------------------- tsconfig.app.json | 4 ++++ vite.config.ts | 6 ++++++ 4 files changed, 42 insertions(+), 57 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3e6f163..e9f8e46 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,45 +4,18 @@ Home Resources - - -
-

BRÅTULA VIOSSA.NET MÅDE

-
- -
- -
- diff --git a/src/routes/index.vue b/src/routes/index.vue index 7acfe32..ce79d6a 100644 --- a/src/routes/index.vue +++ b/src/routes/index.vue @@ -1,32 +1,34 @@ - diff --git a/tsconfig.app.json b/tsconfig.app.json index 805e511..151c969 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -10,6 +10,10 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true, "noUncheckedIndexedAccess": true, + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + }, }, "include": [ "src/**/*.ts", diff --git a/vite.config.ts b/vite.config.ts index 86e2d73..d112f60 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,4 +1,5 @@ import { defineConfig } from "vite"; +import { fileURLToPath, URL } from 'node:url' import vue from "@vitejs/plugin-vue"; import tailwindcss from "@tailwindcss/vite"; import vueRouter from "unplugin-vue-router/vite"; @@ -14,4 +15,9 @@ export default defineConfig({ outDir: "/var/www/viossa.net", emptyOutDir: true, }, + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)) + } + } });