generator-chisel 2.0.0-alpha.9 → 2.1.0
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/CHANGELOG.md +58 -0
- package/bin/chisel.js +6 -0
- package/lib/commands/create/Creator.js +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/.gitignore.chisel-tpl +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/.nvmrc +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/404.php +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/README.md +37 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_6772609e3c28c.json +83 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_6772615562fb4.json +49 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/archive.php +2 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/block.json +31 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/edit.js +35 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/editor.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/index.js +45 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/save.js +20 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/script.js +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/style.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/view.js +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example/view.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/block.json +32 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/edit.js +33 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/editor.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/index.js +45 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/render.php +12 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/render.twig +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/save.js +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/script.js +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/style.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/view.js +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks/example-server-side/view.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/block.json +36 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/critical.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/editor.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/example.twig +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/index.js +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/init.php +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/script.js +8 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/style.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/view.js +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/example-blocks/blocks-acf/example/view.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/arrow-left.svg +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/arrow-right.svg +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/chisel-icon.svg +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/chisel-logo.svg +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/close-line.svg +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/color/chisel-icon.svg +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/color/chisel-logo.svg +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/color/facebook-logo.svg +10 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/color/instagram-logo.svg +14 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/x-logo.svg +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/author.php +3 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/composer.json +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/footer.php +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/functions.php +18 -24
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes/Ajax.php → inc/Controllers/AjaxController.php} +16 -41
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Factory/RegisterAcfOptionsPage.php +62 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/Factory}/RegisterBlocks.php +53 -22
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Factory/RegisterCustomPostType.php +211 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Factory/RegisterCustomTaxonomy.php +174 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/AcfHelpers.php +46 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/AjaxHelpers.php +33 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/AssetsHelpers.php +28 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/BlocksHelpers.php +118 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/CacheHelpers.php +41 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/CommentsHelpers.php +26 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/DataHelpers.php +35 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/GravityFormsHelpers.php +65 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/ImageHelpers.php +102 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes/Helpers.php → inc/Helper/ThemeHelpers.php} +53 -93
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/WoocommerceHelpers.php +72 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/YoastHelpers.php +37 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes/interfaces/Instance.php → inc/Interfaces/HooksInterface.php} +3 -8
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Interfaces/InstanceInterface.php +16 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/Plugin}/GravityForms.php +15 -72
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/Plugin}/Woocommerce.php +54 -80
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Plugin/Yoast.php +46 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Traits/PageBlocks.php +92 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Traits/Singleton.php +23 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Acf.php +125 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/AcfBlocks.php +62 -61
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/AjaxEnpoints.php +6 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/Assets.php +258 -119
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/Blocks.php +63 -51
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Cache.php +103 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes/ExtendedImage.php → inc/WP/ChiselImage.php} +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes/ExtendedPost.php → inc/WP/ChiselPost.php} +4 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProduct.php +66 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProductCategory.php +66 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes/ExtendedTerm.php → inc/WP/ChiselTerm.php} +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/Comments.php +10 -32
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/Components.php +61 -36
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/CustomPostTypes.php +124 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/CustomTaxonomies.php +129 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/Sidebars.php +11 -17
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/Site.php +16 -21
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/Theme.php +22 -15
- package/lib/commands/create/creators/app/chisel-starter-theme/{classes → inc/WP}/Twig.php +34 -21
- package/lib/commands/create/creators/app/chisel-starter-theme/index.php +2 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/package.chisel-tpl.json +5 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/page.php +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/phpcs.xml +5 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/search.php +3 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/single.php +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/accordion-item.js +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/style.scss +12 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/acf-json/group_66462c70b851f.json +107 -105
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/block.json +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/slider.twig +4 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/settings/_index.scss +2 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_buttons.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_icon.scss +39 -7
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_index.scss +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_layout.scss +11 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/admin/acf.js +65 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/app.js +2 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks.js +10 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/mods/core-button.js +13 -9
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/utils.js +0 -12
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/loaded.js +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/admin.scss +2 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-button.scss +14 -13
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_buttons.scss +14 -13
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_icons-preview.scss +97 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav.scss +19 -9
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_posts-items.scss +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_icon.scss +51 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_layout.scss +0 -13
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-admin/_acf.scss +29 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-admin/_index.scss +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/style.chisel-tpl.css +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/twig_cs.php +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/base.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/header.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/{partials → components}/logo.twig +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/main-nav-item.twig +2 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/main-nav.twig +5 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/pagination.twig +70 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/slider.twig +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/{partials → components}/the-title.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/index.twig +10 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/views/objects/icon.twig +37 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/partials/icons-preview.twig +81 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-blog.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-woocommerce.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/single.twig +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/archive-product.twig +10 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/content-product-cat.twig +42 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/linked-products.twig +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/single-product.twig +4 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/woocommerce.php +25 -15
- package/lib/commands/create/creators/app/index.js +74 -20
- package/lib/commands/create/creators/app/template/.devcontainer/Dockerfile +21 -0
- package/lib/commands/create/creators/app/template/.devcontainer/compose.chisel-tpl +3 -0
- package/lib/commands/create/creators/app/template/.devcontainer/devcontainer.json.chisel-tpl +31 -0
- package/lib/commands/create/creators/app/template/.devcontainer/docker-compose.yml.chisel-tpl +40 -0
- package/lib/commands/create/creators/app/template/.devcontainer/exec +8 -0
- package/lib/commands/create/creators/app/template/.devcontainer/post-create-command.sh.chisel-tpl +24 -0
- package/lib/commands/create/creators/devcontainer.js +62 -0
- package/lib/commands/create/creators/utils.js +58 -0
- package/lib/commands/create/creators/wp/index.js +25 -3
- package/lib/commands/create/creators/wp-plugins/index.js +1 -0
- package/lib/commands/create/creators/wp-plugins/plugins.json +3 -2
- package/lib/commands/create/index.js +9 -2
- package/lib/commands/create/packages-versions.js +3 -3
- package/package.json +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Acf.php +0 -188
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/AcfSync.php +0 -230
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ChiselCache.php +0 -87
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/CustomPostTypes.php +0 -444
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ExtendedProduct.php +0 -41
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Yoast.php +0 -78
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/acf-sync.js +0 -26
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/acf-sync.scss +0 -64
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_icon.scss +0 -19
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/icon.twig +0 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/partials/pagination.twig +0 -70
- /package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons/{loader.svg → animated/loader.svg} +0 -0
- /package/lib/commands/create/creators/app/chisel-starter-theme/assets/{icons → icons-source}/minus.svg +0 -0
- /package/lib/commands/create/creators/app/chisel-starter-theme/assets/{icons → icons-source}/plus.svg +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chisel/acf-example-block",
|
|
3
|
+
"title": "Acf-example-block",
|
|
4
|
+
"description": "Example ACF Block - This file contains some specific acf settings in acf section. The renderCallback value must be the same for all acf blocks. There one custom setting, called ignoreScript, which should be used in cases when you use the script only to import scss - adding the script key to the ignoreScripts array will prevent the script from being loaded. The style array contains two values, because if the style.scss is imprted into both script.js and index.js two files will be built. All scripts and styles values may be arrays or strings.",
|
|
5
|
+
"category": "chisel-blocks",
|
|
6
|
+
"icon": "carrot",
|
|
7
|
+
"apiVersion": 3,
|
|
8
|
+
"keywords": ["example", "block"],
|
|
9
|
+
"textdomain": "chisel",
|
|
10
|
+
"acf": {
|
|
11
|
+
"mode": "preview",
|
|
12
|
+
"usePostMeta": false,
|
|
13
|
+
"renderCallback": "\\Chisel\\AcfBlocks::acf_block_render"
|
|
14
|
+
},
|
|
15
|
+
"styles": [
|
|
16
|
+
{ "name": "default", "label": "Default", "isDefault": true },
|
|
17
|
+
{ "name": "other", "label": "Other" }
|
|
18
|
+
],
|
|
19
|
+
"supports": {
|
|
20
|
+
"anchor": true,
|
|
21
|
+
"align": false,
|
|
22
|
+
"alignWide": false,
|
|
23
|
+
"alignContent": false,
|
|
24
|
+
"className": true,
|
|
25
|
+
"customClassName": true,
|
|
26
|
+
"multiple": true,
|
|
27
|
+
"reusable": true
|
|
28
|
+
},
|
|
29
|
+
"ignoreScripts": ["script"],
|
|
30
|
+
"editorScript": "file:./index.js",
|
|
31
|
+
"editorStyle": "file:./index.css",
|
|
32
|
+
"style": ["file:./style-index.css", "file:./style-script.css"],
|
|
33
|
+
"script": "file:./script.js",
|
|
34
|
+
"viewScript": "file:./view.js",
|
|
35
|
+
"viewStyle": "file:./view.css"
|
|
36
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is loaded in the editor and frontend.
|
|
3
|
+
*
|
|
4
|
+
* You must import the scss file in order for css file to be built in the build folder.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import './style.scss';
|
|
8
|
+
import './critical.scss'; // this will become script.css and will be displayed as inline css
|
package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/arrow-left.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
2
|
+
<path d="M12.141 13.418c0.268 0.271 0.268 0.709 0 0.978s-0.701 0.272-0.969 0l-3.83-3.908c-0.268-0.27-0.268-0.707 0-0.979l3.83-3.908c0.267-0.27 0.701-0.27 0.969 0s0.268 0.709 0 0.978l-3.141 3.421 3.141 3.418z"></path>
|
|
3
|
+
</svg>
|
package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/arrow-right.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
2
|
+
<path d="M11 10l-3.141-3.42c-0.268-0.27-0.268-0.707 0-0.978 0.268-0.27 0.701-0.27 0.969 0l3.83 3.908c0.268 0.271 0.268 0.709 0 0.979l-3.83 3.908c-0.267 0.272-0.701 0.27-0.969 0s-0.268-0.707 0-0.978l3.141-3.419z"></path>
|
|
3
|
+
</svg>
|
package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/chisel-icon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="c-logo__icon" viewBox="0 0 44.16 44.16"><path fill="#000" d="M22.08 0a22 22 0 0 0-12 3.55.83.83 0 0 0-.25 1.16A.84.84 0 0 0 11 5a20.41 20.41 0 1 1-2.63 2 .84.84 0 1 0-1.14-1.26A22.08 22.08 0 1 0 22.08 0Zm15 12.07a.84.84 0 1 0-1.4.93 16.3 16.3 0 1 1-2.16-2.61.84.84 0 0 0 1.19 0 .85.85 0 0 0 0-1.19 18.14 18.14 0 1 0 2.38 2.88Zm-15-2.86a12.83 12.83 0 0 0-7.65 2.52.85.85 0 0 0-.17 1.18.84.84 0 0 0 1.18.18 11.18 11.18 0 1 1 9.36 19.84.84.84 0 0 0 .2 1.66h.2a12.87 12.87 0 0 0-3.12-25.38ZM15 30.74a11.19 11.19 0 0 1-2-15.12.84.84 0 1 0-1.37-1 12.86 12.86 0 0 0 2.36 17.4.84.84 0 0 0 .53.19.86.86 0 0 0 .66-.31.85.85 0 0 0-.18-1.16Z"/><path fill="#000" d="M28.49 25.69a.85.85 0 0 0-1.18.19 6.46 6.46 0 1 1-1.43-9 .84.84 0 1 0 1-1.36 8.15 8.15 0 1 0 1.8 11.38.85.85 0 0 0-.19-1.21Zm-6.41-7a3.43 3.43 0 1 0 3.43 3.43 3.44 3.44 0 0 0-3.43-3.47Zm0 5.17a1.74 1.74 0 1 1 1.74-1.74 1.74 1.74 0 0 1-1.74 1.7Z"/></svg>
|
package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/chisel-logo.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="c-logo__icon" viewBox="0 0 150 44.16"><path d="M22.77 0a22 22 0 0 0-12 3.55.83.83 0 0 0-.25 1.16.84.84 0 0 0 1.17.29 20.41 20.41 0 1 1-2.63 2 .85.85 0 1 0-1.14-1.26A22.08 22.08 0 1 0 22.77 0Zm15 12.07a.84.84 0 1 0-1.4.93 16.3 16.3 0 1 1-2.16-2.61.84.84 0 0 0 1.19 0 .85.85 0 0 0 0-1.19 18.14 18.14 0 1 0 2.38 2.88zm-15-2.86a12.83 12.83 0 0 0-7.65 2.52.85.85 0 0 0-.17 1.18.84.84 0 0 0 1.18.18 11.18 11.18 0 1 1 9.36 19.84.84.84 0 0 0 .2 1.66h.2a12.87 12.87 0 0 0-3.12-25.38zm-7.08 21.53a11.19 11.19 0 0 1-2-15.12.848.848 0 1 0-1.37-1 12.86 12.86 0 0 0 2.36 17.4.84.84 0 0 0 .53.19.86.86 0 0 0 .66-.31.85.85 0 0 0-.18-1.16z"/><path d="M28.49 25.69a.85.85 0 0 0-1.18.19 6.46 6.46 0 1 1-1.43-9 .844.844 0 1 0 1-1.36 8.15 8.15 0 1 0 1.8 11.38.85.85 0 0 0-.19-1.21zm-6.41-7a3.43 3.43 0 1 0 3.43 3.43 3.44 3.44 0 0 0-3.43-3.47zm0 5.17a1.74 1.74 0 1 1 1.74-1.74 1.74 1.74 0 0 1-1.74 1.7zm46.33-10.823q.687.338.78 1.045.126.706-.343 1.29-.344.46-.906.522-.532.06-1.063-.215-.906-.461-1.906-.738-1-.276-2.125-.276-1.782 0-3.22.584-1.405.552-2.437 1.627-1.031 1.044-1.594 2.488-.53 1.443-.53 3.194 0 1.935.593 3.44.594 1.474 1.625 2.518 1.063 1.014 2.469 1.536 1.437.491 3.094.491 1.062 0 2.062-.246 1.032-.245 1.938-.737.562-.276 1.094-.184.562.061.906.522.531.645.375 1.32-.125.646-.781.983-.782.43-1.72.738-.937.307-1.905.491-.97.184-1.97.184-2.25 0-4.25-.737t-3.562-2.15q-1.563-1.412-2.469-3.47-.875-2.058-.875-4.699 0-2.365.813-4.361.843-2.027 2.343-3.47 1.532-1.475 3.563-2.273 2.031-.83 4.438-.83 1.5 0 2.906.37 1.438.368 2.657 1.043zm12.281 3.839q2.157 0 3.344.922 1.188.89 1.657 2.426.5 1.535.5 3.378v8.139q0 .675-.47 1.136-.437.43-1.093.43-.687 0-1.125-.43-.438-.46-.438-1.136v-8.139q0-1.075-.312-1.965-.281-.891-1.031-1.413-.72-.522-2.032-.522-1.219 0-2.187.522-.938.522-1.47 1.413-.5.89-.5 1.965v8.139q0 .675-.468 1.136-.437.43-1.094.43-.687 0-1.125-.43-.437-.46-.437-1.136V12.147q0-.676.437-1.106.438-.46 1.125-.46.657 0 1.094.46.469.43.469 1.106v8.384l-.563.307q.22-.676.72-1.382.53-.706 1.28-1.29.782-.583 1.72-.921.937-.369 2-.369zM93.473 31.74q0 .676-.437 1.137-.438.43-1.125.43-.657 0-1.125-.43-.438-.46-.438-1.136V18.596q0-.676.438-1.105.468-.461 1.125-.461.687 0 1.125.46.437.43.437 1.106zM91.88 15.004q-.906 0-1.312-.307-.406-.338-.406-1.106V13.1q0-.768.437-1.075.438-.307 1.313-.307.937 0 1.343.338.407.307.407 1.044v.491q0 .799-.438 1.106-.406.307-1.344.307zm4.843 15.785q-.281-.43-.25-.983.032-.584.657-.983.437-.276.906-.215.5.03.937.46.875.953 1.938 1.506 1.094.553 2.625.553.625-.031 1.281-.185.657-.184 1.126-.614.468-.46.468-1.32 0-.768-.5-1.229-.5-.46-1.312-.737-.813-.307-1.75-.553-1-.276-2.032-.614-1-.338-1.812-.86-.813-.553-1.344-1.413-.5-.86-.5-2.119 0-1.443.812-2.488.844-1.044 2.157-1.627 1.344-.584 2.906-.584.906 0 1.906.246 1 .215 1.938.706.938.492 1.625 1.29.313.4.344.952.062.553-.5.983-.375.307-.906.276-.532-.03-.875-.337-.594-.738-1.532-1.137-.937-.43-2.125-.43-.594 0-1.25.185-.625.153-1.063.583-.437.43-.437 1.26 0 .767.5 1.228.531.46 1.375.767.844.308 1.844.553.969.246 1.906.584.969.338 1.72.89.78.523 1.25 1.383.5.829.5 2.119 0 1.505-.907 2.58-.875 1.044-2.25 1.596-1.344.553-2.844.553-1.781 0-3.563-.614-1.75-.645-2.969-2.211zm23.564 2.825q-2.594 0-4.5-1.044-1.907-1.075-2.97-2.918-1.03-1.873-1.03-4.269 0-2.702 1.093-4.606 1.125-1.935 2.907-2.949 1.781-1.044 3.781-1.044 1.531 0 2.907.614 1.375.584 2.437 1.659 1.094 1.044 1.719 2.487.625 1.413.656 3.102-.031.615-.5 1.014-.469.4-1.094.4h-12.156l-.75-2.611h11.75l-.594.552v-.767q-.062-1.075-.718-1.874-.657-.829-1.626-1.259-.968-.46-2.03-.46-.938 0-1.813.306-.844.277-1.532.922-.656.645-1.062 1.72-.375 1.044-.375 2.61 0 1.69.718 2.949.72 1.259 1.938 1.965 1.219.676 2.688.676 1.156 0 1.906-.215.75-.246 1.25-.584.5-.338.875-.645.469-.276.938-.276.562 0 .937.4.375.368.375.89 0 .675-.687 1.228-.844.799-2.344 1.413-1.469.614-3.094.614zm13.907-1.874q0 .676-.469 1.137-.438.43-1.094.43-.656 0-1.125-.43-.437-.46-.437-1.136V12.147q0-.676.468-1.106.47-.46 1.125-.46.688 0 1.094.46.438.43.438 1.106z"/></svg>
|
package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons-source/close-line.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,13.41l5.66,5.66c.4,.38,1.03,.37,1.41-.02,.37-.39,.37-1,0-1.39l-5.66-5.66,5.66-5.66c.38-.4,.37-1.03-.02-1.41-.39-.37-1-.37-1.39,0l-5.66,5.66L6.34,4.93c-.4-.38-1.04-.36-1.41,.05-.36,.38-.36,.98,0,1.37l5.66,5.66-5.66,5.66c-.4,.38-.41,1.02-.02,1.41,.38,.4,1.02,.41,1.41,.02,0,0,.02-.02,.02-.02l5.66-5.66Z" fill="#09244b" fill-rule="evenodd"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="c-logo__icon" viewBox="0 0 44.16 44.16"><path fill="#2a1468" d="M22.08 0a22 22 0 0 0-12 3.55.83.83 0 0 0-.25 1.16A.84.84 0 0 0 11 5a20.41 20.41 0 1 1-2.63 2 .84.84 0 1 0-1.14-1.26A22.08 22.08 0 1 0 22.08 0Zm15 12.07a.84.84 0 1 0-1.4.93 16.3 16.3 0 1 1-2.16-2.61.84.84 0 0 0 1.19 0 .85.85 0 0 0 0-1.19 18.14 18.14 0 1 0 2.38 2.88Zm-15-2.86a12.83 12.83 0 0 0-7.65 2.52.85.85 0 0 0-.17 1.18.84.84 0 0 0 1.18.18 11.18 11.18 0 1 1 9.36 19.84.84.84 0 0 0 .2 1.66h.2a12.87 12.87 0 0 0-3.12-25.38ZM15 30.74a11.19 11.19 0 0 1-2-15.12.84.84 0 1 0-1.37-1 12.86 12.86 0 0 0 2.36 17.4.84.84 0 0 0 .53.19.86.86 0 0 0 .66-.31.85.85 0 0 0-.18-1.16Z"/><path fill="#ff6d54" d="M28.49 25.69a.85.85 0 0 0-1.18.19 6.46 6.46 0 1 1-1.43-9 .84.84 0 1 0 1-1.36 8.15 8.15 0 1 0 1.8 11.38.85.85 0 0 0-.19-1.21Zm-6.41-7a3.43 3.43 0 1 0 3.43 3.43 3.44 3.44 0 0 0-3.43-3.47Zm0 5.17a1.74 1.74 0 1 1 1.74-1.74 1.74 1.74 0 0 1-1.74 1.7Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="c-logo__icon" viewBox="0 0 150 44.16"><path fill="#2a1468" d="M22.77 0a22 22 0 0 0-12 3.55.83.83 0 0 0-.25 1.16.84.84 0 0 0 1.17.29 20.41 20.41 0 1 1-2.63 2 .85.85 0 1 0-1.14-1.26A22.08 22.08 0 1 0 22.77 0Zm15 12.07a.84.84 0 1 0-1.4.93 16.3 16.3 0 1 1-2.16-2.61.84.84 0 0 0 1.19 0 .85.85 0 0 0 0-1.19 18.14 18.14 0 1 0 2.38 2.88zm-15-2.86a12.83 12.83 0 0 0-7.65 2.52.85.85 0 0 0-.17 1.18.84.84 0 0 0 1.18.18 11.18 11.18 0 1 1 9.36 19.84.84.84 0 0 0 .2 1.66h.2a12.87 12.87 0 0 0-3.12-25.38zm-7.08 21.53a11.19 11.19 0 0 1-2-15.12.848.848 0 1 0-1.37-1 12.86 12.86 0 0 0 2.36 17.4.84.84 0 0 0 .53.19.86.86 0 0 0 .66-.31.85.85 0 0 0-.18-1.16z"/><path fill="#ff6d54" d="M28.49 25.69a.85.85 0 0 0-1.18.19 6.46 6.46 0 1 1-1.43-9 .844.844 0 1 0 1-1.36 8.15 8.15 0 1 0 1.8 11.38.85.85 0 0 0-.19-1.21zm-6.41-7a3.43 3.43 0 1 0 3.43 3.43 3.44 3.44 0 0 0-3.43-3.47zm0 5.17a1.74 1.74 0 1 1 1.74-1.74 1.74 1.74 0 0 1-1.74 1.7z"/><path fill="#ff6d54" d="M68.41 13.037q.687.338.78 1.045.126.706-.343 1.29-.344.46-.906.522-.532.06-1.063-.215-.906-.461-1.906-.738-1-.276-2.125-.276-1.782 0-3.22.584-1.405.552-2.437 1.627-1.031 1.044-1.594 2.488-.53 1.443-.53 3.194 0 1.935.593 3.44.594 1.474 1.625 2.518 1.063 1.014 2.469 1.536 1.437.491 3.094.491 1.062 0 2.062-.246 1.032-.245 1.938-.737.562-.276 1.094-.184.562.061.906.522.531.645.375 1.32-.125.646-.781.983-.782.43-1.72.738-.937.307-1.905.491-.97.184-1.97.184-2.25 0-4.25-.737t-3.562-2.15q-1.563-1.412-2.469-3.47-.875-2.058-.875-4.699 0-2.365.813-4.361.843-2.027 2.343-3.47 1.532-1.475 3.563-2.273 2.031-.83 4.438-.83 1.5 0 2.906.37 1.438.368 2.657 1.043zm12.281 3.839q2.157 0 3.344.922 1.188.89 1.657 2.426.5 1.535.5 3.378v8.139q0 .675-.47 1.136-.437.43-1.093.43-.687 0-1.125-.43-.438-.46-.438-1.136v-8.139q0-1.075-.312-1.965-.281-.891-1.031-1.413-.72-.522-2.032-.522-1.219 0-2.187.522-.938.522-1.47 1.413-.5.89-.5 1.965v8.139q0 .675-.468 1.136-.437.43-1.094.43-.687 0-1.125-.43-.437-.46-.437-1.136V12.147q0-.676.437-1.106.438-.46 1.125-.46.657 0 1.094.46.469.43.469 1.106v8.384l-.563.307q.22-.676.72-1.382.53-.706 1.28-1.29.782-.583 1.72-.921.937-.369 2-.369zM93.473 31.74q0 .676-.437 1.137-.438.43-1.125.43-.657 0-1.125-.43-.438-.46-.438-1.136V18.596q0-.676.438-1.105.468-.461 1.125-.461.687 0 1.125.46.437.43.437 1.106zM91.88 15.004q-.906 0-1.312-.307-.406-.338-.406-1.106V13.1q0-.768.437-1.075.438-.307 1.313-.307.937 0 1.343.338.407.307.407 1.044v.491q0 .799-.438 1.106-.406.307-1.344.307zm4.843 15.785q-.281-.43-.25-.983.032-.584.657-.983.437-.276.906-.215.5.03.937.46.875.953 1.938 1.506 1.094.553 2.625.553.625-.031 1.281-.185.657-.184 1.126-.614.468-.46.468-1.32 0-.768-.5-1.229-.5-.46-1.312-.737-.813-.307-1.75-.553-1-.276-2.032-.614-1-.338-1.812-.86-.813-.553-1.344-1.413-.5-.86-.5-2.119 0-1.443.812-2.488.844-1.044 2.157-1.627 1.344-.584 2.906-.584.906 0 1.906.246 1 .215 1.938.706.938.492 1.625 1.29.313.4.344.952.062.553-.5.983-.375.307-.906.276-.532-.03-.875-.337-.594-.738-1.532-1.137-.937-.43-2.125-.43-.594 0-1.25.185-.625.153-1.063.583-.437.43-.437 1.26 0 .767.5 1.228.531.46 1.375.767.844.308 1.844.553.969.246 1.906.584.969.338 1.72.89.78.523 1.25 1.383.5.829.5 2.119 0 1.505-.907 2.58-.875 1.044-2.25 1.596-1.344.553-2.844.553-1.781 0-3.563-.614-1.75-.645-2.969-2.211zm23.564 2.825q-2.594 0-4.5-1.044-1.907-1.075-2.97-2.918-1.03-1.873-1.03-4.269 0-2.702 1.093-4.606 1.125-1.935 2.907-2.949 1.781-1.044 3.781-1.044 1.531 0 2.907.614 1.375.584 2.437 1.659 1.094 1.044 1.719 2.487.625 1.413.656 3.102-.031.615-.5 1.014-.469.4-1.094.4h-12.156l-.75-2.611h11.75l-.594.552v-.767q-.062-1.075-.718-1.874-.657-.829-1.626-1.259-.968-.46-2.03-.46-.938 0-1.813.306-.844.277-1.532.922-.656.645-1.062 1.72-.375 1.044-.375 2.61 0 1.69.718 2.949.72 1.259 1.938 1.965 1.219.676 2.688.676 1.156 0 1.906-.215.75-.246 1.25-.584.5-.338.875-.645.469-.276.938-.276.562 0 .937.4.375.368.375.89 0 .675-.687 1.228-.844.799-2.344 1.413-1.469.614-3.094.614zm13.907-1.874q0 .676-.469 1.137-.438.43-1.094.43-.656 0-1.125-.43-.437-.46-.437-1.136V12.147q0-.676.468-1.106.47-.46 1.125-.46.688 0 1.094.46.438.43.438 1.106z" aria-label="Chisel"/></svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z" fill="url(#paint0_linear_8002_5831)"/>
|
|
3
|
+
<path d="M10.6163 22.8932V14.9503H8V11.8199H10.6163V9.36025C10.6163 6.56522 12.2907 5 14.6977 5C15.4302 5 16.2674 5.1118 17 5.2236V8.07453H15.6395C14.3837 8.07453 14.0698 8.74534 14.0698 9.63975V11.8199H16.843L16.3721 14.9503H14.0698V22.7587C13.402 22.9168 12.7096 23 12 23C11.5305 23 11.0686 22.9636 10.6163 22.8932Z" fill="white"/>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="paint0_linear_8002_5831" x1="12.0004" y1="22.2178" x2="12.0007" y2="0.995951" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop stop-color="#0062aa"/>
|
|
7
|
+
<stop offset="1" stop-color="#19AFDD"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.99857 2C4.23715 2 2.00007 4.23856 2.00005 6.99997L2 17C1.99998 19.7614 4.23857 22 7.00001 22H17C19.7614 22 22 19.7614 22 17V7C22 4.23858 19.7634 2 17.0019 2C14.0164 2 10.1956 2 6.99857 2Z" fill="url(#paint0_radial_8002_5833)"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 8.26135C9.93889 8.26135 8.27158 9.93376 8.27158 11.9898C8.27158 14.0458 9.944 15.7182 12 15.7182C14.056 15.7182 15.7284 14.0458 15.7284 11.9898C15.7284 9.93376 14.0611 8.26135 12 8.26135ZM12 14.414C10.66 14.414 9.58088 13.3298 9.58088 11.9949C9.58088 10.6549 10.6651 9.57576 12 9.57576C13.3349 9.57576 14.4191 10.66 14.4191 11.9949C14.4242 13.3298 13.34 14.414 12 14.414Z" fill="white"/>
|
|
4
|
+
<path d="M16.7513 8.11815C16.7513 8.59833 16.362 8.9876 15.8819 8.9876C15.4017 8.9876 15.0124 8.59833 15.0124 8.11815C15.0124 7.63796 15.4017 7.24869 15.8819 7.24869C16.362 7.24869 16.7513 7.63796 16.7513 8.11815Z" fill="white"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.72727C10.0258 4.72727 9.78034 4.7375 9.00295 4.7733C8.23066 4.8091 7.70387 4.93185 7.23847 5.11086C6.76282 5.29497 6.35367 5.54558 5.94962 5.94962C5.54558 6.35367 5.29498 6.7577 5.11086 7.23846C4.93185 7.69876 4.80911 8.23066 4.7733 9.00294C4.7375 9.78034 4.72727 10.0258 4.72727 12C4.72727 13.9742 4.7375 14.2197 4.7733 14.9971C4.80911 15.7693 4.93185 16.2961 5.11086 16.7615C5.29498 17.2372 5.54558 17.6463 5.94962 18.0504C6.35367 18.4544 6.7577 18.705 7.23847 18.8891C7.69876 19.0682 8.23066 19.1909 9.00295 19.2267C9.78034 19.2625 10.0258 19.2727 12 19.2727C13.9742 19.2727 14.2197 19.2625 14.9971 19.2267C15.7693 19.1909 16.2961 19.0682 16.7615 18.8891C17.2372 18.705 17.6463 18.4544 18.0504 18.0504C18.4544 17.6463 18.705 17.2423 18.8891 16.7615C19.0681 16.3012 19.1909 15.7693 19.2267 14.9971C19.2625 14.2197 19.2727 13.9742 19.2727 12C19.2727 10.0258 19.2625 9.78034 19.2267 9.00294C19.1909 8.23066 19.0681 7.70387 18.8891 7.23846C18.705 6.76282 18.4544 6.35367 18.0504 5.94962C17.6463 5.54558 17.2423 5.29497 16.7615 5.11086C16.3012 4.93185 15.7693 4.8091 14.9971 4.7733C14.2197 4.7375 13.9742 4.72727 12 4.72727ZM12 6.03657C13.9384 6.03657 14.1685 6.04168 14.9357 6.07749C15.6415 6.10817 16.0302 6.2258 16.2859 6.32809C16.6234 6.46107 16.8689 6.61961 17.1196 6.87022C17.3753 7.12594 17.5287 7.36632 17.6617 7.70387C17.7589 7.95959 17.8816 8.34318 17.9123 9.05408C17.9481 9.82125 17.9532 10.0514 17.9532 11.9898C17.9532 13.9281 17.9481 14.1583 17.9123 14.9255C17.8816 15.6312 17.764 16.0199 17.6617 16.2757C17.5287 16.6132 17.3702 16.8587 17.1196 17.1093C16.8638 17.365 16.6234 17.5185 16.2859 17.6514C16.0302 17.7486 15.6466 17.8714 14.9357 17.9021C14.1685 17.9379 13.9384 17.943 12 17.943C10.0616 17.943 9.83148 17.9379 9.06432 17.9021C8.35852 17.8714 7.96982 17.7537 7.7141 17.6514C7.37655 17.5185 7.13106 17.3599 6.88046 17.1093C6.62473 16.8536 6.4713 16.6132 6.33832 16.2757C6.24115 16.0199 6.1184 15.6364 6.08772 14.9255C6.05191 14.1583 6.0468 13.9281 6.0468 11.9898C6.0468 10.0514 6.05191 9.82125 6.08772 9.05408C6.1184 8.3483 6.23603 7.95959 6.33832 7.70387C6.4713 7.36632 6.62984 7.12083 6.88046 6.87022C7.13618 6.6145 7.37655 6.46107 7.7141 6.32809C7.96982 6.23092 8.3534 6.10817 9.06432 6.07749L9.09401 6.0763C9.83776 6.04654 10.0869 6.03657 12 6.03657Z" fill="white"/>
|
|
6
|
+
<defs>
|
|
7
|
+
<radialGradient id="paint0_radial_8002_5833" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(2.3628 20.1666) rotate(-3.00072) scale(28.9125 24.5805)">
|
|
8
|
+
<stop stop-color="#FED576"/>
|
|
9
|
+
<stop offset="0.2634" stop-color="#F47133"/>
|
|
10
|
+
<stop offset="0.6091" stop-color="#BC3081"/>
|
|
11
|
+
<stop offset="1" stop-color="#4C63D2"/>
|
|
12
|
+
</radialGradient>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.905 10.47 21.35 2h-1.764L13.12 9.353 7.956 2H2l7.809 11.12L2 22h1.764l6.827-7.766L16.044 22H22M4.4 3.302h2.71l12.476 17.46h-2.71"/></svg>
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* @package Chisel
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
use Chisel\
|
|
8
|
+
use Chisel\Helper\CacheHelpers;
|
|
9
9
|
use Timber\Timber;
|
|
10
10
|
|
|
11
|
-
$context
|
|
12
|
-
$context['posts'] = Timber::get_posts();
|
|
11
|
+
$context = Timber::context();
|
|
13
12
|
|
|
14
|
-
Timber::render( array( 'author.twig', 'archive.twig' ), $context,
|
|
13
|
+
Timber::render( array( 'author.twig', 'archive.twig' ), $context, CacheHelpers::expiry() );
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @package Chisel
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
use Chisel\
|
|
12
|
+
use Chisel\Helper\CacheHelpers;
|
|
13
13
|
|
|
14
14
|
$context = $GLOBALS['timberContext'];
|
|
15
15
|
|
|
@@ -21,4 +21,4 @@ $context['content'] = ob_get_contents();
|
|
|
21
21
|
ob_end_clean();
|
|
22
22
|
$templates = array( 'page-plugin.twig' );
|
|
23
23
|
|
|
24
|
-
\Timber\Timber::render( $templates, $context,
|
|
24
|
+
\Timber\Timber::render( $templates, $context, CacheHelpers::expiry() );
|
|
@@ -4,11 +4,9 @@ define( 'CHISEL_NAMESPACE', 'Chisel\\' );
|
|
|
4
4
|
|
|
5
5
|
require_once get_template_directory() . '/vendor/autoload.php';
|
|
6
6
|
|
|
7
|
-
$interfaces = glob( get_template_directory() . '/classes/interfaces/*.php' );
|
|
8
|
-
|
|
9
7
|
spl_autoload_register(
|
|
10
|
-
function ( $class_name )
|
|
11
|
-
$base_directory = get_template_directory() . '/
|
|
8
|
+
function ( $class_name ) {
|
|
9
|
+
$base_directory = get_template_directory() . '/inc/';
|
|
12
10
|
|
|
13
11
|
$namespace_prefix_length = strlen( CHISEL_NAMESPACE );
|
|
14
12
|
|
|
@@ -16,11 +14,6 @@ spl_autoload_register(
|
|
|
16
14
|
return;
|
|
17
15
|
}
|
|
18
16
|
|
|
19
|
-
// Load interfaces.
|
|
20
|
-
foreach ( $interfaces as $interface ) {
|
|
21
|
-
require_once $interface;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
17
|
$relative_class_name = substr( $class_name, $namespace_prefix_length );
|
|
25
18
|
|
|
26
19
|
$class_filename = $base_directory . str_replace( '\\', '/', $relative_class_name ) . '.php';
|
|
@@ -33,18 +26,19 @@ spl_autoload_register(
|
|
|
33
26
|
|
|
34
27
|
Timber\Timber::init();
|
|
35
28
|
|
|
36
|
-
\Chisel\
|
|
37
|
-
\Chisel\
|
|
38
|
-
\Chisel\
|
|
39
|
-
\Chisel\
|
|
40
|
-
\Chisel\Assets::get_instance();
|
|
41
|
-
\Chisel\
|
|
42
|
-
\Chisel\Comments::get_instance();
|
|
43
|
-
\Chisel\
|
|
44
|
-
\Chisel\
|
|
45
|
-
\Chisel\
|
|
46
|
-
\Chisel\
|
|
47
|
-
\Chisel\
|
|
48
|
-
\Chisel\Twig::get_instance();
|
|
49
|
-
\Chisel\
|
|
50
|
-
\Chisel\
|
|
29
|
+
\Chisel\Controllers\AjaxController::get_instance();
|
|
30
|
+
\Chisel\WP\Blocks::get_instance();
|
|
31
|
+
\Chisel\WP\Acf::get_instance();
|
|
32
|
+
\Chisel\WP\AcfBlocks::get_instance();
|
|
33
|
+
\Chisel\WP\Assets::get_instance();
|
|
34
|
+
\Chisel\WP\Cache::get_instance();
|
|
35
|
+
\Chisel\WP\Comments::get_instance();
|
|
36
|
+
\Chisel\WP\Site::get_instance();
|
|
37
|
+
\Chisel\WP\Sidebars::get_instance();
|
|
38
|
+
\Chisel\WP\Theme::get_instance();
|
|
39
|
+
\Chisel\WP\CustomPostTypes::get_instance();
|
|
40
|
+
\Chisel\WP\CustomTaxonomies::get_instance();
|
|
41
|
+
\Chisel\WP\Twig::get_instance();
|
|
42
|
+
\Chisel\Plugin\GravityForms::get_instance();
|
|
43
|
+
\Chisel\Plugin\Woocommerce::get_instance();
|
|
44
|
+
\Chisel\Plugin\Yoast::get_instance();
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
<?php
|
|
2
2
|
|
|
3
|
-
namespace Chisel;
|
|
3
|
+
namespace Chisel\Controllers;
|
|
4
4
|
|
|
5
|
-
use Chisel\AjaxEnpoints;
|
|
5
|
+
use Chisel\WP\AjaxEnpoints;
|
|
6
|
+
use Chisel\Interfaces\InstanceInterface;
|
|
7
|
+
use Chisel\Interfaces\HooksInterface;
|
|
8
|
+
use Chisel\Traits\Singleton;
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* Custom Ajax class based on REST API.
|
|
9
12
|
*
|
|
10
13
|
* @package Chisel
|
|
11
14
|
*/
|
|
12
|
-
class
|
|
15
|
+
class AjaxController extends \WP_REST_Controller implements InstanceInterface, HooksInterface {
|
|
16
|
+
|
|
17
|
+
use Singleton;
|
|
13
18
|
|
|
14
19
|
/**
|
|
15
20
|
* Ajax custom route namespace.
|
|
@@ -30,13 +35,14 @@ class Ajax extends \WP_REST_Controller implements Instance {
|
|
|
30
35
|
*
|
|
31
36
|
* @var array
|
|
32
37
|
*/
|
|
33
|
-
|
|
38
|
+
private $routes = array();
|
|
34
39
|
|
|
35
40
|
/**
|
|
36
41
|
* Class constructor.
|
|
37
42
|
*/
|
|
38
43
|
private function __construct() {
|
|
39
|
-
$this
|
|
44
|
+
add_action( 'after_setup_theme', array( $this, 'set_properties' ), 7 );
|
|
45
|
+
|
|
40
46
|
$this->action_hooks();
|
|
41
47
|
$this->filter_hooks();
|
|
42
48
|
}
|
|
@@ -97,7 +103,7 @@ class Ajax extends \WP_REST_Controller implements Instance {
|
|
|
97
103
|
* @return callable
|
|
98
104
|
*/
|
|
99
105
|
public function callback( $request ) {
|
|
100
|
-
$callback =
|
|
106
|
+
$callback = $this->get_callback_name( $request );
|
|
101
107
|
$ajax_endpoints = new AjaxEnpoints();
|
|
102
108
|
|
|
103
109
|
if ( method_exists( $ajax_endpoints, $callback ) ) {
|
|
@@ -121,29 +127,11 @@ class Ajax extends \WP_REST_Controller implements Instance {
|
|
|
121
127
|
* @return boolean
|
|
122
128
|
*/
|
|
123
129
|
public function permissions_check( $request ) {
|
|
124
|
-
$
|
|
130
|
+
$verify_nonce = wp_verify_nonce( $request->get_header( 'x_wp_nonce' ), 'wp_rest' );
|
|
125
131
|
|
|
126
|
-
|
|
127
|
-
}
|
|
132
|
+
$permission = apply_filters( 'chisel_ajax_permissions_check', (bool) $verify_nonce, $this->get_callback_name( $request ), $request );
|
|
128
133
|
|
|
129
|
-
|
|
130
|
-
* Get custom ajax endpint
|
|
131
|
-
*
|
|
132
|
-
* @return string
|
|
133
|
-
*/
|
|
134
|
-
public static function get_ajax_endpoint_url() {
|
|
135
|
-
return sprintf( '%s/wp-json/%s/%s', esc_url( get_bloginfo( 'url' ) ), self::ROUTE_NAMESPACE, self::ROUTE_BASE );
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Decode json string from ajax request
|
|
140
|
-
*
|
|
141
|
-
* @param string $value
|
|
142
|
-
*
|
|
143
|
-
* @return array
|
|
144
|
-
*/
|
|
145
|
-
public static function ajax_json_decode( $value ) {
|
|
146
|
-
return (array) json_decode( stripslashes( $value ) );
|
|
134
|
+
return $permission;
|
|
147
135
|
}
|
|
148
136
|
|
|
149
137
|
/**
|
|
@@ -153,24 +141,11 @@ class Ajax extends \WP_REST_Controller implements Instance {
|
|
|
153
141
|
*
|
|
154
142
|
* @return string
|
|
155
143
|
*/
|
|
156
|
-
|
|
144
|
+
private function get_callback_name( $request ) {
|
|
157
145
|
$route = $request->get_route();
|
|
158
146
|
$route_parts = explode( '/', $route );
|
|
159
147
|
$callback = str_replace( '-', '_', end( $route_parts ) );
|
|
160
148
|
|
|
161
149
|
return $callback;
|
|
162
150
|
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Get the instance of the class.
|
|
166
|
-
*/
|
|
167
|
-
public static function get_instance() {
|
|
168
|
-
static $instance = null;
|
|
169
|
-
|
|
170
|
-
if ( null === $instance ) {
|
|
171
|
-
$instance = new self();
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
return $instance;
|
|
175
|
-
}
|
|
176
151
|
}
|
package/lib/commands/create/creators/app/chisel-starter-theme/inc/Factory/RegisterAcfOptionsPage.php
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
namespace Chisel\Factory;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Custom post types wrapper class.
|
|
7
|
+
*
|
|
8
|
+
* @package Chisel
|
|
9
|
+
*/
|
|
10
|
+
class RegisterAcfOptionsPage {
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Page arguments.
|
|
14
|
+
*
|
|
15
|
+
* @var array
|
|
16
|
+
*/
|
|
17
|
+
private $args;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Page type - page or subpage.
|
|
21
|
+
*
|
|
22
|
+
* @var array
|
|
23
|
+
*/
|
|
24
|
+
private $type;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Class constructor.
|
|
28
|
+
*
|
|
29
|
+
* @param array $args page arguments.
|
|
30
|
+
* @param string $type page or subpage.
|
|
31
|
+
*/
|
|
32
|
+
public function __construct( $args, $type = 'page' ) {
|
|
33
|
+
$this->args = $args;
|
|
34
|
+
$this->type = $type;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Register ACF options page.
|
|
39
|
+
*/
|
|
40
|
+
public function register() {
|
|
41
|
+
$options_page_args = array(
|
|
42
|
+
'page_title' => $this->args['page_title'],
|
|
43
|
+
'menu_title' => isset( $this->args['menu_title'] ) ? $this->args['menu_title'] : $this->args['page_title'],
|
|
44
|
+
'menu_slug' => $this->args['menu_slug'],
|
|
45
|
+
'capability' => isset( $this->args['capability'] ) ? $this->args['capability'] : 'edit_posts',
|
|
46
|
+
'position' => isset( $this->args['position'] ) ? $this->args['position'] : 45,
|
|
47
|
+
'redirect' => isset( $this->args['redirect'] ) ? $this->args['redirect'] : true,
|
|
48
|
+
'icon_url' => isset( $this->args['icon_url'] ) ? $this->args['icon_url'] : 'dashicons-screenoptions',
|
|
49
|
+
'post_id' => isset( $this->args['post_id'] ) ? $this->args['post_id'] : 'options',
|
|
50
|
+
'autoload' => isset( $this->args['autoload'] ) ? $this->args['autoload'] : false,
|
|
51
|
+
'update_button' => isset( $this->args['update_button'] ) ? $this->args['update_button'] : __( 'Update', 'chisel' ),
|
|
52
|
+
'updated_message' => isset( $this->args['updated_message'] ) ? $this->args['updated_message'] : __( 'Options Updated', 'chisel' ),
|
|
53
|
+
'parent_slug' => isset( $this->args['parent_slug'] ) ? $this->args['parent_slug'] : '',
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
if ( $this->type === 'subpage' ) {
|
|
57
|
+
acf_add_options_sub_page( $options_page_args );
|
|
58
|
+
} else {
|
|
59
|
+
acf_add_options_page( $options_page_args );
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -1,97 +1,100 @@
|
|
|
1
1
|
<?php
|
|
2
2
|
|
|
3
|
-
namespace Chisel;
|
|
3
|
+
namespace Chisel\Factory;
|
|
4
|
+
|
|
5
|
+
use Chisel\WP\Assets;
|
|
6
|
+
use Chisel\Helper\ThemeHelpers;
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* Class to register custom blocks.
|
|
7
10
|
*
|
|
8
11
|
* @package Chisel
|
|
9
12
|
*/
|
|
10
|
-
|
|
13
|
+
class RegisterBlocks {
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* Blocks type.
|
|
14
17
|
*
|
|
15
18
|
* @var string
|
|
16
19
|
*/
|
|
17
|
-
|
|
20
|
+
private $blocks_type;
|
|
18
21
|
|
|
19
22
|
/**
|
|
20
23
|
* Blocks path.
|
|
21
24
|
*
|
|
22
25
|
* @var string
|
|
23
26
|
*/
|
|
24
|
-
|
|
27
|
+
private $blocks_folder;
|
|
25
28
|
|
|
26
29
|
/**
|
|
27
30
|
* Blocks src path.
|
|
28
31
|
*
|
|
29
32
|
* @var string
|
|
30
33
|
*/
|
|
31
|
-
|
|
34
|
+
private $blocks_path_src;
|
|
32
35
|
|
|
33
36
|
/**
|
|
34
37
|
* Blocks path.
|
|
35
38
|
*
|
|
36
39
|
* @var string
|
|
37
40
|
*/
|
|
38
|
-
|
|
41
|
+
private $blocks_path;
|
|
39
42
|
|
|
40
43
|
/**
|
|
41
44
|
* Blocks url.
|
|
42
45
|
*
|
|
43
46
|
* @var string
|
|
44
47
|
*/
|
|
45
|
-
|
|
48
|
+
private $blocks_url;
|
|
46
49
|
|
|
47
50
|
/**
|
|
48
51
|
* Blocks.
|
|
49
52
|
*
|
|
50
53
|
* @var array
|
|
51
54
|
*/
|
|
52
|
-
|
|
55
|
+
private $blocks = array();
|
|
53
56
|
|
|
54
57
|
/**
|
|
55
58
|
* Blocks option name.
|
|
56
59
|
*
|
|
57
60
|
* @var string
|
|
58
61
|
*/
|
|
59
|
-
|
|
62
|
+
private $blocks_option_name;
|
|
60
63
|
|
|
61
64
|
/**
|
|
62
65
|
* Blocks version option name.
|
|
63
66
|
*
|
|
64
67
|
* @var string
|
|
65
68
|
*/
|
|
66
|
-
|
|
69
|
+
private $blocks_version_option_name;
|
|
67
70
|
|
|
68
71
|
/**
|
|
69
72
|
* Theme.
|
|
70
73
|
*
|
|
71
74
|
* @var mixed
|
|
72
75
|
*/
|
|
73
|
-
|
|
76
|
+
private $theme = null;
|
|
74
77
|
|
|
75
78
|
/**
|
|
76
79
|
* Build folder.
|
|
77
80
|
*
|
|
78
81
|
* @var string
|
|
79
82
|
*/
|
|
80
|
-
|
|
83
|
+
private $build_folder = 'build';
|
|
81
84
|
|
|
82
85
|
/**
|
|
83
86
|
* Src folder.
|
|
84
87
|
*
|
|
85
88
|
* @var string
|
|
86
89
|
*/
|
|
87
|
-
|
|
90
|
+
private $src_folder = 'src';
|
|
88
91
|
|
|
89
92
|
/**
|
|
90
93
|
* Register scripts. By default block styles are inlined and js is registered by wp. Setting this to true will use custom hndles to register and enqueue scripts and styles and styles will not be inlined.
|
|
91
94
|
*
|
|
92
95
|
* @var bool
|
|
93
96
|
*/
|
|
94
|
-
|
|
97
|
+
private $register_scripts;
|
|
95
98
|
|
|
96
99
|
/**
|
|
97
100
|
* Class constructor.
|
|
@@ -134,8 +137,9 @@ abstract class RegisterBlocks {
|
|
|
134
137
|
);
|
|
135
138
|
|
|
136
139
|
foreach ( $this->blocks as $block ) {
|
|
137
|
-
$block_path
|
|
138
|
-
$
|
|
140
|
+
$block_path = $this->blocks_path . '/' . $block . '/';
|
|
141
|
+
$block_path_src = $this->blocks_path_src . '/' . $block . '/';
|
|
142
|
+
$block_json = $block_path . 'block.json';
|
|
139
143
|
|
|
140
144
|
if ( ! is_file( $block_json ) ) {
|
|
141
145
|
continue;
|
|
@@ -190,7 +194,7 @@ abstract class RegisterBlocks {
|
|
|
190
194
|
);
|
|
191
195
|
|
|
192
196
|
// Register ignored scripts in dev mode in order to watch changes.
|
|
193
|
-
if (
|
|
197
|
+
if ( ThemeHelpers::is_fast_refresh() || ( ! ThemeHelpers::is_fast_refresh() && ! in_array( $script, $ignore_scripts, true ) ) ) {
|
|
194
198
|
wp_register_script(
|
|
195
199
|
$block_handle,
|
|
196
200
|
$file_url,
|
|
@@ -212,8 +216,8 @@ abstract class RegisterBlocks {
|
|
|
212
216
|
}
|
|
213
217
|
|
|
214
218
|
// In case we need to do some custom logic. All variables from this method are available in the init file.
|
|
215
|
-
if ( file_exists( $
|
|
216
|
-
include_once $
|
|
219
|
+
if ( file_exists( $block_path_src . 'init.php' ) ) {
|
|
220
|
+
include_once $block_path_src . 'init.php';
|
|
217
221
|
}
|
|
218
222
|
}
|
|
219
223
|
}
|
|
@@ -223,7 +227,7 @@ abstract class RegisterBlocks {
|
|
|
223
227
|
*
|
|
224
228
|
* @return array
|
|
225
229
|
*/
|
|
226
|
-
|
|
230
|
+
public function get_blocks() {
|
|
227
231
|
$blocks = get_option( $this->blocks_option_name, array() ) ?: array();
|
|
228
232
|
$blocks_version = get_option( $this->blocks_version_option_name, 0 );
|
|
229
233
|
|
|
@@ -240,7 +244,7 @@ abstract class RegisterBlocks {
|
|
|
240
244
|
}
|
|
241
245
|
}
|
|
242
246
|
|
|
243
|
-
if ( !
|
|
247
|
+
if ( ! ThemeHelpers::is_fast_refresh() ) {
|
|
244
248
|
update_option( $this->blocks_option_name, $blocks );
|
|
245
249
|
update_option( $this->blocks_version_option_name, $this->theme->get( 'Version' ) );
|
|
246
250
|
}
|
|
@@ -249,6 +253,33 @@ abstract class RegisterBlocks {
|
|
|
249
253
|
return $blocks;
|
|
250
254
|
}
|
|
251
255
|
|
|
256
|
+
/**
|
|
257
|
+
* Get the blocks url.
|
|
258
|
+
*
|
|
259
|
+
* @return string
|
|
260
|
+
*/
|
|
261
|
+
public function get_blocks_url() {
|
|
262
|
+
return $this->blocks_url;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Get the blocks path.
|
|
267
|
+
*
|
|
268
|
+
* @return string
|
|
269
|
+
*/
|
|
270
|
+
public function get_blocks_path() {
|
|
271
|
+
return $this->blocks_path;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Get the blocks path src.
|
|
276
|
+
*
|
|
277
|
+
* @return string
|
|
278
|
+
*/
|
|
279
|
+
public function get_blocks_path_src() {
|
|
280
|
+
return $this->blocks_path_src;
|
|
281
|
+
}
|
|
282
|
+
|
|
252
283
|
/**
|
|
253
284
|
* Get script asset.
|
|
254
285
|
*
|
|
@@ -257,7 +288,7 @@ abstract class RegisterBlocks {
|
|
|
257
288
|
*
|
|
258
289
|
* @return array
|
|
259
290
|
*/
|
|
260
|
-
|
|
291
|
+
private function get_block_script_asset( $block, $file_name ) {
|
|
261
292
|
$block_path = $this->blocks_path . '/' . $block . '/';
|
|
262
293
|
$assets_file_name = preg_replace( '/\.[^.]+$/', '', $file_name ) . '.asset.php';
|
|
263
294
|
$script_asset_path = $block_path . $assets_file_name;
|