initial
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "jetpack/goodreads",
|
||||
"title": "Goodreads",
|
||||
"description": "Features books from the shelves of your Goodreads account.",
|
||||
"keywords": [
|
||||
"book",
|
||||
"read",
|
||||
"author"
|
||||
],
|
||||
"version": "1.0",
|
||||
"textdomain": "jetpack",
|
||||
"category": "embed",
|
||||
"icon": "<svg height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg' aria-hidden='true' focusable='false'><path d='M19.525 15.977V.49h-2.059v2.906h-.064c-.211-.455-.481-.891-.842-1.307-.36-.412-.767-.777-1.232-1.094-.466-.314-.962-.561-1.519-.736C13.256.09 12.669 0 12.038 0c-1.21 0-2.3.225-3.246.67-.947.447-1.743 1.057-2.385 1.83-.642.773-1.133 1.676-1.47 2.711-.336 1.037-.506 2.129-.506 3.283 0 1.199.141 2.326.425 3.382.286 1.057.737 1.976 1.368 2.762.631.78 1.412 1.397 2.375 1.833.961.436 2.119.661 3.471.661 1.248 0 2.33-.315 3.262-.946s1.638-1.473 2.119-2.525h.061v2.284c0 2.044-.421 3.607-1.264 4.705-.84 1.081-2.224 1.638-4.146 1.638-.572 0-1.128-.061-1.669-.181-.542-.12-1.036-.315-1.487-.57-.437-.271-.827-.601-1.143-1.038-.316-.435-.526-.961-.632-1.593H5.064c.067.887.315 1.654.737 2.3.424.646.961 1.172 1.602 1.593.641.406 1.367.706 2.172.902.811.194 1.639.3 2.494.3 1.383 0 2.541-.195 3.486-.555.947-.376 1.714-.902 2.301-1.608.601-.708 1.021-1.549 1.293-2.556.27-1.007.42-2.134.42-3.367l-.044.062zm-7.484-.557c-.955 0-1.784-.189-2.479-.571-.697-.38-1.277-.882-1.732-1.503-.467-.621-.797-1.332-1.022-2.139s-.332-1.633-.332-2.484c0-.871.105-1.725.301-2.563.21-.84.54-1.587.992-2.24.451-.652 1.037-1.182 1.728-1.584s1.533-.605 2.51-.605 1.803.209 2.495.621c.676.415 1.247.959 1.683 1.634.436.677.751 1.429.947 2.255.195.826.285 1.656.285 2.482 0 .852-.12 1.678-.345 2.484-.226.807-.572 1.518-1.038 2.139-.465.621-1.021 1.123-1.698 1.503-.676.382-1.458.571-2.359.571h.064z'></path></svg>",
|
||||
"supports": {
|
||||
"html": false,
|
||||
"align": true
|
||||
},
|
||||
"attributes": {
|
||||
"bookNumber": {
|
||||
"type": "string",
|
||||
"default": "5"
|
||||
},
|
||||
"class": {
|
||||
"type": "string"
|
||||
},
|
||||
"customTitle": {
|
||||
"type": "string"
|
||||
},
|
||||
"goodreadsId": {
|
||||
"type": "number"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"type": "string"
|
||||
},
|
||||
"orderOption": {
|
||||
"type": "string",
|
||||
"default": "d"
|
||||
},
|
||||
"shelfOption": {
|
||||
"type": "string",
|
||||
"default": "read"
|
||||
},
|
||||
"showAuthor": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"showCover": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"showRating": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"showReview": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"showTags": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"showTitle": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"sortOption": {
|
||||
"type": "string",
|
||||
"default": "date_added"
|
||||
},
|
||||
"style": {
|
||||
"type": "string",
|
||||
"default": "default"
|
||||
},
|
||||
"userInput": {
|
||||
"type": "string"
|
||||
},
|
||||
"widgetId": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"example": {
|
||||
"attributes": {
|
||||
"goodreadsId": 1176283
|
||||
}
|
||||
},
|
||||
"editorScript": "jetpack-blocks-editor"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '98a26b8b51245cb3b27a');
|
||||
@@ -0,0 +1 @@
|
||||
.wp-block-jetpack-goodreads{margin-bottom:1.5em}.wp-block-jetpack-goodreads [class^=gr_custom_container_]{background-color:#fff;border:1px solid gray;border-radius:10px;color:#000;margin:auto;padding:0 5px 10px;width:300px}.wp-block-jetpack-goodreads [class^=gr_custom_header_]{border-bottom:1px solid gray;font-size:120%;margin:auto;padding:10px 0;text-align:center;width:100%}.wp-block-jetpack-goodreads [class^=gr_custom_each_container_]{border-bottom:1px solid #aaa;clear:both;margin:auto auto 10px;overflow:auto;padding-bottom:4px;width:100%}.wp-block-jetpack-goodreads [class^=gr_custom_book_container_]{float:left;height:60px;margin-right:6px;overflow:hidden;width:39px}.wp-block-jetpack-goodreads [class^=gr_custom_author_]{font-size:10px}.wp-block-jetpack-goodreads [class^=gr_custom_tags_]{color:gray;font-size:10px}.wp-block-jetpack-goodreads [class^=gr_custom_rating_]{float:right}.wp-block-jetpack-goodreads [class^=gr_grid_book_container]{float:left;height:160px;overflow:hidden;padding:0;width:98px}.wp-block-jetpack-goodreads [class^=gr_grid_book_container] img{height:100%;width:100%}.wp-block-jetpack-goodreads a{text-decoration:none}.wp-block-jetpack-goodreads a:hover{text-decoration:underline}.wp-block-jetpack-goodreads img{max-width:100%}
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{var r={29185(){},79366(r,e,t){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(t.p=window.Jetpack_Block_Assets_Base_Url)}},e={};function t(o){var a=e[o];if(void 0!==a)return a.exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}t.n=r=>{var e=r&&r.__esModule?()=>r.default:()=>r;return t.d(e,{a:e}),e},t.d=(r,e)=>{for(var o in e)t.o(e,o)&&!t.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},t.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r;globalThis.importScripts&&(r=globalThis.location+"");var e=globalThis.document;if(!r&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(r=e.currentScript.src),!r)){var o=e.getElementsByTagName("script");if(o.length)for(var a=o.length-1;a>-1&&(!r||!/^http(s?):/.test(r));)r=o[a--].src}if(!r)throw new Error("Automatic publicPath is not supported in this browser");r=r.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=r+"../"})(),(()=>{"use strict";t(79366)})(),(()=>{"use strict";t(29185)})()})();
|
||||
@@ -0,0 +1 @@
|
||||
.wp-block-jetpack-goodreads{margin-bottom:1.5em}.wp-block-jetpack-goodreads [class^=gr_custom_container_]{background-color:#fff;border:1px solid gray;border-radius:10px;color:#000;margin:auto;padding:0 5px 10px;width:300px}.wp-block-jetpack-goodreads [class^=gr_custom_header_]{border-bottom:1px solid gray;font-size:120%;margin:auto;padding:10px 0;text-align:center;width:100%}.wp-block-jetpack-goodreads [class^=gr_custom_each_container_]{border-bottom:1px solid #aaa;clear:both;margin:auto auto 10px;overflow:auto;padding-bottom:4px;width:100%}.wp-block-jetpack-goodreads [class^=gr_custom_book_container_]{float:right;height:60px;margin-left:6px;overflow:hidden;width:39px}.wp-block-jetpack-goodreads [class^=gr_custom_author_]{font-size:10px}.wp-block-jetpack-goodreads [class^=gr_custom_tags_]{color:gray;font-size:10px}.wp-block-jetpack-goodreads [class^=gr_custom_rating_]{float:left}.wp-block-jetpack-goodreads [class^=gr_grid_book_container]{float:right;height:160px;overflow:hidden;padding:0;width:98px}.wp-block-jetpack-goodreads [class^=gr_grid_book_container] img{height:100%;width:100%}.wp-block-jetpack-goodreads a{text-decoration:none}.wp-block-jetpack-goodreads a:hover{text-decoration:underline}.wp-block-jetpack-goodreads img{max-width:100%}
|
||||
Reference in New Issue
Block a user