This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -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' => '4f6c55862658b54769e5');
@@ -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;margin-bottom: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 t={79366:(t,r,e)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(e.p=window.Jetpack_Block_Assets_Base_Url)}},r={};function e(o){var n=r[o];if(void 0!==n)return n.exports;var i=r[o]={exports:{}};return t[o](i,i.exports,e),i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),(()=>{var t;e.g.importScripts&&(t=e.g.location+"");var r=e.g.document;if(!t&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(t=r.currentScript.src),!t)){var o=r.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=o[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t+"../"})(),(()=>{"use strict";e(79366)})()})();
@@ -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;margin-bottom: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%}