Compare commits
35 Commits
6a5d60e34c
...
v0.1.13
| Author | SHA1 | Date | |
|---|---|---|---|
| 58dbcdd25a | |||
| 8ae6dafb62 | |||
| faf39ca182 | |||
| 8d350bb092 | |||
| 4338028c60 | |||
| ab563a7b37 | |||
| 2cfc1a0047 | |||
| 98e8d971e8 | |||
| 87be06ecea | |||
| 28f6e1ae7c | |||
| 27380290e1 | |||
| 7e44554767 | |||
| 9c3dceef84 | |||
| ba8d8e00a8 | |||
| 8f037b5950 | |||
| 291fa6eaa4 | |||
| 4079e4ecfb | |||
| eea020b136 | |||
| 5161bff624 | |||
| 3199835e83 | |||
| 6dd13ead91 | |||
| 980c5271ac | |||
| 115a5d2d38 | |||
| 6b17201f60 | |||
| ad3c53c5dd | |||
| fefa98021b | |||
| 1e58b1f1e7 | |||
| 0bafc3a9dd | |||
| 8bd544b5c3 | |||
| 4918c638ab | |||
| bff7bce1f1 | |||
| 0fbd2bf7ac | |||
| 238aa29bd4 | |||
| f268bdc3c3 | |||
| 11641a00d1 |
@@ -3,4 +3,3 @@
|
|||||||
Headless WordPress project boilerplate using Nuxt.
|
Headless WordPress project boilerplate using Nuxt.
|
||||||
|
|
||||||
[✨ Release notes](/wp-content/themes/moonshine/CHANGELOG.md)
|
[✨ Release notes](/wp-content/themes/moonshine/CHANGELOG.md)
|
||||||
|
|
||||||
@@ -33,12 +33,14 @@
|
|||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"axepress/wp-graphql-rank-math": "*",
|
"axepress/wp-graphql-rank-math": "*",
|
||||||
|
"lewebsimple/acf-phone": "*",
|
||||||
"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/media-focus-point": "*",
|
||||||
"wpackagist-plugin/seo-by-rank-math": "*",
|
"wpackagist-plugin/seo-by-rank-math": "*",
|
||||||
"wpackagist-plugin/wp-graphql": "*",
|
"wpackagist-plugin/wp-graphql": "*",
|
||||||
"wpackagist-plugin/wpgraphql-acf": "*"
|
"wpackagist-plugin/wpgraphql-acf": "*"
|
||||||
|
|||||||
57
composer.lock
generated
57
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"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": "e3ce417e8c09ed84502559af141f6530",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "axepress/wp-graphql-plugin-boilerplate",
|
"name": "axepress/wp-graphql-plugin-boilerplate",
|
||||||
@@ -313,6 +313,43 @@
|
|||||||
],
|
],
|
||||||
"time": "2024-06-24T20:46:46+00:00"
|
"time": "2024-06-24T20:46:46+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "lewebsimple/acf-phone",
|
||||||
|
"version": "v3.1.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/lewebsimple/acf-phone.git",
|
||||||
|
"reference": "cf4c6440e0c2cdf7e422423bb629014204e721bf"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/acf-phone/lewebsimple-acf-phone-cf4c6440e0c2cdf7e422423bb629014204e721bf-zip-439080.zip",
|
||||||
|
"reference": "cf4c6440e0c2cdf7e422423bb629014204e721bf",
|
||||||
|
"shasum": "f9d7cbcf27985656245285e5bc035578621f1a69"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"lewebsimple/wp-phpcs-ruleset": "*",
|
||||||
|
"php-stubs/acf-pro-stubs": "*",
|
||||||
|
"squizlabs/php_codesniffer": "*"
|
||||||
|
},
|
||||||
|
"type": "wordpress-plugin",
|
||||||
|
"scripts": {
|
||||||
|
"post-create-project-cmd": [
|
||||||
|
"./scripts/post-create.sh"
|
||||||
|
],
|
||||||
|
"lint": [
|
||||||
|
"vendor/bin/phpcs"
|
||||||
|
],
|
||||||
|
"lintfix": [
|
||||||
|
"vendor/bin/phpcbf"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"support": {
|
||||||
|
"source": "https://github.com/lewebsimple/acf-phone/tree/v3.1.0",
|
||||||
|
"issues": "https://github.com/lewebsimple/acf-phone/issues"
|
||||||
|
},
|
||||||
|
"time": "2026-01-30T15:01:34+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/advanced-custom-fields-pro",
|
"name": "lewebsimple/advanced-custom-fields-pro",
|
||||||
"version": "v6.7.0.2",
|
"version": "v6.7.0.2",
|
||||||
@@ -418,6 +455,24 @@
|
|||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"homepage": "https://wordpress.org/plugins/disable-comments/"
|
"homepage": "https://wordpress.org/plugins/disable-comments/"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "wpackagist-plugin/media-focus-point",
|
||||||
|
"version": "2.0.4",
|
||||||
|
"source": {
|
||||||
|
"type": "svn",
|
||||||
|
"url": "https://plugins.svn.wordpress.org/media-focus-point/",
|
||||||
|
"reference": "tags/2.0.4"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://downloads.wordpress.org/plugin/media-focus-point.2.0.4.zip"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
|
},
|
||||||
|
"type": "wordpress-plugin",
|
||||||
|
"homepage": "https://wordpress.org/plugins/media-focus-point/"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/seo-by-rank-math",
|
"name": "wpackagist-plugin/seo-by-rank-math",
|
||||||
"version": "1.0.263",
|
"version": "1.0.263",
|
||||||
|
|||||||
1
wp-content/themes/moonshine/.gitignore
vendored
1
wp-content/themes/moonshine/.gitignore
vendored
@@ -25,3 +25,4 @@ logs
|
|||||||
|
|
||||||
# Wrangler files
|
# Wrangler files
|
||||||
.wrangler
|
.wrangler
|
||||||
|
server/types/cloudflare.d.ts
|
||||||
|
|||||||
@@ -1,5 +1,77 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.1.13
|
||||||
|
|
||||||
|
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.12...v0.1.13)
|
||||||
|
|
||||||
|
### 🚀 Enhancements
|
||||||
|
|
||||||
|
- TinyMCE list style (8ae6daf)
|
||||||
|
|
||||||
|
### 🩹 Fixes
|
||||||
|
|
||||||
|
- Wrangler.json needed for wrangler types before build (faf39ca)
|
||||||
|
|
||||||
|
## v0.1.12
|
||||||
|
|
||||||
|
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.11...v0.1.12)
|
||||||
|
|
||||||
|
### 🚀 Enhancements
|
||||||
|
|
||||||
|
- ConnexionButton (87be06e)
|
||||||
|
- ShowLabel (98e8d97)
|
||||||
|
- ParseAcfLink (2cfc1a0)
|
||||||
|
- ParseAcfMedia (ab563a7)
|
||||||
|
- Event context type for Cloudflare environment (4338028)
|
||||||
|
|
||||||
|
### 🩹 Fixes
|
||||||
|
|
||||||
|
- UApp in app.vue (28f6e1a)
|
||||||
|
|
||||||
|
## v0.1.11
|
||||||
|
|
||||||
|
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.10...v0.1.11)
|
||||||
|
|
||||||
|
### 🚀 Enhancements
|
||||||
|
|
||||||
|
- MapSocialIcon (6dd13ea)
|
||||||
|
- AcfSocial / parseAcfSocial (3199835)
|
||||||
|
|
||||||
|
### 🩹 Fixes
|
||||||
|
|
||||||
|
- Remove unneeded wrangler main / assets (eea020b)
|
||||||
|
- Cloudflare image provider only in production (291fa6e)
|
||||||
|
- Wrangler project name (8f037b5)
|
||||||
|
- ENABLE_CLOUDFLARE_IMAGE (9c3dcee)
|
||||||
|
|
||||||
|
## v0.1.10
|
||||||
|
|
||||||
|
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.9...v0.1.10)
|
||||||
|
|
||||||
|
### 🚀 Enhancements
|
||||||
|
|
||||||
|
- GroupSiteOptions.phoneNumber (ad3c53c)
|
||||||
|
- AcfPhone component (6b17201)
|
||||||
|
- AcfLink / AcfLinkButton components (115a5d2)
|
||||||
|
|
||||||
|
### 💅 Refactors
|
||||||
|
|
||||||
|
- OptionsSite => SiteOptions for clearer naming (fefa980)
|
||||||
|
|
||||||
|
## v0.1.9
|
||||||
|
|
||||||
|
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.8...v0.1.9)
|
||||||
|
|
||||||
|
### 🚀 Enhancements
|
||||||
|
|
||||||
|
- Enhance refreshAuthToken to prevent duplicate requests (5e39b53)
|
||||||
|
- Default site-logo.svg (238aa29)
|
||||||
|
- Initial Media / HeroSplit acf groups (0fbd2bf)
|
||||||
|
- Media Focus Point plugin integration (bff7bce)
|
||||||
|
- AcfImage component based on @nuxt/image (4918c63)
|
||||||
|
- AcfMedia component (image + aspect + object-fit) (8bd544b)
|
||||||
|
- HeroSplit section (0bafc3a)
|
||||||
|
|
||||||
## v0.1.8
|
## v0.1.8
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.7...v0.1.8)
|
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.7...v0.1.8)
|
||||||
|
|||||||
@@ -6,7 +6,14 @@ Thème WordPress en headless basé sur Nuxt.
|
|||||||
|
|
||||||
| Nom | Description | Exemple | Requise |
|
| 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 | ➖ |
|
| `NUXT_SITE_ENV` | Environnement | staging \| production | ➖ |
|
||||||
|
| `NUXT_SITE_URL` | URL du frontend Nuxt | https://www.example.com | ➖ |
|
||||||
|
| `NUXT_WP_URL` | URL du backend WordPress | https://wp.exemple.com | ✅ |
|
||||||
|
|
||||||
|
## Secrets
|
||||||
|
|
||||||
|
Configurer les secrets nécessaires au projet:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pnpm wrangler secret put NUXT_SESSION_PASSWORD
|
||||||
|
```
|
||||||
|
|||||||
@@ -109,6 +109,102 @@
|
|||||||
"acfe_flexible_render_script": false,
|
"acfe_flexible_render_script": false,
|
||||||
"acfe_flexible_thumbnail": false,
|
"acfe_flexible_thumbnail": false,
|
||||||
"acfe_flexible_category": false
|
"acfe_flexible_category": false
|
||||||
|
},
|
||||||
|
"layout_697caf9a3e05b": {
|
||||||
|
"key": "layout_697caf9a3e05b",
|
||||||
|
"name": "hero_split",
|
||||||
|
"label": "Héro en moitié",
|
||||||
|
"display": "block",
|
||||||
|
"sub_fields": [
|
||||||
|
{
|
||||||
|
"key": "field_697cafb13e05d",
|
||||||
|
"label": "Content",
|
||||||
|
"name": "content",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "wysiwyg",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"default_value": "",
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"tabs": "all",
|
||||||
|
"toolbar": "full",
|
||||||
|
"media_upload": 0,
|
||||||
|
"delay": 0,
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "content",
|
||||||
|
"graphql_non_null": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "field_697cafc43e05e",
|
||||||
|
"label": "Media",
|
||||||
|
"name": "media",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "clone",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"graphql_field_name": "media",
|
||||||
|
"clone": [
|
||||||
|
"group_abstract_media"
|
||||||
|
],
|
||||||
|
"display": "seamless",
|
||||||
|
"layout": "block",
|
||||||
|
"prefix_label": 0,
|
||||||
|
"prefix_name": 0,
|
||||||
|
"acfe_seamless_style": 0,
|
||||||
|
"acfe_clone_modal": 0,
|
||||||
|
"acfe_clone_modal_close": 0,
|
||||||
|
"acfe_clone_modal_button": "",
|
||||||
|
"acfe_clone_modal_size": "large"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "field_697cafdc3e05f",
|
||||||
|
"label": "Position de l'image",
|
||||||
|
"name": "reverse",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "true_false",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 0,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"message": "",
|
||||||
|
"default_value": 0,
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"ui_on_text": "Gauche",
|
||||||
|
"ui_off_text": "Droite",
|
||||||
|
"ui": 1,
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "reverse",
|
||||||
|
"graphql_non_null": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"min": "",
|
||||||
|
"max": "",
|
||||||
|
"acfe_flexible_modal_edit_size": "",
|
||||||
|
"acfe_flexible_settings": "",
|
||||||
|
"acfe_flexible_settings_size": "large",
|
||||||
|
"acfe_flexible_render_template": false,
|
||||||
|
"acfe_flexible_render_style": false,
|
||||||
|
"acfe_flexible_render_script": false,
|
||||||
|
"acfe_flexible_thumbnail": false,
|
||||||
|
"acfe_flexible_category": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"min": "",
|
"min": "",
|
||||||
@@ -152,5 +248,5 @@
|
|||||||
"graphql_types": "",
|
"graphql_types": "",
|
||||||
"acfe_meta": "",
|
"acfe_meta": "",
|
||||||
"acfe_note": "",
|
"acfe_note": "",
|
||||||
"modified": 1768358815
|
"modified": 1769779666
|
||||||
}
|
}
|
||||||
|
|||||||
123
wp-content/themes/moonshine/acf-json/group_abstract_media.json
Normal file
123
wp-content/themes/moonshine/acf-json/group_abstract_media.json
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
{
|
||||||
|
"key": "group_abstract_media",
|
||||||
|
"title": "Abstract - Media",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"key": "field_697caec68536d",
|
||||||
|
"label": "Image",
|
||||||
|
"name": "image",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "image",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "33",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"uploader": "",
|
||||||
|
"return_format": "array",
|
||||||
|
"library": "all",
|
||||||
|
"acfe_thumbnail": 0,
|
||||||
|
"min_width": "",
|
||||||
|
"min_height": "",
|
||||||
|
"min_size": "",
|
||||||
|
"max_width": "",
|
||||||
|
"max_height": "",
|
||||||
|
"max_size": "",
|
||||||
|
"mime_types": "",
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"preview_size": "medium",
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "image"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "field_697caf018536e",
|
||||||
|
"label": "Ratio d'aspect",
|
||||||
|
"name": "aspect_ratio",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "button_group",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "33",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"choices": {
|
||||||
|
"square": "Carré (1:1)",
|
||||||
|
"video": "Vidéo (16:9)",
|
||||||
|
"portrait": "Portrait (2:3)",
|
||||||
|
"auto": "Aspect d'origine"
|
||||||
|
},
|
||||||
|
"default_value": "auto",
|
||||||
|
"return_format": "value",
|
||||||
|
"allow_null": 0,
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"layout": "horizontal",
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "aspectRatio",
|
||||||
|
"graphql_non_null": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "field_697caf378536f",
|
||||||
|
"label": "Ajustement de l'image",
|
||||||
|
"name": "object_fit",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "button_group",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "33",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"choices": {
|
||||||
|
"cover": "Recadrer si nécessaire",
|
||||||
|
"contain": "Contenir sans recadrage"
|
||||||
|
},
|
||||||
|
"default_value": "cover",
|
||||||
|
"return_format": "value",
|
||||||
|
"allow_null": 0,
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"layout": "horizontal",
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "objectFit",
|
||||||
|
"graphql_non_null": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"location": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"param": "abstract"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"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": "GroupAbstractMedia",
|
||||||
|
"map_graphql_types_from_location_rules": 0,
|
||||||
|
"graphql_types": "",
|
||||||
|
"acfe_meta": "",
|
||||||
|
"acfe_note": "",
|
||||||
|
"modified": 1769779078
|
||||||
|
}
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
{
|
||||||
|
"key": "group_abstract_social",
|
||||||
|
"title": "Abstract - Social",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"key": "field_6855a1d643408",
|
||||||
|
"label": "Médias sociaux",
|
||||||
|
"name": "profiles",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "repeater",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 0,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"acfe_repeater_stylised_button": 0,
|
||||||
|
"layout": "table",
|
||||||
|
"pagination": 0,
|
||||||
|
"min": 0,
|
||||||
|
"max": 0,
|
||||||
|
"collapsed": "",
|
||||||
|
"button_label": "Ajouter un élément",
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "profiles",
|
||||||
|
"graphql_non_null": 1,
|
||||||
|
"rows_per_page": 20,
|
||||||
|
"sub_fields": [
|
||||||
|
{
|
||||||
|
"key": "field_6855a7e143409",
|
||||||
|
"label": "URL",
|
||||||
|
"name": "url",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "url",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"default_value": "",
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"placeholder": "",
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "url",
|
||||||
|
"graphql_non_null": 1,
|
||||||
|
"parent_repeater": "field_6855a1d643408"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"location": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"param": "abstract"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"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": "GroupAbstractSocial",
|
||||||
|
"map_graphql_types_from_location_rules": 0,
|
||||||
|
"graphql_types": "",
|
||||||
|
"acfe_meta": "",
|
||||||
|
"acfe_note": "",
|
||||||
|
"modified": 1769788591
|
||||||
|
}
|
||||||
@@ -25,6 +25,104 @@
|
|||||||
"graphql_description": "",
|
"graphql_description": "",
|
||||||
"graphql_field_name": "email",
|
"graphql_field_name": "email",
|
||||||
"graphql_non_null": 1
|
"graphql_non_null": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "field_697cbf414fdd5",
|
||||||
|
"label": "Phone number",
|
||||||
|
"name": "phone_number",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "phone",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"initial_country": "CA",
|
||||||
|
"return_format": "national",
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "phoneNumber",
|
||||||
|
"graphql_non_null": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "field_697cd4c5fc56a",
|
||||||
|
"label": "Médias sociaux",
|
||||||
|
"name": "social",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "clone",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"graphql_field_name": "social",
|
||||||
|
"clone": [
|
||||||
|
"group_abstract_social"
|
||||||
|
],
|
||||||
|
"display": "seamless",
|
||||||
|
"layout": "block",
|
||||||
|
"prefix_label": 0,
|
||||||
|
"prefix_name": 0,
|
||||||
|
"acfe_seamless_style": 0,
|
||||||
|
"acfe_clone_modal": 0,
|
||||||
|
"acfe_clone_modal_close": 0,
|
||||||
|
"acfe_clone_modal_button": "",
|
||||||
|
"acfe_clone_modal_size": "large"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "field_697cc921234cc",
|
||||||
|
"label": "Liens globaux",
|
||||||
|
"name": "links",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "group",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 0,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"layout": "row",
|
||||||
|
"acfe_seamless_style": 0,
|
||||||
|
"acfe_group_modal": 0,
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "links",
|
||||||
|
"graphql_non_null": 0,
|
||||||
|
"sub_fields": [
|
||||||
|
{
|
||||||
|
"key": "field_697cc93e234cd",
|
||||||
|
"label": "Contact",
|
||||||
|
"name": "contact",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "link",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"return_format": "array",
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "contact",
|
||||||
|
"graphql_non_null": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"acfe_group_modal_close": 0,
|
||||||
|
"acfe_group_modal_button": "",
|
||||||
|
"acfe_group_modal_size": "large"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"location": [
|
"location": [
|
||||||
@@ -51,10 +149,10 @@
|
|||||||
],
|
],
|
||||||
"acfe_form": 0,
|
"acfe_form": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_field_name": "GroupSite",
|
"graphql_field_name": "GroupSiteOptions",
|
||||||
"map_graphql_types_from_location_rules": 0,
|
"map_graphql_types_from_location_rules": 0,
|
||||||
"graphql_types": "",
|
"graphql_types": "",
|
||||||
"acfe_meta": "",
|
"acfe_meta": "",
|
||||||
"acfe_note": "",
|
"acfe_note": "",
|
||||||
"modified": 1769087407
|
"modified": 1769788698
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
"post_id": "",
|
"post_id": "",
|
||||||
"autoload": 0,
|
"autoload": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_type_name": "OptionsSite",
|
"graphql_type_name": "SiteOptions",
|
||||||
"modified": 1769086997
|
"modified": 1769693948
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { fr } from "@nuxt/ui/locale";
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<UApp :locale="fr">
|
||||||
<NuxtRouteAnnouncer />
|
<NuxtRouteAnnouncer />
|
||||||
<NuxtLoadingIndicator />
|
<NuxtLoadingIndicator />
|
||||||
<NuxtLayout>
|
<NuxtLayout>
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</div>
|
</UApp>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
@import "./a11y.css";
|
@import "./a11y.css";
|
||||||
@import "./containers.css";
|
@import "./containers.css";
|
||||||
@import "./links.css";
|
@import "./links.css";
|
||||||
|
@import "./lists.css";
|
||||||
@import "./prose.css";
|
@import "./prose.css";
|
||||||
@import "./typography.css";
|
@import "./typography.css";
|
||||||
|
|
||||||
|
|||||||
3
wp-content/themes/moonshine/app/assets/css/lists.css
Normal file
3
wp-content/themes/moonshine/app/assets/css/lists.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
@utility list-horizontal {
|
||||||
|
@apply list-none flex flex-wrap items-center gap-3;
|
||||||
|
}
|
||||||
4
wp-content/themes/moonshine/app/assets/svg/site-logo.svg
Normal file
4
wp-content/themes/moonshine/app/assets/svg/site-logo.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg version="1.1" viewBox="0 0 490.3 86.763" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="m10.344 1.5312a10.208 10.208 0 0 0-9.0195 15.207l36.1 64.801a10.2 10.2 0 0 0 13.9 3.9004 10.415 10.415 0 0 0 4-14l-36.201-64.701a10.208 10.208 0 0 0-8.7793-5.207zm221.33 12.51v51.84h11.52v-2.8789a16.277 16.277 0 0 0 11.232 3.959c9.576 0 17.641-7.7004 17.641-19.152 0-11.376-8.0656-19.152-17.641-19.152a16.277 16.277 0 0 0-11.232 3.9609v-18.576h-11.52zm206 0v51.84h11.52v-51.84h-11.52zm-127.3 0.070312v11.145h11.521v-11.145h-11.521zm-21.229 14.535c-8.6942-0.004836-14.866 4.5403-15.109 11.721-0.193 5.685 3.5014 9.4123 10.15 10.863l7.291 1.6875c2.645 0.594 3.5488 1.5612 3.5078 2.7852-0.054 1.583-1.7534 2.8227-4.7754 2.7207-3.094-0.105-5.8618-1.3519-6.2598-4.4629l-11.305 1.9199c0.972 7.453 8.133 10.795 16.625 11.084 9.5 0.322 16.549-3.6186 16.82-11.602 0.181-5.325-2.8478-9.5341-9.6348-11.205l-8.4316-2.0137c-2.286-0.582-2.6824-1.6003-2.6484-2.6113 0.044-1.295 1.0992-2.773 4.1992-2.668 3.526 0.12 5.6164 2.2082 5.9004 4.4512l10.574-1.7363c-1.227-6.309-7.0597-10.613-16.055-10.918-0.28559-0.009687-0.56915-0.015469-0.84961-0.015625zm-79.43 0.009766c-10.512 0-19.152 7.7764-19.152 19.152 0 11.448 8.6401 19.152 19.08 19.152 8.28 0 14.832-3.6728 17.928-11.301l-10.225-2.0879c-1.944 3.528-5.0392 4.1758-7.6992 4.1758-3.888 0-6.8414-2.6624-7.7774-6.9824h26.5v-2.957h-0.00781c-0.216-11.808-8.4225-19.152-18.646-19.152zm140.62 0a13.682 13.682 0 0 0-10.656 4.3926v-3.3125h-11.52v36.145h11.52v-17.711c0-6.048 2.7361-9.1445 6.9121-9.1445 3.456 0 6.1191 2.5912 6.1191 6.6992v20.156h11.521v-17.711c0-6.048 2.8067-9.1445 7.0547-9.1445 3.384 0 6.0488 2.5912 6.0488 6.6992v20.156h11.447v-22.607c0-8.784-6.1202-14.617-13.824-14.617a15.58 15.58 0 0 0-12.814 6.1211c-2.448-3.96-6.7686-6.1211-11.809-6.1211zm66.391 0a16.277 16.277 0 0 0-11.232 3.9609v-2.8809h-11.52v48.385h11.52v-15.119a16.277 16.277 0 0 0 11.232 3.959c9.576 0 17.639-7.7004 17.639-19.152 0-11.376-8.0627-19.152-17.639-19.152zm54.936 0c-10.512 0-19.15 7.7764-19.15 19.152 0 11.448 8.6381 19.152 19.078 19.152 8.28 0 14.834-3.6728 17.93-11.301l-10.225-2.0879c-1.944 3.528-5.0392 4.1758-7.6992 4.1758-3.888 0-6.8414-2.6624-7.7774-6.9824h26.5v-2.957h-0.00781c-0.216-11.808-8.4244-19.152-18.648-19.152zm-336.16 1.0801 11.592 36.217h10.008l6.5527-19.584 6.4805 19.584h10.008l11.576-36.217h-11.301l-5.9004 19.512-6.8398-19.512h-8.1367l-6.8398 19.441-5.8984-19.441h-11.301zm174.88 0v36.145h11.521v-36.145h-11.521zm-100.66 8.2812a7.221 7.221 0 0 1 7.2715 5.6875h-14.9a7.918 7.918 0 0 1 7.6289-5.6875zm261.94 0a7.221 7.221 0 0 1 7.2715 5.6875h-14.9a7.918 7.918 0 0 1 7.6289-5.6875zm-219.6 0.43164c5.04 0 8.7109 3.8154 8.7109 9.3594 0 5.616-3.6709 9.3613-8.7109 9.3613a8.972 8.972 0 0 1-8.8574-9.3613 9.016 9.016 0 0 1 8.8574-9.3594zm162.29 0c5.04 0 8.7129 3.8154 8.7129 9.3594 0 5.616-3.6729 9.3613-8.7129 9.3613a8.972 8.972 0 0 1-8.8555-9.3613 9.016 9.016 0 0 1 8.8555-9.3594z" fill="#212121"/>
|
||||||
|
<path d="m123.02 1.939-.7-.5a9.735 9.735 0 0 0-13.4 3.2l-29.1 47.3a2.253 2.253 0 0 1-3.9-.1l-11.3-20.3a9.82 9.82 0 0 0-13.3-3.8l-.8.4a9.82 9.82 0 0 0-3.8 13.3l21.8 39a9.983 9.983 0 0 0 8.3 5 9.83 9.83 0 0 0 9.1-4.6l40.4-65.6a9.668 9.668 0 0 0-3.3-13.3" fill="#0ad2b7" data-name="Tracé 22516"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,9 @@
|
|||||||
|
fragment AcfImage on MediaItem {
|
||||||
|
src: sourceUrl
|
||||||
|
alt: altText
|
||||||
|
mediaDetails {
|
||||||
|
width
|
||||||
|
height
|
||||||
|
}
|
||||||
|
objectPosition
|
||||||
|
}
|
||||||
17
wp-content/themes/moonshine/app/components/acf/AcfImage.vue
Normal file
17
wp-content/themes/moonshine/app/components/acf/AcfImage.vue
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import type { AcfImageFragment } from "#graphql/operations";
|
||||||
|
|
||||||
|
defineProps<{ image?: AcfImageFragment }>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<NuxtImg
|
||||||
|
v-if="image"
|
||||||
|
:src="image.src"
|
||||||
|
:alt="image.alt"
|
||||||
|
:width="image.mediaDetails?.width"
|
||||||
|
:height="image.mediaDetails?.height"
|
||||||
|
:style="{ objectPosition: image.objectPosition || 'center' }"
|
||||||
|
placeholder
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
fragment AcfLink on AcfLink {
|
||||||
|
title
|
||||||
|
url
|
||||||
|
target
|
||||||
|
}
|
||||||
23
wp-content/themes/moonshine/app/components/acf/AcfLink.vue
Normal file
23
wp-content/themes/moonshine/app/components/acf/AcfLink.vue
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import type { AcfLinkFragment } from "#graphql/operations";
|
||||||
|
import type { LinkProps } from "@nuxt/ui";
|
||||||
|
|
||||||
|
type AcfLinkProps = Omit<LinkProps, "to" | "target" | "href"> & {
|
||||||
|
link?: AcfLinkFragment;
|
||||||
|
};
|
||||||
|
|
||||||
|
const { link, ...linkProps } = defineProps<AcfLinkProps>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<ULink
|
||||||
|
v-if="link?.url && link?.title"
|
||||||
|
v-bind="linkProps"
|
||||||
|
:to="link.url"
|
||||||
|
:target="link.target"
|
||||||
|
:external="link.target === '_blank'"
|
||||||
|
:rel="link.target === '_blank' ? 'noopener noreferrer' : undefined"
|
||||||
|
>
|
||||||
|
<slot>{{ link.title }}</slot>
|
||||||
|
</ULink>
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import type { AcfLinkFragment } from "#graphql/operations";
|
||||||
|
import type { ButtonProps } from "@nuxt/ui";
|
||||||
|
|
||||||
|
type AcfLinkButtonProps = & Omit<ButtonProps, "to" | "target" | "href"> & {
|
||||||
|
link?: AcfLinkFragment;
|
||||||
|
showLabel?: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
const { link, showLabel, ...buttonProps } = defineProps<AcfLinkButtonProps>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<UButton
|
||||||
|
v-if="link?.url && link?.title"
|
||||||
|
v-bind="buttonProps"
|
||||||
|
:to="link.url"
|
||||||
|
:target="link.target"
|
||||||
|
:external="link.target === '_blank'"
|
||||||
|
:rel="link.target === '_blank' ? 'noopener noreferrer' : undefined"
|
||||||
|
>
|
||||||
|
<slot>{{ showLabel ? link.title : "" }}</slot>
|
||||||
|
</UButton>
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
fragment AcfMedia on GroupAbstractMedia_Fields {
|
||||||
|
image { node { ... AcfImage } }
|
||||||
|
aspectRatio
|
||||||
|
objectFit
|
||||||
|
}
|
||||||
36
wp-content/themes/moonshine/app/components/acf/AcfMedia.vue
Normal file
36
wp-content/themes/moonshine/app/components/acf/AcfMedia.vue
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { tv, type VariantProps } from "tailwind-variants";
|
||||||
|
import type { AcfMediaFragment } from "#graphql/operations";
|
||||||
|
|
||||||
|
const tvAcfMedia = tv({
|
||||||
|
slots: {
|
||||||
|
image: "w-full",
|
||||||
|
},
|
||||||
|
variants: {
|
||||||
|
aspectRatio: {
|
||||||
|
square: { image: "aspect-[1/1]" },
|
||||||
|
video: { image: "aspect-video" },
|
||||||
|
portrait: { image: "aspect-[2/3]" },
|
||||||
|
auto: { image: "aspect-auto" },
|
||||||
|
},
|
||||||
|
objectFit: {
|
||||||
|
cover: { image: "object-cover" },
|
||||||
|
contain: { image: "object-contain" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
defaultVariants: {
|
||||||
|
aspectRatio: "auto",
|
||||||
|
objectFit: "cover",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const props = defineProps<{ media?: AcfMediaFragment }>();
|
||||||
|
const classes = tvAcfMedia({
|
||||||
|
aspectRatio: props.media?.aspectRatio,
|
||||||
|
objectFit: props.media?.objectFit,
|
||||||
|
} as VariantProps<typeof tvAcfMedia>);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<AcfImage v-if="media?.image?.node" :image="media.image.node" :class="classes.image()" />
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
fragment AcfPhone on AcfPhone {
|
||||||
|
national
|
||||||
|
e164
|
||||||
|
extension
|
||||||
|
}
|
||||||
14
wp-content/themes/moonshine/app/components/acf/AcfPhone.vue
Normal file
14
wp-content/themes/moonshine/app/components/acf/AcfPhone.vue
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import type { AcfPhoneFragment } from "#graphql/operations";
|
||||||
|
|
||||||
|
defineProps<{
|
||||||
|
phone?: AcfPhoneFragment;
|
||||||
|
link?: boolean;
|
||||||
|
}>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Component :is="link ? 'a' : 'span'" v-if="phone" :href="link ? `tel:${phone.e164}` : undefined">
|
||||||
|
{{ phone.national }}{{ phone.extension ? ` ext. ${phone.extension}` : "" }}
|
||||||
|
</Component>
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
fragment AcfSocial on GroupAbstractSocial_Fields {
|
||||||
|
profiles {
|
||||||
|
url
|
||||||
|
}
|
||||||
|
}
|
||||||
11
wp-content/themes/moonshine/app/components/acf/AcfSocial.vue
Normal file
11
wp-content/themes/moonshine/app/components/acf/AcfSocial.vue
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
defineProps<{ social?: AcfSocialOutput }>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div v-if="social?.profiles" class="flex gap-1.5">
|
||||||
|
<a v-for="({ url, icon }, key) in social.profiles" :key="key" :href="url" target="_blank" rel="noopener noreferrer" class="flex">
|
||||||
|
<UIcon :name="icon" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
const { isLoggedIn } = useAuth();
|
|
||||||
const attrs = computed(() => {
|
|
||||||
return isLoggedIn.value
|
|
||||||
? {
|
|
||||||
label: "Déconnexion",
|
|
||||||
icon: "i-lucide-log-out",
|
|
||||||
}
|
|
||||||
: {
|
|
||||||
label: "Connexion",
|
|
||||||
icon: "i-lucide-log-in",
|
|
||||||
};
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<AuthState>
|
|
||||||
<UButton to="/connexion" v-bind="attrs" color="neutral" />
|
|
||||||
</AuthState>
|
|
||||||
</template>
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
fragment BuilderSections on GroupAbstractBuilder_Fields {
|
fragment BuilderSections on GroupAbstractBuilder_Fields {
|
||||||
sections {
|
sections {
|
||||||
__typename
|
__typename
|
||||||
... on GroupAbstractBuilderSectionsTextBlockLayout {
|
... on GroupAbstractBuilderSectionsHeroSplitLayout { ... SectionHeroSplit }
|
||||||
... SectionTextBlock
|
... on GroupAbstractBuilderSectionsTextBlockLayout { ... SectionTextBlock }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
fragment SectionHeroSplit on GroupAbstractBuilderSectionsHeroSplitLayout {
|
||||||
|
content
|
||||||
|
reverse
|
||||||
|
...AcfMedia
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { tv, type VariantProps } from "tailwind-variants";
|
||||||
|
import type { SectionHeroSplitFragment } from "#graphql/operations";
|
||||||
|
|
||||||
|
const tvSectionHeroSplit = tv({
|
||||||
|
slots: {
|
||||||
|
base: "py-6",
|
||||||
|
container: "container flex flex-col gap-6 items-center",
|
||||||
|
content: "flex-1",
|
||||||
|
media: "w-full basis-1/2",
|
||||||
|
},
|
||||||
|
variants: {
|
||||||
|
reverse: {
|
||||||
|
false: {
|
||||||
|
container: "lg:flex-row",
|
||||||
|
},
|
||||||
|
true: {
|
||||||
|
container: "lg:flex-row-reverse",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
defaultVariants: {
|
||||||
|
reverse: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const props = defineProps<SectionHeroSplitFragment>();
|
||||||
|
const classes = tvSectionHeroSplit({
|
||||||
|
reverse: props.reverse,
|
||||||
|
} as VariantProps<typeof tvSectionHeroSplit>);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<section :class="classes.base()">
|
||||||
|
<div :class="classes.container()">
|
||||||
|
<UiProse :content="content" :class="classes.content()" />
|
||||||
|
<AcfMedia :media="parseAcfMedia(props)" :class="classes.media()" />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
const { data: siteOptions } = await useSiteOptions();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UFooter id="site-footer">
|
<footer class="bg-accented links:link-prose">
|
||||||
<template #left>
|
<div class="container py-6">
|
||||||
<SiteFooterCopyright />
|
<AcfSocial :social="parseAcfSocial(siteOptions)" />
|
||||||
</template>
|
</div>
|
||||||
<template #right>
|
<SiteFooterBottom />
|
||||||
<SiteFooterCredits />
|
</footer>
|
||||||
</template>
|
|
||||||
</UFooter>
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const { connexionButton } = useAuthConnexion();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="bg-inverted text-inverted py-1.5">
|
||||||
|
<div class="container flex flex-col sm:flex-row items-center gap-3">
|
||||||
|
<SiteFooterCopyright class="sm:mr-auto" />
|
||||||
|
<UButton v-bind="connexionButton" color="neutral" variant="link" />
|
||||||
|
<SiteFooterCredits />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { data } = await useAsyncGraphQLQuery("GeneralSettings", undefined, { cache: { ttl: 0 } });
|
const { data: generalSettings } = await useGeneralSettings();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
© {{ new Date().getFullYear() }}
|
© {{ new Date().getFullYear() }}
|
||||||
<span v-if="data.generalSettings?.title">{{ data.generalSettings.title }}</span>
|
<span v-if="generalSettings?.title">{{ generalSettings.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const title = "Moonshine";
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UHeader :title="title">
|
<UHeader mode="slideover">
|
||||||
<template #right>
|
<template #left>
|
||||||
<AuthConnexionButton />
|
<NuxtLink to="/">
|
||||||
|
<SvgSiteLogo class="h-12 w-auto" />
|
||||||
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
</UHeader>
|
</UHeader>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -2,5 +2,6 @@ export function useAuth() {
|
|||||||
const { loggedIn: isLoggedIn, session } = useUserSession();
|
const { loggedIn: isLoggedIn, session } = useUserSession();
|
||||||
const hasRole = (role: string) => session.value?.user?.roles?.includes(role) || false;
|
const hasRole = (role: string) => session.value?.user?.roles?.includes(role) || false;
|
||||||
const isAdmin = computed(() => hasRole("administrator"));
|
const isAdmin = computed(() => hasRole("administrator"));
|
||||||
|
|
||||||
return { isLoggedIn, hasRole, isAdmin };
|
return { isLoggedIn, hasRole, isAdmin };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import type { FormSubmitEvent } from "@nuxt/ui";
|
|||||||
const isRedirecting = ref(false);
|
const isRedirecting = ref(false);
|
||||||
|
|
||||||
export function useAuthConnexion() {
|
export function useAuthConnexion() {
|
||||||
|
const { isLoggedIn } = useAuth();
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
const { fetch: refreshUserSession } = useUserSession();
|
const { fetch: refreshUserSession } = useUserSession();
|
||||||
const routeRedirect = useRoute().query.redirect as string || undefined;
|
const routeRedirect = useRoute().query.redirect as string || undefined;
|
||||||
@@ -67,5 +68,12 @@ export function useAuthConnexion() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { isRedirecting, login, logout };
|
// Dynamic connexion link
|
||||||
|
const connexionButton = computed(() => ({
|
||||||
|
label: isLoggedIn.value ? "Déconnexion" : "Connexion",
|
||||||
|
icon: isLoggedIn.value ? "i-lucide-log-out" : "i-lucide-log-in",
|
||||||
|
to: "/connexion",
|
||||||
|
}));
|
||||||
|
|
||||||
|
return { isRedirecting, login, logout, connexionButton };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export const useGeneralSettings = () => useAsyncGraphQLQuery("GeneralSettings", {}, {
|
||||||
|
transform: ({ generalSettings }) => generalSettings,
|
||||||
|
});
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export const useSiteOptions = () => useAsyncGraphQLQuery("SiteOptions", {}, {
|
||||||
|
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
||||||
|
});
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fragment SiteOptions on GroupSite_Fields {
|
|
||||||
email
|
|
||||||
}
|
|
||||||
|
|
||||||
query OptionsSite {
|
|
||||||
optionsSite {
|
|
||||||
groupSite {
|
|
||||||
... SiteOptions
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
fragment SiteOptions on GroupSiteOptions {
|
||||||
|
email
|
||||||
|
phoneNumber { ... AcfPhone }
|
||||||
|
...AcfSocial
|
||||||
|
links {
|
||||||
|
contact { ... AcfLink}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query SiteOptions {
|
||||||
|
siteOptions {
|
||||||
|
groupSiteOptions {
|
||||||
|
... SiteOptions
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,13 +1,9 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import { fr } from "@nuxt/ui/locale";
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UApp id="layout-default" :locale="fr">
|
<div id="layout-default">
|
||||||
<SiteHeader />
|
<SiteHeader />
|
||||||
<UMain>
|
<UMain>
|
||||||
<slot />
|
<slot />
|
||||||
</UMain>
|
</UMain>
|
||||||
<SiteFooter />
|
<SiteFooter />
|
||||||
</UApp>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// Resolve Node component from URI
|
// Fetch node by URI and handle query errors
|
||||||
const { path: uri } = useRoute();
|
const { path: uri } = useRoute();
|
||||||
const { data } = await useAsyncGraphQLQuery("NodeByUri", { uri });
|
const { data, error } = await useAsyncGraphQLQuery("NodeByUri", { uri });
|
||||||
if (!data.value?.nodeByUri) {
|
if (!data.value?.nodeByUri) {
|
||||||
|
console.error("NodeByUri query error:", error.value);
|
||||||
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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dynamically resolve component based on node type
|
||||||
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 });
|
||||||
|
|||||||
18
wp-content/themes/moonshine/app/utils/acf-link.ts
Normal file
18
wp-content/themes/moonshine/app/utils/acf-link.ts
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import * as z from "zod";
|
||||||
|
import type { AcfLinkFragment } from "#graphql/operations";
|
||||||
|
|
||||||
|
const acfLinkSchema = z.object({
|
||||||
|
title: z.string(),
|
||||||
|
url: z.string(),
|
||||||
|
target: z.string().optional().default(""),
|
||||||
|
});
|
||||||
|
export type AcfLinkOutput = z.infer<typeof acfLinkSchema>;
|
||||||
|
|
||||||
|
export function parseAcfLink(data?: Partial<AcfLinkFragment>) {
|
||||||
|
try {
|
||||||
|
return acfLinkSchema.parse(data);
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
29
wp-content/themes/moonshine/app/utils/acf-media.ts
Normal file
29
wp-content/themes/moonshine/app/utils/acf-media.ts
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import type { AcfMediaFragment } from "#graphql/operations";
|
||||||
|
import * as z from "zod";
|
||||||
|
|
||||||
|
export const acfImageSchema = z.object({
|
||||||
|
src: z.url(),
|
||||||
|
alt: z.string(),
|
||||||
|
mediaDetails: z.object({
|
||||||
|
width: z.number(),
|
||||||
|
height: z.number(),
|
||||||
|
}),
|
||||||
|
objectPosition: z.string().optional().default("center"),
|
||||||
|
});
|
||||||
|
|
||||||
|
export const acfMediaSchema = z.object({
|
||||||
|
image: z.object({
|
||||||
|
node: acfImageSchema,
|
||||||
|
}),
|
||||||
|
aspectRatio: z.enum(["square", "video", "portrait", "auto"]).optional().default("auto"),
|
||||||
|
objectFit: z.enum(["cover", "contain"]).optional().default("cover"),
|
||||||
|
});
|
||||||
|
|
||||||
|
export function parseAcfMedia(data?: Partial<AcfMediaFragment>) {
|
||||||
|
try {
|
||||||
|
return acfMediaSchema.parse(data);
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
32
wp-content/themes/moonshine/app/utils/acf-social.ts
Normal file
32
wp-content/themes/moonshine/app/utils/acf-social.ts
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import * as z from "zod";
|
||||||
|
import type { AcfSocialFragment } from "#graphql/operations";
|
||||||
|
|
||||||
|
const socialProfile = z.object({ url: z.url() }).transform(({ url }) => ({ url, icon: getSocialIcon(url) }));
|
||||||
|
const acfSocialSchema = z.object({
|
||||||
|
profiles: z.array(socialProfile),
|
||||||
|
});
|
||||||
|
export type AcfSocialOutput = z.infer<typeof acfSocialSchema>;
|
||||||
|
|
||||||
|
export function parseAcfSocial(data?: AcfSocialFragment) {
|
||||||
|
try {
|
||||||
|
return acfSocialSchema.parse(data);
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const socialIconMap = {
|
||||||
|
"facebook.com": "i-cib-facebook-f",
|
||||||
|
"twitter.com": "i-cib-twitter",
|
||||||
|
"x.com": "i-cib-twitter",
|
||||||
|
"instagram.com": "i-cib-instagram",
|
||||||
|
"youtube.com": "i-cib-youtube",
|
||||||
|
"linkedin.com": "i-cib-linkedin",
|
||||||
|
"tiktok.com": "i-cib-tiktok",
|
||||||
|
};
|
||||||
|
|
||||||
|
function getSocialIcon(url: string): string {
|
||||||
|
const domain = new URL(url).hostname.toLowerCase().replace(/^www\./, "");
|
||||||
|
return socialIconMap[domain as keyof typeof socialIconMap] ?? "i-lucide-globe";
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -10,4 +10,5 @@ require_once __DIR__ . '/includes/vendors/tinymce.php';
|
|||||||
require_once __DIR__ . '/includes/vendors/wpgraphql.php';
|
require_once __DIR__ . '/includes/vendors/wpgraphql.php';
|
||||||
|
|
||||||
// WPGraphQL
|
// WPGraphQL
|
||||||
|
require_once __DIR__ . '/includes/wpgraphql/media-focus-point.php';
|
||||||
require_once __DIR__ . '/includes/wpgraphql/term-connection.php';
|
require_once __DIR__ . '/includes/wpgraphql/term-connection.php';
|
||||||
|
|||||||
@@ -50,6 +50,16 @@ function moonshine_tiny_mce_before_init( $settings ) {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'title' => __( "List styles", 'moonshine' ),
|
||||||
|
'items' => array(// List styles
|
||||||
|
array(
|
||||||
|
'title' => "Liste horizontale",
|
||||||
|
'selector' => 'ul,ol',
|
||||||
|
'classes' => 'list-horizontal',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'title' => __( "Heading styles", 'moonshine' ),
|
'title' => __( "Heading styles", 'moonshine' ),
|
||||||
'items' => array(// Heading styles
|
'items' => array(// Heading styles
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Expose 'bg_pos_desktop' post meta on MediaItem type in WPGraphQL
|
||||||
|
add_action( 'graphql_register_types', 'leblanc_graphql_register_media_focus_point' );
|
||||||
|
function leblanc_graphql_register_media_focus_point() {
|
||||||
|
register_graphql_field(
|
||||||
|
'MediaItem',
|
||||||
|
'objectPosition',
|
||||||
|
array(
|
||||||
|
'type' => 'String',
|
||||||
|
'description' => 'CSS object-position value from Media Focus Point plugin',
|
||||||
|
'resolve' => static function ( $media_item ) {
|
||||||
|
return get_post_meta( $media_item->databaseId, 'bg_pos_desktop', true );
|
||||||
|
},
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Override TermConnection query args
|
// Override term connection query args
|
||||||
add_filter( 'graphql_term_object_connection_query_args', 'moonshine_graphql_term_object_connection_query_args', 10, 3 );
|
add_filter( 'graphql_term_object_connection_query_args', 'moonshine_graphql_term_object_connection_query_args', 10, 3 );
|
||||||
function moonshine_graphql_term_object_connection_query_args( $query_args, $source, $args ) {
|
function moonshine_graphql_term_object_connection_query_args( $query_args, $source, $args ) {
|
||||||
// Sort by 'order' meta value instead of legacy 'term_order' field
|
// Sort by 'order' meta value instead of legacy 'term_order' field
|
||||||
|
|||||||
@@ -1,2 +1,29 @@
|
|||||||
<?php
|
<?php
|
||||||
return ['project-id-version'=>'Moonshine','report-msgid-bugs-to'=>'','pot-creation-date'=>'2026-01-13 15:52+0000','po-revision-date'=>'2026-01-29 02:55+0000','last-translator'=>'','language-team'=>'Français du Canada','language'=>'fr_CA','plural-forms'=>'nplurals=2; plural=n > 1;','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.8.1; wp-6.9; php-8.3.27','x-domain'=>'moonshine','messages'=>['Heading styles'=>'Styles de titres','Headless WordPress theme based on Nuxt.'=>'Thème Wordpress headless basé sur Nuxt.','https://websimple.com/'=>'https://websimple.com/','Inline styles'=>'Styles de caractères','Link styles'=>'Styles de liens','Main menu'=>'Menu principal','Moonshine'=>'Moonshine','Paragraph styles'=>'Styles de paragraphes','Pascal Martineau '=>'Pascal Martineau ','Semi-bold'=>'Semi-gras']];
|
return array(
|
||||||
|
'project-id-version' => 'Moonshine',
|
||||||
|
'report-msgid-bugs-to' => '',
|
||||||
|
'pot-creation-date' => '2026-01-13 15:52+0000',
|
||||||
|
'po-revision-date' => '2026-01-29 02:55+0000',
|
||||||
|
'last-translator' => '',
|
||||||
|
'language-team' => 'Français du Canada',
|
||||||
|
'language' => 'fr_CA',
|
||||||
|
'plural-forms' => 'nplurals=2; plural=n > 1;',
|
||||||
|
'mime-version' => '1.0',
|
||||||
|
'content-type' => 'text/plain; charset=UTF-8',
|
||||||
|
'content-transfer-encoding' => '8bit',
|
||||||
|
'x-generator' => 'Loco https://localise.biz/',
|
||||||
|
'x-loco-version' => '2.8.1; wp-6.9; php-8.3.27',
|
||||||
|
'x-domain' => 'moonshine',
|
||||||
|
'messages' => array(
|
||||||
|
'Heading styles' => 'Styles de titres',
|
||||||
|
'Headless WordPress theme based on Nuxt.' => 'Thème Wordpress headless basé sur Nuxt.',
|
||||||
|
'https://websimple.com/' => 'https://websimple.com/',
|
||||||
|
'Inline styles' => 'Styles de caractères',
|
||||||
|
'Link styles' => 'Styles de liens',
|
||||||
|
'Main menu' => 'Menu principal',
|
||||||
|
'Moonshine' => 'Moonshine',
|
||||||
|
'Paragraph styles' => 'Styles de paragraphes',
|
||||||
|
'Pascal Martineau ' => 'Pascal Martineau ',
|
||||||
|
'Semi-bold' => 'Semi-gras',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ const wpUrl = process.env.NUXT_WP_URL;
|
|||||||
if (!wpUrl) {
|
if (!wpUrl) {
|
||||||
throw new Error(`NUXT_WP_URL is not defined. Make sure to set it in your build environment variables.`);
|
throw new Error(`NUXT_WP_URL is not defined. Make sure to set it in your build environment variables.`);
|
||||||
}
|
}
|
||||||
|
const wpDomain = new URL(wpUrl).hostname;
|
||||||
|
|
||||||
|
const enableCloudflareImages = Boolean(process.env.ENABLE_CLOUDFLARE_IMAGES);
|
||||||
|
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
@@ -16,6 +19,7 @@ export default defineNuxtConfig({
|
|||||||
modules: [
|
modules: [
|
||||||
"@lewebsimple/nuxt-graphql",
|
"@lewebsimple/nuxt-graphql",
|
||||||
"@nuxt/eslint",
|
"@nuxt/eslint",
|
||||||
|
"@nuxt/image",
|
||||||
"@nuxt/ui",
|
"@nuxt/ui",
|
||||||
"@nuxtjs/device",
|
"@nuxtjs/device",
|
||||||
"@nuxtjs/seo",
|
"@nuxtjs/seo",
|
||||||
@@ -53,26 +57,13 @@ export default defineNuxtConfig({
|
|||||||
preset: "cloudflare_module",
|
preset: "cloudflare_module",
|
||||||
cloudflare: {
|
cloudflare: {
|
||||||
deployConfig: true,
|
deployConfig: true,
|
||||||
nodeCompat: true,
|
|
||||||
wrangler: {
|
wrangler: {
|
||||||
// Project name
|
name: "wp-headless",
|
||||||
name: "moonshine",
|
|
||||||
// Cloudflare Workers settings
|
|
||||||
compatibility_date: "2026-01-27",
|
|
||||||
main: "./.output/server/index.mjs",
|
|
||||||
observability: { enabled: true },
|
|
||||||
preview_urls: false,
|
|
||||||
// Environment variables
|
|
||||||
vars: {
|
vars: {
|
||||||
NODE_ENV: "staging",
|
NODE_ENV: "staging",
|
||||||
NUXT_SITE_URL: siteUrl,
|
NUXT_SITE_URL: siteUrl,
|
||||||
NUXT_WP_URL: wpUrl,
|
NUXT_WP_URL: wpUrl,
|
||||||
},
|
},
|
||||||
// Bindings
|
|
||||||
assets: {
|
|
||||||
binding: "ASSETS",
|
|
||||||
directory: "./.output/public/",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -103,6 +94,13 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
image: {
|
||||||
|
provider: enableCloudflareImages ? "cloudflare" : "none",
|
||||||
|
cloudflare: { baseURL: `${siteUrl}/` },
|
||||||
|
domains: [wpDomain],
|
||||||
|
format: ["avif", "webp"],
|
||||||
|
},
|
||||||
|
|
||||||
robots: {
|
robots: {
|
||||||
sitemap: `${wpUrl}/sitemap_index.xml`,
|
sitemap: `${wpUrl}/sitemap_index.xml`,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,22 +1,31 @@
|
|||||||
{
|
{
|
||||||
"name": "@lewebsimple/moonshine",
|
"name": "@lewebsimple/moonshine",
|
||||||
"description": "Headless WordPress theme based on Nuxt.",
|
"description": "Headless WordPress theme based on Nuxt.",
|
||||||
"version": "0.1.8",
|
"version": "0.1.13",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxt build",
|
"build": "pnpm --sequential /build:.*/",
|
||||||
"editor-style": "pnpx @tailwindcss/cli -i ./app/assets/css/_main.css -o ./editor-style.css --minify",
|
"build:nuxt": "nuxt build",
|
||||||
"dev": "nuxt dev",
|
"dev": "nuxt dev",
|
||||||
"lint": "eslint --fix .",
|
"editor-style": "pnpx @tailwindcss/cli -i ./app/assets/css/_main.css -o ./editor-style.css --minify",
|
||||||
"postinstall": "nuxt prepare",
|
"lint": "eslint . --fix",
|
||||||
"preview": "pnpm run build && wrangler dev --port 3000",
|
"postinstall": "pnpm --sequential /postinstall:.*/",
|
||||||
"release": "pnpm lint && changelogen --noAuthors --release --push",
|
"postinstall:wrangler-types": "wrangler types ./server/types/cloudflare.d.ts",
|
||||||
"typecheck": "nuxt typecheck"
|
"postinstall:nuxt": "nuxt prepare",
|
||||||
|
"preview": "pnpm --sequential /preview:.*/",
|
||||||
|
"preview:build": "pnpm run build",
|
||||||
|
"preview:wrangler-dev": "wrangler dev --port 3000",
|
||||||
|
"release": "pnpm --sequential /release:.*/",
|
||||||
|
"release:lint": "eslint .",
|
||||||
|
"release:typecheck": "nuxt typecheck",
|
||||||
|
"release:changelogen": "changelogen --noAuthors --release --push"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@iconify-json/cib": "^1.2.3",
|
||||||
"@iconify-json/lucide": "^1.2.87",
|
"@iconify-json/lucide": "^1.2.87",
|
||||||
"@lewebsimple/nuxt-graphql": "^0.6.7",
|
"@lewebsimple/nuxt-graphql": "^0.6.8",
|
||||||
|
"@nuxt/image": "^2.0.0",
|
||||||
"@nuxt/ui": "4.3.0",
|
"@nuxt/ui": "4.3.0",
|
||||||
"@nuxtjs/device": "4.0.0",
|
"@nuxtjs/device": "4.0.0",
|
||||||
"@nuxtjs/seo": "^3.4.0",
|
"@nuxtjs/seo": "^3.4.0",
|
||||||
@@ -35,7 +44,7 @@
|
|||||||
"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.4",
|
||||||
"wrangler": "^4.61.0"
|
"wrangler": "^4.61.1"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
|
|||||||
1028
wp-content/themes/moonshine/pnpm-lock.yaml
generated
1028
wp-content/themes/moonshine/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -51,6 +51,31 @@ interface AcfFieldGroupFields {
|
|||||||
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"""ACF Link field"""
|
||||||
|
type AcfLink {
|
||||||
|
"""The target of the link (_blank, etc)"""
|
||||||
|
target: String
|
||||||
|
|
||||||
|
"""The title of the link"""
|
||||||
|
title: String
|
||||||
|
|
||||||
|
"""The url of the link"""
|
||||||
|
url: String
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
Connection between the GroupAbstractBuilderSectionsHeroSplitLayout_Fields type and the MediaItem type
|
||||||
|
"""
|
||||||
|
type AcfMediaItemConnectionEdge implements Edge & MediaItemConnectionEdge & OneToOneConnection {
|
||||||
|
"""
|
||||||
|
Opaque reference to the nodes position in the connection. Value can be used with pagination args.
|
||||||
|
"""
|
||||||
|
cursor: String
|
||||||
|
|
||||||
|
"""The node of the connection, without the edges"""
|
||||||
|
node: MediaItem!
|
||||||
|
}
|
||||||
|
|
||||||
"""Options Page registered by ACF"""
|
"""Options Page registered by ACF"""
|
||||||
interface AcfOptionsPage implements Node {
|
interface AcfOptionsPage implements Node {
|
||||||
"""The globally unique ID for the object"""
|
"""The globally unique ID for the object"""
|
||||||
@@ -66,6 +91,21 @@ interface AcfOptionsPage implements Node {
|
|||||||
parentId: String
|
parentId: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"""ACF Phone field"""
|
||||||
|
type AcfPhone {
|
||||||
|
"""The country code associated with the phone number"""
|
||||||
|
country: String!
|
||||||
|
|
||||||
|
"""The phone number in E.164 format"""
|
||||||
|
e164: String!
|
||||||
|
|
||||||
|
"""The phone number extension, if any"""
|
||||||
|
extension: String
|
||||||
|
|
||||||
|
"""The phone number in national format"""
|
||||||
|
national: String!
|
||||||
|
}
|
||||||
|
|
||||||
"""The Headless Login authentication data."""
|
"""The Headless Login authentication data."""
|
||||||
type AuthenticationData {
|
type AuthenticationData {
|
||||||
"""A new authentication token to use in future requests."""
|
"""A new authentication token to use in future requests."""
|
||||||
@@ -3399,6 +3439,72 @@ type GroupAbstractBuilder implements AcfFieldGroup & AcfFieldGroupFields & Group
|
|||||||
sections: [GroupAbstractBuilderSections_Layout]
|
sections: [GroupAbstractBuilderSections_Layout]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
The "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
|
"""
|
||||||
|
type GroupAbstractBuilderSectionsHeroSplitLayout implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractBuilderSectionsHeroSplitLayout_Fields & GroupAbstractBuilderSections_Layout & GroupAbstractMedia_Fields {
|
||||||
|
"""
|
||||||
|
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
aspectRatio: String!
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "wysiwyg" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
content: String!
|
||||||
|
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "image" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
image: AcfMediaItemConnectionEdge
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
objectFit: String!
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "true_false" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
reverse: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
Interface representing fields of the ACF "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
interface GroupAbstractBuilderSectionsHeroSplitLayout_Fields implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractBuilderSections_Layout & GroupAbstractMedia_Fields {
|
||||||
|
"""
|
||||||
|
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
aspectRatio: String!
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "wysiwyg" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
content: String!
|
||||||
|
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "image" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
image: AcfMediaItemConnectionEdge
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
objectFit: String!
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "true_false" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||||
|
"""
|
||||||
|
reverse: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The "GroupAbstractBuilderSectionsLayoutSettings" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
The "GroupAbstractBuilderSectionsLayoutSettings" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
"""
|
"""
|
||||||
@@ -3487,6 +3593,104 @@ interface GroupAbstractBuilder_Fields implements AcfFieldGroup & AcfFieldGroupFi
|
|||||||
sections: [GroupAbstractBuilderSections_Layout]
|
sections: [GroupAbstractBuilderSections_Layout]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
The "GroupAbstractMedia" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
|
"""
|
||||||
|
type GroupAbstractMedia implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractMedia_Fields {
|
||||||
|
"""
|
||||||
|
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
aspectRatio: String!
|
||||||
|
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "image" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
image: AcfMediaItemConnectionEdge
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
objectFit: String!
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
Interface representing fields of the ACF "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
interface GroupAbstractMedia_Fields implements AcfFieldGroup & AcfFieldGroupFields {
|
||||||
|
"""
|
||||||
|
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
aspectRatio: String!
|
||||||
|
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "image" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
image: AcfMediaItemConnectionEdge
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||||
|
"""
|
||||||
|
objectFit: String!
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
The "GroupAbstractSocial" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
|
"""
|
||||||
|
type GroupAbstractSocial implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractSocial_Fields {
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "repeater" Field Type added to the schema as part of the "GroupAbstractSocial" Field Group
|
||||||
|
"""
|
||||||
|
profiles: [GroupAbstractSocialProfiles]!
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
The "GroupAbstractSocialProfiles" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
|
"""
|
||||||
|
type GroupAbstractSocialProfiles implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractSocialProfiles_Fields {
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "url" Field Type added to the schema as part of the "GroupAbstractSocialProfiles" Field Group
|
||||||
|
"""
|
||||||
|
url: String!
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
Interface representing fields of the ACF "GroupAbstractSocialProfiles" Field Group
|
||||||
|
"""
|
||||||
|
interface GroupAbstractSocialProfiles_Fields implements AcfFieldGroup & AcfFieldGroupFields {
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "url" Field Type added to the schema as part of the "GroupAbstractSocialProfiles" Field Group
|
||||||
|
"""
|
||||||
|
url: String!
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
Interface representing fields of the ACF "GroupAbstractSocial" Field Group
|
||||||
|
"""
|
||||||
|
interface GroupAbstractSocial_Fields implements AcfFieldGroup & AcfFieldGroupFields {
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "repeater" Field Type added to the schema as part of the "GroupAbstractSocial" Field Group
|
||||||
|
"""
|
||||||
|
profiles: [GroupAbstractSocialProfiles]!
|
||||||
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The "GroupLayoutContained" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
The "GroupLayoutContained" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
"""
|
"""
|
||||||
@@ -3560,29 +3764,85 @@ interface GroupPostPage_Fields implements AcfFieldGroup & AcfFieldGroupFields &
|
|||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The "GroupSite" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
The "GroupSiteOptions" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
"""
|
"""
|
||||||
type GroupSite implements AcfFieldGroup & AcfFieldGroupFields & GroupSite_Fields {
|
type GroupSiteOptions implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractSocial_Fields & GroupSiteOptions_Fields {
|
||||||
"""
|
"""
|
||||||
Field of the "email" Field Type added to the schema as part of the "GroupSite" Field Group
|
Field of the "email" Field Type added to the schema as part of the "GroupSiteOptions" Field Group
|
||||||
"""
|
"""
|
||||||
email: String!
|
email: String!
|
||||||
|
|
||||||
"""The name of the field group"""
|
"""The name of the field group"""
|
||||||
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "group" Field Type added to the schema as part of the "GroupSiteOptions" Field Group
|
||||||
|
"""
|
||||||
|
links: GroupSiteOptionsLinks
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "phone" Field Type added to the schema as part of the "GroupSiteOptions" Field Group
|
||||||
|
"""
|
||||||
|
phoneNumber: AcfPhone!
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "repeater" Field Type added to the schema as part of the "GroupAbstractSocial" Field Group
|
||||||
|
"""
|
||||||
|
profiles: [GroupAbstractSocialProfiles]!
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
The "GroupSiteOptionsLinks" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||||
|
"""
|
||||||
|
type GroupSiteOptionsLinks implements AcfFieldGroup & AcfFieldGroupFields & GroupSiteOptionsLinks_Fields {
|
||||||
|
"""
|
||||||
|
Field of the "link" Field Type added to the schema as part of the "GroupSiteOptionsLinks" Field Group
|
||||||
|
"""
|
||||||
|
contact: AcfLink!
|
||||||
|
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Interface representing fields of the ACF "GroupSite" Field Group
|
Interface representing fields of the ACF "GroupSiteOptionsLinks" Field Group
|
||||||
"""
|
"""
|
||||||
interface GroupSite_Fields implements AcfFieldGroup & AcfFieldGroupFields {
|
interface GroupSiteOptionsLinks_Fields implements AcfFieldGroup & AcfFieldGroupFields {
|
||||||
"""
|
"""
|
||||||
Field of the "email" Field Type added to the schema as part of the "GroupSite" Field Group
|
Field of the "link" Field Type added to the schema as part of the "GroupSiteOptionsLinks" Field Group
|
||||||
|
"""
|
||||||
|
contact: AcfLink!
|
||||||
|
|
||||||
|
"""The name of the field group"""
|
||||||
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
}
|
||||||
|
|
||||||
|
"""
|
||||||
|
Interface representing fields of the ACF "GroupSiteOptions" Field Group
|
||||||
|
"""
|
||||||
|
interface GroupSiteOptions_Fields implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractSocial_Fields {
|
||||||
|
"""
|
||||||
|
Field of the "email" Field Type added to the schema as part of the "GroupSiteOptions" Field Group
|
||||||
"""
|
"""
|
||||||
email: String!
|
email: String!
|
||||||
|
|
||||||
"""The name of the field group"""
|
"""The name of the field group"""
|
||||||
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "group" Field Type added to the schema as part of the "GroupSiteOptions" Field Group
|
||||||
|
"""
|
||||||
|
links: GroupSiteOptionsLinks
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "phone" Field Type added to the schema as part of the "GroupSiteOptions" Field Group
|
||||||
|
"""
|
||||||
|
phoneNumber: AcfPhone!
|
||||||
|
|
||||||
|
"""
|
||||||
|
Field of the "repeater" Field Type added to the schema as part of the "GroupAbstractSocial" Field Group
|
||||||
|
"""
|
||||||
|
profiles: [GroupAbstractSocialProfiles]!
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@@ -4602,6 +4862,9 @@ type MediaItem implements ContentNode & DatabaseIdentifier & HierarchicalContent
|
|||||||
"""
|
"""
|
||||||
modifiedGmt: String
|
modifiedGmt: String
|
||||||
|
|
||||||
|
"""CSS object-position value from Media Focus Point plugin"""
|
||||||
|
objectPosition: String
|
||||||
|
|
||||||
"""The parent of the node. The parent object can be of various types"""
|
"""The parent of the node. The parent object can be of various types"""
|
||||||
parent: HierarchicalContentNodeToParentContentNodeConnectionEdge
|
parent: HierarchicalContentNodeToParentContentNodeConnectionEdge
|
||||||
|
|
||||||
@@ -6049,23 +6312,6 @@ interface OneToOneConnection implements Edge {
|
|||||||
node: Node!
|
node: Node!
|
||||||
}
|
}
|
||||||
|
|
||||||
type OptionsSite implements AcfOptionsPage & Node & WithAcfGroupSite {
|
|
||||||
"""Fields of the GroupSite ACF Field Group"""
|
|
||||||
groupSite: GroupSite
|
|
||||||
|
|
||||||
"""The globally unique ID for the object"""
|
|
||||||
id: ID!
|
|
||||||
|
|
||||||
""""""
|
|
||||||
menuTitle: String
|
|
||||||
|
|
||||||
""""""
|
|
||||||
pageTitle: String
|
|
||||||
|
|
||||||
""""""
|
|
||||||
parentId: String
|
|
||||||
}
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Sort direction for ordered results. Determines whether items are returned in ascending or descending order.
|
Sort direction for ordered results. Determines whether items are returned in ascending or descending order.
|
||||||
"""
|
"""
|
||||||
@@ -8732,7 +8978,7 @@ interface Previewable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
"""The root entry point into the Graph"""
|
"""The root entry point into the Graph"""
|
||||||
type Query implements WithAcfOptionsPageOptionsSite {
|
type Query implements WithAcfOptionsPageSiteOptions {
|
||||||
"""Entry point to get all settings for the site"""
|
"""Entry point to get all settings for the site"""
|
||||||
allSettings: Settings
|
allSettings: Settings
|
||||||
|
|
||||||
@@ -9017,9 +9263,6 @@ type Query implements WithAcfOptionsPageOptionsSite {
|
|||||||
uri: String!
|
uri: String!
|
||||||
): UniformResourceIdentifiable
|
): UniformResourceIdentifiable
|
||||||
|
|
||||||
""""""
|
|
||||||
optionsSite: OptionsSite
|
|
||||||
|
|
||||||
"""An object of the page Type. """
|
"""An object of the page Type. """
|
||||||
page(
|
page(
|
||||||
"""
|
"""
|
||||||
@@ -9244,6 +9487,9 @@ type Query implements WithAcfOptionsPageOptionsSite {
|
|||||||
where: RootQueryToRevisionsConnectionWhereArgs
|
where: RootQueryToRevisionsConnectionWhereArgs
|
||||||
): RootQueryToRevisionsConnection
|
): RootQueryToRevisionsConnection
|
||||||
|
|
||||||
|
""""""
|
||||||
|
siteOptions: SiteOptions
|
||||||
|
|
||||||
"""A 0bject"""
|
"""A 0bject"""
|
||||||
tag(
|
tag(
|
||||||
"""The globally unique identifier of the object."""
|
"""The globally unique identifier of the object."""
|
||||||
@@ -13480,6 +13726,23 @@ type Settings {
|
|||||||
writingSettingsUseSmilies: Boolean
|
writingSettingsUseSmilies: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SiteOptions implements AcfOptionsPage & Node & WithAcfGroupSiteOptions {
|
||||||
|
"""Fields of the GroupSiteOptions ACF Field Group"""
|
||||||
|
groupSiteOptions: GroupSiteOptions
|
||||||
|
|
||||||
|
"""The globally unique ID for the object"""
|
||||||
|
id: ID!
|
||||||
|
|
||||||
|
""""""
|
||||||
|
menuTitle: String
|
||||||
|
|
||||||
|
""""""
|
||||||
|
pageTitle: String
|
||||||
|
|
||||||
|
""""""
|
||||||
|
parentId: String
|
||||||
|
}
|
||||||
|
|
||||||
"""The Login client options for the siteToken provider."""
|
"""The Login client options for the siteToken provider."""
|
||||||
type SiteTokenClientOptions implements LoginClientOptions {
|
type SiteTokenClientOptions implements LoginClientOptions {
|
||||||
"""
|
"""
|
||||||
@@ -15623,6 +15886,9 @@ enum UserRoleEnum {
|
|||||||
|
|
||||||
"""User role with specific capabilities"""
|
"""User role with specific capabilities"""
|
||||||
SUBSCRIBER
|
SUBSCRIBER
|
||||||
|
|
||||||
|
"""User role with specific capabilities"""
|
||||||
|
TRANSLATOR
|
||||||
}
|
}
|
||||||
|
|
||||||
"""Connection between the User type and the Comment type"""
|
"""Connection between the User type and the Comment type"""
|
||||||
@@ -16428,17 +16694,17 @@ interface WithAcfGroupPostPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Provides access to fields of the "GroupSite" ACF Field Group via the "groupSite" field
|
Provides access to fields of the "GroupSiteOptions" ACF Field Group via the "groupSiteOptions" field
|
||||||
"""
|
"""
|
||||||
interface WithAcfGroupSite {
|
interface WithAcfGroupSiteOptions {
|
||||||
"""Fields of the GroupSite ACF Field Group"""
|
"""Fields of the GroupSiteOptions ACF Field Group"""
|
||||||
groupSite: GroupSite
|
groupSiteOptions: GroupSiteOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
"""Access point for the "OptionsSite" ACF Options Page"""
|
"""Access point for the "SiteOptions" ACF Options Page"""
|
||||||
interface WithAcfOptionsPageOptionsSite {
|
interface WithAcfOptionsPageSiteOptions {
|
||||||
""""""
|
""""""
|
||||||
optionsSite: OptionsSite
|
siteOptions: SiteOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
"""The writing setting type"""
|
"""The writing setting type"""
|
||||||
|
|||||||
9
wp-content/themes/moonshine/server/types/h3.d.ts
vendored
Normal file
9
wp-content/themes/moonshine/server/types/h3.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import "h3";
|
||||||
|
|
||||||
|
declare module "h3" {
|
||||||
|
interface H3EventContext {
|
||||||
|
cloudflare: {
|
||||||
|
env: Cloudflare.Env;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
16
wp-content/themes/moonshine/wrangler.json
Normal file
16
wp-content/themes/moonshine/wrangler.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/wrangler/config-schema.json",
|
||||||
|
"main": "./output/server/index.mjs",
|
||||||
|
"compatibility_date": "2026-01-27",
|
||||||
|
"compatibility_flags": [
|
||||||
|
"nodejs_compat"
|
||||||
|
],
|
||||||
|
"observability": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"preview_urls": false,
|
||||||
|
"assets": {
|
||||||
|
"binding": "ASSETS",
|
||||||
|
"directory": "../public"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user