Compare commits
24 Commits
v0.1.11
...
b0c5e4c20f
| Author | SHA1 | Date | |
|---|---|---|---|
| b0c5e4c20f | |||
| 2304d855b7 | |||
| b45d3a02f0 | |||
| e9d6ca2f96 | |||
| fc6168e5a4 | |||
| 3ec98fdc2d | |||
| 71a48de945 | |||
| 289b777cad | |||
| 18306c28b9 | |||
| 36e7d8ad8b | |||
| fdf32bbc78 | |||
| 2c44d8137c | |||
| db831700f0 | |||
| 9bb09b89d9 | |||
| 58dbcdd25a | |||
| 8ae6dafb62 | |||
| faf39ca182 | |||
| 8d350bb092 | |||
| 4338028c60 | |||
| ab563a7b37 | |||
| 2cfc1a0047 | |||
| 98e8d971e8 | |||
| 87be06ecea | |||
| 28f6e1ae7c |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,6 +8,7 @@
|
|||||||
!/README.md
|
!/README.md
|
||||||
!/composer.*
|
!/composer.*
|
||||||
!/phpcs.xml
|
!/phpcs.xml
|
||||||
|
!/project.code-workspace
|
||||||
!/wp-content/
|
!/wp-content/
|
||||||
/wp-content/*
|
/wp-content/*
|
||||||
|
|
||||||
|
|||||||
20
.vscode/settings.json
vendored
20
.vscode/settings.json
vendored
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"editor.quickSuggestions": {
|
|
||||||
"strings": "on"
|
|
||||||
},
|
|
||||||
"files.associations": {
|
|
||||||
"*.css": "tailwindcss"
|
|
||||||
},
|
|
||||||
"graphql-config.load.rootDir": "wp-content/themes/moonshine",
|
|
||||||
"tailwindCSS.classAttributes": [
|
|
||||||
"class",
|
|
||||||
"ui"
|
|
||||||
],
|
|
||||||
"tailwindCSS.experimental.classRegex": [
|
|
||||||
[
|
|
||||||
"ui:\\s*{([^)]*)\\s*}",
|
|
||||||
"(?:'|\"|`)([^']*)(?:'|\"|`)"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"typescript.tsdk": "wp-content/themes/moonshine/node_modules/typescript/lib"
|
|
||||||
}
|
|
||||||
44
composer.lock
generated
44
composer.lock
generated
@@ -315,17 +315,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/acf-phone",
|
"name": "lewebsimple/acf-phone",
|
||||||
"version": "v3.1.0",
|
"version": "v3.1.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/lewebsimple/acf-phone.git",
|
"url": "https://github.com/lewebsimple/acf-phone.git",
|
||||||
"reference": "cf4c6440e0c2cdf7e422423bb629014204e721bf"
|
"reference": "f9cb86eacb26eb92a40eb5e4366cff3e58e01f47"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/acf-phone/lewebsimple-acf-phone-cf4c6440e0c2cdf7e422423bb629014204e721bf-zip-439080.zip",
|
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/acf-phone/lewebsimple-acf-phone-f9cb86eacb26eb92a40eb5e4366cff3e58e01f47-zip-606a09.zip",
|
||||||
"reference": "cf4c6440e0c2cdf7e422423bb629014204e721bf",
|
"reference": "f9cb86eacb26eb92a40eb5e4366cff3e58e01f47",
|
||||||
"shasum": "f9d7cbcf27985656245285e5bc035578621f1a69"
|
"shasum": "2bbbc7d7f917e278d7d913bcb9da07a30f4662e6"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"lewebsimple/wp-phpcs-ruleset": "*",
|
"lewebsimple/wp-phpcs-ruleset": "*",
|
||||||
@@ -345,10 +345,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/lewebsimple/acf-phone/tree/v3.1.0",
|
"source": "https://github.com/lewebsimple/acf-phone/tree/v3.1.1",
|
||||||
"issues": "https://github.com/lewebsimple/acf-phone/issues"
|
"issues": "https://github.com/lewebsimple/acf-phone/issues"
|
||||||
},
|
},
|
||||||
"time": "2026-01-30T15:01:34+00:00"
|
"time": "2026-02-10T17:56:38+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/advanced-custom-fields-pro",
|
"name": "lewebsimple/advanced-custom-fields-pro",
|
||||||
@@ -369,20 +369,20 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/kaliroots",
|
"name": "lewebsimple/kaliroots",
|
||||||
"version": "v0.9.18",
|
"version": "v0.9.19",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@gitea.websimple.com:222/wp-themes/kaliroots.git",
|
"url": "ssh://git@gitea.websimple.com:222/wp-themes/kaliroots.git",
|
||||||
"reference": "720554dff6ea45216b52187b7e8d5b87200d55a4"
|
"reference": "40789468328e126cec9bd2f85a6a9923663a8d91"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/kaliroots/lewebsimple-kaliroots-v0.9.18-77d6cf.zip",
|
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/kaliroots/lewebsimple-kaliroots-v0.9.19-12b0b3.zip",
|
||||||
"reference": "720554dff6ea45216b52187b7e8d5b87200d55a4",
|
"reference": "40789468328e126cec9bd2f85a6a9923663a8d91",
|
||||||
"shasum": "fd6aea0ef1bc160bc183eb7239cc9adf2fd88169"
|
"shasum": "0a4cadbbc7719ee7de94b5cff4b2bb9c436f6416"
|
||||||
},
|
},
|
||||||
"type": "wordpress-theme",
|
"type": "wordpress-theme",
|
||||||
"time": "2025-10-10T12:11:22+00:00"
|
"time": "2026-02-09T15:07:56+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/wp-graphql-headless-login",
|
"name": "lewebsimple/wp-graphql-headless-login",
|
||||||
@@ -457,15 +457,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/media-focus-point",
|
"name": "wpackagist-plugin/media-focus-point",
|
||||||
"version": "2.0.4",
|
"version": "2.0.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/media-focus-point/",
|
"url": "https://plugins.svn.wordpress.org/media-focus-point/",
|
||||||
"reference": "tags/2.0.4"
|
"reference": "tags/2.0.5"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/media-focus-point.2.0.4.zip"
|
"url": "https://downloads.wordpress.org/plugin/media-focus-point.2.0.5.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
@@ -475,15 +475,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/seo-by-rank-math",
|
"name": "wpackagist-plugin/seo-by-rank-math",
|
||||||
"version": "1.0.263",
|
"version": "1.0.264",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/seo-by-rank-math/",
|
"url": "https://plugins.svn.wordpress.org/seo-by-rank-math/",
|
||||||
"reference": "tags/1.0.263"
|
"reference": "tags/1.0.264"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/seo-by-rank-math.1.0.263.zip"
|
"url": "https://downloads.wordpress.org/plugin/seo-by-rank-math.1.0.264.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
@@ -493,15 +493,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/wp-graphql",
|
"name": "wpackagist-plugin/wp-graphql",
|
||||||
"version": "2.7.0",
|
"version": "2.8.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/wp-graphql/",
|
"url": "https://plugins.svn.wordpress.org/wp-graphql/",
|
||||||
"reference": "tags/2.7.0"
|
"reference": "tags/2.8.0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/wp-graphql.2.7.0.zip"
|
"url": "https://downloads.wordpress.org/plugin/wp-graphql.2.8.0.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
|
|||||||
30
project.code-workspace
Normal file
30
project.code-workspace
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"name": "Nuxt",
|
||||||
|
"path": "wp-content/themes/moonshine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "WordPress",
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"files.associations": {
|
||||||
|
"*.css": "tailwindcss"
|
||||||
|
},
|
||||||
|
"editor.quickSuggestions": {
|
||||||
|
"strings": "on"
|
||||||
|
},
|
||||||
|
"tailwindCSS.classAttributes": [
|
||||||
|
"class",
|
||||||
|
"ui"
|
||||||
|
],
|
||||||
|
"tailwindCSS.experimental.classRegex": [
|
||||||
|
[
|
||||||
|
"ui:\\s*{([^)]*)\\s*}",
|
||||||
|
"(?:'|\"|`)([^']*)(?:'|\"|`)"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
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
|
||||||
|
|||||||
19
wp-content/themes/moonshine/.oxfmtrc.json
Normal file
19
wp-content/themes/moonshine/.oxfmtrc.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||||
|
"experimentalSortImports": {
|
||||||
|
"groups": [
|
||||||
|
["side-effect"],
|
||||||
|
["builtin"],
|
||||||
|
["external", "type-external"],
|
||||||
|
["internal", "type-internal"],
|
||||||
|
["parent", "type-parent"],
|
||||||
|
["sibling", "type-sibling"],
|
||||||
|
["index", "type-index"]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"experimentalTailwindcss": {
|
||||||
|
"attributes": ["class"],
|
||||||
|
"functions": ["tv"],
|
||||||
|
"stylesheet": "./app/assets/css/_main.css"
|
||||||
|
}
|
||||||
|
}
|
||||||
22
wp-content/themes/moonshine/.oxlintrc.json
Normal file
22
wp-content/themes/moonshine/.oxlintrc.json
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||||
|
"categories": {},
|
||||||
|
"env": {
|
||||||
|
"builtin": true,
|
||||||
|
"browser": true,
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"globals": {},
|
||||||
|
"ignorePatterns": [],
|
||||||
|
"plugins": ["import", "vue"],
|
||||||
|
"rules": {
|
||||||
|
"vue/define-emits-declaration": ["error", "type-based"],
|
||||||
|
"vue/define-props-declaration": ["error", "type-based"],
|
||||||
|
"vue/require-typed-ref": "error"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"vitest": {
|
||||||
|
"typecheck": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3
wp-content/themes/moonshine/.vscode/extensions.json
vendored
Normal file
3
wp-content/themes/moonshine/.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"recommendations": ["oxc.oxc-vscode"]
|
||||||
|
}
|
||||||
25
wp-content/themes/moonshine/.vscode/launch.json
vendored
Normal file
25
wp-content/themes/moonshine/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Nuxt server",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/node_modules/nuxt/bin/nuxt.mjs",
|
||||||
|
"runtimeArgs": ["--inspect"],
|
||||||
|
"args": ["dev"],
|
||||||
|
"autoAttachChildProcesses": true,
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"skipFiles": ["<node_internals>/**"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nuxt client",
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"trace": false,
|
||||||
|
"url": "http://localhost:3000",
|
||||||
|
"userDataDir": "${env:HOME}/.vscode/chromium-profile"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
35
wp-content/themes/moonshine/.vscode/settings.json
vendored
Normal file
35
wp-content/themes/moonshine/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"[css]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[javascript]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[jsonc]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[postcss]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[scss]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[vue]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll": "always"
|
||||||
|
},
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.quickSuggestions": {
|
||||||
|
"strings": "on"
|
||||||
|
},
|
||||||
|
"eslint.enable": false
|
||||||
|
}
|
||||||
@@ -1,5 +1,33 @@
|
|||||||
# 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
|
## v0.1.11
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.10...v0.1.11)
|
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.10...v0.1.11)
|
||||||
@@ -162,7 +190,6 @@
|
|||||||
|
|
||||||
## v0.1.1
|
## v0.1.1
|
||||||
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
### 🚀 Enhancements
|
||||||
|
|
||||||
- Initial Moonshine theme - Headless WordPress theme based on Nuxt (b3134fe)
|
- Initial Moonshine theme - Headless WordPress theme based on Nuxt (b3134fe)
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ Thème WordPress en headless basé sur Nuxt.
|
|||||||
|
|
||||||
## Variables d'environnement
|
## Variables d'environnement
|
||||||
|
|
||||||
| Nom | Description | Exemple | Requise |
|
| Nom | Description | Exemple | Requise |
|
||||||
|-----|-------------|---------|---------|
|
| --------------- | ------------------------ | ----------------------- | ------- |
|
||||||
| `NUXT_SITE_ENV` | Environnement | staging \| production | ➖ |
|
| `NUXT_SITE_ENV` | Environnement | staging \| production | ➖ |
|
||||||
| `NUXT_SITE_URL` | URL du frontend Nuxt | https://www.example.com | ➖ |
|
| `NUXT_SITE_URL` | URL du frontend Nuxt | https://www.example.com | ➖ |
|
||||||
| `NUXT_WP_URL` | URL du backend WordPress | https://wp.exemple.com | ✅ |
|
| `NUXT_WP_URL` | URL du backend WordPress | https://wp.exemple.com | ✅ |
|
||||||
|
|
||||||
## Secrets
|
## Secrets
|
||||||
|
|
||||||
|
|||||||
@@ -1,252 +1,244 @@
|
|||||||
{
|
{
|
||||||
"key": "group_abstract_builder",
|
"key": "group_abstract_builder",
|
||||||
"title": "Abstract - Builder",
|
"title": "Abstract - Builder",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"key": "field_builder_sections",
|
"key": "field_builder_sections",
|
||||||
"label": "Section(s)",
|
"label": "Section(s)",
|
||||||
"name": "sections",
|
"name": "sections",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "flexible_content",
|
"type": "flexible_content",
|
||||||
"instructions": "",
|
"instructions": "",
|
||||||
"required": 0,
|
"required": 0,
|
||||||
"conditional_logic": 0,
|
"conditional_logic": 0,
|
||||||
"wrapper": {
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"acfe_flexible_advanced": 1,
|
||||||
|
"acfe_flexible_stylised_button": 0,
|
||||||
|
"acfe_flexible_hide_empty_message": 0,
|
||||||
|
"acfe_flexible_empty_message": "",
|
||||||
|
"acfe_flexible_layouts_templates": 0,
|
||||||
|
"acfe_flexible_layouts_placeholder": 0,
|
||||||
|
"acfe_flexible_layouts_thumbnails": 0,
|
||||||
|
"acfe_flexible_async": [],
|
||||||
|
"acfe_flexible_add_actions": ["copy", "title", "toggle"],
|
||||||
|
"acfe_flexible_remove_button": [],
|
||||||
|
"acfe_flexible_remove_top_actions": [],
|
||||||
|
"acfe_flexible_modal_edit": {
|
||||||
|
"acfe_flexible_modal_edit_enabled": "1",
|
||||||
|
"acfe_flexible_modal_edit_size": "xlarge"
|
||||||
|
},
|
||||||
|
"acfe_flexible_modal": {
|
||||||
|
"acfe_flexible_modal_enabled": "0",
|
||||||
|
"acfe_flexible_modal_title": false,
|
||||||
|
"acfe_flexible_modal_size": "xlarge",
|
||||||
|
"acfe_flexible_modal_col": "4",
|
||||||
|
"acfe_flexible_modal_categories": false
|
||||||
|
},
|
||||||
|
"acfe_flexible_modal_settings": {
|
||||||
|
"acfe_flexible_modal_settings_enabled": "1",
|
||||||
|
"acfe_flexible_modal_settings_size": "large",
|
||||||
|
"acfe_flexible_modal_settings_close": "1",
|
||||||
|
"acfe_flexible_modal_settings_close_label": ""
|
||||||
|
},
|
||||||
|
"layouts": {
|
||||||
|
"layout_6852f761e95b0": {
|
||||||
|
"key": "layout_6852f761e95b0",
|
||||||
|
"name": "text_block",
|
||||||
|
"label": "Bloc de texte",
|
||||||
|
"display": "block",
|
||||||
|
"sub_fields": [
|
||||||
|
{
|
||||||
|
"key": "field_68eeceb62b8a6",
|
||||||
|
"label": "Contenu",
|
||||||
|
"name": "content",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "wysiwyg",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
"width": "",
|
"width": "",
|
||||||
"class": "",
|
"class": "",
|
||||||
"id": ""
|
"id": ""
|
||||||
},
|
},
|
||||||
"acfe_flexible_advanced": 1,
|
"default_value": "",
|
||||||
"acfe_flexible_stylised_button": 0,
|
"acfe_wysiwyg_height": 300,
|
||||||
"acfe_flexible_hide_empty_message": 0,
|
"acfe_wysiwyg_max_height": "",
|
||||||
"acfe_flexible_empty_message": "",
|
"acfe_wysiwyg_valid_elements": "",
|
||||||
"acfe_flexible_layouts_templates": 0,
|
"acfe_wysiwyg_custom_style": "",
|
||||||
"acfe_flexible_layouts_placeholder": 0,
|
"acfe_wysiwyg_disable_wp_style": 0,
|
||||||
"acfe_flexible_layouts_thumbnails": 0,
|
"acfe_wysiwyg_autoresize": 0,
|
||||||
"acfe_flexible_async": [],
|
"acfe_wysiwyg_disable_resize": 0,
|
||||||
"acfe_flexible_add_actions": [
|
"acfe_wysiwyg_remove_path": 0,
|
||||||
"copy",
|
"acfe_wysiwyg_menubar": 0,
|
||||||
"title",
|
"acfe_wysiwyg_transparent": 0,
|
||||||
"toggle"
|
"acfe_wysiwyg_merge_toolbar": 0,
|
||||||
],
|
"acfe_wysiwyg_custom_toolbar": 0,
|
||||||
"acfe_flexible_remove_button": [],
|
"required_message": "",
|
||||||
"acfe_flexible_remove_top_actions": [],
|
"allow_in_bindings": 0,
|
||||||
"acfe_flexible_modal_edit": {
|
"tabs": "all",
|
||||||
"acfe_flexible_modal_edit_enabled": "1",
|
"toolbar": "full",
|
||||||
"acfe_flexible_modal_edit_size": "xlarge"
|
"media_upload": 1,
|
||||||
},
|
"delay": 0,
|
||||||
"acfe_flexible_modal": {
|
"show_in_graphql": 1,
|
||||||
"acfe_flexible_modal_enabled": "0",
|
"graphql_description": "",
|
||||||
"acfe_flexible_modal_title": false,
|
"graphql_field_name": "content",
|
||||||
"acfe_flexible_modal_size": "xlarge",
|
"graphql_non_null": 1,
|
||||||
"acfe_flexible_modal_col": "4",
|
"acfe_wysiwyg_auto_init": 0,
|
||||||
"acfe_flexible_modal_categories": false
|
"acfe_wysiwyg_min_height": 300,
|
||||||
},
|
"acfe_wysiwyg_toolbar_buttons": []
|
||||||
"acfe_flexible_modal_settings": {
|
|
||||||
"acfe_flexible_modal_settings_enabled": "1",
|
|
||||||
"acfe_flexible_modal_settings_size": "large",
|
|
||||||
"acfe_flexible_modal_settings_close": "1",
|
|
||||||
"acfe_flexible_modal_settings_close_label": ""
|
|
||||||
},
|
|
||||||
"layouts": {
|
|
||||||
"layout_6852f761e95b0": {
|
|
||||||
"key": "layout_6852f761e95b0",
|
|
||||||
"name": "text_block",
|
|
||||||
"label": "Bloc de texte",
|
|
||||||
"display": "block",
|
|
||||||
"sub_fields": [
|
|
||||||
{
|
|
||||||
"key": "field_68eeceb62b8a6",
|
|
||||||
"label": "Contenu",
|
|
||||||
"name": "content",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "wysiwyg",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"default_value": "",
|
|
||||||
"acfe_wysiwyg_height": 300,
|
|
||||||
"acfe_wysiwyg_max_height": "",
|
|
||||||
"acfe_wysiwyg_valid_elements": "",
|
|
||||||
"acfe_wysiwyg_custom_style": "",
|
|
||||||
"acfe_wysiwyg_disable_wp_style": 0,
|
|
||||||
"acfe_wysiwyg_autoresize": 0,
|
|
||||||
"acfe_wysiwyg_disable_resize": 0,
|
|
||||||
"acfe_wysiwyg_remove_path": 0,
|
|
||||||
"acfe_wysiwyg_menubar": 0,
|
|
||||||
"acfe_wysiwyg_transparent": 0,
|
|
||||||
"acfe_wysiwyg_merge_toolbar": 0,
|
|
||||||
"acfe_wysiwyg_custom_toolbar": 0,
|
|
||||||
"required_message": "",
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"tabs": "all",
|
|
||||||
"toolbar": "full",
|
|
||||||
"media_upload": 1,
|
|
||||||
"delay": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "content",
|
|
||||||
"graphql_non_null": 1,
|
|
||||||
"acfe_wysiwyg_auto_init": 0,
|
|
||||||
"acfe_wysiwyg_min_height": 300,
|
|
||||||
"acfe_wysiwyg_toolbar_buttons": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"min": "",
|
|
||||||
"max": "",
|
|
||||||
"acfe_flexible_modal_edit_size": "",
|
|
||||||
"acfe_flexible_settings": [
|
|
||||||
"group_layout_contained"
|
|
||||||
],
|
|
||||||
"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
|
|
||||||
},
|
|
||||||
"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": "",
|
|
||||||
"max": "",
|
|
||||||
"button_label": "Ajouter un élément",
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "sections",
|
|
||||||
"graphql_non_null": 0,
|
|
||||||
"acfe_flexible_layouts_previews": false,
|
|
||||||
"acfe_flexible_close_button_label": "",
|
|
||||||
"acfe_flexible_layouts_state": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"location": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"param": "abstract"
|
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
],
|
"min": "",
|
||||||
"menu_order": 0,
|
"max": "",
|
||||||
"position": "acf_after_title",
|
"acfe_flexible_modal_edit_size": "",
|
||||||
"style": "seamless",
|
"acfe_flexible_settings": [
|
||||||
"label_placement": "top",
|
"group_layout_colored",
|
||||||
"instruction_placement": "label",
|
"group_layout_contained",
|
||||||
"hide_on_screen": [
|
"group_layout_padded"
|
||||||
"the_content"
|
],
|
||||||
],
|
"acfe_flexible_settings_size": "large",
|
||||||
"active": true,
|
"acfe_flexible_render_template": false,
|
||||||
"description": "",
|
"acfe_flexible_render_style": false,
|
||||||
"show_in_rest": 0,
|
"acfe_flexible_render_script": false,
|
||||||
"display_title": "",
|
"acfe_flexible_thumbnail": false,
|
||||||
"acfe_autosync": [
|
"acfe_flexible_category": false
|
||||||
"json"
|
},
|
||||||
],
|
"layout_697caf9a3e05b": {
|
||||||
"acfe_form": 0,
|
"key": "layout_697caf9a3e05b",
|
||||||
"show_in_graphql": 1,
|
"name": "hero_split",
|
||||||
"graphql_field_name": "GroupAbstractBuilder",
|
"label": "Héro en moitié",
|
||||||
"map_graphql_types_from_location_rules": 0,
|
"display": "block",
|
||||||
"graphql_types": "",
|
"sub_fields": [
|
||||||
"acfe_meta": "",
|
{
|
||||||
"acfe_note": "",
|
"key": "field_697cafb13e05d",
|
||||||
"modified": 1769779666
|
"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": ["group_layout_colored", "group_layout_padded"],
|
||||||
|
"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": "",
|
||||||
|
"max": "",
|
||||||
|
"button_label": "Ajouter un élément",
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "sections",
|
||||||
|
"graphql_non_null": 0,
|
||||||
|
"acfe_flexible_layouts_previews": false,
|
||||||
|
"acfe_flexible_close_button_label": "",
|
||||||
|
"acfe_flexible_layouts_state": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"location": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"param": "abstract"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"menu_order": 0,
|
||||||
|
"position": "acf_after_title",
|
||||||
|
"style": "seamless",
|
||||||
|
"label_placement": "top",
|
||||||
|
"instruction_placement": "label",
|
||||||
|
"hide_on_screen": ["the_content"],
|
||||||
|
"active": true,
|
||||||
|
"description": "",
|
||||||
|
"show_in_rest": 0,
|
||||||
|
"display_title": "",
|
||||||
|
"acfe_autosync": ["json"],
|
||||||
|
"acfe_form": 0,
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_field_name": "GroupAbstractBuilder",
|
||||||
|
"map_graphql_types_from_location_rules": 0,
|
||||||
|
"graphql_types": "",
|
||||||
|
"acfe_meta": "",
|
||||||
|
"acfe_note": "",
|
||||||
|
"modified": 1770740697
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,123 +1,121 @@
|
|||||||
{
|
{
|
||||||
"key": "group_abstract_media",
|
"key": "group_abstract_media",
|
||||||
"title": "Abstract - Media",
|
"title": "Abstract - Media",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"key": "field_697caec68536d",
|
"key": "field_697caec68536d",
|
||||||
"label": "Image",
|
"label": "Image",
|
||||||
"name": "image",
|
"name": "image",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "image",
|
"type": "image",
|
||||||
"instructions": "",
|
"instructions": "",
|
||||||
"required": 1,
|
"required": 1,
|
||||||
"conditional_logic": 0,
|
"conditional_logic": 0,
|
||||||
"wrapper": {
|
"wrapper": {
|
||||||
"width": "33",
|
"width": "33",
|
||||||
"class": "",
|
"class": "",
|
||||||
"id": ""
|
"id": ""
|
||||||
},
|
},
|
||||||
"uploader": "",
|
"uploader": "",
|
||||||
"return_format": "array",
|
"return_format": "array",
|
||||||
"library": "all",
|
"library": "all",
|
||||||
"acfe_thumbnail": 0,
|
"acfe_thumbnail": 0,
|
||||||
"min_width": "",
|
"min_width": "",
|
||||||
"min_height": "",
|
"min_height": "",
|
||||||
"min_size": "",
|
"min_size": "",
|
||||||
"max_width": "",
|
"max_width": "",
|
||||||
"max_height": "",
|
"max_height": "",
|
||||||
"max_size": "",
|
"max_size": "",
|
||||||
"mime_types": "",
|
"mime_types": "",
|
||||||
"allow_in_bindings": 0,
|
"allow_in_bindings": 0,
|
||||||
"preview_size": "medium",
|
"preview_size": "medium",
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_description": "",
|
"graphql_description": "",
|
||||||
"graphql_field_name": "image"
|
"graphql_field_name": "image"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "field_697caf018536e",
|
"key": "field_697caf018536e",
|
||||||
"label": "Ratio d'aspect",
|
"label": "Ratio d'aspect",
|
||||||
"name": "aspect_ratio",
|
"name": "aspect_ratio",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "button_group",
|
"type": "button_group",
|
||||||
"instructions": "",
|
"instructions": "",
|
||||||
"required": 1,
|
"required": 1,
|
||||||
"conditional_logic": 0,
|
"conditional_logic": 0,
|
||||||
"wrapper": {
|
"wrapper": {
|
||||||
"width": "33",
|
"width": "33",
|
||||||
"class": "",
|
"class": "",
|
||||||
"id": ""
|
"id": ""
|
||||||
},
|
},
|
||||||
"choices": {
|
"choices": {
|
||||||
"square": "Carré (1:1)",
|
"square": "Carré (1:1)",
|
||||||
"video": "Vidéo (16:9)",
|
"video": "Vidéo (16:9)",
|
||||||
"portrait": "Portrait (2:3)",
|
"portrait": "Portrait (2:3)",
|
||||||
"auto": "Aspect d'origine"
|
"auto": "Aspect d'origine"
|
||||||
},
|
},
|
||||||
"default_value": "auto",
|
"default_value": "auto",
|
||||||
"return_format": "value",
|
"return_format": "value",
|
||||||
"allow_null": 0,
|
"allow_null": 0,
|
||||||
"allow_in_bindings": 0,
|
"allow_in_bindings": 0,
|
||||||
"layout": "horizontal",
|
"layout": "horizontal",
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_description": "",
|
"graphql_description": "",
|
||||||
"graphql_field_name": "aspectRatio",
|
"graphql_field_name": "aspectRatio",
|
||||||
"graphql_non_null": 1
|
"graphql_non_null": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "field_697caf378536f",
|
"key": "field_697caf378536f",
|
||||||
"label": "Ajustement de l'image",
|
"label": "Ajustement de l'image",
|
||||||
"name": "object_fit",
|
"name": "object_fit",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "button_group",
|
"type": "button_group",
|
||||||
"instructions": "",
|
"instructions": "",
|
||||||
"required": 1,
|
"required": 1,
|
||||||
"conditional_logic": 0,
|
"conditional_logic": 0,
|
||||||
"wrapper": {
|
"wrapper": {
|
||||||
"width": "33",
|
"width": "33",
|
||||||
"class": "",
|
"class": "",
|
||||||
"id": ""
|
"id": ""
|
||||||
},
|
},
|
||||||
"choices": {
|
"choices": {
|
||||||
"cover": "Recadrer si nécessaire",
|
"cover": "Recadrer si nécessaire",
|
||||||
"contain": "Contenir sans recadrage"
|
"contain": "Contenir sans recadrage"
|
||||||
},
|
},
|
||||||
"default_value": "cover",
|
"default_value": "cover",
|
||||||
"return_format": "value",
|
"return_format": "value",
|
||||||
"allow_null": 0,
|
"allow_null": 0,
|
||||||
"allow_in_bindings": 0,
|
"allow_in_bindings": 0,
|
||||||
"layout": "horizontal",
|
"layout": "horizontal",
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_description": "",
|
"graphql_description": "",
|
||||||
"graphql_field_name": "objectFit",
|
"graphql_field_name": "objectFit",
|
||||||
"graphql_non_null": 1
|
"graphql_non_null": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"location": [
|
"location": [
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"param": "abstract"
|
"param": "abstract"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"menu_order": 0,
|
"menu_order": 0,
|
||||||
"position": "normal",
|
"position": "normal",
|
||||||
"style": "seamless",
|
"style": "seamless",
|
||||||
"label_placement": "top",
|
"label_placement": "top",
|
||||||
"instruction_placement": "label",
|
"instruction_placement": "label",
|
||||||
"hide_on_screen": "",
|
"hide_on_screen": "",
|
||||||
"active": true,
|
"active": true,
|
||||||
"description": "",
|
"description": "",
|
||||||
"show_in_rest": 0,
|
"show_in_rest": 0,
|
||||||
"display_title": "",
|
"display_title": "",
|
||||||
"acfe_autosync": [
|
"acfe_autosync": ["json"],
|
||||||
"json"
|
"acfe_form": 0,
|
||||||
],
|
"show_in_graphql": 1,
|
||||||
"acfe_form": 0,
|
"graphql_field_name": "GroupAbstractMedia",
|
||||||
"show_in_graphql": 1,
|
"map_graphql_types_from_location_rules": 0,
|
||||||
"graphql_field_name": "GroupAbstractMedia",
|
"graphql_types": "",
|
||||||
"map_graphql_types_from_location_rules": 0,
|
"acfe_meta": "",
|
||||||
"graphql_types": "",
|
"acfe_note": "",
|
||||||
"acfe_meta": "",
|
"modified": 1769779078
|
||||||
"acfe_note": "",
|
|
||||||
"modified": 1769779078
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_description": "",
|
"graphql_description": "",
|
||||||
"graphql_field_name": "profiles",
|
"graphql_field_name": "profiles",
|
||||||
"graphql_non_null": 1,
|
"graphql_non_null": 0,
|
||||||
"rows_per_page": 20,
|
"rows_per_page": 20,
|
||||||
"sub_fields": [
|
"sub_fields": [
|
||||||
{
|
{
|
||||||
@@ -82,5 +82,5 @@
|
|||||||
"graphql_types": "",
|
"graphql_types": "",
|
||||||
"acfe_meta": "",
|
"acfe_meta": "",
|
||||||
"acfe_note": "",
|
"acfe_note": "",
|
||||||
"modified": 1769788591
|
"modified": 1770821599
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
{
|
||||||
|
"key": "group_layout_colored",
|
||||||
|
"title": "Layout - Colored",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"key": "field_693c8c945ce51",
|
||||||
|
"label": "Variante de couleur",
|
||||||
|
"name": "color",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "button_group",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"choices": {
|
||||||
|
"default": "Par défaut",
|
||||||
|
"muted": "Atténué",
|
||||||
|
"elevated": "Surélevé",
|
||||||
|
"accented": "Accentué",
|
||||||
|
"inverted": "Inversé",
|
||||||
|
"primary": "Couleur principale"
|
||||||
|
},
|
||||||
|
"default_value": "default",
|
||||||
|
"return_format": "value",
|
||||||
|
"allow_null": 0,
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"layout": "horizontal",
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "color",
|
||||||
|
"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": "GroupLayoutColored",
|
||||||
|
"map_graphql_types_from_location_rules": 0,
|
||||||
|
"graphql_types": "",
|
||||||
|
"acfe_meta": "",
|
||||||
|
"acfe_note": "",
|
||||||
|
"modified": 1770132035
|
||||||
|
}
|
||||||
@@ -1,149 +1,63 @@
|
|||||||
{
|
{
|
||||||
"key": "group_layout_contained",
|
"key": "group_layout_contained",
|
||||||
"title": "Layout - Contained",
|
"title": "Layout - Contained",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"key": "field_68dc29d78941c",
|
"key": "field_68dc29d78941c",
|
||||||
"label": "Conteneur",
|
"label": "Largeur du contenu",
|
||||||
"name": "container",
|
"name": "container",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "select",
|
"type": "button_group",
|
||||||
"instructions": "",
|
"instructions": "",
|
||||||
"required": 1,
|
"required": 1,
|
||||||
"conditional_logic": 0,
|
"conditional_logic": 0,
|
||||||
"wrapper": {
|
"wrapper": {
|
||||||
"width": "",
|
"width": "",
|
||||||
"class": "",
|
"class": "",
|
||||||
"id": ""
|
"id": ""
|
||||||
},
|
},
|
||||||
"choices": {
|
"choices": {
|
||||||
"default": "1536px",
|
"default": "1536px",
|
||||||
"xl": "1280px",
|
"xl": "1280px",
|
||||||
"lg": "1024px",
|
"lg": "1024px",
|
||||||
"fluid": "Largeur fluide",
|
"fluid": "Largeur fluide",
|
||||||
"none": "Pleine largeur"
|
"fullbleed": "Pleine largeur"
|
||||||
},
|
},
|
||||||
"default_value": "default",
|
"default_value": "default",
|
||||||
"return_format": "value",
|
"return_format": "value",
|
||||||
"multiple": 0,
|
"allow_null": 0,
|
||||||
"max": "",
|
"allow_in_bindings": 0,
|
||||||
"prepend": "",
|
"layout": "horizontal",
|
||||||
"append": "",
|
"show_in_graphql": 1,
|
||||||
"required_message": "",
|
"graphql_description": "",
|
||||||
"allow_null": 0,
|
"graphql_field_name": "container",
|
||||||
"allow_in_bindings": 0,
|
"graphql_non_null": 1
|
||||||
"ui": 0,
|
}
|
||||||
"show_in_graphql": 1,
|
],
|
||||||
"graphql_description": "",
|
"location": [
|
||||||
"graphql_field_name": "container",
|
[
|
||||||
"graphql_non_null": 1,
|
{
|
||||||
"ajax": 0,
|
"param": "abstract"
|
||||||
"placeholder": "",
|
}
|
||||||
"create_options": 0,
|
]
|
||||||
"save_options": 0,
|
],
|
||||||
"allow_custom": 0,
|
"menu_order": 0,
|
||||||
"search_placeholder": "",
|
"position": "normal",
|
||||||
"min": ""
|
"style": "default",
|
||||||
},
|
"label_placement": "top",
|
||||||
{
|
"instruction_placement": "label",
|
||||||
"key": "field_693c8c3b5ce50",
|
"hide_on_screen": "",
|
||||||
"label": "Espacement vertical",
|
"active": true,
|
||||||
"name": "vertical_padding",
|
"description": "",
|
||||||
"aria-label": "",
|
"show_in_rest": 0,
|
||||||
"type": "select",
|
"display_title": "",
|
||||||
"instructions": "",
|
"acfe_autosync": ["json"],
|
||||||
"required": 1,
|
"acfe_form": 0,
|
||||||
"conditional_logic": 0,
|
"show_in_graphql": 1,
|
||||||
"wrapper": {
|
"graphql_field_name": "GroupLayoutContained",
|
||||||
"width": "",
|
"map_graphql_types_from_location_rules": 0,
|
||||||
"class": "",
|
"graphql_types": "",
|
||||||
"id": ""
|
"acfe_meta": "",
|
||||||
},
|
"acfe_note": "",
|
||||||
"choices": {
|
"modified": 1770740626
|
||||||
"sm": "Petit (12px)",
|
|
||||||
"md": "Medium (24px)",
|
|
||||||
"lg": "Grand (48px)"
|
|
||||||
},
|
|
||||||
"default_value": "md",
|
|
||||||
"return_format": "value",
|
|
||||||
"multiple": 0,
|
|
||||||
"allow_null": 0,
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"ui": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "verticalPadding",
|
|
||||||
"graphql_non_null": 1,
|
|
||||||
"ajax": 0,
|
|
||||||
"placeholder": "",
|
|
||||||
"create_options": 0,
|
|
||||||
"save_options": 0,
|
|
||||||
"allow_custom": 0,
|
|
||||||
"search_placeholder": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "field_693c8c945ce51",
|
|
||||||
"label": "Couleur d'arrière-plan",
|
|
||||||
"name": "bg_color",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "select",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"choices": {
|
|
||||||
"default": "Par défaut",
|
|
||||||
"muted": "Atténué",
|
|
||||||
"inverted": "Inversé"
|
|
||||||
},
|
|
||||||
"default_value": "default",
|
|
||||||
"return_format": "value",
|
|
||||||
"multiple": 0,
|
|
||||||
"allow_null": 0,
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"ui": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "bgColor",
|
|
||||||
"graphql_non_null": 1,
|
|
||||||
"ajax": 0,
|
|
||||||
"placeholder": "",
|
|
||||||
"create_options": 0,
|
|
||||||
"save_options": 0,
|
|
||||||
"allow_custom": 0,
|
|
||||||
"search_placeholder": ""
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"location": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"param": "abstract"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"menu_order": 0,
|
|
||||||
"position": "normal",
|
|
||||||
"style": "default",
|
|
||||||
"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": "GroupLayoutContained",
|
|
||||||
"map_graphql_types_from_location_rules": 0,
|
|
||||||
"graphql_types": "",
|
|
||||||
"acfe_meta": "",
|
|
||||||
"acfe_note": "",
|
|
||||||
"modified": 1768358794
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
"key": "group_layout_padded",
|
||||||
|
"title": "Layout - Padded",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"key": "field_693c8c3b5ce50",
|
||||||
|
"label": "Espacement intérieur vertical",
|
||||||
|
"name": "vertical_padding",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "button_group",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"choices": {
|
||||||
|
"none": "Aucun",
|
||||||
|
"sm": "Petit (12px)",
|
||||||
|
"md": "Medium (24px)",
|
||||||
|
"lg": "Grand (48px)"
|
||||||
|
},
|
||||||
|
"default_value": "md",
|
||||||
|
"return_format": "value",
|
||||||
|
"allow_null": 0,
|
||||||
|
"allow_in_bindings": 0,
|
||||||
|
"layout": "horizontal",
|
||||||
|
"show_in_graphql": 1,
|
||||||
|
"graphql_description": "",
|
||||||
|
"graphql_field_name": "verticalPadding",
|
||||||
|
"graphql_non_null": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"location": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"param": "abstract"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"menu_order": 0,
|
||||||
|
"position": "normal",
|
||||||
|
"style": "default",
|
||||||
|
"label_placement": "left",
|
||||||
|
"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": "GroupLayoutPadded",
|
||||||
|
"map_graphql_types_from_location_rules": 0,
|
||||||
|
"graphql_types": "",
|
||||||
|
"acfe_meta": "",
|
||||||
|
"acfe_note": "",
|
||||||
|
"modified": 1770740636
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"key": "field_697220310aaaf",
|
"key": "field_697220310aaaf",
|
||||||
"label": "Email",
|
"label": "Courriel",
|
||||||
"name": "email",
|
"name": "email",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "email",
|
"type": "email",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "field_697cbf414fdd5",
|
"key": "field_697cbf414fdd5",
|
||||||
"label": "Phone number",
|
"label": "Numéro de téléphone",
|
||||||
"name": "phone_number",
|
"name": "phone_number",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "phone",
|
"type": "phone",
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "clone",
|
"type": "clone",
|
||||||
"instructions": "",
|
"instructions": "",
|
||||||
"required": 1,
|
"required": 0,
|
||||||
"conditional_logic": 0,
|
"conditional_logic": 0,
|
||||||
"wrapper": {
|
"wrapper": {
|
||||||
"width": "",
|
"width": "",
|
||||||
@@ -97,6 +97,9 @@
|
|||||||
"graphql_description": "",
|
"graphql_description": "",
|
||||||
"graphql_field_name": "links",
|
"graphql_field_name": "links",
|
||||||
"graphql_non_null": 0,
|
"graphql_non_null": 0,
|
||||||
|
"acfe_group_modal_close": 0,
|
||||||
|
"acfe_group_modal_button": "",
|
||||||
|
"acfe_group_modal_size": "large",
|
||||||
"sub_fields": [
|
"sub_fields": [
|
||||||
{
|
{
|
||||||
"key": "field_697cc93e234cd",
|
"key": "field_697cc93e234cd",
|
||||||
@@ -119,10 +122,7 @@
|
|||||||
"graphql_field_name": "contact",
|
"graphql_field_name": "contact",
|
||||||
"graphql_non_null": 1
|
"graphql_non_null": 1
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"acfe_group_modal_close": 0,
|
|
||||||
"acfe_group_modal_button": "",
|
|
||||||
"acfe_group_modal_size": "large"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"location": [
|
"location": [
|
||||||
@@ -154,5 +154,5 @@
|
|||||||
"graphql_types": "",
|
"graphql_types": "",
|
||||||
"acfe_meta": "",
|
"acfe_meta": "",
|
||||||
"acfe_note": "",
|
"acfe_note": "",
|
||||||
"modified": 1769788698
|
"modified": 1770820358
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,66 +1,60 @@
|
|||||||
{
|
{
|
||||||
"key": "group_post_page",
|
"key": "group_post_page",
|
||||||
"title": "Post - Page",
|
"title": "Post - Page",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"key": "field_690cbda0abcbb",
|
"key": "field_690cbda0abcbb",
|
||||||
"label": "Constructeur de page",
|
"label": "Constructeur de page",
|
||||||
"name": "builder",
|
"name": "builder",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "clone",
|
"type": "clone",
|
||||||
"instructions": "",
|
"instructions": "",
|
||||||
"required": 0,
|
"required": 0,
|
||||||
"conditional_logic": 0,
|
"conditional_logic": 0,
|
||||||
"wrapper": {
|
"wrapper": {
|
||||||
"width": "",
|
"width": "",
|
||||||
"class": "",
|
"class": "",
|
||||||
"id": ""
|
"id": ""
|
||||||
},
|
},
|
||||||
"graphql_field_name": "builder",
|
"graphql_field_name": "builder",
|
||||||
"clone": [
|
"clone": ["group_abstract_builder"],
|
||||||
"group_abstract_builder"
|
"display": "seamless",
|
||||||
],
|
"layout": "block",
|
||||||
"display": "seamless",
|
"prefix_label": 0,
|
||||||
"layout": "block",
|
"prefix_name": 0,
|
||||||
"prefix_label": 0,
|
"acfe_seamless_style": 0,
|
||||||
"prefix_name": 0,
|
"acfe_clone_modal": 0,
|
||||||
"acfe_seamless_style": 0,
|
"acfe_clone_modal_close": 0,
|
||||||
"acfe_clone_modal": 0,
|
"acfe_clone_modal_button": "",
|
||||||
"acfe_clone_modal_close": 0,
|
"acfe_clone_modal_size": "large"
|
||||||
"acfe_clone_modal_button": "",
|
}
|
||||||
"acfe_clone_modal_size": "large"
|
],
|
||||||
}
|
"location": [
|
||||||
],
|
[
|
||||||
"location": [
|
{
|
||||||
[
|
"param": "post_type",
|
||||||
{
|
"operator": "==",
|
||||||
"param": "post_type",
|
"value": "page"
|
||||||
"operator": "==",
|
}
|
||||||
"value": "page"
|
]
|
||||||
}
|
],
|
||||||
]
|
"menu_order": 0,
|
||||||
],
|
"position": "normal",
|
||||||
"menu_order": 0,
|
"style": "seamless",
|
||||||
"position": "normal",
|
"label_placement": "top",
|
||||||
"style": "seamless",
|
"instruction_placement": "label",
|
||||||
"label_placement": "top",
|
"hide_on_screen": ["the_content"],
|
||||||
"instruction_placement": "label",
|
"active": true,
|
||||||
"hide_on_screen": [
|
"description": "",
|
||||||
"the_content"
|
"show_in_rest": 0,
|
||||||
],
|
"display_title": "",
|
||||||
"active": true,
|
"acfe_autosync": ["json"],
|
||||||
"description": "",
|
"acfe_form": 0,
|
||||||
"show_in_rest": 0,
|
"show_in_graphql": 1,
|
||||||
"display_title": "",
|
"graphql_field_name": "GroupPostPage",
|
||||||
"acfe_autosync": [
|
"map_graphql_types_from_location_rules": 0,
|
||||||
"json"
|
"graphql_types": "",
|
||||||
],
|
"acfe_meta": "",
|
||||||
"acfe_form": 0,
|
"acfe_note": "",
|
||||||
"show_in_graphql": 1,
|
"modified": 1768336934
|
||||||
"graphql_field_name": "GroupPostPage",
|
|
||||||
"map_graphql_types_from_location_rules": 0,
|
|
||||||
"graphql_types": "",
|
|
||||||
"acfe_meta": "",
|
|
||||||
"acfe_note": "",
|
|
||||||
"modified": 1768336934
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
{
|
{
|
||||||
"key": "ui_options_page_site",
|
"key": "ui_options_page_site",
|
||||||
"title": "Options du site",
|
"title": "Options du site",
|
||||||
"active": true,
|
"active": true,
|
||||||
"menu_order": 0,
|
"menu_order": 0,
|
||||||
"page_title": "Options du site",
|
"page_title": "Options du site",
|
||||||
"menu_slug": "site-options",
|
"menu_slug": "site-options",
|
||||||
"parent_slug": "options-general.php",
|
"parent_slug": "options-general.php",
|
||||||
"advanced_configuration": 1,
|
"advanced_configuration": 1,
|
||||||
"icon_url": "",
|
"icon_url": "",
|
||||||
"menu_title": "",
|
"menu_title": "",
|
||||||
"position": "",
|
"position": "",
|
||||||
"redirect": false,
|
"redirect": false,
|
||||||
"description": "",
|
"description": "",
|
||||||
"menu_icon": [],
|
"menu_icon": [],
|
||||||
"update_button": "Mise à jour",
|
"update_button": "Mise à jour",
|
||||||
"updated_message": "Options mises à jours",
|
"updated_message": "Options mises à jours",
|
||||||
"capability": "edit_posts",
|
"capability": "edit_posts",
|
||||||
"data_storage": "options",
|
"data_storage": "options",
|
||||||
"post_id": "",
|
"post_id": "",
|
||||||
"autoload": 0,
|
"autoload": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_type_name": "SiteOptions",
|
"graphql_type_name": "SiteOptions",
|
||||||
"modified": 1769693948
|
"modified": 1769693948
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,5 +9,15 @@ export default defineAppConfig({
|
|||||||
base: "cursor-pointer",
|
base: "cursor-pointer",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
slots: {
|
||||||
|
root: "w-full",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
textarea: {
|
||||||
|
slots: {
|
||||||
|
root: "w-full",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
@import "tailwindcss" theme(static) source("../../..");
|
@import "tailwindcss" theme(static) source("../../..");
|
||||||
@import "@nuxt/ui";
|
@import "@nuxt/ui";
|
||||||
|
|
||||||
@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";
|
||||||
|
|
||||||
|
|||||||
@@ -8,13 +8,27 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Container sizes */
|
/* Container sizes */
|
||||||
@utility container { @apply mx-auto px-container max-w-(--breakpoint-2xl); }
|
@utility container {
|
||||||
@utility container-xl { @apply container max-w-(--breakpoint-xl); }
|
@apply mx-auto px-container max-w-(--breakpoint-2xl);
|
||||||
@utility container-lg { @apply container max-w-(--breakpoint-lg); }
|
}
|
||||||
@utility container-md { @apply container max-w-(--breakpoint-md); }
|
@utility container-xl {
|
||||||
@utility container-sm { @apply container max-w-(--breakpoint-sm); }
|
@apply container max-w-(--breakpoint-xl);
|
||||||
@utility container-fluid { @apply container max-w-screen; }
|
}
|
||||||
@utility container-none { @apply w-full max-w-screen; }
|
@utility container-lg {
|
||||||
|
@apply container max-w-(--breakpoint-lg);
|
||||||
|
}
|
||||||
|
@utility container-md {
|
||||||
|
@apply container max-w-(--breakpoint-md);
|
||||||
|
}
|
||||||
|
@utility container-sm {
|
||||||
|
@apply container max-w-(--breakpoint-sm);
|
||||||
|
}
|
||||||
|
@utility container-fluid {
|
||||||
|
@apply container max-w-screen;
|
||||||
|
}
|
||||||
|
@utility container-none {
|
||||||
|
@apply w-full max-w-screen;
|
||||||
|
}
|
||||||
|
|
||||||
/* Split containers */
|
/* Split containers */
|
||||||
:root {
|
:root {
|
||||||
@@ -42,6 +56,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@utility container-left { @apply ml-(--container-outside-margin) px-container;}
|
@utility container-left {
|
||||||
@utility container-right { @apply mr-(--container-outside-margin) px-container;}
|
@apply ml-(--container-outside-margin) px-container;
|
||||||
@utility container-half { width: calc(var(--container-width) / 2);}
|
}
|
||||||
|
@utility container-right {
|
||||||
|
@apply mr-(--container-outside-margin) px-container;
|
||||||
|
}
|
||||||
|
@utility container-half {
|
||||||
|
width: calc(var(--container-width) / 2);
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
@custom-variant links (& a:not([class*='link-']):not([class*='button-']));
|
@custom-variant links (& a:not([class*='link-']):not([class*='button-']));
|
||||||
|
|
||||||
/* Link styles */
|
/* Link styles */
|
||||||
@utility link-base { @apply cursor-pointer disabled-default transition; }
|
@utility link-base {
|
||||||
@utility link-underline { @apply link-base underline hover:decoration-primary; }
|
@apply cursor-pointer disabled-default transition;
|
||||||
@utility link-opacity { @apply link-base hover:opacity-80; }
|
}
|
||||||
|
@utility link-underline {
|
||||||
|
@apply link-base underline hover:decoration-primary;
|
||||||
|
}
|
||||||
|
@utility link-opacity {
|
||||||
|
@apply link-base hover:opacity-80;
|
||||||
|
}
|
||||||
|
|||||||
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;
|
||||||
|
}
|
||||||
@@ -1,15 +1,25 @@
|
|||||||
@utility prose {
|
@utility prose {
|
||||||
/* Headings (allow class overrides) */
|
/* Headings (allow class overrides) */
|
||||||
h1:not([class*="heading-"]) { @apply heading-1; }
|
h1:not([class*="heading-"]) {
|
||||||
h2:not([class*="heading-"]) { @apply heading-2; }
|
@apply heading-1;
|
||||||
h3:not([class*="heading-"]) { @apply heading-3; }
|
}
|
||||||
h4:not([class*="heading-"]) { @apply heading-4; }
|
h2:not([class*="heading-"]) {
|
||||||
|
@apply heading-2;
|
||||||
|
}
|
||||||
|
h3:not([class*="heading-"]) {
|
||||||
|
@apply heading-3;
|
||||||
|
}
|
||||||
|
h4:not([class*="heading-"]) {
|
||||||
|
@apply heading-4;
|
||||||
|
}
|
||||||
|
|
||||||
/* Links */
|
/* Links */
|
||||||
@apply links:link-underline;
|
@apply links:link-underline;
|
||||||
|
|
||||||
/* Paragraphs */
|
/* Paragraphs */
|
||||||
p:not([class*="paragraph-"]) { @apply paragraph-base; }
|
p:not([class*="paragraph-"]) {
|
||||||
|
@apply paragraph-base;
|
||||||
|
}
|
||||||
|
|
||||||
/* Spacing */
|
/* Spacing */
|
||||||
@apply space-y-2;
|
@apply space-y-2;
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
/* Heading styles */
|
/* Heading styles */
|
||||||
@utility heading-base { @apply font-bold tracking-tight };
|
@utility heading-base {
|
||||||
@utility heading-1 { @apply heading-base text-4xl; }
|
@apply font-bold tracking-tight;
|
||||||
@utility heading-2 { @apply heading-base text-3xl; }
|
}
|
||||||
@utility heading-3 { @apply heading-base text-2xl; }
|
@utility heading-1 {
|
||||||
@utility heading-4 { @apply heading-base text-xl; }
|
@apply heading-base text-4xl;
|
||||||
|
}
|
||||||
|
@utility heading-2 {
|
||||||
|
@apply heading-base text-3xl;
|
||||||
|
}
|
||||||
|
@utility heading-3 {
|
||||||
|
@apply heading-base text-2xl;
|
||||||
|
}
|
||||||
|
@utility heading-4 {
|
||||||
|
@apply heading-base text-xl;
|
||||||
|
}
|
||||||
|
|
||||||
/* Paragraph styles */
|
/* Paragraph styles */
|
||||||
@utility paragraph-base { @apply font-sans; }
|
@utility paragraph-base {
|
||||||
@utility paragraph-lead { @apply paragraph-base text-2xl; }
|
@apply font-sans;
|
||||||
|
}
|
||||||
|
@utility paragraph-lead {
|
||||||
|
@apply paragraph-base text-2xl;
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,11 +2,12 @@
|
|||||||
import type { AcfLinkFragment } from "#graphql/operations";
|
import type { AcfLinkFragment } from "#graphql/operations";
|
||||||
import type { ButtonProps } from "@nuxt/ui";
|
import type { ButtonProps } from "@nuxt/ui";
|
||||||
|
|
||||||
type AcfLinkButtonProps = & Omit<ButtonProps, "to" | "target" | "href"> & {
|
type AcfLinkButtonProps = Omit<ButtonProps, "to" | "target" | "href"> & {
|
||||||
link?: AcfLinkFragment;
|
link?: AcfLinkFragment;
|
||||||
|
showLabel?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const { link, ...buttonProps } = defineProps<AcfLinkButtonProps>();
|
const { link, showLabel, ...buttonProps } = defineProps<AcfLinkButtonProps>();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -18,6 +19,6 @@ const { link, ...buttonProps } = defineProps<AcfLinkButtonProps>();
|
|||||||
:external="link.target === '_blank'"
|
:external="link.target === '_blank'"
|
||||||
:rel="link.target === '_blank' ? 'noopener noreferrer' : undefined"
|
:rel="link.target === '_blank' ? 'noopener noreferrer' : undefined"
|
||||||
>
|
>
|
||||||
<slot>{{ link.title }}</slot>
|
<slot>{{ showLabel ? link.title : "" }}</slot>
|
||||||
</UButton>
|
</UButton>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ fragment AcfMedia on GroupAbstractMedia_Fields {
|
|||||||
}
|
}
|
||||||
aspectRatio
|
aspectRatio
|
||||||
objectFit
|
objectFit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,14 @@ defineProps<{ social?: AcfSocialOutput }>();
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-if="social?.profiles" class="flex gap-1.5">
|
<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">
|
<a
|
||||||
|
v-for="({ url, icon }, key) in social.profiles"
|
||||||
|
:key="key"
|
||||||
|
:href="url"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
class="flex"
|
||||||
|
>
|
||||||
<UIcon :name="icon" />
|
<UIcon :name="icon" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -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>
|
|
||||||
@@ -7,7 +7,8 @@ const fields = [
|
|||||||
label: "Courriel",
|
label: "Courriel",
|
||||||
placeholder: "Entrez votre courriel",
|
placeholder: "Entrez votre courriel",
|
||||||
required: true,
|
required: true,
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
name: "password",
|
name: "password",
|
||||||
label: "Mot de passe",
|
label: "Mot de passe",
|
||||||
type: "password" as const,
|
type: "password" as const,
|
||||||
|
|||||||
@@ -5,12 +5,8 @@ const { logout } = useAuthConnexion();
|
|||||||
<template>
|
<template>
|
||||||
<div class="w-full space-y-6">
|
<div class="w-full space-y-6">
|
||||||
<div class="flex flex-col text-center">
|
<div class="flex flex-col text-center">
|
||||||
<div class="text-xl text-pretty font-semibold text-highlighted">
|
<div class="text-xl font-semibold text-pretty text-highlighted">Déconnexion</div>
|
||||||
Déconnexion
|
<div class="mt-1 text-base text-pretty text-muted">Veuillez confirmer la déconnexion.</div>
|
||||||
</div>
|
|
||||||
<div class="mt-1 text-base text-pretty text-muted">
|
|
||||||
Veuillez confirmer la déconnexion.
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<UButton
|
<UButton
|
||||||
icon="i-lucide-log-out"
|
icon="i-lucide-log-out"
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="w-full space-y-6">
|
<div class="w-full space-y-6">
|
||||||
<div class="flex flex-col text-center">
|
<div class="flex flex-col text-center">
|
||||||
<div class="text-xl text-pretty font-semibold text-highlighted">
|
<div class="text-xl font-semibold text-pretty text-highlighted">Redirection en cours</div>
|
||||||
Redirection en cours
|
<div class="mt-1 text-base text-pretty text-muted">Veuillez patienter...</div>
|
||||||
</div>
|
|
||||||
<div class="mt-1 text-base text-pretty text-muted">
|
|
||||||
Veuillez patienter...
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
fragment BuilderSections on GroupAbstractBuilder_Fields {
|
fragment BuilderSections on GroupAbstractBuilder_Fields {
|
||||||
sections {
|
sections {
|
||||||
__typename
|
__typename
|
||||||
... on GroupAbstractBuilderSectionsHeroSplitLayout { ... SectionHeroSplit }
|
... on GroupAbstractBuilderSectionsHeroSplitLayout {
|
||||||
... on GroupAbstractBuilderSectionsTextBlockLayout { ... SectionTextBlock }
|
...SectionHeroSplit
|
||||||
|
}
|
||||||
|
... on GroupAbstractBuilderSectionsTextBlockLayout {
|
||||||
|
...SectionTextBlock
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fragment LayoutColored on GroupLayoutColored_Fields {
|
||||||
|
color
|
||||||
|
}
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
fragment LayoutContained on GroupLayoutContained_Fields {
|
fragment LayoutContained on GroupLayoutContained_Fields {
|
||||||
container
|
container
|
||||||
verticalPadding
|
|
||||||
bgColor
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import type { LayoutContainedFragment } from "#graphql/operations";
|
|
||||||
import { tv, type VariantProps } from "tailwind-variants";
|
|
||||||
|
|
||||||
const props = defineProps<LayoutContainedFragment>();
|
|
||||||
|
|
||||||
const layoutWrapperVariants = tv({
|
|
||||||
slots: {
|
|
||||||
base: "",
|
|
||||||
inner: "",
|
|
||||||
},
|
|
||||||
variants: {
|
|
||||||
container: {
|
|
||||||
default: { inner: "container" },
|
|
||||||
lg: { inner: "container-lg" },
|
|
||||||
xl: { inner: "container-xl" },
|
|
||||||
fluid: { inner: "container-fluid" },
|
|
||||||
none: { inner: "container-none" },
|
|
||||||
},
|
|
||||||
verticalPadding: {
|
|
||||||
sm: { base: "py-3" },
|
|
||||||
md: { base: "py-6" },
|
|
||||||
lg: { base: "py-12" },
|
|
||||||
},
|
|
||||||
bgColor: {
|
|
||||||
default: { base: "bg-default" },
|
|
||||||
muted: { base: "bg-muted" },
|
|
||||||
inverted: { base: "bg-inverted text-inverted" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
defaultVariants: {
|
|
||||||
container: "default",
|
|
||||||
verticalPadding: "md",
|
|
||||||
bgColor: "default",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
const { base, inner } = layoutWrapperVariants({
|
|
||||||
container: props.container[0],
|
|
||||||
verticalPadding: props.verticalPadding[0],
|
|
||||||
bgColor: props.bgColor[0],
|
|
||||||
} as VariantProps<typeof layoutWrapperVariants>);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<section :class="base()">
|
|
||||||
<div :class="inner()">
|
|
||||||
<slot />
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</template>
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fragment LayoutPadded on GroupLayoutPadded_Fields {
|
||||||
|
verticalPadding
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const props = defineProps<{ layoutSettings?: LayoutSettings }>();
|
||||||
|
const { base, inner } = useLayoutWrapper(props.layoutSettings);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<section :class="base()">
|
||||||
|
<div :class="inner()">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
@@ -2,6 +2,6 @@ fragment NodePage on Page {
|
|||||||
title
|
title
|
||||||
isFrontPage
|
isFrontPage
|
||||||
groupPostPage {
|
groupPostPage {
|
||||||
... BuilderSections
|
...BuilderSections
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,7 @@ defineProps<NodePageFragment>();
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="node-page">
|
<div id="node-page">
|
||||||
<h1 v-if="!isFrontPage" class="font-bold text-4xl">
|
<PageHeader v-if="!isFrontPage" :title="title"></PageHeader>
|
||||||
{{ title }}
|
|
||||||
</h1>
|
|
||||||
<BuilderSections :sections="groupPostPage?.sections || []" />
|
<BuilderSections :sections="groupPostPage?.sections || []" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
defineProps<{
|
||||||
|
title?: string;
|
||||||
|
}>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<header v-if="title" class="bg-accented py-6">
|
||||||
|
<div class="container">
|
||||||
|
<h1 class="heading-1">
|
||||||
|
{{ title }}
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
</template>
|
||||||
@@ -1,18 +1,19 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { isLoggedIn } = useAuth();
|
const { isLoggedIn } = useAuth();
|
||||||
const { isRedirecting } = useAuthConnexion();
|
const { isRedirecting } = useAuthConnexion();
|
||||||
|
const layoutSettings: LayoutWrapperProps = {
|
||||||
|
container: "lg",
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section data-section-name="auth-connexion" class="py-12">
|
<LayoutWrapper data-section-name="auth-connexion" :layout-settings="layoutSettings">
|
||||||
<div class="container-sm">
|
<AuthState>
|
||||||
<AuthState>
|
<AuthRedirecting v-if="isRedirecting" />
|
||||||
<AuthRedirecting v-if="isRedirecting" />
|
<template v-else>
|
||||||
<template v-else>
|
<AuthLogoutForm v-if="isLoggedIn" />
|
||||||
<AuthLogoutForm v-if="isLoggedIn" />
|
<AuthLoginForm v-else />
|
||||||
<AuthLoginForm v-else />
|
</template>
|
||||||
</template>
|
</AuthState>
|
||||||
</AuthState>
|
</LayoutWrapper>
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -2,5 +2,8 @@ fragment SectionHeroSplit on GroupAbstractBuilderSectionsHeroSplitLayout {
|
|||||||
content
|
content
|
||||||
reverse
|
reverse
|
||||||
...AcfMedia
|
...AcfMedia
|
||||||
|
layoutSettings {
|
||||||
|
...LayoutColored
|
||||||
|
...LayoutPadded
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3,9 +3,9 @@ import { tv, type VariantProps } from "tailwind-variants";
|
|||||||
import type { SectionHeroSplitFragment } from "#graphql/operations";
|
import type { SectionHeroSplitFragment } from "#graphql/operations";
|
||||||
|
|
||||||
const tvSectionHeroSplit = tv({
|
const tvSectionHeroSplit = tv({
|
||||||
|
extend: tvLayoutWrapper,
|
||||||
slots: {
|
slots: {
|
||||||
base: "py-6",
|
container: "container flex flex-col items-center gap-6",
|
||||||
container: "container flex flex-col gap-6 items-center",
|
|
||||||
content: "flex-1",
|
content: "flex-1",
|
||||||
media: "w-full basis-1/2",
|
media: "w-full basis-1/2",
|
||||||
},
|
},
|
||||||
@@ -27,6 +27,7 @@ const tvSectionHeroSplit = tv({
|
|||||||
const props = defineProps<SectionHeroSplitFragment>();
|
const props = defineProps<SectionHeroSplitFragment>();
|
||||||
const classes = tvSectionHeroSplit({
|
const classes = tvSectionHeroSplit({
|
||||||
reverse: props.reverse,
|
reverse: props.reverse,
|
||||||
|
...props.layoutSettings,
|
||||||
} as VariantProps<typeof tvSectionHeroSplit>);
|
} as VariantProps<typeof tvSectionHeroSplit>);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ const classes = tvSectionHeroSplit({
|
|||||||
<section :class="classes.base()">
|
<section :class="classes.base()">
|
||||||
<div :class="classes.container()">
|
<div :class="classes.container()">
|
||||||
<UiProse :content="content" :class="classes.content()" />
|
<UiProse :content="content" :class="classes.content()" />
|
||||||
<AcfMedia :media="$props" :class="classes.media()" />
|
<AcfMedia :media="parseAcfMedia(props)" :class="classes.media()" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
fragment SectionTextBlock on GroupAbstractBuilderSectionsTextBlockLayout {
|
fragment SectionTextBlock on GroupAbstractBuilderSectionsTextBlockLayout {
|
||||||
content
|
content
|
||||||
layoutSettings {
|
layoutSettings {
|
||||||
|
...LayoutColored
|
||||||
...LayoutContained
|
...LayoutContained
|
||||||
|
...LayoutPadded
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ defineProps<SectionTextBlockFragment>();
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<LayoutContained data-section-type="text-block" v-bind="layoutSettings!">
|
<LayoutWrapper data-section-type="text-block" :layout-settings="layoutSettings">
|
||||||
<UiProse :content="content" />
|
<UiProse :content="content" />
|
||||||
</LayoutContained>
|
</LayoutWrapper>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const { data: siteOptions } = await useSiteOptions();
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<footer class="bg-accented links:link-prose">
|
<footer class="links:link-prose bg-accented">
|
||||||
<div class="container py-6">
|
<div class="container py-6">
|
||||||
<AcfSocial :social="parseAcfSocial(siteOptions)" />
|
<AcfSocial :social="parseAcfSocial(siteOptions)" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,8 +1,19 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const { connexionButton } = useAuthConnexion();
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="bg-inverted text-inverted py-1.5">
|
<div class="bg-inverted py-1.5 text-inverted">
|
||||||
<div class="container flex flex-col sm:flex-row items-center gap-3">
|
<div class="container flex flex-col items-center gap-3 sm:flex-row">
|
||||||
<SiteFooterCopyright class="sm:mr-auto" />
|
<SiteFooterCopyright class="sm:mr-auto" />
|
||||||
<AuthConnexionButton color="neutral" variant="link" />
|
<AuthState>
|
||||||
|
<AcfLinkButton
|
||||||
|
:link="connexionButton.link"
|
||||||
|
:icon="connexionButton.icon"
|
||||||
|
color="neutral"
|
||||||
|
variant="link"
|
||||||
|
/>
|
||||||
|
</AuthState>
|
||||||
<SiteFooterCredits />
|
<SiteFooterCredits />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex items-center gap-1">
|
<div class="flex items-center gap-1">
|
||||||
Fait avec <UIcon name="i-lucide-heart" /> par
|
Fait avec <UIcon name="i-lucide-heart" /> par
|
||||||
<ULink href="https://websimple.com" target="_blank" external title="Site web développé par Websimple">Websimple</ULink>
|
<ULink
|
||||||
|
href="https://websimple.com"
|
||||||
|
target="_blank"
|
||||||
|
external
|
||||||
|
title="Site web développé par Websimple"
|
||||||
|
>Websimple</ULink
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UHeader mode="slideover">
|
<UHeader mode="slideover">
|
||||||
<template #left>
|
<template #left>
|
||||||
@@ -8,8 +5,5 @@
|
|||||||
<SvgSiteLogo class="h-12 w-auto" />
|
<SvgSiteLogo class="h-12 w-auto" />
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
|
||||||
<AuthConnexionButton />
|
|
||||||
</template>
|
|
||||||
</UHeader>
|
</UHeader>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
10
wp-content/themes/moonshine/app/components/ui/UiLoadMore.vue
Normal file
10
wp-content/themes/moonshine/app/components/ui/UiLoadMore.vue
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
defineProps<{ hasNextPage: boolean; isLoadingMore: boolean }>();
|
||||||
|
defineEmits<{ loadMore: [] }>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div v-if="hasNextPage" class="flex justify-center">
|
||||||
|
<UButton @click="$emit('loadMore')" :loading="isLoadingMore"> En voir plus </UButton>
|
||||||
|
</div>
|
||||||
|
</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,9 +3,10 @@ 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;
|
||||||
|
|
||||||
// Helper: Redirect after login / logout
|
// Helper: Redirect after login / logout
|
||||||
async function redirectTo(to: string | undefined) {
|
async function redirectTo(to: string | undefined) {
|
||||||
@@ -29,13 +30,13 @@ export function useAuthConnexion() {
|
|||||||
duration: 3000,
|
duration: 3000,
|
||||||
});
|
});
|
||||||
await redirectTo(redirect);
|
await redirectTo(redirect);
|
||||||
}
|
} catch (error) {
|
||||||
catch (error) {
|
|
||||||
console.log(error);
|
console.log(error);
|
||||||
toast.add({
|
toast.add({
|
||||||
title: "Erreur de connexion",
|
title: "Erreur de connexion",
|
||||||
color: "error",
|
color: "error",
|
||||||
description: error instanceof Error ? error.message : "Une erreur est survenue lors de la connexion.",
|
description:
|
||||||
|
error instanceof Error ? error.message : "Une erreur est survenue lors de la connexion.",
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -55,17 +56,28 @@ export function useAuthConnexion() {
|
|||||||
duration: 3000,
|
duration: 3000,
|
||||||
});
|
});
|
||||||
await redirectTo(redirect);
|
await redirectTo(redirect);
|
||||||
}
|
} catch (error) {
|
||||||
catch (error) {
|
|
||||||
console.log(error);
|
console.log(error);
|
||||||
toast.add({
|
toast.add({
|
||||||
title: "Erreur de déconnexion",
|
title: "Erreur de déconnexion",
|
||||||
color: "error",
|
color: "error",
|
||||||
description: error instanceof Error ? error.message : "Une erreur est survenue lors de la déconnexion.",
|
description:
|
||||||
|
error instanceof Error
|
||||||
|
? error.message
|
||||||
|
: "Une erreur est survenue lors de la déconnexion.",
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { isRedirecting, login, logout };
|
// Dynamic connexion link / icon
|
||||||
|
const connexionButton = computed(() => ({
|
||||||
|
link: parseAcfLink({
|
||||||
|
title: isLoggedIn.value ? "Déconnexion" : "Connexion",
|
||||||
|
url: "/connexion",
|
||||||
|
}),
|
||||||
|
icon: isLoggedIn.value ? "i-lucide-log-out" : "i-lucide-log-in",
|
||||||
|
}));
|
||||||
|
|
||||||
|
return { isRedirecting, login, logout, connexionButton };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
export const useGeneralSettings = () => useAsyncGraphQLQuery("GeneralSettings", {}, {
|
export const useGeneralSettings = () =>
|
||||||
transform: ({ generalSettings }) => generalSettings,
|
useAsyncGraphQLQuery(
|
||||||
});
|
"GeneralSettings",
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
transform: ({ generalSettings }) => generalSettings,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
import { tv, type VariantProps } from "tailwind-variants";
|
||||||
|
import * as z from "zod";
|
||||||
|
|
||||||
|
// Tailwind Variants for LayoutWrapper
|
||||||
|
export const tvLayoutWrapper = tv({
|
||||||
|
slots: {
|
||||||
|
base: "",
|
||||||
|
inner: "",
|
||||||
|
},
|
||||||
|
variants: {
|
||||||
|
// LayoutColored
|
||||||
|
color: {
|
||||||
|
default: { base: "bg-default" },
|
||||||
|
muted: { base: "bg-muted" },
|
||||||
|
elevated: { base: "bg-elevated" },
|
||||||
|
accented: { base: "bg-accented" },
|
||||||
|
inverted: { base: "bg-inverted text-inverted" },
|
||||||
|
primary: { base: "bg-primary text-inverted" },
|
||||||
|
},
|
||||||
|
// LayoutContained
|
||||||
|
container: {
|
||||||
|
default: { inner: "container" },
|
||||||
|
xl: { inner: "container-xl" },
|
||||||
|
lg: { inner: "container-lg" },
|
||||||
|
fluid: { inner: "container-fluid" },
|
||||||
|
fullbleed: { inner: "container-fullbleed" },
|
||||||
|
},
|
||||||
|
// LayoutPadded
|
||||||
|
verticalPadding: {
|
||||||
|
sm: { base: "py-3" },
|
||||||
|
md: { base: "py-6" },
|
||||||
|
lg: { base: "py-12" },
|
||||||
|
none: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
defaultVariants: {
|
||||||
|
color: "default",
|
||||||
|
container: "default",
|
||||||
|
verticalPadding: "md",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
export type LayoutWrapperProps = VariantProps<typeof tvLayoutWrapper>;
|
||||||
|
|
||||||
|
// Zod schemas for validating layout settings
|
||||||
|
const colorEnum = z.enum(["default", "muted", "elevated", "accented", "inverted", "primary"]);
|
||||||
|
const containerEnum = z.enum(["default", "xl", "lg", "fluid", "fullbleed"]);
|
||||||
|
const verticalPaddingEnum = z.enum(["sm", "md", "lg", "none"]);
|
||||||
|
|
||||||
|
const layoutSettingsSchema = z.object({
|
||||||
|
color: z.string().pipe(colorEnum).optional(),
|
||||||
|
container: z.string().pipe(containerEnum).optional(),
|
||||||
|
verticalPadding: z.string().pipe(verticalPaddingEnum).optional(),
|
||||||
|
});
|
||||||
|
|
||||||
|
export type LayoutSettings = z.input<typeof layoutSettingsSchema>;
|
||||||
|
|
||||||
|
export function useLayoutWrapper(input?: LayoutSettings) {
|
||||||
|
try {
|
||||||
|
return tvLayoutWrapper(layoutSettingsSchema.parse(input));
|
||||||
|
} catch {
|
||||||
|
return tvLayoutWrapper();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,8 +11,7 @@ export function useProseLinks(refContent: Ref<HTMLElement | null>) {
|
|||||||
try {
|
try {
|
||||||
const hrefUrl = new URL(href);
|
const hrefUrl = new URL(href);
|
||||||
return hrefUrl.hostname === siteUrl.hostname;
|
return hrefUrl.hostname === siteUrl.hostname;
|
||||||
}
|
} catch {
|
||||||
catch {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -25,8 +24,7 @@ export function useProseLinks(refContent: Ref<HTMLElement | null>) {
|
|||||||
if (hrefUrl.hostname === siteUrl.hostname) {
|
if (hrefUrl.hostname === siteUrl.hostname) {
|
||||||
return hrefUrl.pathname + hrefUrl.search + hrefUrl.hash;
|
return hrefUrl.pathname + hrefUrl.search + hrefUrl.hash;
|
||||||
}
|
}
|
||||||
}
|
} catch {
|
||||||
catch {
|
|
||||||
// Invalid URL
|
// Invalid URL
|
||||||
}
|
}
|
||||||
return href;
|
return href;
|
||||||
@@ -39,7 +37,14 @@ export function useProseLinks(refContent: Ref<HTMLElement | null>) {
|
|||||||
if (!link) return;
|
if (!link) return;
|
||||||
const href = link.getAttribute("href");
|
const href = link.getAttribute("href");
|
||||||
if (!href) return;
|
if (!href) return;
|
||||||
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || link.target === "_blank" || link.hasAttribute("download")) {
|
if (
|
||||||
|
e.metaKey ||
|
||||||
|
e.ctrlKey ||
|
||||||
|
e.shiftKey ||
|
||||||
|
e.altKey ||
|
||||||
|
link.target === "_blank" ||
|
||||||
|
link.hasAttribute("download")
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (isInternal(href)) {
|
if (isInternal(href)) {
|
||||||
|
|||||||
@@ -2,7 +2,9 @@ import { breakpointsTailwind, useBreakpoints } from "@vueuse/core";
|
|||||||
|
|
||||||
export function useResponsive() {
|
export function useResponsive() {
|
||||||
const { isMobileOrTablet } = useDevice();
|
const { isMobileOrTablet } = useDevice();
|
||||||
const breakpoints = useBreakpoints(breakpointsTailwind, { ssrWidth: isMobileOrTablet ? 375 : 1024 });
|
const breakpoints = useBreakpoints(breakpointsTailwind, {
|
||||||
|
ssrWidth: isMobileOrTablet ? 375 : 1024,
|
||||||
|
});
|
||||||
const isDesktop = breakpoints.greaterOrEqual("lg");
|
const isDesktop = breakpoints.greaterOrEqual("lg");
|
||||||
|
|
||||||
return { breakpoints, isDesktop };
|
return { breakpoints, isDesktop };
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
export const useSiteOptions = () => useAsyncGraphQLQuery("SiteOptions", {}, {
|
export const useSiteOptions = () =>
|
||||||
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
useAsyncGraphQLQuery(
|
||||||
});
|
"SiteOptions",
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
fragment AuthUser on User {
|
fragment AuthUser on User {
|
||||||
id
|
id
|
||||||
email
|
email
|
||||||
roles {
|
roles {
|
||||||
nodes {
|
nodes {
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation AuthLogin($username: String!, $password: String!) {
|
mutation AuthLogin($username: String!, $password: String!) {
|
||||||
login( input: { provider: PASSWORD, credentials: { username: $username, password: $password }}) {
|
login(input: { provider: PASSWORD, credentials: { username: $username, password: $password } }) {
|
||||||
authToken
|
authToken
|
||||||
refreshToken
|
refreshToken
|
||||||
user {
|
user {
|
||||||
... AuthUser
|
...AuthUser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
mutation AuthRefreshToken($refreshToken: String!) {
|
mutation AuthRefreshToken($refreshToken: String!) {
|
||||||
refreshToken( input: { refreshToken: $refreshToken }) {
|
refreshToken(input: { refreshToken: $refreshToken }) {
|
||||||
authToken
|
authToken
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ fragment GeneralSettings on GeneralSettings {
|
|||||||
|
|
||||||
query GeneralSettings {
|
query GeneralSettings {
|
||||||
generalSettings {
|
generalSettings {
|
||||||
... GeneralSettings
|
...GeneralSettings
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ query NodeByUri($uri: String!) {
|
|||||||
nodeByUri(uri: $uri) {
|
nodeByUri(uri: $uri) {
|
||||||
__typename
|
__typename
|
||||||
... on Page {
|
... on Page {
|
||||||
... NodePage
|
...NodePage
|
||||||
}
|
}
|
||||||
... on NodeWithRankMathSeo {
|
... on NodeWithRankMathSeo {
|
||||||
... NodeSeo
|
...NodeSeo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
fragment PageInfo on WPPageInfo {
|
||||||
|
hasNextPage
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
@@ -1,16 +1,20 @@
|
|||||||
fragment SiteOptions on GroupSiteOptions {
|
fragment SiteOptions on GroupSiteOptions {
|
||||||
email
|
email
|
||||||
phoneNumber { ... AcfPhone }
|
phoneNumber {
|
||||||
|
...AcfPhone
|
||||||
|
}
|
||||||
...AcfSocial
|
...AcfSocial
|
||||||
links {
|
links {
|
||||||
contact { ... AcfLink}
|
contact {
|
||||||
|
...AcfLink
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query SiteOptions {
|
query SiteOptions {
|
||||||
siteOptions {
|
siteOptions {
|
||||||
groupSiteOptions {
|
groupSiteOptions {
|
||||||
... SiteOptions
|
...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>
|
||||||
|
|||||||
18
wp-content/themes/moonshine/app/middleware/hasRole.ts
Normal file
18
wp-content/themes/moonshine/app/middleware/hasRole.ts
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
export default defineNuxtRouteMiddleware((to) => {
|
||||||
|
const { hasRole, isLoggedIn } = useAuth();
|
||||||
|
if (!isLoggedIn.value) {
|
||||||
|
return navigateTo({ path: "/connexion", query: { redirect: to.fullPath } });
|
||||||
|
}
|
||||||
|
if (!hasRole(to.meta.hasRole || "")) {
|
||||||
|
return abortNavigation({
|
||||||
|
statusCode: 403,
|
||||||
|
message: "Vous n'avez pas les permissions requises pour accéder à cette page.",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
declare module "#app" {
|
||||||
|
interface PageMeta {
|
||||||
|
hasRole?: string;
|
||||||
|
}
|
||||||
|
}
|
||||||
12
wp-content/themes/moonshine/app/middleware/isAdmin.ts
Normal file
12
wp-content/themes/moonshine/app/middleware/isAdmin.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
export default defineNuxtRouteMiddleware((to) => {
|
||||||
|
const { isAdmin, isLoggedIn } = useAuth();
|
||||||
|
if (!isLoggedIn.value) {
|
||||||
|
return navigateTo({ path: "/connexion", query: { redirect: to.fullPath } });
|
||||||
|
}
|
||||||
|
if (!isAdmin.value) {
|
||||||
|
return abortNavigation({
|
||||||
|
statusCode: 403,
|
||||||
|
message: "Vous n'avez pas les permissions requises pour accéder à cette page.",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
6
wp-content/themes/moonshine/app/middleware/isLoggedIn.ts
Normal file
6
wp-content/themes/moonshine/app/middleware/isLoggedIn.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export default defineNuxtRouteMiddleware((to) => {
|
||||||
|
const { isLoggedIn } = useAuth();
|
||||||
|
if (!isLoggedIn.value) {
|
||||||
|
return navigateTo({ path: "/connexion", query: { redirect: to.fullPath } });
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
export default defineNuxtRouteMiddleware((to) => {
|
||||||
|
const { isLoggedIn } = useAuth();
|
||||||
|
if (isLoggedIn.value) {
|
||||||
|
return navigateTo({ path: "/connexion", query: { redirect: to.fullPath } });
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -4,13 +4,21 @@ const { path: uri } = useRoute();
|
|||||||
const { data, error } = 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);
|
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
|
// 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,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
useNodeSeo(data.value.nodeByUri);
|
useNodeSeo(data.value.nodeByUri);
|
||||||
|
|||||||
17
wp-content/themes/moonshine/app/utils/acf-link.ts
Normal file
17
wp-content/themes/moonshine/app/utils/acf-link.ts
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import type { AcfLinkFragment } from "#graphql/operations";
|
||||||
|
import * as z from "zod";
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
28
wp-content/themes/moonshine/app/utils/acf-media.ts
Normal file
28
wp-content/themes/moonshine/app/utils/acf-media.ts
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
import * as z from "zod";
|
|
||||||
import type { AcfSocialFragment } from "#graphql/operations";
|
import type { AcfSocialFragment } from "#graphql/operations";
|
||||||
|
import * as z from "zod";
|
||||||
|
|
||||||
const socialProfile = z.object({ url: z.url() }).transform(({ url }) => ({ url, icon: getSocialIcon(url) }));
|
const socialProfile = z
|
||||||
|
.object({ url: z.url() })
|
||||||
|
.transform(({ url }) => ({ url, icon: getSocialIcon(url) }));
|
||||||
const acfSocialSchema = z.object({
|
const acfSocialSchema = z.object({
|
||||||
profiles: z.array(socialProfile),
|
profiles: z.array(socialProfile),
|
||||||
});
|
});
|
||||||
@@ -10,8 +12,7 @@ export type AcfSocialOutput = z.infer<typeof acfSocialSchema>;
|
|||||||
export function parseAcfSocial(data?: AcfSocialFragment) {
|
export function parseAcfSocial(data?: AcfSocialFragment) {
|
||||||
try {
|
try {
|
||||||
return acfSocialSchema.parse(data);
|
return acfSocialSchema.parse(data);
|
||||||
}
|
} catch {
|
||||||
catch {
|
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,8 +0,0 @@
|
|||||||
// @ts-check
|
|
||||||
import withNuxt from "./.nuxt/eslint.config.mjs";
|
|
||||||
|
|
||||||
export default withNuxt({ rules: {
|
|
||||||
"vue/max-attributes-per-line": "off",
|
|
||||||
"vue/no-v-html": "off",
|
|
||||||
} },
|
|
||||||
);
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"schema": "./server/graphql/schema.graphql",
|
"schema": "./.nuxt/graphql/schema.gql",
|
||||||
"documents": "**/*.gql"
|
"documents": "**/*.gql"
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|||||||
@@ -2,23 +2,25 @@ import { version } from "./package.json";
|
|||||||
|
|
||||||
const siteUrl = process.env.NUXT_SITE_URL;
|
const siteUrl = process.env.NUXT_SITE_URL;
|
||||||
if (!siteUrl) {
|
if (!siteUrl) {
|
||||||
throw new Error(`NUXT_SITE_URL is not defined. Make sure to set it in your build environment variables.`);
|
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;
|
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 wpDomain = new URL(wpUrl).hostname;
|
||||||
|
|
||||||
const enableCloudflareImage = Boolean(process.env.ENABLE_CLOUDFLARE_IMAGE);
|
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({
|
||||||
|
|
||||||
modules: [
|
modules: [
|
||||||
"@lewebsimple/nuxt-graphql",
|
"@lewebsimple/nuxt-graphql",
|
||||||
"@nuxt/eslint",
|
|
||||||
"@nuxt/image",
|
"@nuxt/image",
|
||||||
"@nuxt/ui",
|
"@nuxt/ui",
|
||||||
"@nuxtjs/device",
|
"@nuxtjs/device",
|
||||||
@@ -28,9 +30,7 @@ export default defineNuxtConfig({
|
|||||||
],
|
],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
dirs: [
|
dirs: [{ path: "~/components", pathPrefix: false }],
|
||||||
{ path: "~/components", pathPrefix: false },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
@@ -56,16 +56,7 @@ export default defineNuxtConfig({
|
|||||||
nitro: {
|
nitro: {
|
||||||
preset: "cloudflare_module",
|
preset: "cloudflare_module",
|
||||||
cloudflare: {
|
cloudflare: {
|
||||||
deployConfig: true,
|
|
||||||
nodeCompat: true,
|
|
||||||
wrangler: {
|
wrangler: {
|
||||||
// Project name
|
|
||||||
name: "wp-headless",
|
|
||||||
// Cloudflare Workers settings
|
|
||||||
compatibility_date: "2026-01-27",
|
|
||||||
observability: { enabled: true },
|
|
||||||
preview_urls: false,
|
|
||||||
// Environment variables
|
|
||||||
vars: {
|
vars: {
|
||||||
NODE_ENV: "staging",
|
NODE_ENV: "staging",
|
||||||
NUXT_SITE_URL: siteUrl,
|
NUXT_SITE_URL: siteUrl,
|
||||||
@@ -75,18 +66,6 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
eslint: {
|
|
||||||
config: {
|
|
||||||
stylistic: {
|
|
||||||
arrowParens: true,
|
|
||||||
commaDangle: "always-multiline",
|
|
||||||
indent: 2,
|
|
||||||
quotes: "double",
|
|
||||||
semi: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
graphql: {
|
graphql: {
|
||||||
client: {
|
client: {
|
||||||
cache: {
|
cache: {
|
||||||
@@ -99,10 +78,11 @@ export default defineNuxtConfig({
|
|||||||
wp: { type: "remote", endpoint: `${wpUrl}/graphql`, hooks: ["server/graphql/wp-hooks"] },
|
wp: { type: "remote", endpoint: `${wpUrl}/graphql`, hooks: ["server/graphql/wp-hooks"] },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
saveSDL: ".nuxt/graphql/schema.gql",
|
||||||
},
|
},
|
||||||
|
|
||||||
image: {
|
image: {
|
||||||
provider: enableCloudflareImage ? "cloudflare" : "none",
|
provider: enableCloudflareImages ? "cloudflare" : "none",
|
||||||
cloudflare: { baseURL: `${siteUrl}/` },
|
cloudflare: { baseURL: `${siteUrl}/` },
|
||||||
domains: [wpDomain],
|
domains: [wpDomain],
|
||||||
format: ["avif", "webp"],
|
format: ["avif", "webp"],
|
||||||
|
|||||||
@@ -1,43 +1,51 @@
|
|||||||
{
|
{
|
||||||
"name": "@lewebsimple/moonshine",
|
"name": "@lewebsimple/moonshine",
|
||||||
"description": "Headless WordPress theme based on Nuxt.",
|
"version": "0.1.13",
|
||||||
"version": "0.1.11",
|
|
||||||
"type": "module",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"description": "Headless WordPress theme based on Nuxt.",
|
||||||
|
"type": "module",
|
||||||
"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",
|
"format": "oxfmt .",
|
||||||
"preview": "WRANGLER_ENV=dev pnpm run build && wrangler dev --port 3000",
|
"lint": "oxlint . --fix",
|
||||||
"release": "pnpm lint && changelogen --noAuthors --release --push",
|
"postinstall": "pnpm --sequential /postinstall:.*/",
|
||||||
"typecheck": "nuxt typecheck"
|
"postinstall:wrangler-types": "wrangler types ./server/types/cloudflare.d.ts",
|
||||||
|
"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": "oxlint .",
|
||||||
|
"release:typecheck": "nuxt typecheck",
|
||||||
|
"release:changelogen": "changelogen --noAuthors --release --push"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify-json/cib": "^1.2.3",
|
"@iconify-json/cib": "^1.2.3",
|
||||||
"@iconify-json/lucide": "^1.2.87",
|
"@iconify-json/lucide": "^1.2.90",
|
||||||
"@lewebsimple/nuxt-graphql": "^0.6.8",
|
"@lewebsimple/nuxt-graphql": "^0.6.10",
|
||||||
"@nuxt/image": "^2.0.0",
|
"@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",
|
||||||
"jwt-decode": "^4.0.0",
|
"jwt-decode": "^4.0.0",
|
||||||
"nuxt": "^4.3.0",
|
"nuxt": "^4.3.1",
|
||||||
"nuxt-auth-utils": "^0.5.28",
|
"nuxt-auth-utils": "^0.5.28",
|
||||||
"nuxt-svgo": "^4.2.6",
|
"nuxt-svgo": "^4.2.6",
|
||||||
"tailwindcss": "^4.1.18",
|
"tailwindcss": "^4.1.18",
|
||||||
"vue": "^3.5.27",
|
"vue": "^3.5.28",
|
||||||
"vue-router": "^4.6.4",
|
"vue-router": "^4.6.4",
|
||||||
"zod": "^4.3.6"
|
"zod": "^4.3.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/eslint": "^1.13.0",
|
|
||||||
"changelogen": "^0.6.2",
|
"changelogen": "^0.6.2",
|
||||||
"eslint": "^9.39.2",
|
"oxfmt": "^0.28.0",
|
||||||
|
"oxlint": "^1.46.0",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vue-tsc": "^3.2.4",
|
"vue-tsc": "^3.2.4",
|
||||||
"wrangler": "^4.61.1"
|
"wrangler": "^4.64.0"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
@@ -58,4 +66,4 @@
|
|||||||
"chore": false
|
"chore": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4322
wp-content/themes/moonshine/pnpm-lock.yaml
generated
4322
wp-content/themes/moonshine/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -5,17 +5,17 @@ export default defineEventHandler(async (event) => {
|
|||||||
if (!data?.login) {
|
if (!data?.login) {
|
||||||
throw new Error("INVALID_LOGIN");
|
throw new Error("INVALID_LOGIN");
|
||||||
}
|
}
|
||||||
if (!await handleLogin(event, data)) {
|
if (!(await handleLogin(event, data))) {
|
||||||
throw new Error("LOGIN_FAILED");
|
throw new Error("LOGIN_FAILED");
|
||||||
}
|
}
|
||||||
return { success: true, message: "Connexion réussie" };
|
return { success: true, message: "Connexion réussie" };
|
||||||
}
|
} catch (error) {
|
||||||
catch (error) {
|
|
||||||
const messages = {
|
const messages = {
|
||||||
INVALID_LOGIN: "Identifiants invalides. Veuillez réessayer.",
|
INVALID_LOGIN: "Identifiants invalides. Veuillez réessayer.",
|
||||||
LOGIN_FAILED: "Une erreur est survenue lors de la connexion. Veuillez réessayer plus tard.",
|
LOGIN_FAILED: "Une erreur est survenue lors de la connexion. Veuillez réessayer plus tard.",
|
||||||
};
|
};
|
||||||
const message = (error instanceof Error && error.message in messages) ? error.message : "LOGIN_FAILED";
|
const message =
|
||||||
|
error instanceof Error && error.message in messages ? error.message : "LOGIN_FAILED";
|
||||||
return { success: false, message: messages[message as keyof typeof messages] };
|
return { success: false, message: messages[message as keyof typeof messages] };
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ export default defineEventHandler(async (event) => {
|
|||||||
try {
|
try {
|
||||||
await handleLogout(event);
|
await handleLogout(event);
|
||||||
return { success: true, message: "Déconnexion réussie" };
|
return { success: true, message: "Déconnexion réussie" };
|
||||||
}
|
} catch (error) {
|
||||||
catch (error) {
|
const message =
|
||||||
const message = error instanceof Error ? error.message : "Une erreur est survenue lors de la déconnexion.";
|
error instanceof Error ? error.message : "Une erreur est survenue lors de la déconnexion.";
|
||||||
return { success: false, message };
|
return { success: false, message };
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,9 @@ export default defineRemoteExecutorHooks({
|
|||||||
onRequest(request) {
|
onRequest(request) {
|
||||||
// Attach the Authorization header if an authToken is present in the context
|
// Attach the Authorization header if an authToken is present in the context
|
||||||
if (request.context?.authToken) {
|
if (request.context?.authToken) {
|
||||||
request.extensions = defu(request.extensions, { headers: { Authorization: `Bearer ${request.context.authToken}` } });
|
request.extensions = defu(request.extensions, {
|
||||||
|
headers: { Authorization: `Bearer ${request.context.authToken}` },
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { H3Event } from "h3";
|
|
||||||
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, AuthLoginMutationResult } from "#graphql/operations";
|
||||||
import { AuthRefreshTokenDocument } from "#graphql/operations";
|
import { AuthRefreshTokenDocument } from "#graphql/operations";
|
||||||
import type { ResultOf } from "#graphql/registry";
|
import type { ResultOf } from "#graphql/registry";
|
||||||
|
import type { H3Event } from "h3";
|
||||||
|
import { jwtDecode } from "jwt-decode";
|
||||||
|
|
||||||
// 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, loginResult: AuthLoginMutationResult) {
|
||||||
@@ -54,10 +54,13 @@ export async function refreshAuthToken(refreshToken: string): Promise<string | u
|
|||||||
const refreshPromise = (async () => {
|
const refreshPromise = (async () => {
|
||||||
const { wpUrl } = useRuntimeConfig();
|
const { wpUrl } = useRuntimeConfig();
|
||||||
const endpoint = `${wpUrl}/graphql`;
|
const endpoint = `${wpUrl}/graphql`;
|
||||||
const { data } = await executeGraphQLHTTP<ResultOf<"AuthRefreshToken">>({
|
const { data } = await executeGraphQLHTTP<ResultOf<"AuthRefreshToken">>(
|
||||||
query: AuthRefreshTokenDocument,
|
{
|
||||||
variables: { refreshToken },
|
query: AuthRefreshTokenDocument,
|
||||||
}, { endpoint });
|
variables: { refreshToken },
|
||||||
|
},
|
||||||
|
{ endpoint },
|
||||||
|
);
|
||||||
return data?.refreshToken?.authToken || undefined;
|
return data?.refreshToken?.authToken || undefined;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
@@ -91,8 +94,7 @@ export async function getAuthToken(event: H3Event): Promise<string | undefined>
|
|||||||
}
|
}
|
||||||
session.secure.authToken = newAuthToken;
|
session.secure.authToken = newAuthToken;
|
||||||
await setUserSession(event, session);
|
await setUserSession(event, session);
|
||||||
}
|
} catch {
|
||||||
catch {
|
|
||||||
await clearUserSession(event);
|
await clearUserSession(event);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,4 +16,4 @@ declare module "#auth-utils" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { };
|
export {};
|
||||||
|
|||||||
@@ -15,4 +15,4 @@
|
|||||||
"path": "./.nuxt/tsconfig.node.json"
|
"path": "./.nuxt/tsconfig.node.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
15
wp-content/themes/moonshine/wrangler.json
Normal file
15
wp-content/themes/moonshine/wrangler.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"$schema": "node_modules/wrangler/config-schema.json",
|
||||||
|
"name": "wp-headless",
|
||||||
|
"main": ".output/server/index.mjs",
|
||||||
|
"compatibility_date": "2026-02-01",
|
||||||
|
"compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"],
|
||||||
|
"observability": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"preview_urls": false,
|
||||||
|
"assets": {
|
||||||
|
"binding": "ASSETS",
|
||||||
|
"directory": ".output/public"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user