5 Commits

Author SHA1 Message Date
58dbcdd25a chore(release): v0.1.13
All checks were successful
Deployment / wordpress (push) Successful in 6s
Deployment / nuxt (push) Successful in 57s
2026-02-01 21:17:39 -05:00
8ae6dafb62 feat: TinyMCE list style
Some checks failed
Deployment / wordpress (push) Successful in 6s
Deployment / nuxt (push) Has been cancelled
2026-02-01 21:17:21 -05:00
faf39ca182 fix: wrangler.json needed for wrangler types before build
All checks were successful
Deployment / wordpress (push) Successful in 7s
Deployment / nuxt (push) Successful in 1m2s
2026-02-01 21:09:51 -05:00
8d350bb092 chore(release): v0.1.12
Some checks failed
Deployment / wordpress (push) Successful in 6s
Deployment / nuxt (push) Failing after 9s
2026-01-30 16:31:44 -05:00
4338028c60 feat: Event context type for Cloudflare environment
Some checks failed
Deployment / wordpress (push) Successful in 5s
Deployment / nuxt (push) Has been cancelled
2026-01-30 16:31:29 -05:00
12 changed files with 349 additions and 254 deletions

View File

@@ -25,3 +25,4 @@ logs
# Wrangler files # Wrangler files
.wrangler .wrangler
server/types/cloudflare.d.ts

View File

@@ -1,5 +1,33 @@
# Changelog # Changelog
## v0.1.13
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.12...v0.1.13)
### 🚀 Enhancements
- TinyMCE list style (8ae6daf)
### 🩹 Fixes
- Wrangler.json needed for wrangler types before build (faf39ca)
## v0.1.12
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.11...v0.1.12)
### 🚀 Enhancements
- ConnexionButton (87be06e)
- ShowLabel (98e8d97)
- ParseAcfLink (2cfc1a0)
- ParseAcfMedia (ab563a7)
- Event context type for Cloudflare environment (4338028)
### 🩹 Fixes
- UApp in app.vue (28f6e1a)
## v0.1.11 ## v0.1.11
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.10...v0.1.11) [compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.10...v0.1.11)

View File

@@ -4,6 +4,7 @@
@import "./a11y.css"; @import "./a11y.css";
@import "./containers.css"; @import "./containers.css";
@import "./links.css"; @import "./links.css";
@import "./lists.css";
@import "./prose.css"; @import "./prose.css";
@import "./typography.css"; @import "./typography.css";

View File

@@ -0,0 +1,3 @@
@utility list-horizontal {
@apply list-none flex flex-wrap items-center gap-3;
}

File diff suppressed because one or more lines are too long

View File

