diff --git a/public/css/app.css b/public/css/app.css new file mode 100644 index 0000000..9a219d4 --- /dev/null +++ b/public/css/app.css @@ -0,0 +1 @@ +@charset "UTF-8";#app ol.is-style-arrow-r,#app ol.is-style-caret-r,#app ol.is-style-check,#app ol.is-style-chevron-r,#app ol.is-style-times,#app ul.is-style-arrow-r,#app ul.is-style-caret-r,#app ul.is-style-check,#app ul.is-style-chevron-r,#app ul.is-style-times{position:relative!important;list-style-type:none!important;padding-left:0!important;margin-left:auto!important}#app ol.is-style-arrow-r ul,#app ol.is-style-caret-r ul,#app ol.is-style-check ul,#app ol.is-style-chevron-r ul,#app ol.is-style-times ul,#app ul.is-style-arrow-r ul,#app ul.is-style-caret-r ul,#app ul.is-style-check ul,#app ul.is-style-chevron-r ul,#app ul.is-style-times ul{list-style-type:none!important}#app ol.is-style-arrow-r li,#app ol.is-style-caret-r li,#app ol.is-style-check li,#app ol.is-style-chevron-r li,#app ol.is-style-times li,#app ul.is-style-arrow-r li,#app ul.is-style-caret-r li,#app ul.is-style-check li,#app ul.is-style-chevron-r li,#app ul.is-style-times li{padding-left:1.5rem;position:relative}#app ol.is-style-arrow-r li:before,#app ol.is-style-caret-r li:before,#app ol.is-style-check li:before,#app ol.is-style-chevron-r li:before,#app ol.is-style-times li:before,#app ul.is-style-arrow-r li:before,#app ul.is-style-caret-r li:before,#app ul.is-style-check li:before,#app ul.is-style-chevron-r li:before,#app ul.is-style-times li:before{position:absolute;left:0;font-family:Font Awesome\ 5 Pro,Font Awesome\ 5 Free;fill:currentColor;font-weight:900;color:var(--wp--preset--color--brand-500)}#app ol.is-style-numeric,#app ul.is-style-numeric{position:relative!important;list-style-type:none!important;padding-left:0!important;margin-left:auto!important;counter-reset:li}#app ol.is-style-numeric li,#app ul.is-style-numeric li{padding-left:1.5rem;position:relative;counter-increment:li}#app ol.is-style-numeric li:before,#app ul.is-style-numeric li:before{left:0;font-weight:700;position:absolute;color:var(--wp--preset--color--brand-500);content:counter(li) "."}#app ol.is-style-numeric li ol,#app ul.is-style-numeric li ol{padding-left:0}#app ol.is-style-numeric li ol li:before,#app ul.is-style-numeric li ol li:before{display:none}#app ol.is-style-caret-r li:before,#app ul.is-style-caret-r li:before{content:"\F0DA"}#app ol.is-style-chevron-r li:before,#app ul.is-style-chevron-r li:before{content:"\F054"}#app ol.is-style-arrow-r li:before,#app ul.is-style-arrow-r li:before{content:"\F356"}#app ol.is-style-check li:before,#app ul.is-style-check li:before{--text-opacity:1;color:#68d391;color:rgba(104,211,145,var(--text-opacity));content:"\F00C"}#app ol.is-style-times li:before,#app ul.is-style-times li:before{--text-opacity:1;color:#f56565;color:rgba(245,101,101,var(--text-opacity));content:"\F00D"}#app .alignnone{display:block;margin-left:0;margin-right:0;max-width:100%;height:auto}#app .aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}#app .alignleft,#app .alignleft .wp-caption{float:left;margin-right:1.5rem}#app .alignright,#app .alignright .wp-caption{float:right;margin-left:1.5rem;text-align:right}#app .wp-caption{max-width:100%;text-align:center}#app .wp-caption-text{font-size:1rem;margin-left:1.5rem;margin-right:1.5rem;margin-top:.75rem} \ No newline at end of file diff --git a/public/css/blocks.css b/public/css/blocks.css deleted file mode 100644 index 10d09b4..0000000 --- a/public/css/blocks.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";#app ol.is-style-arrow-r,#app ol.is-style-caret-r,#app ol.is-style-check,#app ol.is-style-chevron-r,#app ol.is-style-times,#app ul.is-style-arrow-r,#app ul.is-style-caret-r,#app ul.is-style-check,#app ul.is-style-chevron-r,#app ul.is-style-times,.editor-styles-wrapper ol.is-style-arrow-r,.editor-styles-wrapper ol.is-style-caret-r,.editor-styles-wrapper ol.is-style-check,.editor-styles-wrapper ol.is-style-chevron-r,.editor-styles-wrapper ol.is-style-times,.editor-styles-wrapper ul.is-style-arrow-r,.editor-styles-wrapper ul.is-style-caret-r,.editor-styles-wrapper ul.is-style-check,.editor-styles-wrapper ul.is-style-chevron-r,.editor-styles-wrapper ul.is-style-times{position:relative!important;list-style-type:none!important;padding-left:0!important;margin-left:auto!important}#app ol.is-style-arrow-r ul,#app ol.is-style-caret-r ul,#app ol.is-style-check ul,#app ol.is-style-chevron-r ul,#app ol.is-style-times ul,#app ul.is-style-arrow-r ul,#app ul.is-style-caret-r ul,#app ul.is-style-check ul,#app ul.is-style-chevron-r ul,#app ul.is-style-times ul,.editor-styles-wrapper ol.is-style-arrow-r ul,.editor-styles-wrapper ol.is-style-caret-r ul,.editor-styles-wrapper ol.is-style-check ul,.editor-styles-wrapper ol.is-style-chevron-r ul,.editor-styles-wrapper ol.is-style-times ul,.editor-styles-wrapper ul.is-style-arrow-r ul,.editor-styles-wrapper ul.is-style-caret-r ul,.editor-styles-wrapper ul.is-style-check ul,.editor-styles-wrapper ul.is-style-chevron-r ul,.editor-styles-wrapper ul.is-style-times ul{list-style-type:none!important}#app ol.is-style-arrow-r li,#app ol.is-style-caret-r li,#app ol.is-style-check li,#app ol.is-style-chevron-r li,#app ol.is-style-times li,#app ul.is-style-arrow-r li,#app ul.is-style-caret-r li,#app ul.is-style-check li,#app ul.is-style-chevron-r li,#app ul.is-style-times li,.editor-styles-wrapper ol.is-style-arrow-r li,.editor-styles-wrapper ol.is-style-caret-r li,.editor-styles-wrapper ol.is-style-check li,.editor-styles-wrapper ol.is-style-chevron-r li,.editor-styles-wrapper ol.is-style-times li,.editor-styles-wrapper ul.is-style-arrow-r li,.editor-styles-wrapper ul.is-style-caret-r li,.editor-styles-wrapper ul.is-style-check li,.editor-styles-wrapper ul.is-style-chevron-r li,.editor-styles-wrapper ul.is-style-times li{padding-left:1.5rem;position:relative}#app ol.is-style-arrow-r li:before,#app ol.is-style-caret-r li:before,#app ol.is-style-check li:before,#app ol.is-style-chevron-r li:before,#app ol.is-style-times li:before,#app ul.is-style-arrow-r li:before,#app ul.is-style-caret-r li:before,#app ul.is-style-check li:before,#app ul.is-style-chevron-r li:before,#app ul.is-style-times li:before,.editor-styles-wrapper ol.is-style-arrow-r li:before,.editor-styles-wrapper ol.is-style-caret-r li:before,.editor-styles-wrapper ol.is-style-check li:before,.editor-styles-wrapper ol.is-style-chevron-r li:before,.editor-styles-wrapper ol.is-style-times li:before,.editor-styles-wrapper ul.is-style-arrow-r li:before,.editor-styles-wrapper ul.is-style-caret-r li:before,.editor-styles-wrapper ul.is-style-check li:before,.editor-styles-wrapper ul.is-style-chevron-r li:before,.editor-styles-wrapper ul.is-style-times li:before{position:absolute;left:0;font-family:Font Awesome\ 5 Pro,Font Awesome\ 5 Free;fill:currentColor;font-weight:900;color:var(--wp--preset--color--brand-500)}#app ol.is-style-numeric,#app ul.is-style-numeric,.editor-styles-wrapper ol.is-style-numeric,.editor-styles-wrapper ul.is-style-numeric{position:relative!important;list-style-type:none!important;padding-left:0!important;margin-left:auto!important;counter-reset:li}#app ol.is-style-numeric li,#app ul.is-style-numeric li,.editor-styles-wrapper ol.is-style-numeric li,.editor-styles-wrapper ul.is-style-numeric li{padding-left:1.5rem;position:relative;counter-increment:li}#app ol.is-style-numeric li:before,#app ul.is-style-numeric li:before,.editor-styles-wrapper ol.is-style-numeric li:before,.editor-styles-wrapper ul.is-style-numeric li:before{left:0;font-weight:700;position:absolute;color:var(--wp--preset--color--brand-500);content:counter(li) "."}#app ol.is-style-numeric li ol,#app ul.is-style-numeric li ol,.editor-styles-wrapper ol.is-style-numeric li ol,.editor-styles-wrapper ul.is-style-numeric li ol{padding-left:0}#app ol.is-style-numeric li ol li:before,#app ul.is-style-numeric li ol li:before,.editor-styles-wrapper ol.is-style-numeric li ol li:before,.editor-styles-wrapper ul.is-style-numeric li ol li:before{display:none}#app ol.is-style-caret-r li:before,#app ul.is-style-caret-r li:before,.editor-styles-wrapper ol.is-style-caret-r li:before,.editor-styles-wrapper ul.is-style-caret-r li:before{content:"\F0DA"}#app ol.is-style-chevron-r li:before,#app ul.is-style-chevron-r li:before,.editor-styles-wrapper ol.is-style-chevron-r li:before,.editor-styles-wrapper ul.is-style-chevron-r li:before{content:"\F054"}#app ol.is-style-arrow-r li:before,#app ul.is-style-arrow-r li:before,.editor-styles-wrapper ol.is-style-arrow-r li:before,.editor-styles-wrapper ul.is-style-arrow-r li:before{content:"\F356"}#app ol.is-style-check li:before,#app ul.is-style-check li:before,.editor-styles-wrapper ol.is-style-check li:before,.editor-styles-wrapper ul.is-style-check li:before{--text-opacity:1;color:#68d391;color:rgba(104,211,145,var(--text-opacity));content:"\F00C"}#app ol.is-style-times li:before,#app ul.is-style-times li:before,.editor-styles-wrapper ol.is-style-times li:before,.editor-styles-wrapper ul.is-style-times li:before{--text-opacity:1;color:#f56565;color:rgba(245,101,101,var(--text-opacity));content:"\F00D"}#app .alignnone,.editor-styles-wrapper .alignnone{display:block;margin-left:0;margin-right:0;max-width:100%;height:auto}#app .aligncenter,.editor-styles-wrapper .aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}#app .alignleft,#app .alignleft .wp-caption,.editor-styles-wrapper .alignleft,.editor-styles-wrapper .alignleft .wp-caption{float:left;margin-right:1.5rem}#app .alignright,#app .alignright .wp-caption,.editor-styles-wrapper .alignright,.editor-styles-wrapper .alignright .wp-caption{float:right;margin-left:1.5rem;text-align:right}#app .wp-caption,.editor-styles-wrapper .wp-caption{max-width:100%;text-align:center}#app .wp-caption-text,.editor-styles-wrapper .wp-caption-text{font-size:1rem;margin-left:1.5rem;margin-right:1.5rem;margin-top:.75rem} \ No newline at end of file diff --git a/public/css/editor.css b/public/css/editor.css index 5a103c3..2118fd6 100644 --- a/public/css/editor.css +++ b/public/css/editor.css @@ -1 +1 @@ -.editor-styles-wrapper .wp-block[data-type="core/heading"]{position:relative}.editor-styles-wrapper .wp-block[data-type="core/heading"]:not(.is-selected):before{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;position:absolute;margin-top:.75rem;margin-left:-2rem;font-weight:500;font-size:.75rem;opacity:.5;letter-spacing:-.025em;text-transform:uppercase;content:""}.editor-styles-wrapper h1.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h1"}.editor-styles-wrapper h2.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h2"}.editor-styles-wrapper h3.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h3"}.editor-styles-wrapper h4.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h4"}.editor-styles-wrapper h5.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h5"}.editor-styles-wrapper h6.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h6"}table.wpil-outbound-links{position:relative!important} \ No newline at end of file +@charset "UTF-8";.editor-styles-wrapper ol.is-style-arrow-r,.editor-styles-wrapper ol.is-style-caret-r,.editor-styles-wrapper ol.is-style-check,.editor-styles-wrapper ol.is-style-chevron-r,.editor-styles-wrapper ol.is-style-times,.editor-styles-wrapper ul.is-style-arrow-r,.editor-styles-wrapper ul.is-style-caret-r,.editor-styles-wrapper ul.is-style-check,.editor-styles-wrapper ul.is-style-chevron-r,.editor-styles-wrapper ul.is-style-times{position:relative!important;list-style-type:none!important;padding-left:0!important;margin-left:auto!important}.editor-styles-wrapper ol.is-style-arrow-r ul,.editor-styles-wrapper ol.is-style-caret-r ul,.editor-styles-wrapper ol.is-style-check ul,.editor-styles-wrapper ol.is-style-chevron-r ul,.editor-styles-wrapper ol.is-style-times ul,.editor-styles-wrapper ul.is-style-arrow-r ul,.editor-styles-wrapper ul.is-style-caret-r ul,.editor-styles-wrapper ul.is-style-check ul,.editor-styles-wrapper ul.is-style-chevron-r ul,.editor-styles-wrapper ul.is-style-times ul{list-style-type:none!important}.editor-styles-wrapper ol.is-style-arrow-r li,.editor-styles-wrapper ol.is-style-caret-r li,.editor-styles-wrapper ol.is-style-check li,.editor-styles-wrapper ol.is-style-chevron-r li,.editor-styles-wrapper ol.is-style-times li,.editor-styles-wrapper ul.is-style-arrow-r li,.editor-styles-wrapper ul.is-style-caret-r li,.editor-styles-wrapper ul.is-style-check li,.editor-styles-wrapper ul.is-style-chevron-r li,.editor-styles-wrapper ul.is-style-times li{padding-left:1.5rem;position:relative}.editor-styles-wrapper ol.is-style-arrow-r li:before,.editor-styles-wrapper ol.is-style-caret-r li:before,.editor-styles-wrapper ol.is-style-check li:before,.editor-styles-wrapper ol.is-style-chevron-r li:before,.editor-styles-wrapper ol.is-style-times li:before,.editor-styles-wrapper ul.is-style-arrow-r li:before,.editor-styles-wrapper ul.is-style-caret-r li:before,.editor-styles-wrapper ul.is-style-check li:before,.editor-styles-wrapper ul.is-style-chevron-r li:before,.editor-styles-wrapper ul.is-style-times li:before{position:absolute;left:0;font-family:Font Awesome\ 5 Pro,Font Awesome\ 5 Free;fill:currentColor;font-weight:900;color:var(--wp--preset--color--brand-500)}.editor-styles-wrapper ol.is-style-numeric,.editor-styles-wrapper ul.is-style-numeric{position:relative!important;list-style-type:none!important;padding-left:0!important;margin-left:auto!important;counter-reset:li}.editor-styles-wrapper ol.is-style-numeric li,.editor-styles-wrapper ul.is-style-numeric li{padding-left:1.5rem;position:relative;counter-increment:li}.editor-styles-wrapper ol.is-style-numeric li:before,.editor-styles-wrapper ul.is-style-numeric li:before{left:0;font-weight:700;position:absolute;color:var(--wp--preset--color--brand-500);content:counter(li) "."}.editor-styles-wrapper ol.is-style-numeric li ol,.editor-styles-wrapper ul.is-style-numeric li ol{padding-left:0}.editor-styles-wrapper ol.is-style-numeric li ol li:before,.editor-styles-wrapper ul.is-style-numeric li ol li:before{display:none}.editor-styles-wrapper ol.is-style-caret-r li:before,.editor-styles-wrapper ul.is-style-caret-r li:before{content:"\F0DA"}.editor-styles-wrapper ol.is-style-chevron-r li:before,.editor-styles-wrapper ul.is-style-chevron-r li:before{content:"\F054"}.editor-styles-wrapper ol.is-style-arrow-r li:before,.editor-styles-wrapper ul.is-style-arrow-r li:before{content:"\F356"}.editor-styles-wrapper ol.is-style-check li:before,.editor-styles-wrapper ul.is-style-check li:before{--text-opacity:1;color:#68d391;color:rgba(104,211,145,var(--text-opacity));content:"\F00C"}.editor-styles-wrapper ol.is-style-times li:before,.editor-styles-wrapper ul.is-style-times li:before{--text-opacity:1;color:#f56565;color:rgba(245,101,101,var(--text-opacity));content:"\F00D"}.editor-styles-wrapper .alignnone{display:block;margin-left:0;margin-right:0;max-width:100%;height:auto}.editor-styles-wrapper .aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.editor-styles-wrapper .alignleft,.editor-styles-wrapper .alignleft .wp-caption{float:left;margin-right:1.5rem}.editor-styles-wrapper .alignright,.editor-styles-wrapper .alignright .wp-caption{float:right;margin-left:1.5rem;text-align:right}.editor-styles-wrapper .wp-caption{max-width:100%;text-align:center}.editor-styles-wrapper .wp-caption-text{font-size:1rem;margin-left:1.5rem;margin-right:1.5rem;margin-top:.75rem}.editor-styles-wrapper .wp-block[data-type="core/heading"]{position:relative}.editor-styles-wrapper .wp-block[data-type="core/heading"]:not(.is-selected):before{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;position:absolute;margin-top:.75rem;margin-left:-2rem;font-weight:500;font-size:.75rem;opacity:.5;letter-spacing:-.025em;text-transform:uppercase;content:""}.editor-styles-wrapper h1.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h1"}.editor-styles-wrapper h2.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h2"}.editor-styles-wrapper h3.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h3"}.editor-styles-wrapper h4.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h4"}.editor-styles-wrapper h5.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h5"}.editor-styles-wrapper h6.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h6"} \ No newline at end of file diff --git a/public/js/app.asset.php b/public/js/app.asset.php new file mode 100644 index 0000000..5b73a73 --- /dev/null +++ b/public/js/app.asset.php @@ -0,0 +1 @@ + array(), 'version' => '2035d4f4e7c631911b212b561e817dcd'); \ No newline at end of file diff --git a/public/js/app.js b/public/js/app.js new file mode 100644 index 0000000..f2c669e --- /dev/null +++ b/public/js/app.js @@ -0,0 +1 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=5)}({10:function(e,t){},15:function(e,t){},5:function(e,t,n){n(6),n(10),e.exports=n(15)},6:function(e,t){}}); \ No newline at end of file diff --git a/public/js/blocks.asset.php b/public/js/blocks.asset.php deleted file mode 100644 index 302a801..0000000 --- a/public/js/blocks.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('wp-blocks', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => '53517d3c9d390e10087de9cd779faab1'); \ No newline at end of file diff --git a/public/js/blocks.js b/public/js/blocks.js deleted file mode 100644 index 4c3c692..0000000 --- a/public/js/blocks.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=5)}([function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,o){o(9),o(10),e.exports=o(15)},function(e,t){!function(){e.exports=this.wp.editPost}()},,,function(e,t,o){"use strict";o.r(t);var r=o(3),n=o.n(r),c=o(0),i=o(1),s=["bcn/breadcrumb-trail","core/archive","core/audio","core/avatar","core/calendar","core/categories","core/comments","core/comment-template","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link","core/comments-pagination-next","core/comments-pagination-numbers","core/comments-pagination-previous","core/comments-pagination","core/comments-query-loop","core/comments-title","core/embed","core/file","core/gallery","core/home-link","core/latest-comments","core/latest-posts","core/legacy-widget","core/loginout","core/more","core/navigation","core/nextpage","core/page-list","core/post-author-biography","core/post-author","core/post-comments-form","core/post-comments","core/post-content","core/post-date","core/post-excerpt","core/post-featured-image","core/post-navigation-link","core/post-template","core/post-terms","core/post-title","core/query-no-results","core/query-pagination-next","core/query-pagination-numbers","core/query-pagination-previous","core/query-pagination","core/query-title","core/query","core/read-more","core/rss","core/search","core/site-logo","core/site-tagline","core/site-title","core/social-link","core/tag-cloud","core/template-part","core/term-description","core/verse","core/widget-area","editorskit/","html-forms/","monsterinsights/","mv/","page-generator-pro/","rank-math/howto-block","rank-math/rich-snippet","yoast-seo/breadcrumbs","yoast-seo/estimated-reading-time","yoast-seo/related-links","yoast-seo/siblings","yoast-seo/subpages","yoast-seo/table-of-contents"];n()((function(){Object(i.getBlockTypes)().forEach((function(e){return s.some((function(t){return e.name.includes(t)}))&&Object(i.unregisterBlockType)(e.name)}))}));var a=o(4),l=o(2);Object(a.registerPlugin)("disable-welcome-guide",{render:function(){return Object(l.select)("core/edit-post").isFeatureActive("welcomeGuide")&&Object(l.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),null}}),Object(a.registerPlugin)("disable-fullscreen",{render:function(){return Object(l.select)("core/edit-post").isFeatureActive("fullscreenMode")&&Object(l.dispatch)("core/edit-post").toggleFeature("fullscreenMode"),null}}),o(6);n()((function(){[{block:"core/button",styles:["outline","fill"]},{block:"core/image",styles:["circle-mask"]},{block:"core/pullquote",styles:["solid-color"]},{block:"core/table",styles:["stripes"]},{block:"core/quote",styles:["large"]}].forEach((function(e){var t=e.block;return e.styles.forEach((function(e){return Object(i.unregisterBlockStyle)(t,e)}))})),function(e){e.forEach((function(e){var t=e.block;return e.styles.forEach((function(e){return Object(i.registerBlockStyle)(t,e)}))}))}([{block:"core/button",styles:[{name:"fill",label:Object(c.__)("Solid","gutentweaks")},{name:"outline",label:Object(c.__)("Outline","gutentweaks")}]},{block:"core/list",styles:[{name:"check",label:Object(c.__)("Check","gutentweaks")},{name:"times",label:Object(c.__)("Times","gutentweaks")},{name:"chevron-r",label:Object(c.__)("Chevron (Right)","gutentweaks")},{name:"caret-r",label:Object(c.__)("Caret (Right)","gutentweaks")},{name:"arrow-r",label:Object(c.__)("Arrow (Right)","gutentweaks")},{name:"numeric",label:Object(c.__)("Numeric","gutentweaks")}]}])}))},function(e,t){},,,,,function(e,t){}]); \ No newline at end of file diff --git a/public/js/editor.asset.php b/public/js/editor.asset.php index c30f76f..868d50f 100644 --- a/public/js/editor.asset.php +++ b/public/js/editor.asset.php @@ -1 +1 @@ - array(), 'version' => '07bbd8adab72390e65fc1d151a71c3c8'); \ No newline at end of file + array('wp-blocks', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => 'b852352fb43554a8a73a9ba85e776947'); \ No newline at end of file diff --git a/public/js/editor.js b/public/js/editor.js index 78374b5..3e50ff8 100644 --- a/public/js/editor.js +++ b/public/js/editor.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=7)}({7:function(e,t,n){e.exports=n(8)},8:function(e,t){}}); \ No newline at end of file +!function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=7)}([function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.plugins}()},,,function(e,t,o){e.exports=o(9)},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t,o){"use strict";o.r(t);var r=o(3),n=o.n(r),c=o(0),i=o(1),s=["bcn/breadcrumb-trail","core/archive","core/audio","core/avatar","core/calendar","core/categories","core/comments","core/comment-template","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link","core/comments-pagination-next","core/comments-pagination-numbers","core/comments-pagination-previous","core/comments-pagination","core/comments-query-loop","core/comments-title","core/embed","core/file","core/gallery","core/home-link","core/latest-comments","core/latest-posts","core/legacy-widget","core/loginout","core/more","core/navigation","core/nextpage","core/page-list","core/post-author-biography","core/post-author","core/post-comments-form","core/post-comments","core/post-content","core/post-date","core/post-excerpt","core/post-featured-image","core/post-navigation-link","core/post-template","core/post-terms","core/post-title","core/query-no-results","core/query-pagination-next","core/query-pagination-numbers","core/query-pagination-previous","core/query-pagination","core/query-title","core/query","core/read-more","core/rss","core/search","core/site-logo","core/site-tagline","core/site-title","core/social-link","core/tag-cloud","core/template-part","core/term-description","core/verse","core/widget-area","editorskit/","html-forms/","monsterinsights/","mv/","page-generator-pro/","rank-math/howto-block","rank-math/rich-snippet","yoast-seo/breadcrumbs","yoast-seo/estimated-reading-time","yoast-seo/related-links","yoast-seo/siblings","yoast-seo/subpages","yoast-seo/table-of-contents"];n()((function(){Object(i.getBlockTypes)().forEach((function(e){return s.some((function(t){return e.name.includes(t)}))&&Object(i.unregisterBlockType)(e.name)}))}));var a=o(4),l=o(2);Object(a.registerPlugin)("disable-welcome-guide",{render:function(){return Object(l.select)("core/edit-post").isFeatureActive("welcomeGuide")&&Object(l.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),null}}),Object(a.registerPlugin)("disable-fullscreen",{render:function(){return Object(l.select)("core/edit-post").isFeatureActive("fullscreenMode")&&Object(l.dispatch)("core/edit-post").toggleFeature("fullscreenMode"),null}}),o(8);n()((function(){[{block:"core/button",styles:["outline","fill"]},{block:"core/image",styles:["circle-mask"]},{block:"core/pullquote",styles:["solid-color"]},{block:"core/table",styles:["stripes"]},{block:"core/quote",styles:["large"]}].forEach((function(e){var t=e.block;return e.styles.forEach((function(e){return Object(i.unregisterBlockStyle)(t,e)}))})),function(e){e.forEach((function(e){var t=e.block;return e.styles.forEach((function(e){return Object(i.registerBlockStyle)(t,e)}))}))}([{block:"core/button",styles:[{name:"fill",label:Object(c.__)("Solid","gutentweaks")},{name:"outline",label:Object(c.__)("Outline","gutentweaks")}]},{block:"core/list",styles:[{name:"check",label:Object(c.__)("Check","gutentweaks")},{name:"times",label:Object(c.__)("Times","gutentweaks")},{name:"chevron-r",label:Object(c.__)("Chevron (Right)","gutentweaks")},{name:"caret-r",label:Object(c.__)("Caret (Right)","gutentweaks")},{name:"arrow-r",label:Object(c.__)("Arrow (Right)","gutentweaks")},{name:"numeric",label:Object(c.__)("Numeric","gutentweaks")}]}])}))}]); \ No newline at end of file diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 25bbc63..4fd4eb2 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,6 +1,6 @@ { - "/js/blocks.js": "/js/blocks.js", - "/css/blocks.css": "/css/blocks.css", + "/js/app.js": "/js/app.js", + "/css/app.css": "/css/app.css", "/css/editor.css": "/css/editor.css", "/js/editor.js": "/js/editor.js" } diff --git a/resources/css/blocks.scss b/resources/css/app.scss similarity index 69% rename from resources/css/blocks.scss rename to resources/css/app.scss index 1bc20df..4452c4f 100644 --- a/resources/css/blocks.scss +++ b/resources/css/app.scss @@ -1,5 +1,4 @@ -#app, -.editor-styles-wrapper { +#app { @import './blocks/core-list'; @import './blocks/core-classic'; } diff --git a/resources/css/editor.scss b/resources/css/editor.scss index 1c08a27..cfd4138 100644 --- a/resources/css/editor.scss +++ b/resources/css/editor.scss @@ -1,7 +1,5 @@ .editor-styles-wrapper { + @import './blocks/core-list'; + @import './blocks/core-classic'; @import './blocks/core-heading'; } - -table.wpil-outbound-links { - @apply relative #{!important}; -} diff --git a/resources/js/app.js b/resources/js/app.js new file mode 100644 index 0000000..e69de29 diff --git a/resources/js/blocks.js b/resources/js/blocks.js deleted file mode 100644 index e201a1e..0000000 --- a/resources/js/blocks.js +++ /dev/null @@ -1,91 +0,0 @@ -import domReady from '@wordpress/dom-ready' -import { __ } from '@wordpress/i18n' - -import './extensions/disable-block-types' -import './extensions/disable-welcome-guide' -import './extensions/disable-fullscreen' - -import { - registerBlockStyles, - unregisterBlockStyles, -} from './hooks/block-styles' - -/** - * Document Ready - * @see https://www.npmjs.com/package/@wordpress/dom-ready - */ -domReady(() => { - /** - * Unregister existing block styles. - */ - unregisterBlockStyles([ - { - block: 'core/button', - styles: ['outline', 'fill'], - }, - { - block: 'core/image', - styles: ['circle-mask'], - }, - { - block: 'core/pullquote', - styles: ['solid-color'], - }, - { - block: 'core/table', - styles: ['stripes'], - }, - { - block: 'core/quote', - styles: ['large'], - }, - ]) - - /** - * Register new block styles. - */ - registerBlockStyles([ - { - block: 'core/button', - styles: [ - { - name: 'fill', - label: __('Solid', 'gutentweaks'), - }, - { - name: 'outline', - label: __('Outline', 'gutentweaks'), - }, - ], - }, - { - block: 'core/list', - styles: [ - { - name: 'check', - label: __('Check', 'gutentweaks'), - }, - { - name: 'times', - label: __('Times', 'gutentweaks'), - }, - { - name: 'chevron-r', - label: __('Chevron (Right)', 'gutentweaks'), - }, - { - name: 'caret-r', - label: __('Caret (Right)', 'gutentweaks'), - }, - { - name: 'arrow-r', - label: __('Arrow (Right)', 'gutentweaks'), - }, - { - name: 'numeric', - label: __('Numeric', 'gutentweaks'), - }, - ], - }, - ]) -}) diff --git a/resources/js/editor.js b/resources/js/editor.js index e69de29..e201a1e 100644 --- a/resources/js/editor.js +++ b/resources/js/editor.js @@ -0,0 +1,91 @@ +import domReady from '@wordpress/dom-ready' +import { __ } from '@wordpress/i18n' + +import './extensions/disable-block-types' +import './extensions/disable-welcome-guide' +import './extensions/disable-fullscreen' + +import { + registerBlockStyles, + unregisterBlockStyles, +} from './hooks/block-styles' + +/** + * Document Ready + * @see https://www.npmjs.com/package/@wordpress/dom-ready + */ +domReady(() => { + /** + * Unregister existing block styles. + */ + unregisterBlockStyles([ + { + block: 'core/button', + styles: ['outline', 'fill'], + }, + { + block: 'core/image', + styles: ['circle-mask'], + }, + { + block: 'core/pullquote', + styles: ['solid-color'], + }, + { + block: 'core/table', + styles: ['stripes'], + }, + { + block: 'core/quote', + styles: ['large'], + }, + ]) + + /** + * Register new block styles. + */ + registerBlockStyles([ + { + block: 'core/button', + styles: [ + { + name: 'fill', + label: __('Solid', 'gutentweaks'), + }, + { + name: 'outline', + label: __('Outline', 'gutentweaks'), + }, + ], + }, + { + block: 'core/list', + styles: [ + { + name: 'check', + label: __('Check', 'gutentweaks'), + }, + { + name: 'times', + label: __('Times', 'gutentweaks'), + }, + { + name: 'chevron-r', + label: __('Chevron (Right)', 'gutentweaks'), + }, + { + name: 'caret-r', + label: __('Caret (Right)', 'gutentweaks'), + }, + { + name: 'arrow-r', + label: __('Arrow (Right)', 'gutentweaks'), + }, + { + name: 'numeric', + label: __('Numeric', 'gutentweaks'), + }, + ], + }, + ]) +}) diff --git a/src/GutenTweaks.php b/src/GutenTweaks.php index 168c04e..e2593cd 100644 --- a/src/GutenTweaks.php +++ b/src/GutenTweaks.php @@ -36,7 +36,6 @@ public function __construct($path, $uri) $this->inlineBlockStyles(); $this->enqueueBlockAssets(); - $this->enqueueEditorAssets(); } /** @@ -62,13 +61,13 @@ public function registerEditorSettings() public function inlineBlockStyles() { add_filter('wp_head', function () { - if (! $this->asset('css/blocks.css')) { + if (! $this->asset('css/app.css')) { return; } echo sprintf( '', - (new Minify\CSS($this->path . 'public/css/blocks.css'))->minify() + (new Minify\CSS($this->path . 'public/css/app.css'))->minify() ); }); } @@ -81,36 +80,7 @@ public function inlineBlockStyles() public function enqueueBlockAssets() { add_filter('enqueue_block_editor_assets', function () { - if ($manifest = include($this->path . 'public/js/blocks.asset.php')) { - wp_enqueue_script( - 'blocks/blocks.js', - $this->asset('js/blocks.js'), - ...array_values($manifest) - ); - } - - wp_enqueue_style('blocks/blocks.css', $this->asset('css/blocks.css'), false, null); - }); - } - - /** - * Enqueue the Gutenberg editor assets. - * - * @return void - */ - public function enqueueEditorAssets() - { - add_filter('init', function () { - global $pagenow; - - if ( - ! is_admin() || - ! $this->contains($pagenow, ['post.php', 'post-new.php']) - ) { - return; - } - - if ($manifest = include $this->path . 'public/js/editor.asset.php') { + if ($manifest = include($this->path . 'public/js/editor.asset.php')) { wp_enqueue_script( 'blocks/editor.js', $this->asset('js/editor.js'), diff --git a/webpack.mix.js b/webpack.mix.js index c38334d..6738070 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -14,9 +14,9 @@ const mix = require('laravel-mix') mix .setPublicPath('./public') - .sass('resources/css/blocks.scss', 'public/css') + .sass('resources/css/app.scss', 'public/css') .sass('resources/css/editor.scss', 'public/css') - .js('resources/js/blocks.js', 'public/js') + .js('resources/js/app.js', 'public/js') .blocks('resources/js/editor.js', 'public/js') .options({ processCssUrls: false,