@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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"administrator": ["manage_options", "edit_theme_options", "edit_posts", "edit_others_posts", "publish_posts", "read"],
|
|
3
|
+
"editor": ["edit_posts", "edit_others_posts", "publish_posts", "read"],
|
|
4
|
+
"author": ["edit_posts", "publish_posts", "read"],
|
|
5
|
+
"subscriber": ["read"],
|
|
6
|
+
"customer": ["read"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": 1,
|
|
4
|
+
"username": "admin",
|
|
5
|
+
"email": "admin@forgewp.local",
|
|
6
|
+
"displayName": "Concrete Designer",
|
|
7
|
+
"roles": ["administrator"],
|
|
8
|
+
"avatarUrl": "https://picsum.photos/seed/avatar1/150/150"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": 2,
|
|
12
|
+
"username": "subscriber",
|
|
13
|
+
"email": "user@forgewp.local",
|
|
14
|
+
"displayName": "Sub Concrete",
|
|
15
|
+
"roles": ["subscriber"],
|
|
16
|
+
"avatarUrl": "https://picsum.photos/seed/avatar2/150/150"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": 3,
|
|
20
|
+
"username": "editor",
|
|
21
|
+
"email": "editor@forgewp.local",
|
|
22
|
+
"displayName": "Concrete Editor",
|
|
23
|
+
"roles": ["editor"],
|
|
24
|
+
"avatarUrl": "https://picsum.photos/seed/avatar3/150/150"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": 4,
|
|
28
|
+
"username": "customer",
|
|
29
|
+
"email": "customer@forgewp.local",
|
|
30
|
+
"displayName": "Concrete Customer",
|
|
31
|
+
"roles": ["customer"],
|
|
32
|
+
"avatarUrl": "https://picsum.photos/seed/avatar4/150/150"
|
|
33
|
+
}
|
|
34
|
+
]
|