first try
This commit is contained in:
15
build/space-status/block.json
Normal file
15
build/space-status/block.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"apiVersion": 3,
|
||||
"name": "wp-spaceapi-consumer/space-status",
|
||||
"title": "Space Status",
|
||||
"description": "Show whether the space is open or closed (SpaceAPI consumer).",
|
||||
"category": "widgets",
|
||||
"icon": "info",
|
||||
"textdomain": "wp-spaceapi-consumer",
|
||||
"style": "file:./style.css",
|
||||
"editorStyle": "file:./editor.css",
|
||||
"editorScript": "file:./index.js",
|
||||
"supports": {
|
||||
"html": false
|
||||
}
|
||||
}
|
||||
1
build/space-status/index.asset.php
Normal file
1
build/space-status/index.asset.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-blocks', 'wp-i18n', 'wp-server-side-render'), 'version' => 'e81eff0b8644d0be4dac');
|
||||
1
build/space-status/index.js
Normal file
1
build/space-status/index.js
Normal file
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var e={n:r=>{var s=r&&r.__esModule?()=>r.default:()=>r;return e.d(s,{a:s}),s},d:(r,s)=>{for(var t in s)e.o(s,t)&&!e.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:s[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)};window.wp.i18n;const r=window.wp.blocks,s=window.wp.serverSideRender;var t=e.n(s);const o=window.ReactJSXRuntime;(0,r.registerBlockType)("wp-spaceapi-consumer/space-status",{edit:()=>(0,o.jsx)(t(),{block:"wp-spaceapi-consumer/space-status"}),save:()=>null})})();
|
||||
Reference in New Issue
Block a user