diff --git a/app.vue b/app.vue index 3dfbe60..1fe435d 100644 --- a/app.vue +++ b/app.vue @@ -1,59 +1,10 @@ - - - {{ value.name }} - - - - - {{ value.name }} - - + diff --git a/components/NavBar.vue b/components/NavBar.vue new file mode 100644 index 0000000..2913295 --- /dev/null +++ b/components/NavBar.vue @@ -0,0 +1,4 @@ + + + + diff --git a/components/ThemeSwitcher.vue b/components/ThemeSwitcher.vue new file mode 100644 index 0000000..6517e4f --- /dev/null +++ b/components/ThemeSwitcher.vue @@ -0,0 +1,30 @@ + + + + {{ value.name }} + + + + + diff --git a/composables/useFont.ts b/composables/useFont.ts index 7614756..afc1faf 100644 --- a/composables/useFont.ts +++ b/composables/useFont.ts @@ -1,5 +1,4 @@ import { ref, onMounted } from 'vue' -import { fonts } from '~/types/fonts' const fontNames = Object.keys(fonts) diff --git a/composables/useTheme.ts b/composables/useTheme.ts index acf064c..371e320 100644 --- a/composables/useTheme.ts +++ b/composables/useTheme.ts @@ -1,5 +1,4 @@ import { ref, onMounted } from 'vue' -import { themes } from '~/types/themes' const themeNames = Object.keys(themes) diff --git a/eslint.config.mjs b/eslint.config.mjs index a534f8b..b403ef0 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,10 +1,6 @@ // @ts-check import withNuxt from './.nuxt/eslint.config.mjs' -export default withNuxt( - // Your custom configs here -).override('nuxt/stylistic', { - rules: { - 'vue/html-quotes': ['error', 'single'], - }, +export default withNuxt().overrideRules({ + 'vue/html-quotes': ['error', 'single'], }) diff --git a/nuxt.config.ts b/nuxt.config.ts index 18e6ede..690f720 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,4 +1,4 @@ -import { fonts } from './types/fonts' +import { fonts } from './utils/fonts' export default defineNuxtConfig({ compatibilityDate: '2024-04-03', diff --git a/pages/about.vue b/pages/about.vue index 4bff1e5..ed760b4 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -4,9 +4,7 @@ const route = useRoute() - - Nuxt Routing set up successfully! - + Nuxt Routing set up successfully! Current route: {{ route.path }} -const route = useRoute() - - - Nuxt Routing set up successfully! + hi im mard - - Current route: {{ route.path }} - diff --git a/uno.config.ts b/uno.config.ts index 3fb1015..60e8ef0 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -10,7 +10,7 @@ import { } from 'unocss' import type { Theme } from 'unocss/preset-uno' import presetTheme from 'unocss-preset-theme' -import { themesWithoutName } from '~/types/themes' +import { themesWithoutName } from '~/utils/themes' export default defineConfig({ theme: themesWithoutName['catppuccin-mocha'], diff --git a/types/fonts.ts b/utils/fonts.ts similarity index 100% rename from types/fonts.ts rename to utils/fonts.ts diff --git a/types/themes.ts b/utils/themes.ts similarity index 100% rename from types/themes.ts rename to utils/themes.ts
Current route: {{ route.path }}
- Current route: {{ route.path }} -