@forgewp/compiler 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/bin/add.js +15 -6
- package/bin/analyze.js +66 -1
- package/bin/cli.js +16 -12
- package/bin/fresh.js +1 -1
- package/bin/make-block.js +11 -0
- package/bin/make-island.js +11 -0
- package/bin/{make-template.js → make-loop.js} +24 -19
- package/bin/make-page.js +83 -0
- package/bin/make-post-type.js +11 -0
- package/bin/make-sandbox.js +558 -0
- package/lib/adapters/html-adapter.js +8 -3
- package/lib/adapters/stub-adapter.js +6 -2
- package/lib/asset-loader.js +22 -0
- package/lib/blueprints.js +133 -1
- package/lib/functions-builder.js +929 -3
- package/lib/generate-theme.js +219 -23
- package/lib/hydration-scanner.js +69 -57
- package/lib/index.d.ts +38 -1
- package/lib/index.js +1 -1
- package/lib/load-config.js +98 -0
- package/lib/markup-processor.js +105 -0
- package/lib/page-config-plugin.js +40 -0
- package/lib/php-builders.js +4 -2
- package/lib/react-adapter.js +82 -23
- package/lib/render-theme.mts +97 -24
- package/lib/validate-export.js +49 -0
- package/package.json +2 -1
- package/templates/PresetsStyle.tsx +1 -1
- package/templates/auth/components/dashboard-view-wrapper.tsx +168 -0
- package/templates/auth/components/forgot-password-form-wrapper.tsx +133 -0
- package/templates/auth/components/login-form-wrapper.tsx +203 -0
- package/templates/auth/components/reset-password-form-wrapper.tsx +182 -0
- package/templates/auth/components/signup-form-wrapper.tsx +257 -0
- package/templates/auth/components/verify-email-view-wrapper.tsx +265 -0
- package/templates/auth/pages/DashboardPage.tsx +15 -0
- package/templates/auth/pages/ForgotPasswordPage.tsx +14 -0
- package/templates/auth/pages/LoginPage.tsx +14 -0
- package/templates/auth/pages/ResetPasswordPage.tsx +14 -0
- package/templates/auth/pages/SignUpPage.tsx +14 -0
- package/templates/auth/pages/VerifyEmailPage.tsx +14 -0
- package/templates/forgewp-config.ts +70 -3
- package/templates/mock-data.json +122 -433
- package/templates/products.json +5 -0
- package/templates/roles.json +7 -0
- package/templates/sessions.json +1 -0
- package/templates/users.json +34 -0
- package/templates/wordpress.tsx +1390 -1297
|
@@ -16,15 +16,81 @@ export interface FontFamilyPreset {
|
|
|
16
16
|
fontFamily: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export interface CustomPostTypeConfig {
|
|
20
|
+
translatable?: boolean;
|
|
21
|
+
labels?: {
|
|
22
|
+
singular?: string;
|
|
23
|
+
plural?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ForgeWPI18nConfig {
|
|
28
|
+
locales: string[];
|
|
29
|
+
defaultLocale: string;
|
|
30
|
+
provider?: 'local' | 'deepl' | 'libretranslate' | 'google' | string;
|
|
31
|
+
cache?: string;
|
|
32
|
+
providerConfig?: {
|
|
33
|
+
apiKey?: string;
|
|
34
|
+
endpoint?: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ForgeWpSeoSitemapsConfig {
|
|
39
|
+
postTypes: string[];
|
|
40
|
+
taxonomies: string[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface ForgeWPPlugin {
|
|
44
|
+
name: string;
|
|
45
|
+
validateConfig?: (config: ForgeWPThemeConfig, themeRoot: string) => void;
|
|
46
|
+
transformFunctionsPhp?: (php: string, config: ForgeWPThemeConfig, themeRoot: string) => string;
|
|
47
|
+
}
|
|
48
|
+
|
|
19
49
|
export interface ForgeWPThemeConfig {
|
|
20
50
|
name: string;
|
|
21
51
|
slug: string;
|
|
22
52
|
version: string;
|
|
23
53
|
description: string;
|
|
24
54
|
textDomain: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
55
|
+
configVersion?: number;
|
|
56
|
+
favicon?: string;
|
|
57
|
+
headerPath?: string;
|
|
58
|
+
footerPath?: string;
|
|
59
|
+
seo?: {
|
|
60
|
+
sitemaps?: ForgeWpSeoSitemapsConfig;
|
|
61
|
+
plugins?: {
|
|
62
|
+
yoast?: boolean;
|
|
63
|
+
rankMath?: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
frameworkAdapter?: 'react' | 'html' | 'stub';
|
|
67
|
+
style?: 'forgewp' | 'shadcn';
|
|
68
|
+
headless?: {
|
|
69
|
+
apiUrl?: string;
|
|
70
|
+
jwtAuth?: boolean;
|
|
71
|
+
};
|
|
72
|
+
auth?: {
|
|
73
|
+
loginField?: 'usernameOnly' | 'emailOnly' | 'usernameAndEmail';
|
|
74
|
+
defaultRole?: string;
|
|
75
|
+
reservedUsernames?: string[];
|
|
76
|
+
features?: {
|
|
77
|
+
registration?: boolean;
|
|
78
|
+
emailVerification?: boolean;
|
|
79
|
+
autoLoginAfterSignup?: boolean;
|
|
80
|
+
};
|
|
81
|
+
emails?: {
|
|
82
|
+
verification?: {
|
|
83
|
+
subject?: string;
|
|
84
|
+
body?: string;
|
|
85
|
+
};
|
|
86
|
+
passwordReset?: {
|
|
87
|
+
subject?: string;
|
|
88
|
+
body?: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
postTypes?: Record<string, CustomPostTypeConfig>;
|
|
93
|
+
i18n?: ForgeWPI18nConfig;
|
|
28
94
|
settings?: {
|
|
29
95
|
layout?: {
|
|
30
96
|
contentSize?: string;
|
|
@@ -40,4 +106,5 @@ export interface ForgeWPThemeConfig {
|
|
|
40
106
|
googleFonts?: string[];
|
|
41
107
|
};
|
|
42
108
|
};
|
|
109
|
+
plugins?: ForgeWPPlugin[];
|
|
43
110
|
}
|
package/templates/mock-data.json
CHANGED
|
@@ -1,434 +1,123 @@
|
|
|
1
|
-
{
|
|
2
|
-
"
|
|
3
|
-
{
|
|
4
|
-
"id": 1,
|
|
5
|
-
"title": "
|
|
6
|
-
"excerpt": "
|
|
7
|
-
"content": "<p>
|
|
8
|
-
"date": "
|
|
9
|
-
"author": "
|
|
10
|
-
"featuredImage":
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"name": "Natur"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"id": 15,
|
|
127
|
-
"slug": "south-tyrol",
|
|
128
|
-
"name": "Südtirol"
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
"hotel": [
|
|
135
|
-
{
|
|
136
|
-
"id": 1,
|
|
137
|
-
"title": "Grand Ferdinand Vienna",
|
|
138
|
-
"excerpt": "A sophisticated five-star design escape right on Vienna's historic Ringstraße, celebrating timeless Austrian hospitality with a modern twist.",
|
|
139
|
-
"content": "<p>Experience the grand elegance of Vienna at the Grand Ferdinand. From the stunning rooftop pool to the exquisite Austrian culinary classics at our dining salons, this design hotel celebrates beauty, history, and modern comfort without compromise.</p>",
|
|
140
|
-
"date": "May 23, 2026",
|
|
141
|
-
"author": "Editor-in-Chief",
|
|
142
|
-
"featuredImage": "https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1200&q=80",
|
|
143
|
-
"customFields": {
|
|
144
|
-
"rating": "4.8",
|
|
145
|
-
"price_range": "$$$",
|
|
146
|
-
"location": "Schubertring 10-12, 1010 Vienna",
|
|
147
|
-
"stars": "5",
|
|
148
|
-
"featured": "true",
|
|
149
|
-
"city": "Vienna",
|
|
150
|
-
"website": "https://grandferdinand.com",
|
|
151
|
-
"contact_email": "reservations@grandferdinand.com"
|
|
152
|
-
},
|
|
153
|
-
"_terms": {
|
|
154
|
-
"category": [
|
|
155
|
-
{
|
|
156
|
-
"id": 1,
|
|
157
|
-
"slug": "boutique",
|
|
158
|
-
"name": "Boutique"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"country": [
|
|
162
|
-
{
|
|
163
|
-
"id": 20,
|
|
164
|
-
"slug": "austria",
|
|
165
|
-
"name": "Austria"
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"id": 2,
|
|
172
|
-
"title": "Forestis Dolomites",
|
|
173
|
-
"excerpt": "Perched high in the Italian Alps, Forestis is an ultra-luxury sanctuary combining minimalist design with pristine nature and holistic wellness.",
|
|
174
|
-
"content": "<p>A place of retreat in the midst of pristine nature. Forestis Dolomites offers an shelter where time becomes tangible and wellness reaches peak mindfulness. Modern clean-line wood-and-glass suites open up to panoramic alpine peaks.</p>",
|
|
175
|
-
"date": "May 23, 2026",
|
|
176
|
-
"author": "Luxury Travel Writer",
|
|
177
|
-
"featuredImage": "https://images.unsplash.com/photo-1571896349842-33c89424de2d?auto=format&fit=crop&w=1200&q=80",
|
|
178
|
-
"customFields": {
|
|
179
|
-
"rating": "4.9",
|
|
180
|
-
"price_range": "$$$$",
|
|
181
|
-
"location": "Palmscheg 22, 39042 Bressanone",
|
|
182
|
-
"stars": "5",
|
|
183
|
-
"featured": "true",
|
|
184
|
-
"city": "South Tyrol",
|
|
185
|
-
"website": "https://www.forestis.it",
|
|
186
|
-
"contact_email": "info@forestis.it"
|
|
187
|
-
},
|
|
188
|
-
"_terms": {
|
|
189
|
-
"category": [
|
|
190
|
-
{
|
|
191
|
-
"id": 2,
|
|
192
|
-
"slug": "wellness",
|
|
193
|
-
"name": "Wellness & Spa"
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"country": [
|
|
197
|
-
{
|
|
198
|
-
"id": 21,
|
|
199
|
-
"slug": "italy",
|
|
200
|
-
"name": "Italy"
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"id": 3,
|
|
207
|
-
"title": "Schloss Elmau",
|
|
208
|
-
"excerpt": "A legendary spa retreat nestled deep in the Bavarian Alps. Celebrated worldwide for its cultural concerts, award-winning culinary arts, and pristine serenity.",
|
|
209
|
-
"content": "<p>Schloss Elmau offers an elite hospitality sanctuary for discerning travelers. With multiple award-winning spas, an in-house concert hall hosting world-renowned musicians, and beautiful mountain vistas, it represents the absolute pinnacle of luxury spa escapes.</p>",
|
|
210
|
-
"date": "May 23, 2026",
|
|
211
|
-
"author": "Senior Reviewer",
|
|
212
|
-
"featuredImage": "https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80",
|
|
213
|
-
"customFields": {
|
|
214
|
-
"rating": "4.9",
|
|
215
|
-
"price_range": "$$$$",
|
|
216
|
-
"location": "In Elmau 2, 82493 Klais",
|
|
217
|
-
"stars": "5",
|
|
218
|
-
"featured": "true",
|
|
219
|
-
"city": "Bavarian Alps",
|
|
220
|
-
"website": "https://www.schloss-elmau.de",
|
|
221
|
-
"contact_email": "book@schloss-elmau.de"
|
|
222
|
-
},
|
|
223
|
-
"_terms": {
|
|
224
|
-
"category": [
|
|
225
|
-
{
|
|
226
|
-
"id": 2,
|
|
227
|
-
"slug": "wellness",
|
|
228
|
-
"name": "Wellness & Spa"
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"country": [
|
|
232
|
-
{
|
|
233
|
-
"id": 22,
|
|
234
|
-
"slug": "germany",
|
|
235
|
-
"name": "Germany"
|
|
236
|
-
}
|
|
237
|
-
]
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"id": 4,
|
|
242
|
-
"title": "The Chedi Andermatt",
|
|
243
|
-
"excerpt": "A masterpiece of Alpine luxury where elegant Swiss style meets sleek Asian design. Features a dramatic indoor pool, exceptional sake selections, and ski-in convenience.",
|
|
244
|
-
"content": "<p>Surrounded by the natural beauty of the Swiss Alps, The Chedi Andermatt stands out with its bold architectural synthesis. Fine dark woods, soft leather, and warm fireplaces create a warm yet highly polished luxury chalet feel.</p>",
|
|
245
|
-
"date": "May 23, 2026",
|
|
246
|
-
"author": "Lifestyle Columnist",
|
|
247
|
-
"featuredImage": "https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?auto=format&fit=crop&w=1200&q=80",
|
|
248
|
-
"customFields": {
|
|
249
|
-
"rating": "4.8",
|
|
250
|
-
"price_range": "$$$$",
|
|
251
|
-
"location": "Gotthardstrasse 4, 6490 Andermatt",
|
|
252
|
-
"stars": "5",
|
|
253
|
-
"featured": "false",
|
|
254
|
-
"city": "Andermatt",
|
|
255
|
-
"website": "https://www.thechediandermatt.com",
|
|
256
|
-
"contact_email": "info@thechediandermatt.com"
|
|
257
|
-
},
|
|
258
|
-
"_terms": {
|
|
259
|
-
"category": [
|
|
260
|
-
{
|
|
261
|
-
"id": 5,
|
|
262
|
-
"slug": "chalet",
|
|
263
|
-
"name": "Chalets"
|
|
264
|
-
}
|
|
265
|
-
],
|
|
266
|
-
"country": [
|
|
267
|
-
{
|
|
268
|
-
"id": 23,
|
|
269
|
-
"slug": "switzerland",
|
|
270
|
-
"name": "Switzerland"
|
|
271
|
-
}
|
|
272
|
-
]
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"id": 5,
|
|
277
|
-
"title": "San Luis Retreat Hotel & Lodges",
|
|
278
|
-
"excerpt": "Exclusive wooden lodges and treehouses surrounding a private natural lake in the heart of South Tyrol. A perfect fusion of alpine luxury, absolute privacy, and cozy warmth.",
|
|
279
|
-
"content": "<p>A magical village of wooden chalets and treehouses hidden in a private 40-hectare larch forest. San Luis balances raw alpine style with world-class wellness, featuring heated pools flowing outdoors and private fireplaces in every lodge.</p>",
|
|
280
|
-
"date": "May 23, 2026",
|
|
281
|
-
"author": "Hideaway Expert",
|
|
282
|
-
"featuredImage": "https://images.unsplash.com/photo-1584132967334-10e028bd69f7?auto=format&fit=crop&w=1200&q=80",
|
|
283
|
-
"customFields": {
|
|
284
|
-
"rating": "4.7",
|
|
285
|
-
"price_range": "$$$",
|
|
286
|
-
"location": "Via Solaria 9, 39010 Avelengo",
|
|
287
|
-
"stars": "5",
|
|
288
|
-
"featured": "true",
|
|
289
|
-
"city": "South Tyrol",
|
|
290
|
-
"website": "https://www.sanluis-hotel.com",
|
|
291
|
-
"contact_email": "info@sanluis-hotel.com"
|
|
292
|
-
},
|
|
293
|
-
"_terms": {
|
|
294
|
-
"category": [
|
|
295
|
-
{
|
|
296
|
-
"id": 5,
|
|
297
|
-
"slug": "chalet",
|
|
298
|
-
"name": "Chalets"
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
"country": [
|
|
302
|
-
{
|
|
303
|
-
"id": 21,
|
|
304
|
-
"slug": "italy",
|
|
305
|
-
"name": "Italy"
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"id": 6,
|
|
312
|
-
"title": "Villa d'Este",
|
|
313
|
-
"excerpt": "A Renaissance masterpiece situated on the shores of Lake Como. Boasting legendary floating pools, immaculate formal gardens, and unmatched old-world romance.",
|
|
314
|
-
"content": "<p>For centuries, Villa d'Este has been the destination of choice for royalty, artists, and movie stars. With its iconic floating swimming pool on the lake and pristine gardens, it remains the ultimate luxurious hotel in Northern Italy.</p>",
|
|
315
|
-
"date": "May 23, 2026",
|
|
316
|
-
"author": "Grand Tour Editor",
|
|
317
|
-
"featuredImage": "https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?auto=format&fit=crop&w=1200&q=80",
|
|
318
|
-
"customFields": {
|
|
319
|
-
"rating": "4.9",
|
|
320
|
-
"price_range": "$$$$",
|
|
321
|
-
"location": "Via Regina 40, 22012 Cernobbio",
|
|
322
|
-
"stars": "5",
|
|
323
|
-
"featured": "false",
|
|
324
|
-
"city": "Lake Como",
|
|
325
|
-
"website": "https://www.villadeste.com",
|
|
326
|
-
"contact_email": "reservations@villadeste.it"
|
|
327
|
-
},
|
|
328
|
-
"_terms": {
|
|
329
|
-
"category": [
|
|
330
|
-
{
|
|
331
|
-
"id": 4,
|
|
332
|
-
"slug": "adults-only",
|
|
333
|
-
"name": "Adults Only"
|
|
334
|
-
}
|
|
335
|
-
],
|
|
336
|
-
"country": [
|
|
337
|
-
{
|
|
338
|
-
"id": 21,
|
|
339
|
-
"slug": "italy",
|
|
340
|
-
"name": "Italy"
|
|
341
|
-
}
|
|
342
|
-
]
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
],
|
|
346
|
-
"_taxonomy_category": [
|
|
347
|
-
{
|
|
348
|
-
"id": 1,
|
|
349
|
-
"name": "Boutique",
|
|
350
|
-
"slug": "boutique",
|
|
351
|
-
"description": "Individuelle Boutique-Hotels mit Charakter",
|
|
352
|
-
"count": 3,
|
|
353
|
-
"meta": {}
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"id": 2,
|
|
357
|
-
"name": "Wellness & Spa",
|
|
358
|
-
"slug": "wellness",
|
|
359
|
-
"description": "Hotels mit erstklassigen Spa- und Wellnessangeboten",
|
|
360
|
-
"count": 4,
|
|
361
|
-
"meta": {}
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"id": 3,
|
|
365
|
-
"name": "Familie",
|
|
366
|
-
"slug": "family",
|
|
367
|
-
"description": "Familienfreundliche Hotels",
|
|
368
|
-
"count": 2,
|
|
369
|
-
"meta": {}
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"id": 4,
|
|
373
|
-
"name": "Nur für Erwachsene",
|
|
374
|
-
"slug": "adults-only",
|
|
375
|
-
"description": "Exklusiv für Erwachsene",
|
|
376
|
-
"count": 2,
|
|
377
|
-
"meta": {}
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"id": 5,
|
|
381
|
-
"name": "Chalets",
|
|
382
|
-
"slug": "chalet",
|
|
383
|
-
"description": "Luxuriöse Chalets und alpine Unterkünfte",
|
|
384
|
-
"count": 1,
|
|
385
|
-
"meta": {}
|
|
386
|
-
}
|
|
387
|
-
],
|
|
388
|
-
"_taxonomy_country": [
|
|
389
|
-
{
|
|
390
|
-
"id": 20,
|
|
391
|
-
"name": "Österreich",
|
|
392
|
-
"slug": "austria",
|
|
393
|
-
"description": "Handverlesene Hotels in Österreich",
|
|
394
|
-
"count": 1,
|
|
395
|
-
"meta": {
|
|
396
|
-
"featured_image": "https://images.unsplash.com/photo-1512100901049-09e9f4253c13?auto=format&fit=crop&w=600&q=80",
|
|
397
|
-
"flag": "🇦🇹"
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"id": 22,
|
|
402
|
-
"name": "Deutschland",
|
|
403
|
-
"slug": "germany",
|
|
404
|
-
"description": "Handverlesene Hotels in Deutschland",
|
|
405
|
-
"count": 1,
|
|
406
|
-
"meta": {
|
|
407
|
-
"featured_image": "https://images.unsplash.com/photo-1467269204594-9661b134dd2b?auto=format&fit=crop&w=600&q=80",
|
|
408
|
-
"flag": "🇩🇪"
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"id": 23,
|
|
413
|
-
"name": "Schweiz",
|
|
414
|
-
"slug": "switzerland",
|
|
415
|
-
"description": "Handverlesene Hotels in der Schweiz",
|
|
416
|
-
"count": 1,
|
|
417
|
-
"meta": {
|
|
418
|
-
"featured_image": "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=600&q=80",
|
|
419
|
-
"flag": "🇨🇭"
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"id": 21,
|
|
424
|
-
"name": "Italien",
|
|
425
|
-
"slug": "italy",
|
|
426
|
-
"description": "Handverlesene Hotels in Italien",
|
|
427
|
-
"count": 3,
|
|
428
|
-
"meta": {
|
|
429
|
-
"featured_image": "https://images.unsplash.com/photo-1529260830199-42c24126f198?auto=format&fit=crop&w=600&q=80",
|
|
430
|
-
"flag": "🇮🇹"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"post": [
|
|
3
|
+
{
|
|
4
|
+
"id": 1,
|
|
5
|
+
"title": "Welcome to ForgeWP: The Headless Revolution",
|
|
6
|
+
"excerpt": "Discover how ForgeWP bridges standard WordPress themes with blistering fast React architectures.",
|
|
7
|
+
"content": "<p>This is the first mock post. In local dev, you can modify <code>cms/mock-data.json</code> to test layout content changes.</p>",
|
|
8
|
+
"date": "2026-05-10T09:00:00Z",
|
|
9
|
+
"author": "Antigravity",
|
|
10
|
+
"featuredImage": {
|
|
11
|
+
"id": 101,
|
|
12
|
+
"url": "https://picsum.photos/seed/forgewp/1200/630",
|
|
13
|
+
"alt": "ForgeWP Logo and Brand Artwork",
|
|
14
|
+
"title": "ForgeWP Logo",
|
|
15
|
+
"caption": "A high-fidelity minimalist logo graphic.",
|
|
16
|
+
"width": 1200,
|
|
17
|
+
"height": 630,
|
|
18
|
+
"sizes": {
|
|
19
|
+
"thumbnail": { "url": "https://picsum.photos/seed/forgewp/150/150", "width": 150, "height": 150 },
|
|
20
|
+
"medium": { "url": "https://picsum.photos/seed/forgewp/300/300", "width": 300, "height": 300 },
|
|
21
|
+
"large": { "url": "https://picsum.photos/seed/forgewp/1024/768", "width": 1024, "height": 768 }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"customFields": { "read_time": "5" },
|
|
25
|
+
"_terms": {
|
|
26
|
+
"category": [
|
|
27
|
+
{ "id": 1, "slug": "tutorials", "name": "Tutorials" },
|
|
28
|
+
{ "id": 2, "slug": "framework", "name": "Framework" }
|
|
29
|
+
],
|
|
30
|
+
"post_tag": [
|
|
31
|
+
{ "id": 10, "slug": "react", "name": "React" },
|
|
32
|
+
{ "id": 11, "slug": "wordpress", "name": "WordPress" }
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": 2,
|
|
38
|
+
"title": "Unlocking Brutalist Web Design Aesthetics",
|
|
39
|
+
"excerpt": "A deep dive into high-contrast grids, sharp corners, and premium flat shadows in modern interfaces.",
|
|
40
|
+
"content": "<p>This is the second mock post. Style these grids using beautiful Tailwind utilities.</p>",
|
|
41
|
+
"date": "2026-05-12T14:30:00Z",
|
|
42
|
+
"author": "DeepMind Partner",
|
|
43
|
+
"featuredImage": "https://picsum.photos/seed/brutalist/1200/630",
|
|
44
|
+
"customFields": { "read_time": "8" },
|
|
45
|
+
"_terms": {
|
|
46
|
+
"category": [
|
|
47
|
+
{ "id": 3, "slug": "design", "name": "Design" },
|
|
48
|
+
{ "id": 4, "slug": "css", "name": "CSS" }
|
|
49
|
+
],
|
|
50
|
+
"post_tag": [
|
|
51
|
+
{ "id": 12, "slug": "brutalism", "name": "Brutalism" },
|
|
52
|
+
{ "id": 13, "slug": "tailwind", "name": "Tailwind" }
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"project": [
|
|
58
|
+
{
|
|
59
|
+
"id": 1,
|
|
60
|
+
"title": "ForgeWP Scaffolding Platform",
|
|
61
|
+
"excerpt": "Building a custom compiler framework to transpile React elements into standard PHP themes.",
|
|
62
|
+
"content": "<p>Detailed description of the ForgeWP compiler pipeline project.</p>",
|
|
63
|
+
"date": "2026-05-15T12:00:00Z",
|
|
64
|
+
"author": "Lead Architect",
|
|
65
|
+
"featuredImage": "https://picsum.photos/seed/platform/1200/630",
|
|
66
|
+
"customFields": {
|
|
67
|
+
"client_name": "El Dorado",
|
|
68
|
+
"project_budget": "45000",
|
|
69
|
+
"status": "active"
|
|
70
|
+
},
|
|
71
|
+
"_terms": {
|
|
72
|
+
"project_type": [{ "id": 20, "slug": "open-source", "name": "Open Source" }],
|
|
73
|
+
"technology": [{ "id": 30, "slug": "react", "name": "React" }]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": 2,
|
|
78
|
+
"title": "Brutalist Starter Theme",
|
|
79
|
+
"excerpt": "A clean, responsive, and robust high-contrast interface leveraging Tailwind CSS v4.",
|
|
80
|
+
"content": "<p>A brutalist theme showcasing raw black borders and vivid accent colors.</p>",
|
|
81
|
+
"date": "2026-05-16T16:00:00Z",
|
|
82
|
+
"author": "Theme Engineer",
|
|
83
|
+
"featuredImage": "https://picsum.photos/seed/starter/1200/630",
|
|
84
|
+
"customFields": {
|
|
85
|
+
"client_name": "ForgeWP Community",
|
|
86
|
+
"project_budget": "0",
|
|
87
|
+
"status": "completed"
|
|
88
|
+
},
|
|
89
|
+
"_terms": {
|
|
90
|
+
"project_type": [{ "id": 20, "slug": "open-source", "name": "Open Source" }],
|
|
91
|
+
"technology": [{ "id": 32, "slug": "tailwind", "name": "Tailwind CSS" }]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"attachment": [
|
|
96
|
+
{
|
|
97
|
+
"id": 101,
|
|
98
|
+
"url": "https://picsum.photos/seed/forgewp/1200/630",
|
|
99
|
+
"alt": "ForgeWP Logo and Brand Artwork",
|
|
100
|
+
"title": "ForgeWP Logo",
|
|
101
|
+
"caption": "A high-fidelity minimalist logo graphic.",
|
|
102
|
+
"width": 1200,
|
|
103
|
+
"height": 630,
|
|
104
|
+
"sizes": {
|
|
105
|
+
"thumbnail": { "url": "https://picsum.photos/seed/forgewp/150/150", "width": 150, "height": 150 },
|
|
106
|
+
"medium": { "url": "https://picsum.photos/seed/forgewp/300/300", "width": 300, "height": 300 },
|
|
107
|
+
"large": { "url": "https://picsum.photos/seed/forgewp/1024/768", "width": 1024, "height": 768 }
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": 102,
|
|
112
|
+
"url": "https://picsum.photos/seed/layout/1200/800",
|
|
113
|
+
"alt": "Brutalist Layout Preview",
|
|
114
|
+
"title": "Layout Preview",
|
|
115
|
+
"width": 1200,
|
|
116
|
+
"height": 800,
|
|
117
|
+
"sizes": {
|
|
118
|
+
"thumbnail": { "url": "https://picsum.photos/seed/layout/150/150", "width": 150, "height": 150 },
|
|
119
|
+
"medium": { "url": "https://picsum.photos/seed/layout/300/300", "width": 300, "height": 300 }
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]
|
|
434
123
|
}
|