@@ -50,6 +50,16 @@ function moonshine_tiny_mce_before_init( $settings ) {
), ),
), ),
), ),
array(
'title' => __( "List styles", 'moonshine' ),
'items' => array(// List styles
array(
'title' => "Liste horizontale",
'selector' => 'ul,ol',
'classes' => 'list-horizontal',
),
),
),
array( array(
'title' => __( "Heading styles", 'moonshine' ), 'title' => __( "Heading styles", 'moonshine' ),
'items' => array(// Heading styles 'items' => array(// Heading styles

View File

@@ -1,2 +1,29 @@
<?php <?php
return ['project-id-version'=>'Moonshine','report-msgid-bugs-to'=>'','pot-creation-date'=>'2026-01-13 15:52+0000','po-revision-date'=>'2026-01-29 02:55+0000','last-translator'=>'','language-team'=>'Français du Canada','language'=>'fr_CA','plural-forms'=>'nplurals=2; plural=n > 1;','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.8.1; wp-6.9; php-8.3.27','x-domain'=>'moonshine','messages'=>['Heading styles'=>'Styles de titres','Headless WordPress theme based on Nuxt.'=>'Thème Wordpress headless basé sur Nuxt.','https://websimple.com/'=>'https://websimple.com/','Inline styles'=>'Styles de caractères','Link styles'=>'Styles de liens','Main menu'=>'Menu principal','Moonshine'=>'Moonshine','Paragraph styles'=>'Styles de paragraphes','Pascal Martineau '=>'Pascal Martineau ','Semi-bold'=>'Semi-gras']]; return array(
'project-id-version' => 'Moonshine',
'report-msgid-bugs-to' => '',
'pot-creation-date' => '2026-01-13 15:52+0000',
'po-revision-date' => '2026-01-29 02:55+0000',
'last-translator' => '',
'language-team' => 'Français du Canada',
'language' => 'fr_CA',
'plural-forms' => 'nplurals=2; plural=n > 1;',
'mime-version' => '1.0',
'content-type' => 'text/plain; charset=UTF-8',
'content-transfer-encoding' => '8bit',
'x-generator' => 'Loco https://localise.biz/',
'x-loco-version' => '2.8.1; wp-6.9; php-8.3.27',
'x-domain' => 'moonshine',
'messages' => array(
'Heading styles' => 'Styles de titres',
'Headless WordPress theme based on Nuxt.' => 'Thème Wordpress headless basé sur Nuxt.',
'https://websimple.com/' => 'https://websimple.com/',
'Inline styles' => 'Styles de caractères',
'Link styles' => 'Styles de liens',
'Main menu' => 'Menu principal',
'Moonshine' => 'Moonshine',
'Paragraph styles' => 'Styles de paragraphes',
'Pascal Martineau ' => 'Pascal Martineau ',
'Semi-bold' => 'Semi-gras',
),
);

View File

@@ -11,7 +11,7 @@ if (!wpUrl) {
} }
const wpDomain = new URL(wpUrl).hostname; const wpDomain = new URL(wpUrl).hostname;
const enableCloudflareImage = Boolean(process.env.ENABLE_CLOUDFLARE_IMAGE); const enableCloudflareImages = Boolean(process.env.ENABLE_CLOUDFLARE_IMAGES);
// https://nuxt.com/docs/api/configuration/nuxt-config // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({ export default defineNuxtConfig({
@@ -57,15 +57,8 @@ export default defineNuxtConfig({
preset: "cloudflare_module", preset: "cloudflare_module",
cloudflare: { cloudflare: {
deployConfig: true, deployConfig: true,
nodeCompat: true,
wrangler: { wrangler: {
// Project name
name: "wp-headless", name: "wp-headless",
// Cloudflare Workers settings
compatibility_date: "2026-01-27",
observability: { enabled: true },
preview_urls: false,
// Environment variables
vars: { vars: {
NODE_ENV: "staging", NODE_ENV: "staging",
NUXT_SITE_URL: siteUrl, NUXT_SITE_URL: siteUrl,
@@ -102,7 +95,7 @@ export default defineNuxtConfig({
}, },
image: { image: {
provider: enableCloudflareImage ? "cloudflare" : "none", provider: enableCloudflareImages ? "cloudflare" : "none",
cloudflare: { baseURL: `${siteUrl}/` }, cloudflare: { baseURL: `${siteUrl}/` },
domains: [wpDomain], domains: [wpDomain],
format: ["avif", "webp"], format: ["avif", "webp"],

View File

@@ -1,18 +1,25 @@
{ {
"name": "@lewebsimple/moonshine", "name": "@lewebsimple/moonshine",
"description": "Headless WordPress theme based on Nuxt.", "description": "Headless WordPress theme based on Nuxt.",
"version": "0.1.11", "version": "0.1.13",
"type": "module", "type": "module",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "nuxt build", "build": "pnpm --sequential /build:.*/",
"editor-style": "pnpx @tailwindcss/cli -i ./app/assets/css/_main.css -o ./editor-style.css --minify", "build:nuxt": "nuxt build",
"dev": "nuxt dev", "dev": "nuxt dev",
"lint": "eslint --fix .", "editor-style": "pnpx @tailwindcss/cli -i ./app/assets/css/_main.css -o ./editor-style.css --minify",
"postinstall": "nuxt prepare", "lint": "eslint . --fix",
"preview": "WRANGLER_ENV=dev pnpm run build && wrangler dev --port 3000", "postinstall": "pnpm --sequential /postinstall:.*/",
"release": "pnpm lint && changelogen --noAuthors --release --push", "postinstall:wrangler-types": "wrangler types ./server/types/cloudflare.d.ts",
"typecheck": "nuxt typecheck" "postinstall:nuxt": "nuxt prepare",
"preview": "pnpm --sequential /preview:.*/",
"preview:build": "pnpm run build",
"preview:wrangler-dev": "wrangler dev --port 3000",
"release": "pnpm --sequential /release:.*/",
"release:lint": "eslint .",
"release:typecheck": "nuxt typecheck",
"release:changelogen": "changelogen --noAuthors --release --push"
}, },
"dependencies": { "dependencies": {
"@iconify-json/cib": "^1.2.3", "@iconify-json/cib": "^1.2.3",

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
import "h3";
declare module "h3" {
interface H3EventContext {
cloudflare: {
env: Cloudflare.Env;
};
}
}

View File

@@ -0,0 +1,16 @@
{
"$schema": "./node_modules/wrangler/config-schema.json",
"main": "./output/server/index.mjs",
"compatibility_date": "2026-01-27",
"compatibility_flags": [
"nodejs_compat"
],
"observability": {
"enabled": true
},
"preview_urls": false,
"assets": {
"binding": "ASSETS",
"directory": "../public"
}
}