From 28fc33cd82f1d89b2a617c9e32b8c3c7591ffa14 Mon Sep 17 00:00:00 2001 From: Mars Date: Tue, 27 Aug 2024 00:03:24 -0400 Subject: [PATCH] start putting things in better spots --- app.vue | 51 +----------------------------------- components/FontSwitcher.vue | 28 ++++++++++++++++++++ components/NavBar.vue | 4 +++ components/ThemeSwitcher.vue | 30 +++++++++++++++++++++ composables/useFont.ts | 1 - composables/useTheme.ts | 1 - eslint.config.mjs | 8 ++---- nuxt.config.ts | 2 +- pages/about.vue | 4 +-- pages/index.vue | 9 +------ uno.config.ts | 2 +- {types => utils}/fonts.ts | 0 {types => utils}/themes.ts | 0 13 files changed, 69 insertions(+), 71 deletions(-) create mode 100644 components/FontSwitcher.vue create mode 100644 components/NavBar.vue create mode 100644 components/ThemeSwitcher.vue rename {types => utils}/fonts.ts (100%) rename {types => utils}/themes.ts (100%) diff --git a/app.vue b/app.vue index 3dfbe60..1fe435d 100644 --- a/app.vue +++ b/app.vue @@ -1,59 +1,10 @@ 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 @@ + + + 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()