From 8010807ad7b972fcd75e972751797140a3eecc5e Mon Sep 17 00:00:00 2001 From: veryCrunchy Date: Wed, 18 Sep 2024 06:59:31 +0200 Subject: [PATCH] feat: cms --- app.vue | 10 +- nuxt.config.ts | 17 +- package.json | 2 + pages/content/[...slug].vue | 236 - pages/index.vue | 32 +- plugins/helpers.ts | 1 + pnpm-lock.yaml | 17363 +++++++++++----------------------- schemas/sponsor.ts | 12 - uno.config.ts | 7 - utils/cms.ts | 22 + 10 files changed, 5553 insertions(+), 12149 deletions(-) delete mode 100644 pages/content/[...slug].vue delete mode 100644 schemas/sponsor.ts create mode 100644 utils/cms.ts diff --git a/app.vue b/app.vue index 7c19272..c290e53 100644 --- a/app.vue +++ b/app.vue @@ -76,7 +76,15 @@ const navs: { name: string; path: string }[] = [ * { border: none; } - +.font-bebas { + font-family: "Bebas Neue"; +} +.font-poppins { + font-family: "Poppins"; +} +.font-ibm { + font-family: "IBM Plex Sans"; +} body { background-color: var(--primary); background-image: url(/GoopRepeat.png); diff --git a/nuxt.config.ts b/nuxt.config.ts index 0f94819..96a22f4 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,10 +1,11 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ devtools: { enabled: true }, - googleFonts: { - families: { "IBM Plex Sans": true, "Bebas Neue": true, Poppins: true }, - preload: true, - }, + fonts: {}, + // googleFonts: { + // families: { "IBM Plex Sans": true, "Bebas Neue": true, Poppins: true }, + // preload: true, + // }, routeRules: { "/scopes": { robots: "noindex" }, "/login": { robots: "noindex" }, @@ -26,6 +27,7 @@ export default defineNuxtConfig({ "notivue/nuxt", "nuxt-build-cache", "@nuxtjs/seo", + "@nuxt/fonts", ], site: { url: "https://greasygang.co", @@ -53,9 +55,13 @@ export default defineNuxtConfig({ }, }, image: { - domains: [process.env.API_BASE?.replace(/(^\w+:|^)\/\//, "") ?? ""], + domains: [ + process.env.API_BASE?.replace(/(^\w+:|^)\/\//, "") ?? "", + "cms.greasygang.co", + ], alias: { content: process.env.API_BASE ?? "", + cms: "https://cms.greasygang.co", }, quality: 90, densities: [1, 2], @@ -80,4 +86,5 @@ export default defineNuxtConfig({ experimental: { viewTransition: true, }, + compatibilityDate: "2024-09-18", }); diff --git a/package.json b/package.json index 96c6acf..05b47b2 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@nuxt/content": "^2.12.1", "@nuxt/eslint-config": "^0.2.0", + "@nuxt/fonts": "^0.8.0", "@nuxtjs/google-fonts": "^3.1.3", "@nuxtjs/seo": "2.0.0-rc.10", "@types/node": "^20.11.25", @@ -34,6 +35,7 @@ }, "packageManager": "pnpm@8.15.1", "dependencies": { + "@directus/sdk": "^17.0.1", "@fortawesome/fontawesome-svg-core": "^6.5.1", "@fortawesome/free-brands-svg-icons": "^6.5.1", "@fortawesome/free-solid-svg-icons": "^6.5.1", diff --git a/pages/content/[...slug].vue b/pages/content/[...slug].vue deleted file mode 100644 index 3475b4f..0000000 --- a/pages/content/[...slug].vue +++ /dev/null @@ -1,236 +0,0 @@ - - -