Compare commits
2 Commits
a2860478a9
...
dbbb2f7009
| Author | SHA1 | Date | |
|---|---|---|---|
| dbbb2f7009 | |||
| d0244eb6a3 |
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
query GeneralSettings {
|
||||
generalSettings {
|
||||
title
|
||||
description
|
||||
}
|
||||
}
|
||||
4
wp-content/themes/moonshine/graphql.config.json
Normal file
4
wp-content/themes/moonshine/graphql.config.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"schema": "./server/graphql/schema.graphql",
|
||||
"documents": "**/*.gql"
|
||||
}
|
||||
@@ -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",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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",
|
||||
|
||||
2571
wp-content/themes/moonshine/pnpm-lock.yaml
generated
2571
wp-content/themes/moonshine/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
13899
wp-content/themes/moonshine/server/graphql/schema.graphql
Normal file
13899
wp-content/themes/moonshine/server/graphql/schema.graphql
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user