Compare commits
1 Commits
v0.1.7
...
84138e09b1
| Author | SHA1 | Date | |
|---|---|---|---|
| 84138e09b1 |
@@ -1,56 +0,0 @@
|
|||||||
name: Deployment
|
|
||||||
run-name: ${{ gitea.actor }} deploying ${{ gitea.repository.name }}
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
env:
|
|
||||||
NUXT_PROJECT_PATH: wp-content/themes/moonshine
|
|
||||||
PNPM_STORE_DIR: /cache/wp-scripts/pnpm
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
wordpress:
|
|
||||||
runs-on: ubuntu-websimple
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install WordPress scripts
|
|
||||||
env:
|
|
||||||
TEMPLATES_REPO_TOKEN: ${{ secrets.TEMPLATES_REPO_TOKEN }}
|
|
||||||
run: |
|
|
||||||
git clone https://$TEMPLATES_REPO_TOKEN@gitea.websimple.com/templates/wp-scripts.git /tmp/wp-scripts
|
|
||||||
|
|
||||||
- name: Run deployment script
|
|
||||||
env:
|
|
||||||
REMOTE_HOST: ${{ vars.REMOTE_HOST }}
|
|
||||||
REMOTE_PORT: ${{ vars.REMOTE_PORT }}
|
|
||||||
REMOTE_USER: ${{ vars.REMOTE_USER }}
|
|
||||||
REMOTE_PATH: ${{ vars.REMOTE_PATH }}
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
run: /tmp/wp-scripts/wp-deploy.sh --skip-node
|
|
||||||
|
|
||||||
nuxt:
|
|
||||||
runs-on: ubuntu-websimple
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ${{ env.NUXT_PROJECT_PATH }}
|
|
||||||
env:
|
|
||||||
NUXT_SITE_ENV: ${{ vars.NUXT_SITE_ENV }}
|
|
||||||
NUXT_SITE_URL: ${{ vars.NUXT_SITE_URL }}
|
|
||||||
NUXT_WP_URL: ${{ vars.NUXT_WP_URL }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Node.js dependencies
|
|
||||||
run: pnpm install --frozen-lockfile --store-dir $PNPM_STORE_DIR
|
|
||||||
|
|
||||||
- name: Build Nuxt project
|
|
||||||
run: pnpm build
|
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Workers
|
|
||||||
run: pnpm wrangler deploy
|
|
||||||
env:
|
|
||||||
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
|
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
||||||
@@ -32,14 +32,12 @@
|
|||||||
"lintfix": "vendor/bin/phpcbf"
|
"lintfix": "vendor/bin/phpcbf"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"axepress/wp-graphql-rank-math": "*",
|
|
||||||
"lewebsimple/advanced-custom-fields-pro": "*",
|
"lewebsimple/advanced-custom-fields-pro": "*",
|
||||||
"lewebsimple/kaliroots": "*",
|
"lewebsimple/kaliroots": "*",
|
||||||
"lewebsimple/wp-graphql-headless-login": "*",
|
"lewebsimple/wp-graphql-headless-login": "*",
|
||||||
"wpackagist-plugin/acf-extended": "*",
|
"wpackagist-plugin/acf-extended": "*",
|
||||||
"wpackagist-plugin/clean-image-filenames": "*",
|
"wpackagist-plugin/clean-image-filenames": "*",
|
||||||
"wpackagist-plugin/disable-comments": "*",
|
"wpackagist-plugin/disable-comments": "*",
|
||||||
"wpackagist-plugin/seo-by-rank-math": "*",
|
|
||||||
"wpackagist-plugin/wp-graphql": "*",
|
"wpackagist-plugin/wp-graphql": "*",
|
||||||
"wpackagist-plugin/wpgraphql-acf": "*"
|
"wpackagist-plugin/wpgraphql-acf": "*"
|
||||||
},
|
},
|
||||||
|
|||||||
187
composer.lock
generated
187
composer.lock
generated
@@ -4,169 +4,8 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "9673ea7f3e3f21866ae50f70e1d6a16b",
|
"content-hash": "aec2b0e396a71ea02fe95432358ca91e",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
|
||||||
"name": "axepress/wp-graphql-plugin-boilerplate",
|
|
||||||
"version": "0.1.1",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate.git",
|
|
||||||
"reference": "09495b61346453baabdf4c71a38ada3cfc91c3a7"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/AxeWP/wp-graphql-plugin-boilerplate/zipball/09495b61346453baabdf4c71a38ada3cfc91c3a7",
|
|
||||||
"reference": "09495b61346453baabdf4c71a38ada3cfc91c3a7",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=7.4"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"axepress/wp-graphql-cs": "^2.0.0",
|
|
||||||
"axepress/wp-graphql-stubs": "^2.3.0",
|
|
||||||
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9",
|
|
||||||
"phpstan/extension-installer": "^1.1",
|
|
||||||
"phpstan/phpstan": "^2.0",
|
|
||||||
"phpstan/phpstan-deprecation-rules": "^2.0.1",
|
|
||||||
"szepeviktor/phpstan-wordpress": "^2.0",
|
|
||||||
"wp-cli/wp-cli-bundle": "^2.8.1"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"AxeWP\\GraphQL\\": "src/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"GPL-3.0-or-later"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "AxePress Development",
|
|
||||||
"homepage": "https://axepress.dev"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "David Levine",
|
|
||||||
"role": "Developer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Boilerplate for creating WPGraphQL extensions",
|
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/issues",
|
|
||||||
"source": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/tree/0.1.1"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://github.com/AxeWp",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2025-06-07T02:03:50+00:00"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "axepress/wp-graphql-rank-math",
|
|
||||||
"version": "0.3.4",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/AxeWP/wp-graphql-rank-math.git",
|
|
||||||
"reference": "167bdd4a5350717ed34069c304e0ffc3fe02bc7d"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/AxeWP/wp-graphql-rank-math/zipball/167bdd4a5350717ed34069c304e0ffc3fe02bc7d",
|
|
||||||
"reference": "167bdd4a5350717ed34069c304e0ffc3fe02bc7d",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"axepress/wp-graphql-plugin-boilerplate": "^0.1.1",
|
|
||||||
"php": ">=7.4"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"axepress/wp-graphql-cs": "^2.0.0",
|
|
||||||
"axepress/wp-graphql-stubs": "^2.0.0",
|
|
||||||
"codeception/lib-innerbrowser": "^1.0",
|
|
||||||
"codeception/module-asserts": "^1.0",
|
|
||||||
"codeception/module-cli": "^1.0",
|
|
||||||
"codeception/module-db": "^1.0",
|
|
||||||
"codeception/module-filesystem": "^1.0",
|
|
||||||
"codeception/module-phpbrowser": "^1.0",
|
|
||||||
"codeception/module-rest": "^2.0",
|
|
||||||
"codeception/module-webdriver": "^1.0",
|
|
||||||
"codeception/phpunit-wrapper": "^9.0",
|
|
||||||
"codeception/util-universalframework": "^1.0",
|
|
||||||
"lucatume/wp-browser": "<3.5",
|
|
||||||
"php-coveralls/php-coveralls": "^2.5",
|
|
||||||
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9",
|
|
||||||
"phpstan/extension-installer": "^1.1",
|
|
||||||
"phpstan/phpstan": "^2.1.5",
|
|
||||||
"phpunit/phpunit": "^9.5",
|
|
||||||
"szepeviktor/phpstan-wordpress": "^2.0.1",
|
|
||||||
"wp-cli/wp-cli-bundle": "^2.8.1",
|
|
||||||
"wp-graphql/wp-graphql-testcase": "~3.4.0"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"extra": {
|
|
||||||
"strauss": {
|
|
||||||
"packages": [
|
|
||||||
"axepress/wp-graphql-plugin-boilerplate"
|
|
||||||
],
|
|
||||||
"classmap_prefix": "WPGraphQL_RankMath_",
|
|
||||||
"constant_prefix": "WPGRAPHQL_SEO_",
|
|
||||||
"namespace_prefix": "WPGraphQL\\RankMath\\Vendor\\",
|
|
||||||
"target_directory": "vendor-prefixed",
|
|
||||||
"update_call_sites": false,
|
|
||||||
"exclude_from_prefix": {
|
|
||||||
"namespaces": [],
|
|
||||||
"file_patterns": []
|
|
||||||
},
|
|
||||||
"include_modified_date": false,
|
|
||||||
"delete_vendor_packages": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"files": [
|
|
||||||
"access-functions.php"
|
|
||||||
],
|
|
||||||
"psr-4": {
|
|
||||||
"WPGraphQL\\RankMath\\": "src/"
|
|
||||||
},
|
|
||||||
"classmap": [
|
|
||||||
"vendor-prefixed/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"GPL-3.0-or-later"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "AxePress Development",
|
|
||||||
"email": "support@axepress.dev",
|
|
||||||
"homepage": "https://axepress.dev"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "David Levine",
|
|
||||||
"role": "Developer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Adds WPGraphQL support for RankMath SEO",
|
|
||||||
"support": {
|
|
||||||
"email": "support@axepress.dev",
|
|
||||||
"forum": "https://github.com/AxeWP/wp-graphql-rank-math/discussions",
|
|
||||||
"issues": "https://github.com/AxeWP/wp-graphql-rank-math/issues",
|
|
||||||
"source": "https://github.com/AxeWP/wp-graphql-rank-math/tree/0.3.4"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://github.com/sponsors/AxeWP",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2025-06-07T12:05:15+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "composer/installers",
|
"name": "composer/installers",
|
||||||
"version": "v2.3.0",
|
"version": "v2.3.0",
|
||||||
@@ -418,35 +257,17 @@
|
|||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"homepage": "https://wordpress.org/plugins/disable-comments/"
|
"homepage": "https://wordpress.org/plugins/disable-comments/"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "wpackagist-plugin/seo-by-rank-math",
|
|
||||||
"version": "1.0.262",
|
|
||||||
"source": {
|
|
||||||
"type": "svn",
|
|
||||||
"url": "https://plugins.svn.wordpress.org/seo-by-rank-math/",
|
|
||||||
"reference": "tags/1.0.262"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://downloads.wordpress.org/plugin/seo-by-rank-math.1.0.262.zip"
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"homepage": "https://wordpress.org/plugins/seo-by-rank-math/"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/wp-graphql",
|
"name": "wpackagist-plugin/wp-graphql",
|
||||||
"version": "2.7.0",
|
"version": "2.6.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.6.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.6.0.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
|
|||||||
3
wp-content/themes/moonshine/.gitignore
vendored
3
wp-content/themes/moonshine/.gitignore
vendored
@@ -22,6 +22,3 @@ logs
|
|||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
|
|
||||||
# Wrangler files
|
|
||||||
.wrangler
|
|
||||||
|
|||||||
@@ -1,88 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## v0.1.7
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.6...v0.1.7)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Configure sitemap URL in robots.txt (63f8e44)
|
|
||||||
- Deploy to Cloudflare workers (c6dfbeb)
|
|
||||||
- Display theme version in admin footer (b886585)
|
|
||||||
|
|
||||||
## v0.1.6
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.5...v0.1.6)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Site options page & field group (489ac82)
|
|
||||||
- Initial SEO integration (c5ce607)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Bypass headless home URL for specific cases (108269e)
|
|
||||||
|
|
||||||
## v0.1.5
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.4...v0.1.5)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Auth server utils upgrade to latest nuxt-graphql (fd61895)
|
|
||||||
- Immutable extractNodes (baa3061)
|
|
||||||
- Type issue with NodePage (3b706c0)
|
|
||||||
|
|
||||||
## v0.1.4
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.2...v0.1.4)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Initial NodeByUri logic and frontend (688c4e3)
|
|
||||||
- BuilderSections component (2b9a875)
|
|
||||||
- LaoutContained (c7f6cca)
|
|
||||||
- LayoutContained section wrapper (12048ff)
|
|
||||||
- Initial typography / prose styles (764bc6a)
|
|
||||||
- UiProse prose component with link highjacking (40becf1)
|
|
||||||
- TinyMCE WYSIWYG editor styles (8e26f19)
|
|
||||||
- Login / logout toast (2d0b176)
|
|
||||||
- Hide title on front page (5e0df22)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Fatal 404 (bfb5ae3)
|
|
||||||
|
|
||||||
### 💅 Refactors
|
|
||||||
|
|
||||||
- Update to nuxt-graphql 0.5.x (e383255)
|
|
||||||
- /api/login route (9d99770)
|
|
||||||
|
|
||||||
## v0.1.3
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.2...v0.1.3)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Initial NodeByUri logic and frontend (688c4e3)
|
|
||||||
- BuilderSections component (2b9a875)
|
|
||||||
- LaoutContained (c7f6cca)
|
|
||||||
- LayoutContained section wrapper (12048ff)
|
|
||||||
- Initial typography / prose styles (764bc6a)
|
|
||||||
- UiProse prose component with link highjacking (40becf1)
|
|
||||||
- TinyMCE WYSIWYG editor styles (8e26f19)
|
|
||||||
- Login / logout toast (2d0b176)
|
|
||||||
- Hide title on front page (5e0df22)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Fatal 404 (bfb5ae3)
|
|
||||||
|
|
||||||
### 💅 Refactors
|
|
||||||
|
|
||||||
- Update to nuxt-graphql 0.5.x (e383255)
|
|
||||||
- /api/login route (9d99770)
|
|
||||||
|
|
||||||
## v0.1.2
|
## v0.1.2
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.1...v0.1.2)
|
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.1...v0.1.2)
|
||||||
|
|||||||
@@ -1,12 +1,3 @@
|
|||||||
# Moonshine
|
# Moonshine
|
||||||
|
|
||||||
Thème WordPress en headless basé sur Nuxt.
|
Headless WordPress theme based on Nuxt.
|
||||||
|
|
||||||
## Variables d'environnement
|
|
||||||
|
|
||||||
| Nom | Description | Exemple | Requise |
|
|
||||||
|-----|-------------|---------|---------|
|
|
||||||
| `NUXT_SESSION_PASSWORD` | Clé secrète pour l'authentification | `date \| md5sum` | ✅ |
|
|
||||||
| `NUXT_WP_URL` | URL du backend WordPress | https://wp.exemple.com | ✅ |
|
|
||||||
| `NUXT_SITE_URL` | URL du frontend Nuxt | https://www.example.com | ➖ |
|
|
||||||
| `NUXT_SITE_ENV` | Environnement | staging \| production | ➖ |
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
{
|
|
||||||
"key": "group_options_site",
|
|
||||||
"title": "Options - Site",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"key": "field_697220310aaaf",
|
|
||||||
"label": "Email",
|
|
||||||
"name": "email",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "email",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"default_value": "",
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"placeholder": "",
|
|
||||||
"prepend": "",
|
|
||||||
"append": "",
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "email",
|
|
||||||
"graphql_non_null": 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"location": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"param": "options_page",
|
|
||||||
"operator": "==",
|
|
||||||
"value": "site-options"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"menu_order": 0,
|
|
||||||
"position": "normal",
|
|
||||||
"style": "seamless",
|
|
||||||
"label_placement": "top",
|
|
||||||
"instruction_placement": "label",
|
|
||||||
"hide_on_screen": "",
|
|
||||||
"active": true,
|
|
||||||
"description": "",
|
|
||||||
"show_in_rest": 0,
|
|
||||||
"display_title": "",
|
|
||||||
"acfe_autosync": [
|
|
||||||
"json"
|
|
||||||
],
|
|
||||||
"acfe_form": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_field_name": "GroupSite",
|
|
||||||
"map_graphql_types_from_location_rules": 0,
|
|
||||||
"graphql_types": "",
|
|
||||||
"acfe_meta": "",
|
|
||||||
"acfe_note": "",
|
|
||||||
"modified": 1769087407
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"key": "ui_options_page_site",
|
|
||||||
"title": "Options du site",
|
|
||||||
"active": true,
|
|
||||||
"menu_order": 0,
|
|
||||||
"page_title": "Options du site",
|
|
||||||
"menu_slug": "site-options",
|
|
||||||
"parent_slug": "options-general.php",
|
|
||||||
"advanced_configuration": 1,
|
|
||||||
"icon_url": "",
|
|
||||||
"menu_title": "",
|
|
||||||
"position": "",
|
|
||||||
"redirect": false,
|
|
||||||
"description": "",
|
|
||||||
"menu_icon": [],
|
|
||||||
"update_button": "Mise à jour",
|
|
||||||
"updated_message": "Options mises à jours",
|
|
||||||
"capability": "edit_posts",
|
|
||||||
"data_storage": "options",
|
|
||||||
"post_id": "",
|
|
||||||
"autoload": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_type_name": "OptionsSite",
|
|
||||||
"modified": 1769086997
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { BuilderSectionsFragment } from "#graphql/operations";
|
import type { BuilderSectionsFragment } from "#graphql/fragments";
|
||||||
|
|
||||||
const props = defineProps<BuilderSectionsFragment>();
|
const props = defineProps<BuilderSectionsFragment>();
|
||||||
const sections = computed(() => {
|
const sections = computed(() => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { LayoutContainedFragment } from "#graphql/operations";
|
import type { LayoutContainedFragment } from "#graphql/fragments";
|
||||||
import { tv, type VariantProps } from "tailwind-variants";
|
import { tv, type VariantProps } from "tailwind-variants";
|
||||||
|
|
||||||
const props = defineProps<LayoutContainedFragment>();
|
const props = defineProps<LayoutContainedFragment>();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { NodePageFragment } from "#graphql/operations";
|
import type { NodePageFragment } from "#graphql/fragments";
|
||||||
|
|
||||||
defineProps<NodePageFragment>();
|
defineProps<NodePageFragment>();
|
||||||
</script>
|
</script>
|
||||||
@@ -9,6 +9,6 @@ defineProps<NodePageFragment>();
|
|||||||
<h1 v-if="!isFrontPage" class="font-bold text-4xl">
|
<h1 v-if="!isFrontPage" class="font-bold text-4xl">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</h1>
|
</h1>
|
||||||
<BuilderSections :sections="groupPostPage?.sections || []" />
|
<BuilderSections v-bind="groupPostPage" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { SectionTextBlockFragment } from "#graphql/operations";
|
import type { SectionTextBlockFragment } from "#graphql/fragments";
|
||||||
|
|
||||||
defineProps<SectionTextBlockFragment>();
|
defineProps<SectionTextBlockFragment>();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
import type { NodeByUriQueryResult, NodeSeoFragment } from "#graphql/operations";
|
|
||||||
|
|
||||||
export function useNodeSeo(node: NodeByUriQueryResult["nodeByUri"]) {
|
|
||||||
// Check if node has SEO data
|
|
||||||
if (!node || !("seo" in node) || !node.seo) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const { seo } = node as NodeSeoFragment;
|
|
||||||
|
|
||||||
useSeoMeta({
|
|
||||||
title: seo?.title || undefined,
|
|
||||||
description: seo?.description || undefined,
|
|
||||||
robots: (seo?.robots || []).join(", "),
|
|
||||||
ogTitle: seo?.openGraph?.title || undefined,
|
|
||||||
ogDescription: seo?.openGraph?.description || undefined,
|
|
||||||
ogImage: seo?.openGraph?.image?.url || undefined,
|
|
||||||
ogUrl: seo?.canonicalUrl || undefined,
|
|
||||||
twitterCard: "summary_large_image",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
fragment GeneralSettings on GeneralSettings {
|
query GeneralSettings {
|
||||||
|
generalSettings {
|
||||||
title
|
title
|
||||||
description
|
description
|
||||||
}
|
}
|
||||||
|
|
||||||
query GeneralSettings {
|
|
||||||
generalSettings {
|
|
||||||
... GeneralSettings
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +1,8 @@
|
|||||||
fragment NodeSeo on NodeWithRankMathSeo {
|
|
||||||
seo {
|
|
||||||
title
|
|
||||||
description
|
|
||||||
robots
|
|
||||||
canonicalUrl
|
|
||||||
openGraph {
|
|
||||||
title
|
|
||||||
description
|
|
||||||
image {
|
|
||||||
url
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query NodeByUri($uri: String!) {
|
query NodeByUri($uri: String!) {
|
||||||
nodeByUri(uri: $uri) {
|
nodeByUri(uri: $uri) {
|
||||||
__typename
|
__typename
|
||||||
... on Page {
|
... on Page {
|
||||||
... NodePage
|
... NodePage
|
||||||
}
|
}
|
||||||
... on NodeWithRankMathSeo {
|
|
||||||
... NodeSeo
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
fragment SiteOptions on GroupSite_Fields {
|
|
||||||
email
|
|
||||||
}
|
|
||||||
|
|
||||||
query OptionsSite {
|
|
||||||
optionsSite {
|
|
||||||
groupSite {
|
|
||||||
... SiteOptions
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +1,19 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// Resolve Node component from URI
|
|
||||||
const { path: uri } = useRoute();
|
const { path: uri } = useRoute();
|
||||||
const { data } = await useAsyncGraphQLQuery("NodeByUri", { uri });
|
const { data } = await useAsyncGraphQLQuery("NodeByUri", { uri });
|
||||||
if (!data.value?.nodeByUri) {
|
|
||||||
|
// Resolve and validate Node component
|
||||||
|
if (!data.value.nodeByUri) {
|
||||||
throw createError({ statusCode: 404, message: `La page demandée est introuvable: ${uri}`, fatal: true });
|
throw createError({ statusCode: 404, message: `La page demandée est introuvable: ${uri}`, fatal: true });
|
||||||
}
|
}
|
||||||
const componentName = `Node${data.value.nodeByUri.__typename}`;
|
const componentName = `Node${data.value.nodeByUri.__typename}`;
|
||||||
if (!useNuxtApp().vueApp.component(componentName)) {
|
if (!useNuxtApp().vueApp.component(componentName)) {
|
||||||
throw createError({ statusCode: 404, message: `La page demandée ne peut pas être affichée correctement: ${componentName}`, fatal: true });
|
throw createError({ statusCode: 404, message: `La page demandée ne peut pas être affichée correctement: ${componentName}`, fatal: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
useNodeSeo(data.value.nodeByUri);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-if="data?.nodeByUri" id="page-node-from-uri">
|
<div v-if="data.nodeByUri" id="page-node-from-uri">
|
||||||
<Component :is="componentName" v-bind="data.nodeByUri" />
|
<Component :is="componentName" v-bind="data.nodeByUri" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -4,5 +4,4 @@
|
|||||||
require_once __DIR__ . '/includes/core/theme-setup.php';
|
require_once __DIR__ . '/includes/core/theme-setup.php';
|
||||||
|
|
||||||
// Vendors
|
// Vendors
|
||||||
require_once __DIR__ . '/includes/vendors/acf.php';
|
|
||||||
require_once __DIR__ . '/includes/vendors/tinymce.php';
|
require_once __DIR__ . '/includes/vendors/tinymce.php';
|
||||||
|
|||||||
@@ -16,27 +16,3 @@ function moonshine_after_setup_theme() {
|
|||||||
|
|
||||||
// Register sidebars
|
// Register sidebars
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bypass headless home URL for specific cases
|
|
||||||
add_filter( 'home_url', 'moonshine_bypass_home_url', 10, 4 );
|
|
||||||
function moonshine_bypass_home_url( $url, $path, $orig_scheme, $blog_id ) {
|
|
||||||
$excluded_patterns = array(
|
|
||||||
'#/wp-json(/|$)#i', // WP REST API
|
|
||||||
'#\.(xsl|xml)$#i', // Sitemap and XSLT files
|
|
||||||
);
|
|
||||||
foreach ( $excluded_patterns as $pattern ) {
|
|
||||||
if ( preg_match( $pattern, $url ) ) {
|
|
||||||
return get_site_url( $blog_id, $path, $orig_scheme );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $url;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Display theme version in admin footer
|
|
||||||
add_filter( 'update_footer', 'moonshine_update_footer', 100 );
|
|
||||||
function moonshine_update_footer() {
|
|
||||||
$package_json = json_decode( file_get_contents( get_theme_file_path( 'package.json' ) ), true );
|
|
||||||
$name = $package_json['name'] ?? 'moonshine';
|
|
||||||
$version = $package_json['version'] ?? '(unknown)';
|
|
||||||
return sprintf( '%s v%s', esc_html( $name ), esc_html( $version ) );
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Disable ACF / ACFE modules
|
|
||||||
add_filter( 'acf/settings/enable_post_types', '__return_false' );
|
|
||||||
add_action( 'acf/init', 'moonshine_acf_init' );
|
|
||||||
function moonshine_acf_init() {
|
|
||||||
acf_update_setting( 'acfe/modules/block_types', false );
|
|
||||||
acf_update_setting( 'acfe/modules/categories', false );
|
|
||||||
acf_update_setting( 'acfe/modules/forms', false );
|
|
||||||
acf_update_setting( 'acfe/modules/options', false );
|
|
||||||
acf_update_setting( 'acfe/modules/options_pages', false );
|
|
||||||
acf_update_setting( 'acfe/modules/post_types', false );
|
|
||||||
acf_update_setting( 'acfe/modules/taxonomies', false );
|
|
||||||
acf_update_setting( 'acfe/modules/templates', false );
|
|
||||||
}
|
|
||||||
@@ -1,13 +1,3 @@
|
|||||||
const siteUrl = process.env.NUXT_SITE_URL;
|
|
||||||
if (!siteUrl) {
|
|
||||||
throw new Error(`NUXT_SITE_URL is not defined. Make sure to set it in your build environment variables.`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const wpUrl = process.env.NUXT_WP_URL;
|
|
||||||
if (!wpUrl) {
|
|
||||||
throw new Error(`NUXT_WP_URL is not defined. Make sure to set it in your build environment variables.`);
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
|
|
||||||
@@ -30,7 +20,7 @@ export default defineNuxtConfig({
|
|||||||
css: ["~/assets/css/_main.css"],
|
css: ["~/assets/css/_main.css"],
|
||||||
|
|
||||||
site: {
|
site: {
|
||||||
url: siteUrl,
|
url: "https://wp-headless.ledevsimple.ca",
|
||||||
name: "WP Headless",
|
name: "WP Headless",
|
||||||
defaultLocale: "fr",
|
defaultLocale: "fr",
|
||||||
},
|
},
|
||||||
@@ -41,23 +31,6 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
compatibilityDate: "2026-01-01",
|
compatibilityDate: "2026-01-01",
|
||||||
|
|
||||||
nitro: {
|
|
||||||
preset: "cloudflare_module",
|
|
||||||
cloudflare: {
|
|
||||||
deployConfig: true,
|
|
||||||
nodeCompat: true,
|
|
||||||
wrangler: {
|
|
||||||
name: "foobar",
|
|
||||||
compatibility_date: "2026-01-27",
|
|
||||||
vars: {
|
|
||||||
NODE_ENV: "production",
|
|
||||||
NUXT_SITE_URL: siteUrl,
|
|
||||||
NUXT_WP_URL: wpUrl,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
eslint: {
|
eslint: {
|
||||||
config: {
|
config: {
|
||||||
stylistic: {
|
stylistic: {
|
||||||
@@ -71,18 +44,20 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
graphql: {
|
graphql: {
|
||||||
server: {
|
yoga: {
|
||||||
context: ["server/graphql/context"],
|
context: ["~~/server/graphql/context"],
|
||||||
schema: {
|
schemas: {
|
||||||
wp: { type: "remote", endpoint: `${wpUrl}/graphql`, hooks: ["server/graphql/wp-hooks"] },
|
wp: {
|
||||||
|
type: "remote",
|
||||||
|
url: `${process.env.NUXT_WP_URL || "https://wp-headless.ledevsimple.ca"}/graphql`,
|
||||||
|
hooks: ["~~/server/graphql/wp-hooks"],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
robots: {
|
sitemap: {
|
||||||
sitemap: `${wpUrl}/sitemap_index.xml`,
|
zeroRuntime: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
sitemap: false,
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@lewebsimple/moonshine",
|
"name": "@lewebsimple/moonshine",
|
||||||
"description": "Headless WordPress theme based on Nuxt.",
|
"description": "Headless WordPress theme based on Nuxt.",
|
||||||
"version": "0.1.7",
|
"version": "0.1.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -9,45 +9,37 @@
|
|||||||
"editor-style": "pnpx @tailwindcss/cli -i ./app/assets/css/_main.css -o ./editor-style.css --minify",
|
"editor-style": "pnpx @tailwindcss/cli -i ./app/assets/css/_main.css -o ./editor-style.css --minify",
|
||||||
"dev": "nuxt dev",
|
"dev": "nuxt dev",
|
||||||
"lint": "eslint --fix .",
|
"lint": "eslint --fix .",
|
||||||
"postinstall": "nuxt prepare",
|
"postinstall": "pnpm --sequential /postinstall:.*/",
|
||||||
"preview": "pnpm run build && wrangler dev --port 3000",
|
"postinstall:nuxt": "nuxt prepare",
|
||||||
"release": "pnpm lint && changelogen --noAuthors --release --push",
|
"preview": "nuxt preview",
|
||||||
|
"release": "pnpm lint && pnpm typecheck && changelogen --noAuthors --release --push",
|
||||||
"typecheck": "nuxt typecheck"
|
"typecheck": "nuxt typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify-json/lucide": "^1.2.87",
|
"@iconify-json/lucide": "^1.2.86",
|
||||||
"@lewebsimple/nuxt-graphql": "^0.6.1",
|
"@lewebsimple/nuxt-graphql": "^0.5.2",
|
||||||
"@nuxt/ui": "4.3.0",
|
"@nuxt/ui": "4.3.0",
|
||||||
"@nuxtjs/seo": "^3.3.0",
|
"@nuxtjs/seo": "^3.3.0",
|
||||||
"jwt-decode": "^4.0.0",
|
"jwt-decode": "^4.0.0",
|
||||||
"nuxt": "^4.3.0",
|
"nuxt": "^4.2.2",
|
||||||
"nuxt-auth-utils": "^0.5.28",
|
"nuxt-auth-utils": "^0.5.27",
|
||||||
"tailwindcss": "^4.1.18",
|
"tailwindcss": "^4.1.18",
|
||||||
"vue": "^3.5.27",
|
"vue": "^3.5.27",
|
||||||
"vue-router": "^4.6.4",
|
"vue-router": "^4.6.4",
|
||||||
"zod": "^4.3.6"
|
"zod": "^4.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/eslint": "^1.13.0",
|
"@nuxt/eslint": "^1.12.1",
|
||||||
"changelogen": "^0.6.2",
|
"changelogen": "^0.6.2",
|
||||||
"eslint": "^9.39.2",
|
"eslint": "^9.39.2",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vue-tsc": "^3.2.4",
|
"vue-tsc": "^3.2.2"
|
||||||
"wrangler": "^4.61.0"
|
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@tiptap/core": "3.14.0",
|
"@tiptap/core": "3.14.0",
|
||||||
"@tiptap/pm": "3.14.0"
|
"@tiptap/pm": "3.14.0"
|
||||||
},
|
}
|
||||||
"onlyBuiltDependencies": [
|
|
||||||
"@parcel/watcher",
|
|
||||||
"esbuild",
|
|
||||||
"sharp",
|
|
||||||
"unrs-resolver",
|
|
||||||
"vue-demi",
|
|
||||||
"workerd"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"changelog": {
|
"changelog": {
|
||||||
"types": {
|
"types": {
|
||||||
|
|||||||
2958
wp-content/themes/moonshine/pnpm-lock.yaml
generated
2958
wp-content/themes/moonshine/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
5
wp-content/themes/moonshine/pnpm-workspace.yaml
Normal file
5
wp-content/themes/moonshine/pnpm-workspace.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
onlyBuiltDependencies:
|
||||||
|
- '@parcel/watcher'
|
||||||
|
- esbuild
|
||||||
|
- unrs-resolver
|
||||||
|
- vue-demi
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
export default defineEventHandler(async (event) => {
|
export default defineEventHandler(async (event) => {
|
||||||
try {
|
try {
|
||||||
const variables = await readBody<AuthLoginForm>(event);
|
const variables = await readBody<AuthLoginForm>(event);
|
||||||
const { data } = await useGraphQLOperation(event, "AuthLogin", variables);
|
const { data } = await useServerGraphQLMutation(event, "AuthLogin", variables);
|
||||||
if (!data?.login) {
|
if (!data?.login) {
|
||||||
throw new Error("INVALID_LOGIN");
|
throw new Error("INVALID_LOGIN");
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,16 +1,16 @@
|
|||||||
import type { H3Event } from "h3";
|
import type { H3Event } from "h3";
|
||||||
|
import { GraphQLClient } from "graphql-request";
|
||||||
import { jwtDecode } from "jwt-decode";
|
import { jwtDecode } from "jwt-decode";
|
||||||
import type { User } from "#auth-utils";
|
import type { User } from "#auth-utils";
|
||||||
import type { AuthUserFragment, AuthLoginMutationResult } from "#graphql/operations";
|
import type { AuthUserFragment } from "#graphql/fragments";
|
||||||
import { AuthRefreshTokenDocument } from "#graphql/operations";
|
import { AuthRefreshTokenDocument, type AuthLoginResult } from "#graphql/operations";
|
||||||
import type { ResultOf } from "#graphql/registry";
|
|
||||||
|
|
||||||
// Handle login result and store user session
|
// Handle login result and store user session
|
||||||
export async function handleLogin(event: H3Event, loginResult: AuthLoginMutationResult) {
|
export async function handleLogin(event: H3Event, loginData: AuthLoginResult) {
|
||||||
if (!loginResult?.login) {
|
if (!loginData?.login) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const { user, authToken, refreshToken } = loginResult.login;
|
const { user, authToken, refreshToken } = loginData.login;
|
||||||
if (!user || !authToken || !refreshToken) {
|
if (!user || !authToken || !refreshToken) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -42,13 +42,9 @@ function getAuthUser(user: AuthUserFragment): User {
|
|||||||
|
|
||||||
// Refresh auth token by calling remote GraphQL endpoint directly
|
// Refresh auth token by calling remote GraphQL endpoint directly
|
||||||
export async function refreshAuthToken(refreshToken: string): Promise<string | undefined> {
|
export async function refreshAuthToken(refreshToken: string): Promise<string | undefined> {
|
||||||
// TODO: const { public: { graphql: { endpoint } } } = useRuntimeConfig();
|
const client = new GraphQLClient(`${process.env.NUXT_WP_URL || "https://wp-headless.ledevsimple.ca"}/graphql`);
|
||||||
const endpoint = `${process.env.NUXT_WP_URL || "https://cultureat.ledevsimple.ca"}/graphql`;
|
const data = await client.request(AuthRefreshTokenDocument, { refreshToken });
|
||||||
const { data } = await executeGraphQLHTTP<ResultOf<"AuthRefreshToken">>({
|
return data.refreshToken?.authToken || undefined;
|
||||||
query: AuthRefreshTokenDocument,
|
|
||||||
variables: { refreshToken },
|
|
||||||
}, { endpoint });
|
|
||||||
return data?.refreshToken?.authToken || undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get auth token from user session (refresh if needed)
|
// Get auth token from user session (refresh if needed)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Helper: Extracts nodes from a GraphQL connection object, returning an empty array if nodes are absent.
|
// Helper: Extracts nodes from a GraphQL connection object, returning an empty array if nodes are absent.
|
||||||
export function extractNodes<T>(connection: { nodes?: readonly T[] } | null | undefined): readonly T[] {
|
export function extractNodes<T>(connection: { nodes?: T[] } | null | undefined): T[] {
|
||||||
return connection?.nodes ?? [];
|
return connection?.nodes || [] as T[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Theme Name: Moonshine
|
|||||||
Author: Pascal Martineau <pascal@lewebsimple.ca>
|
Author: Pascal Martineau <pascal@lewebsimple.ca>
|
||||||
Author URI: https://websimple.com/
|
Author URI: https://websimple.com/
|
||||||
Description: Headless WordPress theme based on Nuxt.
|
Description: Headless WordPress theme based on Nuxt.
|
||||||
|
Version: 0.1.0
|
||||||
Text Domain: moonshine
|
Text Domain: moonshine
|
||||||
Template: kaliroots
|
Template: kaliroots
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
/**
|
|
||||||
* For more details on how to configure Wrangler, refer to:
|
|
||||||
* https://developers.cloudflare.com/workers/wrangler/configuration/
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
"$schema": "node_modules/wrangler/config-schema.json",
|
|
||||||
"main": "./.output/server/index.mjs",
|
|
||||||
/**
|
|
||||||
* Static Assets Binding
|
|
||||||
*/
|
|
||||||
"assets": {
|
|
||||||
"binding": "ASSETS",
|
|
||||||
"directory": "./.output/public/"
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Observability & Analytics
|
|
||||||
*/
|
|
||||||
"observability": {
|
|
||||||
"enabled": true
|
|
||||||
},
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user