Compare commits
1 Commits
main
...
84138e09b1
| Author | SHA1 | Date | |
|---|---|---|---|
| 84138e09b1 |
@@ -1,56 +0,0 @@
|
|||||||
name: Deployment
|
|
||||||
run-name: ${{ gitea.actor }} deploying ${{ gitea.repository.name }}
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
env:
|
|
||||||
NUXT_PROJECT_PATH: wp-content/themes/moonshine
|
|
||||||
PNPM_STORE_DIR: /cache/wp-scripts/pnpm
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
wordpress:
|
|
||||||
runs-on: ubuntu-websimple
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install WordPress scripts
|
|
||||||
env:
|
|
||||||
TEMPLATES_REPO_TOKEN: ${{ secrets.TEMPLATES_REPO_TOKEN }}
|
|
||||||
run: |
|
|
||||||
git clone https://$TEMPLATES_REPO_TOKEN@gitea.websimple.com/templates/wp-scripts.git /tmp/wp-scripts
|
|
||||||
|
|
||||||
- name: Run deployment script
|
|
||||||
env:
|
|
||||||
REMOTE_HOST: ${{ vars.REMOTE_HOST }}
|
|
||||||
REMOTE_PORT: ${{ vars.REMOTE_PORT }}
|
|
||||||
REMOTE_USER: ${{ vars.REMOTE_USER }}
|
|
||||||
REMOTE_PATH: ${{ vars.REMOTE_PATH }}
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
run: /tmp/wp-scripts/wp-deploy.sh --skip-node
|
|
||||||
|
|
||||||
nuxt:
|
|
||||||
runs-on: ubuntu-websimple
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ${{ env.NUXT_PROJECT_PATH }}
|
|
||||||
env:
|
|
||||||
NUXT_SITE_ENV: ${{ vars.NUXT_SITE_ENV }}
|
|
||||||
NUXT_SITE_URL: ${{ vars.NUXT_SITE_URL }}
|
|
||||||
NUXT_WP_URL: ${{ vars.NUXT_WP_URL }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Node.js dependencies
|
|
||||||
run: pnpm install --frozen-lockfile --store-dir $PNPM_STORE_DIR
|
|
||||||
|
|
||||||
- name: Build Nuxt project
|
|
||||||
run: pnpm build
|
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Workers
|
|
||||||
run: pnpm wrangler deploy
|
|
||||||
env:
|
|
||||||
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
|
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,7 +8,6 @@
|
|||||||
!/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
Normal file
20
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
@@ -3,3 +3,4 @@
|
|||||||
Headless WordPress project boilerplate using Nuxt.
|
Headless WordPress project boilerplate using Nuxt.
|
||||||
|
|
||||||
[✨ Release notes](/wp-content/themes/moonshine/CHANGELOG.md)
|
[✨ Release notes](/wp-content/themes/moonshine/CHANGELOG.md)
|
||||||
|
|
||||||
@@ -32,16 +32,12 @@
|
|||||||
"lintfix": "vendor/bin/phpcbf"
|
"lintfix": "vendor/bin/phpcbf"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"axepress/wp-graphql-rank-math": "*",
|
|
||||||
"lewebsimple/acf-phone": "*",
|
|
||||||
"lewebsimple/advanced-custom-fields-pro": "*",
|
"lewebsimple/advanced-custom-fields-pro": "*",
|
||||||
"lewebsimple/kaliroots": "*",
|
"lewebsimple/kaliroots": "*",
|
||||||
"lewebsimple/wp-graphql-headless-login": "*",
|
"lewebsimple/wp-graphql-headless-login": "*",
|
||||||
"wpackagist-plugin/acf-extended": "*",
|
"wpackagist-plugin/acf-extended": "*",
|
||||||
"wpackagist-plugin/clean-image-filenames": "*",
|
"wpackagist-plugin/clean-image-filenames": "*",
|
||||||
"wpackagist-plugin/disable-comments": "*",
|
"wpackagist-plugin/disable-comments": "*",
|
||||||
"wpackagist-plugin/media-focus-point": "*",
|
|
||||||
"wpackagist-plugin/seo-by-rank-math": "*",
|
|
||||||
"wpackagist-plugin/wp-graphql": "*",
|
"wpackagist-plugin/wp-graphql": "*",
|
||||||
"wpackagist-plugin/wpgraphql-acf": "*"
|
"wpackagist-plugin/wpgraphql-acf": "*"
|
||||||
},
|
},
|
||||||
|
|||||||
254
composer.lock
generated
254
composer.lock
generated
@@ -4,169 +4,8 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "e3ce417e8c09ed84502559af141f6530",
|
"content-hash": "aec2b0e396a71ea02fe95432358ca91e",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
|
||||||
"name": "axepress/wp-graphql-plugin-boilerplate",
|
|
||||||
"version": "0.1.1",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate.git",
|
|
||||||
"reference": "09495b61346453baabdf4c71a38ada3cfc91c3a7"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/AxeWP/wp-graphql-plugin-boilerplate/zipball/09495b61346453baabdf4c71a38ada3cfc91c3a7",
|
|
||||||
"reference": "09495b61346453baabdf4c71a38ada3cfc91c3a7",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=7.4"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"axepress/wp-graphql-cs": "^2.0.0",
|
|
||||||
"axepress/wp-graphql-stubs": "^2.3.0",
|
|
||||||
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9",
|
|
||||||
"phpstan/extension-installer": "^1.1",
|
|
||||||
"phpstan/phpstan": "^2.0",
|
|
||||||
"phpstan/phpstan-deprecation-rules": "^2.0.1",
|
|
||||||
"szepeviktor/phpstan-wordpress": "^2.0",
|
|
||||||
"wp-cli/wp-cli-bundle": "^2.8.1"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"AxeWP\\GraphQL\\": "src/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"GPL-3.0-or-later"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "AxePress Development",
|
|
||||||
"homepage": "https://axepress.dev"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "David Levine",
|
|
||||||
"role": "Developer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Boilerplate for creating WPGraphQL extensions",
|
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/issues",
|
|
||||||
"source": "https://github.com/AxeWP/wp-graphql-plugin-boilerplate/tree/0.1.1"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://github.com/AxeWp",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2025-06-07T02:03:50+00:00"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "axepress/wp-graphql-rank-math",
|
|
||||||
"version": "0.3.4",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/AxeWP/wp-graphql-rank-math.git",
|
|
||||||
"reference": "167bdd4a5350717ed34069c304e0ffc3fe02bc7d"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/AxeWP/wp-graphql-rank-math/zipball/167bdd4a5350717ed34069c304e0ffc3fe02bc7d",
|
|
||||||
"reference": "167bdd4a5350717ed34069c304e0ffc3fe02bc7d",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"axepress/wp-graphql-plugin-boilerplate": "^0.1.1",
|
|
||||||
"php": ">=7.4"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"axepress/wp-graphql-cs": "^2.0.0",
|
|
||||||
"axepress/wp-graphql-stubs": "^2.0.0",
|
|
||||||
"codeception/lib-innerbrowser": "^1.0",
|
|
||||||
"codeception/module-asserts": "^1.0",
|
|
||||||
"codeception/module-cli": "^1.0",
|
|
||||||
"codeception/module-db": "^1.0",
|
|
||||||
"codeception/module-filesystem": "^1.0",
|
|
||||||
"codeception/module-phpbrowser": "^1.0",
|
|
||||||
"codeception/module-rest": "^2.0",
|
|
||||||
"codeception/module-webdriver": "^1.0",
|
|
||||||
"codeception/phpunit-wrapper": "^9.0",
|
|
||||||
"codeception/util-universalframework": "^1.0",
|
|
||||||
"lucatume/wp-browser": "<3.5",
|
|
||||||
"php-coveralls/php-coveralls": "^2.5",
|
|
||||||
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9",
|
|
||||||
"phpstan/extension-installer": "^1.1",
|
|
||||||
"phpstan/phpstan": "^2.1.5",
|
|
||||||
"phpunit/phpunit": "^9.5",
|
|
||||||
"szepeviktor/phpstan-wordpress": "^2.0.1",
|
|
||||||
"wp-cli/wp-cli-bundle": "^2.8.1",
|
|
||||||
"wp-graphql/wp-graphql-testcase": "~3.4.0"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"extra": {
|
|
||||||
"strauss": {
|
|
||||||
"packages": [
|
|
||||||
"axepress/wp-graphql-plugin-boilerplate"
|
|
||||||
],
|
|
||||||
"classmap_prefix": "WPGraphQL_RankMath_",
|
|
||||||
"constant_prefix": "WPGRAPHQL_SEO_",
|
|
||||||
"namespace_prefix": "WPGraphQL\\RankMath\\Vendor\\",
|
|
||||||
"target_directory": "vendor-prefixed",
|
|
||||||
"update_call_sites": false,
|
|
||||||
"exclude_from_prefix": {
|
|
||||||
"namespaces": [],
|
|
||||||
"file_patterns": []
|
|
||||||
},
|
|
||||||
"include_modified_date": false,
|
|
||||||
"delete_vendor_packages": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"files": [
|
|
||||||
"access-functions.php"
|
|
||||||
],
|
|
||||||
"psr-4": {
|
|
||||||
"WPGraphQL\\RankMath\\": "src/"
|
|
||||||
},
|
|
||||||
"classmap": [
|
|
||||||
"vendor-prefixed/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"GPL-3.0-or-later"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "AxePress Development",
|
|
||||||
"email": "support@axepress.dev",
|
|
||||||
"homepage": "https://axepress.dev"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "David Levine",
|
|
||||||
"role": "Developer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Adds WPGraphQL support for RankMath SEO",
|
|
||||||
"support": {
|
|
||||||
"email": "support@axepress.dev",
|
|
||||||
"forum": "https://github.com/AxeWP/wp-graphql-rank-math/discussions",
|
|
||||||
"issues": "https://github.com/AxeWP/wp-graphql-rank-math/issues",
|
|
||||||
"source": "https://github.com/AxeWP/wp-graphql-rank-math/tree/0.3.4"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://github.com/sponsors/AxeWP",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2025-06-07T12:05:15+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "composer/installers",
|
"name": "composer/installers",
|
||||||
"version": "v2.3.0",
|
"version": "v2.3.0",
|
||||||
@@ -313,43 +152,6 @@
|
|||||||
],
|
],
|
||||||
"time": "2024-06-24T20:46:46+00:00"
|
"time": "2024-06-24T20:46:46+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "lewebsimple/acf-phone",
|
|
||||||
"version": "v3.1.1",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/lewebsimple/acf-phone.git",
|
|
||||||
"reference": "f9cb86eacb26eb92a40eb5e4366cff3e58e01f47"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/acf-phone/lewebsimple-acf-phone-f9cb86eacb26eb92a40eb5e4366cff3e58e01f47-zip-606a09.zip",
|
|
||||||
"reference": "f9cb86eacb26eb92a40eb5e4366cff3e58e01f47",
|
|
||||||
"shasum": "2bbbc7d7f917e278d7d913bcb9da07a30f4662e6"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"lewebsimple/wp-phpcs-ruleset": "*",
|
|
||||||
"php-stubs/acf-pro-stubs": "*",
|
|
||||||
"squizlabs/php_codesniffer": "*"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"scripts": {
|
|
||||||
"post-create-project-cmd": [
|
|
||||||
"./scripts/post-create.sh"
|
|
||||||
],
|
|
||||||
"lint": [
|
|
||||||
"vendor/bin/phpcs"
|
|
||||||
],
|
|
||||||
"lintfix": [
|
|
||||||
"vendor/bin/phpcbf"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/lewebsimple/acf-phone/tree/v3.1.1",
|
|
||||||
"issues": "https://github.com/lewebsimple/acf-phone/issues"
|
|
||||||
},
|
|
||||||
"time": "2026-02-10T17:56:38+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/advanced-custom-fields-pro",
|
"name": "lewebsimple/advanced-custom-fields-pro",
|
||||||
"version": "v6.7.0.2",
|
"version": "v6.7.0.2",
|
||||||
@@ -369,20 +171,20 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/kaliroots",
|
"name": "lewebsimple/kaliroots",
|
||||||
"version": "v0.9.19",
|
"version": "v0.9.18",
|
||||||
"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": "40789468328e126cec9bd2f85a6a9923663a8d91"
|
"reference": "720554dff6ea45216b52187b7e8d5b87200d55a4"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/kaliroots/lewebsimple-kaliroots-v0.9.19-12b0b3.zip",
|
"url": "https://satis.ledevsimple.ca/dist/lewebsimple/kaliroots/lewebsimple-kaliroots-v0.9.18-77d6cf.zip",
|
||||||
"reference": "40789468328e126cec9bd2f85a6a9923663a8d91",
|
"reference": "720554dff6ea45216b52187b7e8d5b87200d55a4",
|
||||||
"shasum": "0a4cadbbc7719ee7de94b5cff4b2bb9c436f6416"
|
"shasum": "fd6aea0ef1bc160bc183eb7239cc9adf2fd88169"
|
||||||
},
|
},
|
||||||
"type": "wordpress-theme",
|
"type": "wordpress-theme",
|
||||||
"time": "2026-02-09T15:07:56+00:00"
|
"time": "2025-10-10T12:11:22+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lewebsimple/wp-graphql-headless-login",
|
"name": "lewebsimple/wp-graphql-headless-login",
|
||||||
@@ -455,53 +257,17 @@
|
|||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"homepage": "https://wordpress.org/plugins/disable-comments/"
|
"homepage": "https://wordpress.org/plugins/disable-comments/"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "wpackagist-plugin/media-focus-point",
|
|
||||||
"version": "2.0.5",
|
|
||||||
"source": {
|
|
||||||
"type": "svn",
|
|
||||||
"url": "https://plugins.svn.wordpress.org/media-focus-point/",
|
|
||||||
"reference": "tags/2.0.5"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://downloads.wordpress.org/plugin/media-focus-point.2.0.5.zip"
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"homepage": "https://wordpress.org/plugins/media-focus-point/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "wpackagist-plugin/seo-by-rank-math",
|
|
||||||
"version": "1.0.264",
|
|
||||||
"source": {
|
|
||||||
"type": "svn",
|
|
||||||
"url": "https://plugins.svn.wordpress.org/seo-by-rank-math/",
|
|
||||||
"reference": "tags/1.0.264"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://downloads.wordpress.org/plugin/seo-by-rank-math.1.0.264.zip"
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
|
||||||
},
|
|
||||||
"type": "wordpress-plugin",
|
|
||||||
"homepage": "https://wordpress.org/plugins/seo-by-rank-math/"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/wp-graphql",
|
"name": "wpackagist-plugin/wp-graphql",
|
||||||
"version": "2.8.0",
|
"version": "2.6.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "svn",
|
"type": "svn",
|
||||||
"url": "https://plugins.svn.wordpress.org/wp-graphql/",
|
"url": "https://plugins.svn.wordpress.org/wp-graphql/",
|
||||||
"reference": "tags/2.8.0"
|
"reference": "tags/2.6.0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://downloads.wordpress.org/plugin/wp-graphql.2.8.0.zip"
|
"url": "https://downloads.wordpress.org/plugin/wp-graphql.2.6.0.zip"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/installers": "^1.0 || ^2.0"
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"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,20 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Customize home URL for headless WordPress
|
|
||||||
add_filter( 'home_url', 'headless_home_url', 10, 4 );
|
|
||||||
function headless_home_url( $url, $path, $orig_scheme, $blog_id ) {
|
|
||||||
// Exclude specific patterns from rewriting
|
|
||||||
$excluded_patterns = array(
|
|
||||||
'#/wp-json(/|$)#i', // WP REST API
|
|
||||||
'#\.(xsl|xml)$#i', // Sitemap and XSLT files
|
|
||||||
);
|
|
||||||
foreach ( $excluded_patterns as $pattern ) {
|
|
||||||
if ( preg_match( $pattern, $url ) ) {
|
|
||||||
return get_site_url( $blog_id, $path, $orig_scheme );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Rewrite URL protocol to match original home scheme
|
|
||||||
$scheme = wp_parse_url( get_option( 'home' ) )['scheme'] ?? 'https';
|
|
||||||
return preg_replace( '#^https:#i', "$scheme:", $url );
|
|
||||||
}
|
|
||||||
4
wp-content/themes/moonshine/.gitignore
vendored
4
wp-content/themes/moonshine/.gitignore
vendored
@@ -22,7 +22,3 @@ logs
|
|||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
|
|
||||||
# Wrangler files
|
|
||||||
.wrangler
|
|
||||||
server/types/cloudflare.d.ts
|
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"$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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"$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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": ["oxc.oxc-vscode"]
|
|
||||||
}
|
|
||||||
25
wp-content/themes/moonshine/.vscode/launch.json
vendored
25
wp-content/themes/moonshine/.vscode/launch.json
vendored
@@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
{
|
|
||||||
"[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,196 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## v0.1.14
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.13...v0.1.14)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Replace eslint => oxlint + oxfmt (9bb09b8)
|
|
||||||
- VSCode launch configurations (fdf32bb)
|
|
||||||
- Project.code-workspace (71a48de)
|
|
||||||
- UseLayoutWrapper (3ec98fd)
|
|
||||||
- Auth middleware (fc6168e)
|
|
||||||
- UiLoadMore (e9d6ca2)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Wrangler config (db83170)
|
|
||||||
- Abstract social profiles should not be non-null (b0c5e4c)
|
|
||||||
|
|
||||||
## v0.1.13
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.12...v0.1.13)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- TinyMCE list style (8ae6daf)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Wrangler.json needed for wrangler types before build (faf39ca)
|
|
||||||
|
|
||||||
## v0.1.12
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.11...v0.1.12)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- ConnexionButton (87be06e)
|
|
||||||
- ShowLabel (98e8d97)
|
|
||||||
- ParseAcfLink (2cfc1a0)
|
|
||||||
- ParseAcfMedia (ab563a7)
|
|
||||||
- Event context type for Cloudflare environment (4338028)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- UApp in app.vue (28f6e1a)
|
|
||||||
|
|
||||||
## v0.1.11
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.10...v0.1.11)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- MapSocialIcon (6dd13ea)
|
|
||||||
- AcfSocial / parseAcfSocial (3199835)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Remove unneeded wrangler main / assets (eea020b)
|
|
||||||
- Cloudflare image provider only in production (291fa6e)
|
|
||||||
- Wrangler project name (8f037b5)
|
|
||||||
- ENABLE_CLOUDFLARE_IMAGE (9c3dcee)
|
|
||||||
|
|
||||||
## v0.1.10
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.9...v0.1.10)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- GroupSiteOptions.phoneNumber (ad3c53c)
|
|
||||||
- AcfPhone component (6b17201)
|
|
||||||
- AcfLink / AcfLinkButton components (115a5d2)
|
|
||||||
|
|
||||||
### 💅 Refactors
|
|
||||||
|
|
||||||
- OptionsSite => SiteOptions for clearer naming (fefa980)
|
|
||||||
|
|
||||||
## v0.1.9
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.8...v0.1.9)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Enhance refreshAuthToken to prevent duplicate requests (5e39b53)
|
|
||||||
- Default site-logo.svg (238aa29)
|
|
||||||
- Initial Media / HeroSplit acf groups (0fbd2bf)
|
|
||||||
- Media Focus Point plugin integration (bff7bce)
|
|
||||||
- AcfImage component based on @nuxt/image (4918c63)
|
|
||||||
- AcfMedia component (image + aspect + object-fit) (8bd544b)
|
|
||||||
- HeroSplit section (0bafc3a)
|
|
||||||
|
|
||||||
## v0.1.8
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.7...v0.1.8)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- UseResponsive with device detection on SSR (c82bf47)
|
|
||||||
- Graphql cache keyPrefix from package.json version (b1b1aa4)
|
|
||||||
- All of wrangler config in nuxt.config.ts (21a7036)
|
|
||||||
- Configure nuxt-svgo module (5f9c29c)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Headless_home_url needs to be in mu-plugins (51f594b)
|
|
||||||
- Use public wpUrl runtime config for auth refresh token mutation (2c86905)
|
|
||||||
- Term_order and default WPGraphQL settings (a27e6af)
|
|
||||||
- Update nuxt-graphql and extractNodes typing (maybe => undefined instead of null) (27f4f73)
|
|
||||||
|
|
||||||
## v0.1.7
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.6...v0.1.7)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Configure sitemap URL in robots.txt (63f8e44)
|
|
||||||
- Deploy to Cloudflare workers (c6dfbeb)
|
|
||||||
- Display theme version in admin footer (b886585)
|
|
||||||
|
|
||||||
## v0.1.6
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.5...v0.1.6)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Site options page & field group (489ac82)
|
|
||||||
- Initial SEO integration (c5ce607)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Bypass headless home URL for specific cases (108269e)
|
|
||||||
|
|
||||||
## v0.1.5
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.4...v0.1.5)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Auth server utils upgrade to latest nuxt-graphql (fd61895)
|
|
||||||
- Immutable extractNodes (baa3061)
|
|
||||||
- Type issue with NodePage (3b706c0)
|
|
||||||
|
|
||||||
## v0.1.4
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.2...v0.1.4)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Initial NodeByUri logic and frontend (688c4e3)
|
|
||||||
- BuilderSections component (2b9a875)
|
|
||||||
- LaoutContained (c7f6cca)
|
|
||||||
- LayoutContained section wrapper (12048ff)
|
|
||||||
- Initial typography / prose styles (764bc6a)
|
|
||||||
- UiProse prose component with link highjacking (40becf1)
|
|
||||||
- TinyMCE WYSIWYG editor styles (8e26f19)
|
|
||||||
- Login / logout toast (2d0b176)
|
|
||||||
- Hide title on front page (5e0df22)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Fatal 404 (bfb5ae3)
|
|
||||||
|
|
||||||
### 💅 Refactors
|
|
||||||
|
|
||||||
- Update to nuxt-graphql 0.5.x (e383255)
|
|
||||||
- /api/login route (9d99770)
|
|
||||||
|
|
||||||
## v0.1.3
|
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.2...v0.1.3)
|
|
||||||
|
|
||||||
### 🚀 Enhancements
|
|
||||||
|
|
||||||
- Initial NodeByUri logic and frontend (688c4e3)
|
|
||||||
- BuilderSections component (2b9a875)
|
|
||||||
- LaoutContained (c7f6cca)
|
|
||||||
- LayoutContained section wrapper (12048ff)
|
|
||||||
- Initial typography / prose styles (764bc6a)
|
|
||||||
- UiProse prose component with link highjacking (40becf1)
|
|
||||||
- TinyMCE WYSIWYG editor styles (8e26f19)
|
|
||||||
- Login / logout toast (2d0b176)
|
|
||||||
- Hide title on front page (5e0df22)
|
|
||||||
|
|
||||||
### 🩹 Fixes
|
|
||||||
|
|
||||||
- Fatal 404 (bfb5ae3)
|
|
||||||
|
|
||||||
### 💅 Refactors
|
|
||||||
|
|
||||||
- Update to nuxt-graphql 0.5.x (e383255)
|
|
||||||
- /api/login route (9d99770)
|
|
||||||
|
|
||||||
## v0.1.2
|
## v0.1.2
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.1...v0.1.2)
|
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.1...v0.1.2)
|
||||||
@@ -208,6 +17,7 @@
|
|||||||
|
|
||||||
## 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)
|
||||||
|
|||||||
@@ -1,19 +1,3 @@
|
|||||||
# Moonshine
|
# Moonshine
|
||||||
|
|
||||||
Thème WordPress en headless basé sur Nuxt.
|
Headless WordPress theme based on Nuxt.
|
||||||
|
|
||||||
## Variables d'environnement
|
|
||||||
|
|
||||||
| Nom | Description | Exemple | Requise |
|
|
||||||
| --------------- | ------------------------ | ----------------------- | ------- |
|
|
||||||
| `NUXT_SITE_ENV` | Environnement | staging \| production | ➖ |
|
|
||||||
| `NUXT_SITE_URL` | URL du frontend Nuxt | https://www.example.com | ➖ |
|
|
||||||
| `NUXT_WP_URL` | URL du backend WordPress | https://wp.exemple.com | ✅ |
|
|
||||||
|
|
||||||
## Secrets
|
|
||||||
|
|
||||||
Configurer les secrets nécessaires au projet:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
pnpm wrangler secret put NUXT_SESSION_PASSWORD
|
|
||||||
```
|
|
||||||
@@ -24,7 +24,11 @@
|
|||||||
"acfe_flexible_layouts_placeholder": 0,
|
"acfe_flexible_layouts_placeholder": 0,
|
||||||
"acfe_flexible_layouts_thumbnails": 0,
|
"acfe_flexible_layouts_thumbnails": 0,
|
||||||
"acfe_flexible_async": [],
|
"acfe_flexible_async": [],
|
||||||
"acfe_flexible_add_actions": ["copy", "title", "toggle"],
|
"acfe_flexible_add_actions": [
|
||||||
|
"copy",
|
||||||
|
"title",
|
||||||
|
"toggle"
|
||||||
|
],
|
||||||
"acfe_flexible_remove_button": [],
|
"acfe_flexible_remove_button": [],
|
||||||
"acfe_flexible_remove_top_actions": [],
|
"acfe_flexible_remove_top_actions": [],
|
||||||
"acfe_flexible_modal_edit": {
|
"acfe_flexible_modal_edit": {
|
||||||
@@ -97,9 +101,7 @@
|
|||||||
"max": "",
|
"max": "",
|
||||||
"acfe_flexible_modal_edit_size": "",
|
"acfe_flexible_modal_edit_size": "",
|
||||||
"acfe_flexible_settings": [
|
"acfe_flexible_settings": [
|
||||||
"group_layout_colored",
|
"group_layout_contained"
|
||||||
"group_layout_contained",
|
|
||||||
"group_layout_padded"
|
|
||||||
],
|
],
|
||||||
"acfe_flexible_settings_size": "large",
|
"acfe_flexible_settings_size": "large",
|
||||||
"acfe_flexible_render_template": false,
|
"acfe_flexible_render_template": false,
|
||||||
@@ -107,100 +109,6 @@
|
|||||||
"acfe_flexible_render_script": false,
|
"acfe_flexible_render_script": false,
|
||||||
"acfe_flexible_thumbnail": false,
|
"acfe_flexible_thumbnail": false,
|
||||||
"acfe_flexible_category": false
|
"acfe_flexible_category": false
|
||||||
},
|
|
||||||
"layout_697caf9a3e05b": {
|
|
||||||
"key": "layout_697caf9a3e05b",
|
|
||||||
"name": "hero_split",
|
|
||||||
"label": "Héro en moitié",
|
|
||||||
"display": "block",
|
|
||||||
"sub_fields": [
|
|
||||||
{
|
|
||||||
"key": "field_697cafb13e05d",
|
|
||||||
"label": "Content",
|
|
||||||
"name": "content",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "wysiwyg",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"default_value": "",
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"tabs": "all",
|
|
||||||
"toolbar": "full",
|
|
||||||
"media_upload": 0,
|
|
||||||
"delay": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "content",
|
|
||||||
"graphql_non_null": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "field_697cafc43e05e",
|
|
||||||
"label": "Media",
|
|
||||||
"name": "media",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "clone",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"graphql_field_name": "media",
|
|
||||||
"clone": ["group_abstract_media"],
|
|
||||||
"display": "seamless",
|
|
||||||
"layout": "block",
|
|
||||||
"prefix_label": 0,
|
|
||||||
"prefix_name": 0,
|
|
||||||
"acfe_seamless_style": 0,
|
|
||||||
"acfe_clone_modal": 0,
|
|
||||||
"acfe_clone_modal_close": 0,
|
|
||||||
"acfe_clone_modal_button": "",
|
|
||||||
"acfe_clone_modal_size": "large"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "field_697cafdc3e05f",
|
|
||||||
"label": "Position de l'image",
|
|
||||||
"name": "reverse",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "true_false",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 0,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"message": "",
|
|
||||||
"default_value": 0,
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"ui_on_text": "Gauche",
|
|
||||||
"ui_off_text": "Droite",
|
|
||||||
"ui": 1,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "reverse",
|
|
||||||
"graphql_non_null": 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"min": "",
|
|
||||||
"max": "",
|
|
||||||
"acfe_flexible_modal_edit_size": "",
|
|
||||||
"acfe_flexible_settings": ["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": "",
|
"min": "",
|
||||||
@@ -227,12 +135,16 @@
|
|||||||
"style": "seamless",
|
"style": "seamless",
|
||||||
"label_placement": "top",
|
"label_placement": "top",
|
||||||
"instruction_placement": "label",
|
"instruction_placement": "label",
|
||||||
"hide_on_screen": ["the_content"],
|
"hide_on_screen": [
|
||||||
|
"the_content"
|
||||||
|
],
|
||||||
"active": true,
|
"active": true,
|
||||||
"description": "",
|
"description": "",
|
||||||
"show_in_rest": 0,
|
"show_in_rest": 0,
|
||||||
"display_title": "",
|
"display_title": "",
|
||||||
"acfe_autosync": ["json"],
|
"acfe_autosync": [
|
||||||
|
"json"
|
||||||
|
],
|
||||||
"acfe_form": 0,
|
"acfe_form": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_field_name": "GroupAbstractBuilder",
|
"graphql_field_name": "GroupAbstractBuilder",
|
||||||
@@ -240,5 +152,5 @@
|
|||||||
"graphql_types": "",
|
"graphql_types": "",
|
||||||
"acfe_meta": "",
|
"acfe_meta": "",
|
||||||
"acfe_note": "",
|
"acfe_note": "",
|
||||||
"modified": 1770740697
|
"modified": 1768358815
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,121 +0,0 @@
|
|||||||
{
|
|
||||||
"key": "group_abstract_media",
|
|
||||||
"title": "Abstract - Media",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"key": "field_697caec68536d",
|
|
||||||
"label": "Image",
|
|
||||||
"name": "image",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "image",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "33",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"uploader": "",
|
|
||||||
"return_format": "array",
|
|
||||||
"library": "all",
|
|
||||||
"acfe_thumbnail": 0,
|
|
||||||
"min_width": "",
|
|
||||||
"min_height": "",
|
|
||||||
"min_size": "",
|
|
||||||
"max_width": "",
|
|
||||||
"max_height": "",
|
|
||||||
"max_size": "",
|
|
||||||
"mime_types": "",
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"preview_size": "medium",
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "image"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "field_697caf018536e",
|
|
||||||
"label": "Ratio d'aspect",
|
|
||||||
"name": "aspect_ratio",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "button_group",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "33",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"choices": {
|
|
||||||
"square": "Carré (1:1)",
|
|
||||||
"video": "Vidéo (16:9)",
|
|
||||||
"portrait": "Portrait (2:3)",
|
|
||||||
"auto": "Aspect d'origine"
|
|
||||||
},
|
|
||||||
"default_value": "auto",
|
|
||||||
"return_format": "value",
|
|
||||||
"allow_null": 0,
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"layout": "horizontal",
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "aspectRatio",
|
|
||||||
"graphql_non_null": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "field_697caf378536f",
|
|
||||||
"label": "Ajustement de l'image",
|
|
||||||
"name": "object_fit",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "button_group",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "33",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"choices": {
|
|
||||||
"cover": "Recadrer si nécessaire",
|
|
||||||
"contain": "Contenir sans recadrage"
|
|
||||||
},
|
|
||||||
"default_value": "cover",
|
|
||||||
"return_format": "value",
|
|
||||||
"allow_null": 0,
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"layout": "horizontal",
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "objectFit",
|
|
||||||
"graphql_non_null": 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"location": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"param": "abstract"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"menu_order": 0,
|
|
||||||
"position": "normal",
|
|
||||||
"style": "seamless",
|
|
||||||
"label_placement": "top",
|
|
||||||
"instruction_placement": "label",
|
|
||||||
"hide_on_screen": "",
|
|
||||||
"active": true,
|
|
||||||
"description": "",
|
|
||||||
"show_in_rest": 0,
|
|
||||||
"display_title": "",
|
|
||||||
"acfe_autosync": ["json"],
|
|
||||||
"acfe_form": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_field_name": "GroupAbstractMedia",
|
|
||||||
"map_graphql_types_from_location_rules": 0,
|
|
||||||
"graphql_types": "",
|
|
||||||
"acfe_meta": "",
|
|
||||||
"acfe_note": "",
|
|
||||||
"modified": 1769779078
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
{
|
|
||||||
"key": "group_abstract_social",
|
|
||||||
"title": "Abstract - Social",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"key": "field_6855a1d643408",
|
|
||||||
"label": "Médias sociaux",
|
|
||||||
"name": "profiles",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "repeater",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 0,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"acfe_repeater_stylised_button": 0,
|
|
||||||
"layout": "table",
|
|
||||||
"pagination": 0,
|
|
||||||
"min": 0,
|
|
||||||
"max": 0,
|
|
||||||
"collapsed": "",
|
|
||||||
"button_label": "Ajouter un élément",
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "profiles",
|
|
||||||
"graphql_non_null": 0,
|
|
||||||
"rows_per_page": 20,
|
|
||||||
"sub_fields": [
|
|
||||||
{
|
|
||||||
"key": "field_6855a7e143409",
|
|
||||||
"label": "URL",
|
|
||||||
"name": "url",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "url",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"default_value": "",
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"placeholder": "",
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "url",
|
|
||||||
"graphql_non_null": 1,
|
|
||||||
"parent_repeater": "field_6855a1d643408"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"location": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"param": "abstract"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"menu_order": 0,
|
|
||||||
"position": "normal",
|
|
||||||
"style": "seamless",
|
|
||||||
"label_placement": "top",
|
|
||||||
"instruction_placement": "label",
|
|
||||||
"hide_on_screen": "",
|
|
||||||
"active": true,
|
|
||||||
"description": "",
|
|
||||||
"show_in_rest": 0,
|
|
||||||
"display_title": "",
|
|
||||||
"acfe_autosync": ["json"],
|
|
||||||
"acfe_form": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_field_name": "GroupAbstractSocial",
|
|
||||||
"map_graphql_types_from_location_rules": 0,
|
|
||||||
"graphql_types": "",
|
|
||||||
"acfe_meta": "",
|
|
||||||
"acfe_note": "",
|
|
||||||
"modified": 1770821599
|
|
||||||
}
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
@@ -4,10 +4,10 @@
|
|||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"key": "field_68dc29d78941c",
|
"key": "field_68dc29d78941c",
|
||||||
"label": "Largeur du contenu",
|
"label": "Conteneur",
|
||||||
"name": "container",
|
"name": "container",
|
||||||
"aria-label": "",
|
"aria-label": "",
|
||||||
"type": "button_group",
|
"type": "select",
|
||||||
"instructions": "",
|
"instructions": "",
|
||||||
"required": 1,
|
"required": 1,
|
||||||
"conditional_logic": 0,
|
"conditional_logic": 0,
|
||||||
@@ -21,17 +21,101 @@
|
|||||||
"xl": "1280px",
|
"xl": "1280px",
|
||||||
"lg": "1024px",
|
"lg": "1024px",
|
||||||
"fluid": "Largeur fluide",
|
"fluid": "Largeur fluide",
|
||||||
"fullbleed": "Pleine largeur"
|
"none": "Pleine largeur"
|
||||||
},
|
},
|
||||||
"default_value": "default",
|
"default_value": "default",
|
||||||
"return_format": "value",
|
"return_format": "value",
|
||||||
|
"multiple": 0,
|
||||||
|
"max": "",
|
||||||
|
"prepend": "",
|
||||||
|
"append": "",
|
||||||
|
"required_message": "",
|
||||||
"allow_null": 0,
|
"allow_null": 0,
|
||||||
"allow_in_bindings": 0,
|
"allow_in_bindings": 0,
|
||||||
"layout": "horizontal",
|
"ui": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_description": "",
|
"graphql_description": "",
|
||||||
"graphql_field_name": "container",
|
"graphql_field_name": "container",
|
||||||
"graphql_non_null": 1
|
"graphql_non_null": 1,
|
||||||
|
"ajax": 0,
|
||||||
|
"placeholder": "",
|
||||||
|
"create_options": 0,
|
||||||
|
"save_options": 0,
|
||||||
|
"allow_custom": 0,
|
||||||
|
"search_placeholder": "",
|
||||||
|
"min": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "field_693c8c3b5ce50",
|
||||||
|
"label": "Espacement vertical",
|
||||||
|
"name": "vertical_padding",
|
||||||
|
"aria-label": "",
|
||||||
|
"type": "select",
|
||||||
|
"instructions": "",
|
||||||
|
"required": 1,
|
||||||
|
"conditional_logic": 0,
|
||||||
|
"wrapper": {
|
||||||
|
"width": "",
|
||||||
|
"class": "",
|
||||||
|
"id": ""
|
||||||
|
},
|
||||||
|
"choices": {
|
||||||
|
"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": [
|
"location": [
|
||||||
@@ -51,7 +135,9 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"show_in_rest": 0,
|
"show_in_rest": 0,
|
||||||
"display_title": "",
|
"display_title": "",
|
||||||
"acfe_autosync": ["json"],
|
"acfe_autosync": [
|
||||||
|
"json"
|
||||||
|
],
|
||||||
"acfe_form": 0,
|
"acfe_form": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_field_name": "GroupLayoutContained",
|
"graphql_field_name": "GroupLayoutContained",
|
||||||
@@ -59,5 +145,5 @@
|
|||||||
"graphql_types": "",
|
"graphql_types": "",
|
||||||
"acfe_meta": "",
|
"acfe_meta": "",
|
||||||
"acfe_note": "",
|
"acfe_note": "",
|
||||||
"modified": 1770740626
|
"modified": 1768358794
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,62 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
{
|
|
||||||
"key": "group_options_site",
|
|
||||||
"title": "Options - Site",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"key": "field_697220310aaaf",
|
|
||||||
"label": "Courriel",
|
|
||||||
"name": "email",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "email",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"default_value": "",
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"placeholder": "",
|
|
||||||
"prepend": "",
|
|
||||||
"append": "",
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "email",
|
|
||||||
"graphql_non_null": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "field_697cbf414fdd5",
|
|
||||||
"label": "Numéro de téléphone",
|
|
||||||
"name": "phone_number",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "phone",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"initial_country": "CA",
|
|
||||||
"return_format": "national",
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "phoneNumber",
|
|
||||||
"graphql_non_null": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "field_697cd4c5fc56a",
|
|
||||||
"label": "Médias sociaux",
|
|
||||||
"name": "social",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "clone",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 0,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"graphql_field_name": "social",
|
|
||||||
"clone": ["group_abstract_social"],
|
|
||||||
"display": "seamless",
|
|
||||||
"layout": "block",
|
|
||||||
"prefix_label": 0,
|
|
||||||
"prefix_name": 0,
|
|
||||||
"acfe_seamless_style": 0,
|
|
||||||
"acfe_clone_modal": 0,
|
|
||||||
"acfe_clone_modal_close": 0,
|
|
||||||
"acfe_clone_modal_button": "",
|
|
||||||
"acfe_clone_modal_size": "large"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "field_697cc921234cc",
|
|
||||||
"label": "Liens globaux",
|
|
||||||
"name": "links",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "group",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 0,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"layout": "row",
|
|
||||||
"acfe_seamless_style": 0,
|
|
||||||
"acfe_group_modal": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "links",
|
|
||||||
"graphql_non_null": 0,
|
|
||||||
"acfe_group_modal_close": 0,
|
|
||||||
"acfe_group_modal_button": "",
|
|
||||||
"acfe_group_modal_size": "large",
|
|
||||||
"sub_fields": [
|
|
||||||
{
|
|
||||||
"key": "field_697cc93e234cd",
|
|
||||||
"label": "Contact",
|
|
||||||
"name": "contact",
|
|
||||||
"aria-label": "",
|
|
||||||
"type": "link",
|
|
||||||
"instructions": "",
|
|
||||||
"required": 1,
|
|
||||||
"conditional_logic": 0,
|
|
||||||
"wrapper": {
|
|
||||||
"width": "",
|
|
||||||
"class": "",
|
|
||||||
"id": ""
|
|
||||||
},
|
|
||||||
"return_format": "array",
|
|
||||||
"allow_in_bindings": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_description": "",
|
|
||||||
"graphql_field_name": "contact",
|
|
||||||
"graphql_non_null": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"location": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"param": "options_page",
|
|
||||||
"operator": "==",
|
|
||||||
"value": "site-options"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"menu_order": 0,
|
|
||||||
"position": "normal",
|
|
||||||
"style": "seamless",
|
|
||||||
"label_placement": "top",
|
|
||||||
"instruction_placement": "label",
|
|
||||||
"hide_on_screen": "",
|
|
||||||
"active": true,
|
|
||||||
"description": "",
|
|
||||||
"show_in_rest": 0,
|
|
||||||
"display_title": "",
|
|
||||||
"acfe_autosync": ["json"],
|
|
||||||
"acfe_form": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_field_name": "GroupSiteOptions",
|
|
||||||
"map_graphql_types_from_location_rules": 0,
|
|
||||||
"graphql_types": "",
|
|
||||||
"acfe_meta": "",
|
|
||||||
"acfe_note": "",
|
|
||||||
"modified": 1770820358
|
|
||||||
}
|
|
||||||
@@ -17,7 +17,9 @@
|
|||||||
"id": ""
|
"id": ""
|
||||||
},
|
},
|
||||||
"graphql_field_name": "builder",
|
"graphql_field_name": "builder",
|
||||||
"clone": ["group_abstract_builder"],
|
"clone": [
|
||||||
|
"group_abstract_builder"
|
||||||
|
],
|
||||||
"display": "seamless",
|
"display": "seamless",
|
||||||
"layout": "block",
|
"layout": "block",
|
||||||
"prefix_label": 0,
|
"prefix_label": 0,
|
||||||
@@ -43,12 +45,16 @@
|
|||||||
"style": "seamless",
|
"style": "seamless",
|
||||||
"label_placement": "top",
|
"label_placement": "top",
|
||||||
"instruction_placement": "label",
|
"instruction_placement": "label",
|
||||||
"hide_on_screen": ["the_content"],
|
"hide_on_screen": [
|
||||||
|
"the_content"
|
||||||
|
],
|
||||||
"active": true,
|
"active": true,
|
||||||
"description": "",
|
"description": "",
|
||||||
"show_in_rest": 0,
|
"show_in_rest": 0,
|
||||||
"display_title": "",
|
"display_title": "",
|
||||||
"acfe_autosync": ["json"],
|
"acfe_autosync": [
|
||||||
|
"json"
|
||||||
|
],
|
||||||
"acfe_form": 0,
|
"acfe_form": 0,
|
||||||
"show_in_graphql": 1,
|
"show_in_graphql": 1,
|
||||||
"graphql_field_name": "GroupPostPage",
|
"graphql_field_name": "GroupPostPage",
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"key": "ui_options_page_site",
|
|
||||||
"title": "Options du site",
|
|
||||||
"active": true,
|
|
||||||
"menu_order": 0,
|
|
||||||
"page_title": "Options du site",
|
|
||||||
"menu_slug": "site-options",
|
|
||||||
"parent_slug": "options-general.php",
|
|
||||||
"advanced_configuration": 1,
|
|
||||||
"icon_url": "",
|
|
||||||
"menu_title": "",
|
|
||||||
"position": "",
|
|
||||||
"redirect": false,
|
|
||||||
"description": "",
|
|
||||||
"menu_icon": [],
|
|
||||||
"update_button": "Mise à jour",
|
|
||||||
"updated_message": "Options mises à jours",
|
|
||||||
"capability": "edit_posts",
|
|
||||||
"data_storage": "options",
|
|
||||||
"post_id": "",
|
|
||||||
"autoload": 0,
|
|
||||||
"show_in_graphql": 1,
|
|
||||||
"graphql_type_name": "SiteOptions",
|
|
||||||
"modified": 1769693948
|
|
||||||
}
|
|
||||||
@@ -9,15 +9,5 @@ export default defineAppConfig({
|
|||||||
base: "cursor-pointer",
|
base: "cursor-pointer",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
input: {
|
|
||||||
slots: {
|
|
||||||
root: "w-full",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
textarea: {
|
|
||||||
slots: {
|
|
||||||
root: "w-full",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,13 +1,9 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import { fr } from "@nuxt/ui/locale";
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UApp :locale="fr">
|
<div>
|
||||||
<NuxtRouteAnnouncer />
|
<NuxtRouteAnnouncer />
|
||||||
<NuxtLoadingIndicator />
|
<NuxtLoadingIndicator />
|
||||||
<NuxtLayout>
|
<NuxtLayout>
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</UApp>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
@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,27 +8,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Container sizes */
|
/* Container sizes */
|
||||||
@utility container {
|
@utility container { @apply mx-auto px-container max-w-(--breakpoint-2xl); }
|
||||||
@apply mx-auto px-container max-w-(--breakpoint-2xl);
|
@utility container-xl { @apply container max-w-(--breakpoint-xl); }
|
||||||
}
|
@utility container-lg { @apply container max-w-(--breakpoint-lg); }
|
||||||
@utility container-xl {
|
@utility container-md { @apply container max-w-(--breakpoint-md); }
|
||||||
@apply container max-w-(--breakpoint-xl);
|
@utility container-sm { @apply container max-w-(--breakpoint-sm); }
|
||||||
}
|
@utility container-fluid { @apply container max-w-screen; }
|
||||||
@utility container-lg {
|
@utility container-none { @apply w-full max-w-screen; }
|
||||||
@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 {
|
||||||
@@ -56,12 +42,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@utility container-left {
|
@utility container-left { @apply ml-(--container-outside-margin) px-container;}
|
||||||
@apply ml-(--container-outside-margin) px-container;
|
@utility container-right { @apply mr-(--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,12 +2,6 @@
|
|||||||
@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 {
|
@utility link-base { @apply cursor-pointer disabled-default transition; }
|
||||||
@apply cursor-pointer disabled-default transition;
|
@utility link-underline { @apply link-base underline hover:decoration-primary; }
|
||||||
}
|
@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;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
@utility list-horizontal {
|
|
||||||
@apply list-none flex flex-wrap items-center gap-3;
|
|
||||||
}
|
|
||||||
@@ -1,25 +1,15 @@
|
|||||||
@utility prose {
|
@utility prose {
|
||||||
/* Headings (allow class overrides) */
|
/* Headings (allow class overrides) */
|
||||||
h1:not([class*="heading-"]) {
|
h1:not([class*="heading-"]) { @apply heading-1; }
|
||||||
@apply heading-1;
|
h2:not([class*="heading-"]) { @apply heading-2; }
|
||||||
}
|
h3:not([class*="heading-"]) { @apply heading-3; }
|
||||||
h2:not([class*="heading-"]) {
|
h4:not([class*="heading-"]) { @apply heading-4; }
|
||||||
@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-"]) {
|
p:not([class*="paragraph-"]) { @apply paragraph-base; }
|
||||||
@apply paragraph-base;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Spacing */
|
/* Spacing */
|
||||||
@apply space-y-2;
|
@apply space-y-2;
|
||||||
|
|||||||
@@ -1,24 +1,10 @@
|
|||||||
/* Heading styles */
|
/* Heading styles */
|
||||||
@utility heading-base {
|
@utility heading-base { @apply font-bold tracking-tight };
|
||||||
@apply font-bold tracking-tight;
|
@utility heading-1 { @apply heading-base text-4xl; }
|
||||||
}
|
@utility heading-2 { @apply heading-base text-3xl; }
|
||||||
@utility heading-1 {
|
@utility heading-3 { @apply heading-base text-2xl; }
|
||||||
@apply heading-base text-4xl;
|
@utility heading-4 { @apply heading-base text-xl; }
|
||||||
}
|
|
||||||
@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 {
|
@utility paragraph-base { @apply font-sans; }
|
||||||
@apply font-sans;
|
@utility paragraph-lead { @apply paragraph-base text-2xl; }
|
||||||
}
|
|
||||||
@utility paragraph-lead {
|
|
||||||
@apply paragraph-base text-2xl;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
<svg version="1.1" viewBox="0 0 490.3 86.763" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="m10.344 1.5312a10.208 10.208 0 0 0-9.0195 15.207l36.1 64.801a10.2 10.2 0 0 0 13.9 3.9004 10.415 10.415 0 0 0 4-14l-36.201-64.701a10.208 10.208 0 0 0-8.7793-5.207zm221.33 12.51v51.84h11.52v-2.8789a16.277 16.277 0 0 0 11.232 3.959c9.576 0 17.641-7.7004 17.641-19.152 0-11.376-8.0656-19.152-17.641-19.152a16.277 16.277 0 0 0-11.232 3.9609v-18.576h-11.52zm206 0v51.84h11.52v-51.84h-11.52zm-127.3 0.070312v11.145h11.521v-11.145h-11.521zm-21.229 14.535c-8.6942-0.004836-14.866 4.5403-15.109 11.721-0.193 5.685 3.5014 9.4123 10.15 10.863l7.291 1.6875c2.645 0.594 3.5488 1.5612 3.5078 2.7852-0.054 1.583-1.7534 2.8227-4.7754 2.7207-3.094-0.105-5.8618-1.3519-6.2598-4.4629l-11.305 1.9199c0.972 7.453 8.133 10.795 16.625 11.084 9.5 0.322 16.549-3.6186 16.82-11.602 0.181-5.325-2.8478-9.5341-9.6348-11.205l-8.4316-2.0137c-2.286-0.582-2.6824-1.6003-2.6484-2.6113 0.044-1.295 1.0992-2.773 4.1992-2.668 3.526 0.12 5.6164 2.2082 5.9004 4.4512l10.574-1.7363c-1.227-6.309-7.0597-10.613-16.055-10.918-0.28559-0.009687-0.56915-0.015469-0.84961-0.015625zm-79.43 0.009766c-10.512 0-19.152 7.7764-19.152 19.152 0 11.448 8.6401 19.152 19.08 19.152 8.28 0 14.832-3.6728 17.928-11.301l-10.225-2.0879c-1.944 3.528-5.0392 4.1758-7.6992 4.1758-3.888 0-6.8414-2.6624-7.7774-6.9824h26.5v-2.957h-0.00781c-0.216-11.808-8.4225-19.152-18.646-19.152zm140.62 0a13.682 13.682 0 0 0-10.656 4.3926v-3.3125h-11.52v36.145h11.52v-17.711c0-6.048 2.7361-9.1445 6.9121-9.1445 3.456 0 6.1191 2.5912 6.1191 6.6992v20.156h11.521v-17.711c0-6.048 2.8067-9.1445 7.0547-9.1445 3.384 0 6.0488 2.5912 6.0488 6.6992v20.156h11.447v-22.607c0-8.784-6.1202-14.617-13.824-14.617a15.58 15.58 0 0 0-12.814 6.1211c-2.448-3.96-6.7686-6.1211-11.809-6.1211zm66.391 0a16.277 16.277 0 0 0-11.232 3.9609v-2.8809h-11.52v48.385h11.52v-15.119a16.277 16.277 0 0 0 11.232 3.959c9.576 0 17.639-7.7004 17.639-19.152 0-11.376-8.0627-19.152-17.639-19.152zm54.936 0c-10.512 0-19.15 7.7764-19.15 19.152 0 11.448 8.6381 19.152 19.078 19.152 8.28 0 14.834-3.6728 17.93-11.301l-10.225-2.0879c-1.944 3.528-5.0392 4.1758-7.6992 4.1758-3.888 0-6.8414-2.6624-7.7774-6.9824h26.5v-2.957h-0.00781c-0.216-11.808-8.4244-19.152-18.648-19.152zm-336.16 1.0801 11.592 36.217h10.008l6.5527-19.584 6.4805 19.584h10.008l11.576-36.217h-11.301l-5.9004 19.512-6.8398-19.512h-8.1367l-6.8398 19.441-5.8984-19.441h-11.301zm174.88 0v36.145h11.521v-36.145h-11.521zm-100.66 8.2812a7.221 7.221 0 0 1 7.2715 5.6875h-14.9a7.918 7.918 0 0 1 7.6289-5.6875zm261.94 0a7.221 7.221 0 0 1 7.2715 5.6875h-14.9a7.918 7.918 0 0 1 7.6289-5.6875zm-219.6 0.43164c5.04 0 8.7109 3.8154 8.7109 9.3594 0 5.616-3.6709 9.3613-8.7109 9.3613a8.972 8.972 0 0 1-8.8574-9.3613 9.016 9.016 0 0 1 8.8574-9.3594zm162.29 0c5.04 0 8.7129 3.8154 8.7129 9.3594 0 5.616-3.6729 9.3613-8.7129 9.3613a8.972 8.972 0 0 1-8.8555-9.3613 9.016 9.016 0 0 1 8.8555-9.3594z" fill="#212121"/>
|
|
||||||
<path d="m123.02 1.939-.7-.5a9.735 9.735 0 0 0-13.4 3.2l-29.1 47.3a2.253 2.253 0 0 1-3.9-.1l-11.3-20.3a9.82 9.82 0 0 0-13.3-3.8l-.8.4a9.82 9.82 0 0 0-3.8 13.3l21.8 39a9.983 9.983 0 0 0 8.3 5 9.83 9.83 0 0 0 9.1-4.6l40.4-65.6a9.668 9.668 0 0 0-3.3-13.3" fill="#0ad2b7" data-name="Tracé 22516"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 3.2 KiB |
@@ -1,9 +0,0 @@
|
|||||||
fragment AcfImage on MediaItem {
|
|
||||||
src: sourceUrl
|
|
||||||
alt: altText
|
|
||||||
mediaDetails {
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
objectPosition
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import type { AcfImageFragment } from "#graphql/operations";
|
|
||||||
|
|
||||||
defineProps<{ image?: AcfImageFragment }>();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<NuxtImg
|
|
||||||
v-if="image"
|
|
||||||
:src="image.src"
|
|
||||||
:alt="image.alt"
|
|
||||||
:width="image.mediaDetails?.width"
|
|
||||||
:height="image.mediaDetails?.height"
|
|
||||||
:style="{ objectPosition: image.objectPosition || 'center' }"
|
|
||||||
placeholder
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
fragment AcfLink on AcfLink {
|
|
||||||
title
|
|
||||||
url
|
|
||||||
target
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import type { AcfLinkFragment } from "#graphql/operations";
|
|
||||||
import type { LinkProps } from "@nuxt/ui";
|
|
||||||
|
|
||||||
type AcfLinkProps = Omit<LinkProps, "to" | "target" | "href"> & {
|
|
||||||
link?: AcfLinkFragment;
|
|
||||||
};
|
|
||||||
|
|
||||||
const { link, ...linkProps } = defineProps<AcfLinkProps>();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<ULink
|
|
||||||
v-if="link?.url && link?.title"
|
|
||||||
v-bind="linkProps"
|
|
||||||
:to="link.url"
|
|
||||||
:target="link.target"
|
|
||||||
:external="link.target === '_blank'"
|
|
||||||
:rel="link.target === '_blank' ? 'noopener noreferrer' : undefined"
|
|
||||||
>
|
|
||||||
<slot>{{ link.title }}</slot>
|
|
||||||
</ULink>
|
|
||||||
</template>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import type { AcfLinkFragment } from "#graphql/operations";
|
|
||||||
import type { ButtonProps } from "@nuxt/ui";
|
|
||||||
|
|
||||||
type AcfLinkButtonProps = Omit<ButtonProps, "to" | "target" | "href"> & {
|
|
||||||
link?: AcfLinkFragment;
|
|
||||||
showLabel?: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
const { link, showLabel, ...buttonProps } = defineProps<AcfLinkButtonProps>();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<UButton
|
|
||||||
v-if="link?.url && link?.title"
|
|
||||||
v-bind="buttonProps"
|
|
||||||
:to="link.url"
|
|
||||||
:target="link.target"
|
|
||||||
:external="link.target === '_blank'"
|
|
||||||
:rel="link.target === '_blank' ? 'noopener noreferrer' : undefined"
|
|
||||||
>
|
|
||||||
<slot>{{ showLabel ? link.title : "" }}</slot>
|
|
||||||
</UButton>
|
|
||||||
</template>
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
fragment AcfMedia on GroupAbstractMedia_Fields {
|
|
||||||
image {
|
|
||||||
node {
|
|
||||||
...AcfImage
|
|
||||||
}
|
|
||||||
}
|
|
||||||
aspectRatio
|
|
||||||
objectFit
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import { tv, type VariantProps } from "tailwind-variants";
|
|
||||||
import type { AcfMediaFragment } from "#graphql/operations";
|
|
||||||
|
|
||||||
const tvAcfMedia = tv({
|
|
||||||
slots: {
|
|
||||||
image: "w-full",
|
|
||||||
},
|
|
||||||
variants: {
|
|
||||||
aspectRatio: {
|
|
||||||
square: { image: "aspect-[1/1]" },
|
|
||||||
video: { image: "aspect-video" },
|
|
||||||
portrait: { image: "aspect-[2/3]" },
|
|
||||||
auto: { image: "aspect-auto" },
|
|
||||||
},
|
|
||||||
objectFit: {
|
|
||||||
cover: { image: "object-cover" },
|
|
||||||
contain: { image: "object-contain" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
defaultVariants: {
|
|
||||||
aspectRatio: "auto",
|
|
||||||
objectFit: "cover",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const props = defineProps<{ media?: AcfMediaFragment }>();
|
|
||||||
const classes = tvAcfMedia({
|
|
||||||
aspectRatio: props.media?.aspectRatio,
|
|
||||||
objectFit: props.media?.objectFit,
|
|
||||||
} as VariantProps<typeof tvAcfMedia>);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<AcfImage v-if="media?.image?.node" :image="media.image.node" :class="classes.image()" />
|
|
||||||
</template>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
fragment AcfPhone on AcfPhone {
|
|
||||||
national
|
|
||||||
e164
|
|
||||||
extension
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import type { AcfPhoneFragment } from "#graphql/operations";
|
|
||||||
|
|
||||||
defineProps<{
|
|
||||||
phone?: AcfPhoneFragment;
|
|
||||||
link?: boolean;
|
|
||||||
}>();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<Component :is="link ? 'a' : 'span'" v-if="phone" :href="link ? `tel:${phone.e164}` : undefined">
|
|
||||||
{{ phone.national }}{{ phone.extension ? ` ext. ${phone.extension}` : "" }}
|
|
||||||
</Component>
|
|
||||||
</template>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
fragment AcfSocial on GroupAbstractSocial_Fields {
|
|
||||||
profiles {
|
|
||||||
url
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
defineProps<{ social?: AcfSocialOutput }>();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div v-if="social?.profiles" class="flex gap-1.5">
|
|
||||||
<a
|
|
||||||
v-for="({ url, icon }, key) in social.profiles"
|
|
||||||
:key="key"
|
|
||||||
:href="url"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
class="flex"
|
|
||||||
>
|
|
||||||
<UIcon :name="icon" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<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,8 +7,7 @@ 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,8 +5,12 @@ 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 font-semibold text-pretty text-highlighted">Déconnexion</div>
|
<div class="text-xl text-pretty font-semibold text-highlighted">
|
||||||
<div class="mt-1 text-base text-pretty text-muted">Veuillez confirmer la déconnexion.</div>
|
Déconnexion
|
||||||
|
</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,8 +1,12 @@
|
|||||||
<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 font-semibold text-pretty text-highlighted">Redirection en cours</div>
|
<div class="text-xl text-pretty font-semibold text-highlighted">
|
||||||
<div class="mt-1 text-base text-pretty text-muted">Veuillez patienter...</div>
|
Redirection en cours
|
||||||
|
</div>
|
||||||
|
<div class="mt-1 text-base text-pretty text-muted">
|
||||||
|
Veuillez patienter...
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
fragment BuilderSections on GroupAbstractBuilder_Fields {
|
fragment BuilderSections on GroupAbstractBuilder_Fields {
|
||||||
sections {
|
sections {
|
||||||
__typename
|
__typename
|
||||||
... on GroupAbstractBuilderSectionsHeroSplitLayout {
|
|
||||||
...SectionHeroSplit
|
|
||||||
}
|
|
||||||
... on GroupAbstractBuilderSectionsTextBlockLayout {
|
... on GroupAbstractBuilderSectionsTextBlockLayout {
|
||||||
... SectionTextBlock
|
... SectionTextBlock
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { BuilderSectionsFragment } from "#graphql/operations";
|
import type { BuilderSectionsFragment } from "#graphql/fragments";
|
||||||
|
|
||||||
const props = defineProps<BuilderSectionsFragment>();
|
const props = defineProps<BuilderSectionsFragment>();
|
||||||
const sections = computed(() => {
|
const sections = computed(() => {
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
fragment LayoutColored on GroupLayoutColored_Fields {
|
|
||||||
color
|
|
||||||
}
|
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
fragment LayoutContained on GroupLayoutContained_Fields {
|
fragment LayoutContained on GroupLayoutContained_Fields {
|
||||||
container
|
container
|
||||||
|
verticalPadding
|
||||||
|
bgColor
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import type { LayoutContainedFragment } from "#graphql/fragments";
|
||||||
|
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>
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fragment LayoutPadded on GroupLayoutPadded_Fields {
|
|
||||||
verticalPadding
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<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>
|
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { NodePageFragment } from "#graphql/operations";
|
import type { NodePageFragment } from "#graphql/fragments";
|
||||||
|
|
||||||
defineProps<NodePageFragment>();
|
defineProps<NodePageFragment>();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="node-page">
|
<div id="node-page">
|
||||||
<PageHeader v-if="!isFrontPage" :title="title"></PageHeader>
|
<h1 v-if="!isFrontPage" class="font-bold text-4xl">
|
||||||
<BuilderSections :sections="groupPostPage?.sections || []" />
|
{{ title }}
|
||||||
|
</h1>
|
||||||
|
<BuilderSections v-bind="groupPostPage" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<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,13 +1,11 @@
|
|||||||
<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>
|
||||||
<LayoutWrapper data-section-name="auth-connexion" :layout-settings="layoutSettings">
|
<section data-section-name="auth-connexion" class="py-12">
|
||||||
|
<div class="container-sm">
|
||||||
<AuthState>
|
<AuthState>
|
||||||
<AuthRedirecting v-if="isRedirecting" />
|
<AuthRedirecting v-if="isRedirecting" />
|
||||||
<template v-else>
|
<template v-else>
|
||||||
@@ -15,5 +13,6 @@ const layoutSettings: LayoutWrapperProps = {
|
|||||||
<AuthLoginForm v-else />
|
<AuthLoginForm v-else />
|
||||||
</template>
|
</template>
|
||||||
</AuthState>
|
</AuthState>
|
||||||
</LayoutWrapper>
|
</div>
|
||||||
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
fragment SectionHeroSplit on GroupAbstractBuilderSectionsHeroSplitLayout {
|
|
||||||
content
|
|
||||||
reverse
|
|
||||||
...AcfMedia
|
|
||||||
layoutSettings {
|
|
||||||
...LayoutColored
|
|
||||||
...LayoutPadded
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import { tv, type VariantProps } from "tailwind-variants";
|
|
||||||
import type { SectionHeroSplitFragment } from "#graphql/operations";
|
|
||||||
|
|
||||||
const tvSectionHeroSplit = tv({
|
|
||||||
extend: tvLayoutWrapper,
|
|
||||||
slots: {
|
|
||||||
container: "container flex flex-col items-center gap-6",
|
|
||||||
content: "flex-1",
|
|
||||||
media: "w-full basis-1/2",
|
|
||||||
},
|
|
||||||
variants: {
|
|
||||||
reverse: {
|
|
||||||
false: {
|
|
||||||
container: "lg:flex-row",
|
|
||||||
},
|
|
||||||
true: {
|
|
||||||
container: "lg:flex-row-reverse",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
defaultVariants: {
|
|
||||||
reverse: false,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const props = defineProps<SectionHeroSplitFragment>();
|
|
||||||
const classes = tvSectionHeroSplit({
|
|
||||||
reverse: props.reverse,
|
|
||||||
...props.layoutSettings,
|
|
||||||
} as VariantProps<typeof tvSectionHeroSplit>);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<section :class="classes.base()">
|
|
||||||
<div :class="classes.container()">
|
|
||||||
<UiProse :content="content" :class="classes.content()" />
|
|
||||||
<AcfMedia :media="parseAcfMedia(props)" :class="classes.media()" />
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</template>
|
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
fragment SectionTextBlock on GroupAbstractBuilderSectionsTextBlockLayout {
|
fragment SectionTextBlock on GroupAbstractBuilderSectionsTextBlockLayout {
|
||||||
content
|
content
|
||||||
layoutSettings {
|
layoutSettings {
|
||||||
...LayoutColored
|
|
||||||
...LayoutContained
|
...LayoutContained
|
||||||
...LayoutPadded
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { SectionTextBlockFragment } from "#graphql/operations";
|
import type { SectionTextBlockFragment } from "#graphql/fragments";
|
||||||
|
|
||||||
defineProps<SectionTextBlockFragment>();
|
defineProps<SectionTextBlockFragment>();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<LayoutWrapper data-section-type="text-block" :layout-settings="layoutSettings">
|
<LayoutContained data-section-type="text-block" v-bind="layoutSettings!">
|
||||||
<UiProse :content="content" />
|
<UiProse :content="content" />
|
||||||
</LayoutWrapper>
|
</LayoutContained>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { data: siteOptions } = await useSiteOptions();
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<footer class="links:link-prose bg-accented">
|
<UFooter id="site-footer">
|
||||||
<div class="container py-6">
|
<template #left>
|
||||||
<AcfSocial :social="parseAcfSocial(siteOptions)" />
|
<SiteFooterCopyright />
|
||||||
</div>
|
</template>
|
||||||
<SiteFooterBottom />
|
<template #right>
|
||||||
</footer>
|
<SiteFooterCredits />
|
||||||
|
</template>
|
||||||
|
</UFooter>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
const { connexionButton } = useAuthConnexion();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div class="bg-inverted py-1.5 text-inverted">
|
|
||||||
<div class="container flex flex-col items-center gap-3 sm:flex-row">
|
|
||||||
<SiteFooterCopyright class="sm:mr-auto" />
|
|
||||||
<AuthState>
|
|
||||||
<AcfLinkButton
|
|
||||||
:link="connexionButton.link"
|
|
||||||
:icon="connexionButton.icon"
|
|
||||||
color="neutral"
|
|
||||||
variant="link"
|
|
||||||
/>
|
|
||||||
</AuthState>
|
|
||||||
<SiteFooterCredits />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { data: generalSettings } = await useGeneralSettings();
|
const { data } = await useAsyncGraphQLQuery("GeneralSettings", undefined, { cache: { ttl: 0 } });
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
© {{ new Date().getFullYear() }}
|
© {{ new Date().getFullYear() }}
|
||||||
<span v-if="generalSettings?.title">{{ generalSettings.title }}</span>
|
<span v-if="data.generalSettings?.title">{{ data.generalSettings.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
<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
|
<ULink href="https://websimple.com" target="_blank" external title="Site web développé par Websimple">Websimple</ULink>
|
||||||
href="https://websimple.com"
|
|
||||||
target="_blank"
|
|
||||||
external
|
|
||||||
title="Site web développé par Websimple"
|
|
||||||
>Websimple</ULink
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const title = "Moonshine";
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UHeader mode="slideover">
|
<UHeader :title="title">
|
||||||
<template #left>
|
<template #right>
|
||||||
<NuxtLink to="/">
|
<AuthConnexionButton />
|
||||||
<SvgSiteLogo class="h-12 w-auto" />
|
|
||||||
</NuxtLink>
|
|
||||||
</template>
|
</template>
|
||||||
</UHeader>
|
</UHeader>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
<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,6 +2,5 @@ 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,10 +3,9 @@ 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) {
|
||||||
@@ -30,13 +29,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:
|
description: error instanceof Error ? error.message : "Une erreur est survenue lors de la connexion.",
|
||||||
error instanceof Error ? error.message : "Une erreur est survenue lors de la connexion.",
|
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -56,28 +55,17 @@ 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:
|
description: 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.",
|
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dynamic connexion link / icon
|
return { isRedirecting, login, logout };
|
||||||
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,8 +0,0 @@
|
|||||||
export const useGeneralSettings = () =>
|
|
||||||
useAsyncGraphQLQuery(
|
|
||||||
"GeneralSettings",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
transform: ({ generalSettings }) => generalSettings,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
import type { NodeByUriQueryResult, NodeSeoFragment } from "#graphql/operations";
|
|
||||||
|
|
||||||
export function useNodeSeo(node: NodeByUriQueryResult["nodeByUri"]) {
|
|
||||||
// Check if node has SEO data
|
|
||||||
if (!node || !("seo" in node) || !node.seo) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const { seo } = node as NodeSeoFragment;
|
|
||||||
|
|
||||||
useSeoMeta({
|
|
||||||
title: seo?.title || undefined,
|
|
||||||
description: seo?.description || undefined,
|
|
||||||
robots: (seo?.robots || []).join(", "),
|
|
||||||
ogTitle: seo?.openGraph?.title || undefined,
|
|
||||||
ogDescription: seo?.openGraph?.description || undefined,
|
|
||||||
ogImage: seo?.openGraph?.image?.url || undefined,
|
|
||||||
ogUrl: seo?.canonicalUrl || undefined,
|
|
||||||
twitterCard: "summary_large_image",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -11,7 +11,8 @@ 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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -24,7 +25,8 @@ 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;
|
||||||
@@ -37,14 +39,7 @@ 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 (
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || link.target === "_blank" || link.hasAttribute("download")) {
|
||||||
e.metaKey ||
|
|
||||||
e.ctrlKey ||
|
|
||||||
e.shiftKey ||
|
|
||||||
e.altKey ||
|
|
||||||
link.target === "_blank" ||
|
|
||||||
link.hasAttribute("download")
|
|
||||||
) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (isInternal(href)) {
|
if (isInternal(href)) {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import { breakpointsTailwind, useBreakpoints } from "@vueuse/core";
|
|
||||||
|
|
||||||
export function useResponsive() {
|
|
||||||
const { isMobileOrTablet } = useDevice();
|
|
||||||
const breakpoints = useBreakpoints(breakpointsTailwind, {
|
|
||||||
ssrWidth: isMobileOrTablet ? 375 : 1024,
|
|
||||||
});
|
|
||||||
const isDesktop = breakpoints.greaterOrEqual("lg");
|
|
||||||
|
|
||||||
return { breakpoints, isDesktop };
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
export const useSiteOptions = () =>
|
|
||||||
useAsyncGraphQLQuery(
|
|
||||||
"SiteOptions",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
fragment GeneralSettings on GeneralSettings {
|
query GeneralSettings {
|
||||||
|
generalSettings {
|
||||||
title
|
title
|
||||||
description
|
description
|
||||||
}
|
}
|
||||||
|
|
||||||
query GeneralSettings {
|
|
||||||
generalSettings {
|
|
||||||
...GeneralSettings
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +1,8 @@
|
|||||||
fragment NodeSeo on NodeWithRankMathSeo {
|
|
||||||
seo {
|
|
||||||
title
|
|
||||||
description
|
|
||||||
robots
|
|
||||||
canonicalUrl
|
|
||||||
openGraph {
|
|
||||||
title
|
|
||||||
description
|
|
||||||
image {
|
|
||||||
url
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query NodeByUri($uri: String!) {
|
query NodeByUri($uri: String!) {
|
||||||
nodeByUri(uri: $uri) {
|
nodeByUri(uri: $uri) {
|
||||||
__typename
|
__typename
|
||||||
... on Page {
|
... on Page {
|
||||||
... NodePage
|
... NodePage
|
||||||
}
|
}
|
||||||
... on NodeWithRankMathSeo {
|
|
||||||
...NodeSeo
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
fragment PageInfo on WPPageInfo {
|
|
||||||
hasNextPage
|
|
||||||
endCursor
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
fragment SiteOptions on GroupSiteOptions {
|
|
||||||
email
|
|
||||||
phoneNumber {
|
|
||||||
...AcfPhone
|
|
||||||
}
|
|
||||||
...AcfSocial
|
|
||||||
links {
|
|
||||||
contact {
|
|
||||||
...AcfLink
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query SiteOptions {
|
|
||||||
siteOptions {
|
|
||||||
groupSiteOptions {
|
|
||||||
...SiteOptions
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,13 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { fr } from "@nuxt/ui/locale";
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="layout-default">
|
<UApp id="layout-default" :locale="fr">
|
||||||
<SiteHeader />
|
<SiteHeader />
|
||||||
<UMain>
|
<UMain>
|
||||||
<slot />
|
<slot />
|
||||||
</UMain>
|
</UMain>
|
||||||
<SiteFooter />
|
<SiteFooter />
|
||||||
</div>
|
</UApp>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
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.",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
export default defineNuxtRouteMiddleware((to) => {
|
|
||||||
const { isLoggedIn } = useAuth();
|
|
||||||
if (!isLoggedIn.value) {
|
|
||||||
return navigateTo({ path: "/connexion", query: { redirect: to.fullPath } });
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
export default defineNuxtRouteMiddleware((to) => {
|
|
||||||
const { isLoggedIn } = useAuth();
|
|
||||||
if (isLoggedIn.value) {
|
|
||||||
return navigateTo({ path: "/connexion", query: { redirect: to.fullPath } });
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -1,31 +1,19 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// Fetch node by URI and handle query errors
|
|
||||||
const { path: uri } = useRoute();
|
const { path: uri } = useRoute();
|
||||||
const { data, error } = await useAsyncGraphQLQuery("NodeByUri", { uri });
|
const { data } = await useAsyncGraphQLQuery("NodeByUri", { uri });
|
||||||
if (!data.value?.nodeByUri) {
|
|
||||||
console.error("NodeByUri query error:", error.value);
|
|
||||||
throw createError({
|
|
||||||
statusCode: 404,
|
|
||||||
message: `La page demandée est introuvable: ${uri}`,
|
|
||||||
fatal: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dynamically resolve component based on node type
|
// Resolve and validate Node component
|
||||||
|
if (!data.value.nodeByUri) {
|
||||||
|
throw createError({ statusCode: 404, message: `La page demandée est introuvable: ${uri}`, fatal: true });
|
||||||
|
}
|
||||||
const componentName = `Node${data.value.nodeByUri.__typename}`;
|
const componentName = `Node${data.value.nodeByUri.__typename}`;
|
||||||
if (!useNuxtApp().vueApp.component(componentName)) {
|
if (!useNuxtApp().vueApp.component(componentName)) {
|
||||||
throw createError({
|
throw createError({ statusCode: 404, message: `La page demandée ne peut pas être affichée correctement: ${componentName}`, fatal: true });
|
||||||
statusCode: 404,
|
|
||||||
message: `La page demandée ne peut pas être affichée correctement: ${componentName}`,
|
|
||||||
fatal: true,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
useNodeSeo(data.value.nodeByUri);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-if="data?.nodeByUri" id="page-node-from-uri">
|
<div v-if="data.nodeByUri" id="page-node-from-uri">
|
||||||
<Component :is="componentName" v-bind="data.nodeByUri" />
|
<Component :is="componentName" v-bind="data.nodeByUri" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
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,33 +0,0 @@
|
|||||||
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 acfSocialSchema = z.object({
|
|
||||||
profiles: z.array(socialProfile),
|
|
||||||
});
|
|
||||||
export type AcfSocialOutput = z.infer<typeof acfSocialSchema>;
|
|
||||||
|
|
||||||
export function parseAcfSocial(data?: AcfSocialFragment) {
|
|
||||||
try {
|
|
||||||
return acfSocialSchema.parse(data);
|
|
||||||
} catch {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const socialIconMap = {
|
|
||||||
"facebook.com": "i-cib-facebook-f",
|
|
||||||
"twitter.com": "i-cib-twitter",
|
|
||||||
"x.com": "i-cib-twitter",
|
|
||||||
"instagram.com": "i-cib-instagram",
|
|
||||||
"youtube.com": "i-cib-youtube",
|
|
||||||
"linkedin.com": "i-cib-linkedin",
|
|
||||||
"tiktok.com": "i-cib-tiktok",
|
|
||||||
};
|
|
||||||
|
|
||||||
function getSocialIcon(url: string): string {
|
|
||||||
const domain = new URL(url).hostname.toLowerCase().replace(/^www\./, "");
|
|
||||||
return socialIconMap[domain as keyof typeof socialIconMap] ?? "i-lucide-globe";
|
|
||||||
}
|
|
||||||
File diff suppressed because one or more lines are too long
8
wp-content/themes/moonshine/eslint.config.mjs
Normal file
8
wp-content/themes/moonshine/eslint.config.mjs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
// @ts-check
|
||||||
|
import withNuxt from "./.nuxt/eslint.config.mjs";
|
||||||
|
|
||||||
|
export default withNuxt({ rules: {
|
||||||
|
"vue/max-attributes-per-line": "off",
|
||||||
|
"vue/no-v-html": "off",
|
||||||
|
} },
|
||||||
|
);
|
||||||
@@ -4,11 +4,4 @@
|
|||||||
require_once __DIR__ . '/includes/core/theme-setup.php';
|
require_once __DIR__ . '/includes/core/theme-setup.php';
|
||||||
|
|
||||||
// Vendors
|
// Vendors
|
||||||
require_once __DIR__ . '/includes/vendors/acf.php';
|
|
||||||
require_once __DIR__ . '/includes/vendors/rankmath.php';
|
|
||||||
require_once __DIR__ . '/includes/vendors/tinymce.php';
|
require_once __DIR__ . '/includes/vendors/tinymce.php';
|
||||||
require_once __DIR__ . '/includes/vendors/wpgraphql.php';
|
|
||||||
|
|
||||||
// WPGraphQL
|
|
||||||
require_once __DIR__ . '/includes/wpgraphql/media-focus-point.php';
|
|
||||||
require_once __DIR__ . '/includes/wpgraphql/term-connection.php';
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"schema": "./.nuxt/graphql/schema.gql",
|
"schema": "./server/graphql/schema.graphql",
|
||||||
"documents": "**/*.gql"
|
"documents": "**/*.gql"
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,3 @@ function moonshine_after_setup_theme() {
|
|||||||
|
|
||||||
// Register sidebars
|
// Register sidebars
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display theme version in admin footer
|
|
||||||
add_filter( 'update_footer', 'moonshine_update_footer', 100 );
|
|
||||||
function moonshine_update_footer() {
|
|
||||||
$package_json = json_decode( file_get_contents( get_theme_file_path( 'package.json' ) ), true );
|
|
||||||
$name = $package_json['name'] ?? 'moonshine';
|
|
||||||
$version = $package_json['version'] ?? '(unknown)';
|
|
||||||
return sprintf( '%s v%s', esc_html( $name ), esc_html( $version ) );
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Disable ACF / ACFE modules
|
|
||||||
add_filter( 'acf/settings/enable_post_types', '__return_false' );
|
|
||||||
add_action( 'acf/init', 'moonshine_acf_init' );
|
|
||||||
function moonshine_acf_init() {
|
|
||||||
acf_update_setting( 'acfe/modules/block_types', false );
|
|
||||||
acf_update_setting( 'acfe/modules/categories', false );
|
|
||||||
acf_update_setting( 'acfe/modules/forms', false );
|
|
||||||
acf_update_setting( 'acfe/modules/options', false );
|
|
||||||
acf_update_setting( 'acfe/modules/options_pages', false );
|
|
||||||
acf_update_setting( 'acfe/modules/post_types', false );
|
|
||||||
acf_update_setting( 'acfe/modules/taxonomies', false );
|
|
||||||
acf_update_setting( 'acfe/modules/templates', false );
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
<?php
|
|
||||||
@@ -50,16 +50,6 @@ 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,17 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Default WPGraphQL settings
|
|
||||||
add_filter( 'graphql_get_setting_section_field_value', 'moonshine_wpgraphql_settings', 10, 5 );
|
|
||||||
function moonshine_wpgraphql_settings( $value, $default_value, $option_name, $section_fields, $section_name ) {
|
|
||||||
if ( $section_name === 'graphql_general_settings' ) {
|
|
||||||
switch ( $option_name ) {
|
|
||||||
case 'graphql_endpoint':
|
|
||||||
$value = 'graphql';
|
|
||||||
break;
|
|
||||||
case "public_introspection_enabled":
|
|
||||||
$value = "on";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $value;
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// Expose 'bg_pos_desktop' post meta on MediaItem type in WPGraphQL
|
|
||||||
add_action( 'graphql_register_types', 'leblanc_graphql_register_media_focus_point' );
|
|
||||||
function leblanc_graphql_register_media_focus_point() {
|
|
||||||
register_graphql_field(
|
|
||||||
'MediaItem',
|
|
||||||
'objectPosition',
|
|
||||||
array(
|
|
||||||
'type' => 'String',
|
|
||||||
'description' => 'CSS object-position value from Media Focus Point plugin',
|
|
||||||
'resolve' => static function ( $media_item ) {
|
|
||||||
return get_post_meta( $media_item->databaseId, 'bg_pos_desktop', true );
|
|
||||||
},
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user