Compare commits
3 Commits
2c44d8137c
...
18306c28b9
| Author | SHA1 | Date | |
|---|---|---|---|
| 18306c28b9 | |||
| 36e7d8ad8b | |||
| fdf32bbc78 |
6
.vscode/extensions.json
vendored
6
.vscode/extensions.json
vendored
@@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": ["oxc.oxc-vscode"]
|
||||||
"oxc.oxc-vscode"
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|||||||
27
.vscode/launch.json
vendored
Normal file
27
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Nuxt server",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/wp-content/themes/moonshine/node_modules/nuxt/bin/nuxt.mjs",
|
||||||
|
"runtimeArgs": ["--inspect"],
|
||||||
|
"args": ["dev"],
|
||||||
|
"cwd": "${workspaceFolder}/wp-content/themes/moonshine",
|
||||||
|
"autoAttachChildProcesses": true,
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"skipFiles": ["<node_internals>/**"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nuxt client",
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"trace": false,
|
||||||
|
"url": "http://localhost:3000",
|
||||||
|
"userDataDir": "${env:HOME}/.vscode/chromium-profile",
|
||||||
|
"webRoot": "${workspaceFolder}/wp-content/themes/moonshine"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
24
.vscode/settings.json
vendored
24
.vscode/settings.json
vendored
@@ -5,6 +5,12 @@
|
|||||||
"[javascript]": {
|
"[javascript]": {
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
},
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[jsonc]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
"[postcss]": {
|
"[postcss]": {
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
},
|
},
|
||||||
@@ -22,10 +28,10 @@
|
|||||||
},
|
},
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode",
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnSaveMode": "file",
|
||||||
"editor.quickSuggestions": {
|
"editor.quickSuggestions": {
|
||||||
"strings": "on"
|
"strings": "on"
|
||||||
},
|
},
|
||||||
"eslint.enable": false,
|
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.css": "tailwindcss"
|
"*.css": "tailwindcss"
|
||||||
},
|
},
|
||||||
@@ -33,16 +39,8 @@
|
|||||||
"oxc.fmt.configPath": "wp-content/themes/moonshine/.oxfmtrc.json",
|
"oxc.fmt.configPath": "wp-content/themes/moonshine/.oxfmtrc.json",
|
||||||
"oxc.path.oxfmt": "wp-content/themes/moonshine/node_modules/.bin/oxfmt",
|
"oxc.path.oxfmt": "wp-content/themes/moonshine/node_modules/.bin/oxfmt",
|
||||||
"oxc.path.oxlint": "wp-content/themes/moonshine/node_modules/.bin/oxlint",
|
"oxc.path.oxlint": "wp-content/themes/moonshine/node_modules/.bin/oxlint",
|
||||||
"oxc.typeAware": true,
|
"oxc.tsConfigPath": "wp-content/themes/moonshine/tsconfig.json",
|
||||||
"tailwindCSS.classAttributes": [
|
"tailwindCSS.classAttributes": ["class", "ui"],
|
||||||
"class",
|
"tailwindCSS.experimental.classRegex": [["ui:\\s*{([^)]*)\\s*}", "(?:'|\"|`)([^']*)(?:'|\"|`)"]],
|
||||||
"ui"
|
|
||||||
],
|
|
||||||
"tailwindCSS.experimental.classRegex": [
|
|
||||||
[
|
|
||||||
"ui:\\s*{([^)]*)\\s*}",
|
|
||||||
"(?:'|\"|`)([^']*)(?:'|\"|`)"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"typescript.tsdk": "wp-content/themes/moonshine/node_modules/typescript/lib"
|
"typescript.tsdk": "wp-content/themes/moonshine/node_modules/typescript/lib"
|
||||||
}
|
}
|
||||||
|
|||||||
6
composer.lock
generated
6
composer.lock
generated
@@ -493,15 +493,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/wp-graphql",
|
"name": "wpackagist-plugin/wp-graphql",
|
||||||
"version": "2.7.0",
|
"version": "2.8.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/wp-graphql/",
|
"url": "https://plugins.svn.wordpress.org/wp-graphql/",
|
||||||
"reference": "tags/2.7.0"
|
"reference": "tags/2.8.0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/wp-graphql.2.7.0.zip"
|
"url": "https://downloads.wordpress.org/plugin/wp-graphql.2.8.0.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
{
|
{
|
||||||
"arrowParens": "always",
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||||
"indentStyle": "space",
|
|
||||||
"indentWidth": 2,
|
|
||||||
"quoteStyle": "double",
|
|
||||||
"semi": true,
|
|
||||||
"trailingComma": "es5",
|
|
||||||
"experimentalSortImports": {
|
"experimentalSortImports": {
|
||||||
"groups": [
|
"groups": [
|
||||||
["side-effect"],
|
["side-effect"],
|
||||||
@@ -17,9 +12,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"experimentalTailwindcss": {
|
"experimentalTailwindcss": {
|
||||||
"stylesheet": "./app/assets/css/_main.css",
|
"attributes": ["class"],
|
||||||
"attributes": ["class", "className"],
|
"functions": ["tv"],
|
||||||
"functions": ["clsx", "cn"],
|
"preserveWhitespace": true,
|
||||||
"preserveWhitespace": true
|
"stylesheet": "./app/assets/css/_main.css"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
{
|
{
|
||||||
"extends": ["recommended"],
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||||
"plugins": ["vue"],
|
"categories": {},
|
||||||
"env": {
|
"env": {
|
||||||
|
"builtin": true,
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"settings": {
|
"globals": {},
|
||||||
"vue": {
|
"ignorePatterns": [],
|
||||||
"version": 3
|
"plugins": ["import", "vue"],
|
||||||
}
|
|
||||||
},
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"vue/max-attributes-per-line": "off",
|
"vue/define-emits-declaration": ["error", "type-based"],
|
||||||
"vue/no-v-html": "off"
|
"vue/define-props-declaration": ["error", "type-based"],
|
||||||
|
"vue/require-typed-ref": "error"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"vitest": {
|
||||||
|
"typecheck": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { SectionHeroSplitFragment } from "#graphql/operations";
|
|||||||
const tvSectionHeroSplit = tv({
|
const tvSectionHeroSplit = tv({
|
||||||
slots: {
|
slots: {
|
||||||
base: "py-6",
|
base: "py-6",
|
||||||
container: "container flex flex-col gap-6 items-center",
|
container: "container flex flex-col items-center gap-6",
|
||||||
content: "flex-1",
|
content: "flex-1",
|
||||||
media: "w-full basis-1/2",
|
media: "w-full basis-1/2",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ export const useGeneralSettings = () =>
|
|||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
transform: ({ generalSettings }) => generalSettings,
|
transform: ({ generalSettings }) => generalSettings,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ export const useSiteOptions = () =>
|
|||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ import { version } from "./package.json";
|
|||||||
const siteUrl = process.env.NUXT_SITE_URL;
|
const siteUrl = process.env.NUXT_SITE_URL;
|
||||||
if (!siteUrl) {
|
if (!siteUrl) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`NUXT_SITE_URL is not defined. Make sure to set it in your build environment variables.`
|
`NUXT_SITE_URL is not defined. Make sure to set it in your build environment variables.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const wpUrl = process.env.NUXT_WP_URL;
|
const wpUrl = process.env.NUXT_WP_URL;
|
||||||
if (!wpUrl) {
|
if (!wpUrl) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`NUXT_WP_URL is not defined. Make sure to set it in your build environment variables.`
|
`NUXT_WP_URL is not defined. Make sure to set it in your build environment variables.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const wpDomain = new URL(wpUrl).hostname;
|
const wpDomain = new URL(wpUrl).hostname;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"changelogen": "^0.6.2",
|
"changelogen": "^0.6.2",
|
||||||
"oxfmt": "^0.27.0",
|
"oxfmt": "^0.28.0",
|
||||||
"oxlint": "^1.43.0",
|
"oxlint": "^1.43.0",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vue-tsc": "^3.2.4",
|
"vue-tsc": "^3.2.4",
|
||||||
|
|||||||
652
wp-content/themes/moonshine/pnpm-lock.yaml
generated
652
wp-content/themes/moonshine/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,7 @@ export async function refreshAuthToken(refreshToken: string): Promise<string | u
|
|||||||
query: AuthRefreshTokenDocument,
|
query: AuthRefreshTokenDocument,
|
||||||
variables: { refreshToken },
|
variables: { refreshToken },
|
||||||
},
|
},
|
||||||
{ endpoint }
|
{ endpoint },
|
||||||
);
|
);
|
||||||
return data?.refreshToken?.authToken || undefined;
|
return data?.refreshToken?.authToken || undefined;
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -3,10 +3,7 @@
|
|||||||
"name": "wp-headless",
|
"name": "wp-headless",
|
||||||
"main": ".output/server/index.mjs",
|
"main": ".output/server/index.mjs",
|
||||||
"compatibility_date": "2026-02-01",
|
"compatibility_date": "2026-02-01",
|
||||||
"compatibility_flags": [
|
"compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"],
|
||||||
"nodejs_compat",
|
|
||||||
"no_nodejs_compat_v2"
|
|
||||||
],
|
|
||||||
"observability": {
|
"observability": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
@@ -15,4 +12,4 @@
|
|||||||
"binding": "ASSETS",
|
"binding": "ASSETS",
|
||||||
"directory": ".output/public"
|
"directory": ".output/public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user