First commit after npx @wordpress/create-block@latest
This commit is contained in:
commit
f4d3c983e7
25 files changed
+20688
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
// This file is generated. Do not modify it manually.
|
||||
return array(
|
||||
'wp-attached-gpx' => array(
|
||||
'$schema' => 'https://schemas.wp.org/trunk/block.json',
|
||||
'apiVersion' => 3,
|
||||
'name' => 'create-wp-attached-gpx/wp-attached-gpx',
|
||||
'version' => '0.1.0',
|
||||
'title' => 'Attached GPXes',
|
||||
'category' => 'media',
|
||||
'icon' => 'smiley',
|
||||
'description' => 'Display maps for attached GPX files',
|
||||
'example' => array(
|
||||
|
||||
),
|
||||
'supports' => array(
|
||||
'html' => false
|
||||
),
|
||||
'textdomain' => 'wp-attached-gpx',
|
||||
'editorScript' => 'file:./index.js',
|
||||
'editorStyle' => 'file:./index.css',
|
||||
'style' => 'file:./style-index.css',
|
||||
'render' => 'file:./render.php',
|
||||
'viewScript' => 'file:./view.js'
|
||||
)
|
||||
);
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "create-wp-attached-gpx/wp-attached-gpx",
|
||||
"version": "0.1.0",
|
||||
"title": "Attached GPXes",
|
||||
"category": "media",
|
||||
"icon": "smiley",
|
||||
"description": "Display maps for attached GPX files",
|
||||
"example": {},
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"textdomain": "wp-attached-gpx",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css",
|
||||
"style": "file:./style-index.css",
|
||||
"render": "file:./render.php",
|
||||
"viewScript": "file:./view.js"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.wp-block-create-wp-attached-gpx-wp-attached-gpx{border:1px dotted red}
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '5dc51faec6648feed7a3');
|
||||
@@ -0,0 +1 @@
|
||||
.wp-block-create-wp-attached-gpx-wp-attached-gpx{border:1px dotted red}
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var e,r={375:()=>{const e=window.wp.blocks,r=window.wp.i18n,t=window.wp.blockEditor,o=window.ReactJSXRuntime,a=JSON.parse('{"UU":"create-wp-attached-gpx/wp-attached-gpx"}');(0,e.registerBlockType)(a.UU,{edit:function(){return(0,o.jsx)("p",{...(0,t.useBlockProps)(),children:(0,r.__)("Attached GPXes – hello from the editor!","wp-attached-gpx")})}})}},t={};function o(e){var a=t[e];if(void 0!==a)return a.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,e=[],o.O=(r,t,a,i)=>{if(!t){var n=1/0;for(s=0;s<e.length;s++){for(var[t,a,i]=e[s],p=!0,c=0;c<t.length;c++)(!1&i||n>=i)&&Object.keys(o.O).every((e=>o.O[e](t[c])))?t.splice(c--,1):(p=!1,i<n&&(n=i));if(p){e.splice(s--,1);var l=a();void 0!==l&&(r=l)}}return r}i=i||0;for(var s=e.length;s>0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[t,a,i]},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={366:0,434:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var a,i,[n,p,c]=t,l=0;if(n.some((r=>0!==e[r]))){for(a in p)o.o(p,a)&&(o.m[a]=p[a]);if(c)var s=c(o)}for(r&&r(t);l<n.length;l++)i=n[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(s)},t=globalThis.webpackChunkwp_attached_gpx=globalThis.webpackChunkwp_attached_gpx||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var a=o.O(void 0,[434],(()=>o(375)));a=o.O(a)})();
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @see https://github.com/WordPress/gutenberg/blob/trunk/docs/reference-guides/block-api/block-metadata.md#render
|
||||
*/
|
||||
?>
|
||||
<p <?php echo get_block_wrapper_attributes(); ?>>
|
||||
<?php esc_html_e( 'Attached GPXes – hello from a dynamic block!', 'wp-attached-gpx' ); ?>
|
||||
</p>
|
||||
@@ -0,0 +1 @@
|
||||
.wp-block-create-wp-attached-gpx-wp-attached-gpx{background-color:#21759b;color:#fff;padding:2px}
|
||||
@@ -0,0 +1 @@
|
||||
.wp-block-create-wp-attached-gpx-wp-attached-gpx{background-color:#21759b;color:#fff;padding:2px}
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '93ea22c1bfa820a2f5eb');
|
||||
@@ -0,0 +1 @@
|
||||
console.log("Hello World! (from create-wp-attached-gpx-wp-attached-gpx block)");
|
||||
Reference in new issue
Block a user