From d2164622c478b573ee4a10ed41b35792d2934c46 Mon Sep 17 00:00:00 2001 From: schreifuchs Date: Mon, 10 Mar 2025 09:12:27 +0100 Subject: [PATCH] clip x overflow --- frontend/index.html | 13 ++++++++----- frontend/src/App.svelte | 4 +++- frontend/tsconfig.json | 19 ++++++++++++++++++- frontend/vite.config.ts | 16 +++++++++++++--- 4 files changed, 42 insertions(+), 10 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 1cb2612..aa80ed5 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,12 +1,15 @@ + - - - wails-svelte-tailwind-ts + + + wails-svelte-tailwind-ts + -
- +
+ + diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 4ef3bb3..ee43d0e 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -26,7 +26,9 @@ -
+
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 2cffdc5..d60c144 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -14,7 +14,24 @@ */ "allowJs": true, "checkJs": true, - "isolatedModules": true + "isolatedModules": true, + "paths": { + "@/*": [ + "src/*" + ], + "@assets/*": [ + "src/assets/*" + ], + "@components/*": [ + "src/components/*" + ], + "@routes/*": [ + "src/routes/*" + ], + "@wails/*": [ + "src/wailsjs/*" + ] + } }, "include": [ "src/**/*.d.ts", diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index d37616f..d32c5b3 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,7 +1,17 @@ -import {defineConfig} from 'vite' -import {svelte} from '@sveltejs/vite-plugin-svelte' +import { defineConfig } from 'vite' +import { svelte } from '@sveltejs/vite-plugin-svelte' +import path from 'path'; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [svelte()] + plugins: [svelte()], + resolve: { + alias: { + '@': path.resolve(__dirname, './src'), + '@assets': path.resolve(__dirname, './src/assets'), + '@components': path.resolve(__dirname, './src/components'), + '@routes': path.resolve(__dirname, './src/routes'), + '@wails': path.resolve(__dirname, './src/wailsjs'), + }, + }, })