2 Commits

8 changed files with 16433 additions and 78 deletions

View File

@@ -1,10 +1,11 @@
{
"files.associations": {
"*.css": "tailwindcss"
},
"editor.quickSuggestions": {
"strings": "on"
},
"files.associations": {
"*.css": "tailwindcss"
},
"graphql-config.load.rootDir": "wp-content/themes/moonshine",
"tailwindCSS.classAttributes": [
"class",
"ui"

View File

@@ -1,5 +1,10 @@
<script setup lang="ts">
const { data } = await useGraphQLQuery("GeneralSettings", undefined, { cache: { ttl: 0 } });
</script>
<template>
<div>
© {{ new Date().getFullYear() }}
<span v-if="data.generalSettings?.title">{{ data.generalSettings.title }}</span>
</div>
</template>

View File

@@ -0,0 +1,6 @@
query GeneralSettings {
generalSettings {
title
description
}
}

View File

@@ -0,0 +1,4 @@
{
"schema": "./server/graphql/schema.graphql",
"documents": "**/*.gql"
}

View File

@@ -2,6 +2,7 @@
export default defineNuxtConfig({
modules: [
"@lewebsimple/nuxt-graphql",
"@nuxt/eslint",
"@nuxt/ui",
],
@@ -20,13 +21,6 @@ export default defineNuxtConfig({
colorMode: false,
},
devServer: {
https: {
key: process.env.LOCAL_HTTPS_KEY,
cert: process.env.LOCAL_HTTPS_CERT,
},
},
compatibilityDate: "2026-01-01",
eslint: {
@@ -40,4 +34,14 @@ export default defineNuxtConfig({
},
},
},
graphql: {
schemas: {
wp: {
type: "remote",
url: `${process.env.NUXT_WP_URL || "https://wp-headless.ledevsimple.ca"}/graphql`,
},
},
saveSdl: "server/graphql/schema.graphql",
},
});

View File

@@ -16,6 +16,7 @@
},
"dependencies": {
"@iconify-json/lucide": "^1.2.84",
"@lewebsimple/nuxt-graphql": "^0.3.5",
"@nuxt/ui": "4.3.0",
"nuxt": "^4.2.2",
"tailwindcss": "^4.1.18",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff