Making WordPress.org

Changeset 10132


Ignore:
Timestamp:
08/09/2020 09:42:01 PM (6 years ago)
Author:
coreymckrill
Message:

WP.org Learn plugin: sync with Github

  • 322dcb14c7a362a47e5a7619a3f593bae54d815e
  • c36ceff4b984c28579e219840387dba5c33640d7
  • e35351f8afbb51470e2282fe3748492adbe3d6ac
Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/block-styles.asset.php

    r10130 r10132  
    1 <?php return array('dependencies' => array('wp-blocks', 'wp-i18n', 'wp-polyfill'), 'version' => 'fcaa8628ee66b6b0b7dcd11a8bb2fffd');
     1<?php return array('dependencies' => array('wp-blocks', 'wp-i18n', 'wp-polyfill'), 'version' => '2be57a6fb5325b1e01f239ae4f70d29c');
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/block-styles.js

    r10130 r10132  
    1 (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{6:function(e,r,t){}}]),function(e){function r(r){for(var n,c,u=r[0],i=r[1],a=r[2],f=0,s=[];f<u.length;f++)c=u[f],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&s.push(o[c][0]),o[c]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(p&&p(r);s.length;)s.shift()();return l.push.apply(l,a||[]),t()}function t(){for(var e,r=0;r<l.length;r++){for(var t=l[r],n=!0,u=1;u<t.length;u++){var i=t[u];0!==o[i]&&(n=!1)}n&&(l.splice(r--,1),e=c(c.s=t[0]))}return e}var n={},o={0:0},l=[];function c(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.m=e,c.c=n,c.d=function(e,r,t){c.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,r){if(1&r&&(e=c(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)c.d(t,n,function(r){return e[r]}.bind(null,n));return t},c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,"a",r),r},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.p="";var u=window.webpackJsonp=window.webpackJsonp||[],i=u.push.bind(u);u.push=r,u=u.slice();for(var a=0;a<u.length;a++)r(u[a]);var p=i;l.push([5,1]),t()}([function(e,r){!function(){e.exports=this.wp.i18n}()},function(e,r){!function(){e.exports=this.wp.blocks}()},,,,function(e,r,t){"use strict";t.r(r);var n=t(1),o=t(0);t(6);Object(n.registerBlockStyle)("core/button",{name:"primary",label:Object(o.__)("Primary","wporg-learn")}),Object(n.registerBlockStyle)("core/button",{name:"primary-full-width",label:Object(o.__)("Primary (Full-width)","wporg-learn")}),Object(n.registerBlockStyle)("core/button",{name:"secondary",label:Object(o.__)("Secondary","wporg-learn")}),Object(n.registerBlockStyle)("core/button",{name:"secondary-full-width",label:Object(o.__)("Secondary (Full-width)","wporg-learn")})}]);
     1(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["style-block-styles"],{
     2
     3/***/ "./js/block-styles/style.scss":
     4/*!************************************!*\
     5  !*** ./js/block-styles/style.scss ***!
     6  \************************************/
     7/*! no static exports found */
     8/***/ (function(module, exports, __webpack_require__) {
     9
     10// extracted by mini-css-extract-plugin
     11
     12/***/ })
     13
     14}]);
     15
     16/******/ (function(modules) { // webpackBootstrap
     17/******/        // install a JSONP callback for chunk loading
     18/******/        function webpackJsonpCallback(data) {
     19/******/                var chunkIds = data[0];
     20/******/                var moreModules = data[1];
     21/******/                var executeModules = data[2];
     22/******/
     23/******/                // add "moreModules" to the modules object,
     24/******/                // then flag all "chunkIds" as loaded and fire callback
     25/******/                var moduleId, chunkId, i = 0, resolves = [];
     26/******/                for(;i < chunkIds.length; i++) {
     27/******/                        chunkId = chunkIds[i];
     28/******/                        if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
     29/******/                                resolves.push(installedChunks[chunkId][0]);
     30/******/                        }
     31/******/                        installedChunks[chunkId] = 0;
     32/******/                }
     33/******/                for(moduleId in moreModules) {
     34/******/                        if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
     35/******/                                modules[moduleId] = moreModules[moduleId];
     36/******/                        }
     37/******/                }
     38/******/                if(parentJsonpFunction) parentJsonpFunction(data);
     39/******/
     40/******/                while(resolves.length) {
     41/******/                        resolves.shift()();
     42/******/                }
     43/******/
     44/******/                // add entry modules from loaded chunk to deferred list
     45/******/                deferredModules.push.apply(deferredModules, executeModules || []);
     46/******/
     47/******/                // run deferred modules when all chunks ready
     48/******/                return checkDeferredModules();
     49/******/        };
     50/******/        function checkDeferredModules() {
     51/******/                var result;
     52/******/                for(var i = 0; i < deferredModules.length; i++) {
     53/******/                        var deferredModule = deferredModules[i];
     54/******/                        var fulfilled = true;
     55/******/                        for(var j = 1; j < deferredModule.length; j++) {
     56/******/                                var depId = deferredModule[j];
     57/******/                                if(installedChunks[depId] !== 0) fulfilled = false;
     58/******/                        }
     59/******/                        if(fulfilled) {
     60/******/                                deferredModules.splice(i--, 1);
     61/******/                                result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
     62/******/                        }
     63/******/                }
     64/******/
     65/******/                return result;
     66/******/        }
     67/******/
     68/******/        // The module cache
     69/******/        var installedModules = {};
     70/******/
     71/******/        // object to store loaded and loading chunks
     72/******/        // undefined = chunk not loaded, null = chunk preloaded/prefetched
     73/******/        // Promise = chunk loading, 0 = chunk loaded
     74/******/        var installedChunks = {
     75/******/                "block-styles": 0
     76/******/        };
     77/******/
     78/******/        var deferredModules = [];
     79/******/
     80/******/        // The require function
     81/******/        function __webpack_require__(moduleId) {
     82/******/
     83/******/                // Check if module is in cache
     84/******/                if(installedModules[moduleId]) {
     85/******/                        return installedModules[moduleId].exports;
     86/******/                }
     87/******/                // Create a new module (and put it into the cache)
     88/******/                var module = installedModules[moduleId] = {
     89/******/                        i: moduleId,
     90/******/                        l: false,
     91/******/                        exports: {}
     92/******/                };
     93/******/
     94/******/                // Execute the module function
     95/******/                modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
     96/******/
     97/******/                // Flag the module as loaded
     98/******/                module.l = true;
     99/******/
     100/******/                // Return the exports of the module
     101/******/                return module.exports;
     102/******/        }
     103/******/
     104/******/
     105/******/        // expose the modules object (__webpack_modules__)
     106/******/        __webpack_require__.m = modules;
     107/******/
     108/******/        // expose the module cache
     109/******/        __webpack_require__.c = installedModules;
     110/******/
     111/******/        // define getter function for harmony exports
     112/******/        __webpack_require__.d = function(exports, name, getter) {
     113/******/                if(!__webpack_require__.o(exports, name)) {
     114/******/                        Object.defineProperty(exports, name, { enumerable: true, get: getter });
     115/******/                }
     116/******/        };
     117/******/
     118/******/        // define __esModule on exports
     119/******/        __webpack_require__.r = function(exports) {
     120/******/                if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
     121/******/                        Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
     122/******/                }
     123/******/                Object.defineProperty(exports, '__esModule', { value: true });
     124/******/        };
     125/******/
     126/******/        // create a fake namespace object
     127/******/        // mode & 1: value is a module id, require it
     128/******/        // mode & 2: merge all properties of value into the ns
     129/******/        // mode & 4: return value when already ns object
     130/******/        // mode & 8|1: behave like require
     131/******/        __webpack_require__.t = function(value, mode) {
     132/******/                if(mode & 1) value = __webpack_require__(value);
     133/******/                if(mode & 8) return value;
     134/******/                if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
     135/******/                var ns = Object.create(null);
     136/******/                __webpack_require__.r(ns);
     137/******/                Object.defineProperty(ns, 'default', { enumerable: true, value: value });
     138/******/                if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
     139/******/                return ns;
     140/******/        };
     141/******/
     142/******/        // getDefaultExport function for compatibility with non-harmony modules
     143/******/        __webpack_require__.n = function(module) {
     144/******/                var getter = module && module.__esModule ?
     145/******/                        function getDefault() { return module['default']; } :
     146/******/                        function getModuleExports() { return module; };
     147/******/                __webpack_require__.d(getter, 'a', getter);
     148/******/                return getter;
     149/******/        };
     150/******/
     151/******/        // Object.prototype.hasOwnProperty.call
     152/******/        __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
     153/******/
     154/******/        // __webpack_public_path__
     155/******/        __webpack_require__.p = "";
     156/******/
     157/******/        var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
     158/******/        var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
     159/******/        jsonpArray.push = webpackJsonpCallback;
     160/******/        jsonpArray = jsonpArray.slice();
     161/******/        for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
     162/******/        var parentJsonpFunction = oldJsonpFunction;
     163/******/
     164/******/
     165/******/        // add entry module to deferred list
     166/******/        deferredModules.push(["./js/block-styles/index.js","style-block-styles"]);
     167/******/        // run deferred modules when ready
     168/******/        return checkDeferredModules();
     169/******/ })
     170/************************************************************************/
     171/******/ ({
     172
     173/***/ "./js/block-styles/index.js":
     174/*!**********************************!*\
     175  !*** ./js/block-styles/index.js ***!
     176  \**********************************/
     177/*! no exports provided */
     178/***/ (function(module, __webpack_exports__, __webpack_require__) {
     179
     180"use strict";
     181__webpack_require__.r(__webpack_exports__);
     182/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
     183/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
     184/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
     185/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
     186/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./js/block-styles/style.scss");
     187/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_2__);
     188
     189
     190
     191Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__["registerBlockStyle"])('core/button', {
     192  name: 'primary',
     193  label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Primary', 'wporg-learn')
     194});
     195Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__["registerBlockStyle"])('core/button', {
     196  name: 'primary-full-width',
     197  label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Primary (Full-width)', 'wporg-learn')
     198});
     199Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__["registerBlockStyle"])('core/button', {
     200  name: 'secondary',
     201  label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Secondary', 'wporg-learn')
     202});
     203Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__["registerBlockStyle"])('core/button', {
     204  name: 'secondary-full-width',
     205  label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Secondary (Full-width)', 'wporg-learn')
     206});
     207
     208/***/ }),
     209
     210/***/ "@wordpress/blocks":
     211/*!*****************************************!*\
     212  !*** external {"this":["wp","blocks"]} ***!
     213  \*****************************************/
     214/*! no static exports found */
     215/***/ (function(module, exports) {
     216
     217(function() { module.exports = this["wp"]["blocks"]; }());
     218
     219/***/ }),
     220
     221/***/ "@wordpress/i18n":
     222/*!***************************************!*\
     223  !*** external {"this":["wp","i18n"]} ***!
     224  \***************************************/
     225/*! no static exports found */
     226/***/ (function(module, exports) {
     227
     228(function() { module.exports = this["wp"]["i18n"]; }());
     229
     230/***/ })
     231
     232/******/ });
     233//# sourceMappingURL=block-styles.js.map
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles.css

    r10130 r10132  
    1 .is-style-primary .wp-block-button__link,.is-style-primary .wp-block-button__link:visited,.is-style-primary-full-width .wp-block-button__link,.is-style-primary-full-width .wp-block-button__link:visited,.is-style-secondary .wp-block-button__link,.is-style-secondary .wp-block-button__link:visited,.is-style-secondary-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link:visited{background:#0085ba;color:#fff;text-align:center;font-size:13px;font-weight:bold;padding:0.9rem;margin:32px 0}.is-style-secondary .wp-block-button__link,.is-style-secondary .wp-block-button__link:visited,.is-style-secondary-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link:visited{background:#f8f9f9;color:#555;border:1px solid #d9dcdf;box-shadow:0 1px 0 #d9dcdf}.is-style-primary-full-width,.is-style-secondary-full-width{width:100%}.is-style-primary-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link{width:100%}
     1.is-style-primary .wp-block-button__link,
     2.is-style-primary .wp-block-button__link:visited,
     3.is-style-primary-full-width .wp-block-button__link,
     4.is-style-primary-full-width .wp-block-button__link:visited,
     5.is-style-secondary .wp-block-button__link,
     6.is-style-secondary .wp-block-button__link:visited,
     7.is-style-secondary-full-width .wp-block-button__link,
     8.is-style-secondary-full-width .wp-block-button__link:visited {
     9  background: #0085ba;
     10  color: #fff;
     11  text-align: center;
     12  font-size: 13px;
     13  font-weight: bold;
     14  padding: 0.9rem;
     15  margin: 32px 0; }
    216
     17.is-style-secondary .wp-block-button__link,
     18.is-style-secondary .wp-block-button__link:visited,
     19.is-style-secondary-full-width .wp-block-button__link,
     20.is-style-secondary-full-width .wp-block-button__link:visited {
     21  background: #f8f9f9;
     22  color: #555;
     23  border: 1px solid #d9dcdf;
     24  box-shadow: 0 1px 0 #d9dcdf; }
     25
     26.is-style-primary-full-width,
     27.is-style-secondary-full-width {
     28  width: 100%; }
     29  .is-style-primary-full-width .wp-block-button__link,
     30  .is-style-secondary-full-width .wp-block-button__link {
     31    width: 100%; }
     32
     33
     34/*# sourceMappingURL=style-block-styles.css.map*/
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-workshop-details.css

    r10130 r10132  
    1 .wp-block-wporg-learn-workshop-details{list-style:none;margin:0;padding:0;color:#555d66}.wp-block-wporg-learn-workshop-details li{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid #E2E4E7}.wp-block-wporg-learn-workshop-details li:last-child{border-bottom:1px solid #E2E4E7}.wp-block-wporg-learn-workshop-details li>span{text-align:right;flex-basis:50%;word-break:normal}
     1/**
     2 * The following styles get applied both on the front of your site
     3 * and in the editor.
     4 *
     5 * Replace them with your own styles or remove the file completely.
     6 */
     7.wp-block-wporg-learn-workshop-details {
     8  list-style: none;
     9  margin: 0;
     10  padding: 0;
     11  color: #555d66; }
     12  .wp-block-wporg-learn-workshop-details li {
     13    display: flex;
     14    justify-content: space-between;
     15    padding: 8px 0;
     16    border-top: 1px solid #E2E4E7; }
     17    .wp-block-wporg-learn-workshop-details li:last-child {
     18      border-bottom: 1px solid #E2E4E7; }
     19    .wp-block-wporg-learn-workshop-details li > span {
     20      text-align: right;
     21      flex-basis: 50%;
     22      word-break: normal; }
    223
     24
     25/*# sourceMappingURL=style-workshop-details.css.map*/
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.asset.php

    r10130 r10132  
    1 <?php return array('dependencies' => array('wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '846d759d50a44b4f010e36f02538a073');
     1<?php return array('dependencies' => array('wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '470b6be3310ceac065c9372814f0583e');
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.css

    r10130 r10132  
    1 .wp-block-wporg-learn-workshop-details{min-height:150px;padding:16px;display:flex;flex-direction:column;background:#eee;align-items:center;justify-content:center;font-size:14px}.wp-block-wporg-learn-workshop-details p{margin:4px !important;text-align:center;font-size:18px !important;line-height:22px !important}.wp-block-wporg-learn-workshop-details p:last-child{font-size:10px !important}
     1/**
     2 * The following styles get applied inside the editor only.
     3 *
     4 * Replace them with your own styles or remove the file completely.
     5 */
     6.wp-block-wporg-learn-workshop-details {
     7  min-height: 150px;
     8  padding: 16px;
     9  display: flex;
     10  flex-direction: column;
     11  background: #eee;
     12  align-items: center;
     13  justify-content: center;
     14  font-size: 14px; }
     15  .wp-block-wporg-learn-workshop-details p {
     16    margin: 4px !important;
     17    text-align: center;
     18    font-size: 18px !important;
     19    line-height: 22px !important; }
     20  .wp-block-wporg-learn-workshop-details p:last-child {
     21    font-size: 10px !important; }
    222
     23
     24/*# sourceMappingURL=workshop-details.css.map*/
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.js

    r10130 r10132  
    1 (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{3:function(e,t,n){}}]),function(e){function t(t){for(var r,l,c=t[0],u=t[1],p=t[2],s=0,f=[];s<c.length;s++)l=c[s],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&f.push(o[l][0]),o[l]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(a&&a(t);f.length;)f.shift()();return i.push.apply(i,p||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,c=1;c<n.length;c++){var u=n[c];0!==o[u]&&(r=!1)}r&&(i.splice(t--,1),e=l(l.s=n[0]))}return e}var r={},o={3:0},i=[];function l(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.m=e,l.c=r,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(n,r,function(t){return e[t]}.bind(null,r));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="";var c=window.webpackJsonp=window.webpackJsonp||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var p=0;p<c.length;p++)t(c[p]);var a=u;i.push([7,2]),n()}([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.element}()},,function(e,t,n){},,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=(n(3),n(2));n(4);Object(r.registerBlockType)("wporg-learn/workshop-details",{title:Object(o.__)("Workshop Details","wporg-learn"),description:Object(o.__)("Example block written with ESNext standard and JSX support – build step required.","wporg-learn"),category:"widgets",icon:"smiley",supports:{html:!1},edit:function(e){var t=e.className;return Object(i.createElement)("div",{className:t},Object(i.createElement)("p",null,Object(o.__)("Workshop Details","wporg-learn")),Object(i.createElement)("p",null,Object(o.__)("This will be dynamically populated based on custom fields.","wporg-learn")))},save:function(){return Object(i.createElement)("div",null)}})}]);
     1(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["style-workshop-details"],{
     2
     3/***/ "./js/workshop-details/src/style.scss":
     4/*!********************************************!*\
     5  !*** ./js/workshop-details/src/style.scss ***!
     6  \********************************************/
     7/*! no static exports found */
     8/***/ (function(module, exports, __webpack_require__) {
     9
     10// extracted by mini-css-extract-plugin
     11
     12/***/ })
     13
     14}]);
     15
     16/******/ (function(modules) { // webpackBootstrap
     17/******/        // install a JSONP callback for chunk loading
     18/******/        function webpackJsonpCallback(data) {
     19/******/                var chunkIds = data[0];
     20/******/                var moreModules = data[1];
     21/******/                var executeModules = data[2];
     22/******/
     23/******/                // add "moreModules" to the modules object,
     24/******/                // then flag all "chunkIds" as loaded and fire callback
     25/******/                var moduleId, chunkId, i = 0, resolves = [];
     26/******/                for(;i < chunkIds.length; i++) {
     27/******/                        chunkId = chunkIds[i];
     28/******/                        if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
     29/******/                                resolves.push(installedChunks[chunkId][0]);
     30/******/                        }
     31/******/                        installedChunks[chunkId] = 0;
     32/******/                }
     33/******/                for(moduleId in moreModules) {
     34/******/                        if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
     35/******/                                modules[moduleId] = moreModules[moduleId];
     36/******/                        }
     37/******/                }
     38/******/                if(parentJsonpFunction) parentJsonpFunction(data);
     39/******/
     40/******/                while(resolves.length) {
     41/******/                        resolves.shift()();
     42/******/                }
     43/******/
     44/******/                // add entry modules from loaded chunk to deferred list
     45/******/                deferredModules.push.apply(deferredModules, executeModules || []);
     46/******/
     47/******/                // run deferred modules when all chunks ready
     48/******/                return checkDeferredModules();
     49/******/        };
     50/******/        function checkDeferredModules() {
     51/******/                var result;
     52/******/                for(var i = 0; i < deferredModules.length; i++) {
     53/******/                        var deferredModule = deferredModules[i];
     54/******/                        var fulfilled = true;
     55/******/                        for(var j = 1; j < deferredModule.length; j++) {
     56/******/                                var depId = deferredModule[j];
     57/******/                                if(installedChunks[depId] !== 0) fulfilled = false;
     58/******/                        }
     59/******/                        if(fulfilled) {
     60/******/                                deferredModules.splice(i--, 1);
     61/******/                                result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
     62/******/                        }
     63/******/                }
     64/******/
     65/******/                return result;
     66/******/        }
     67/******/
     68/******/        // The module cache
     69/******/        var installedModules = {};
     70/******/
     71/******/        // object to store loaded and loading chunks
     72/******/        // undefined = chunk not loaded, null = chunk preloaded/prefetched
     73/******/        // Promise = chunk loading, 0 = chunk loaded
     74/******/        var installedChunks = {
     75/******/                "workshop-details": 0
     76/******/        };
     77/******/
     78/******/        var deferredModules = [];
     79/******/
     80/******/        // The require function
     81/******/        function __webpack_require__(moduleId) {
     82/******/
     83/******/                // Check if module is in cache
     84/******/                if(installedModules[moduleId]) {
     85/******/                        return installedModules[moduleId].exports;
     86/******/                }
     87/******/                // Create a new module (and put it into the cache)
     88/******/                var module = installedModules[moduleId] = {
     89/******/                        i: moduleId,
     90/******/                        l: false,
     91/******/                        exports: {}
     92/******/                };
     93/******/
     94/******/                // Execute the module function
     95/******/                modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
     96/******/
     97/******/                // Flag the module as loaded
     98/******/                module.l = true;
     99/******/
     100/******/                // Return the exports of the module
     101/******/                return module.exports;
     102/******/        }
     103/******/
     104/******/
     105/******/        // expose the modules object (__webpack_modules__)
     106/******/        __webpack_require__.m = modules;
     107/******/
     108/******/        // expose the module cache
     109/******/        __webpack_require__.c = installedModules;
     110/******/
     111/******/        // define getter function for harmony exports
     112/******/        __webpack_require__.d = function(exports, name, getter) {
     113/******/                if(!__webpack_require__.o(exports, name)) {
     114/******/                        Object.defineProperty(exports, name, { enumerable: true, get: getter });
     115/******/                }
     116/******/        };
     117/******/
     118/******/        // define __esModule on exports
     119/******/        __webpack_require__.r = function(exports) {
     120/******/                if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
     121/******/                        Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
     122/******/                }
     123/******/                Object.defineProperty(exports, '__esModule', { value: true });
     124/******/        };
     125/******/
     126/******/        // create a fake namespace object
     127/******/        // mode & 1: value is a module id, require it
     128/******/        // mode & 2: merge all properties of value into the ns
     129/******/        // mode & 4: return value when already ns object
     130/******/        // mode & 8|1: behave like require
     131/******/        __webpack_require__.t = function(value, mode) {
     132/******/                if(mode & 1) value = __webpack_require__(value);
     133/******/                if(mode & 8) return value;
     134/******/                if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
     135/******/                var ns = Object.create(null);
     136/******/                __webpack_require__.r(ns);
     137/******/                Object.defineProperty(ns, 'default', { enumerable: true, value: value });
     138/******/                if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
     139/******/                return ns;
     140/******/        };
     141/******/
     142/******/        // getDefaultExport function for compatibility with non-harmony modules
     143/******/        __webpack_require__.n = function(module) {
     144/******/                var getter = module && module.__esModule ?
     145/******/                        function getDefault() { return module['default']; } :
     146/******/                        function getModuleExports() { return module; };
     147/******/                __webpack_require__.d(getter, 'a', getter);
     148/******/                return getter;
     149/******/        };
     150/******/
     151/******/        // Object.prototype.hasOwnProperty.call
     152/******/        __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
     153/******/
     154/******/        // __webpack_public_path__
     155/******/        __webpack_require__.p = "";
     156/******/
     157/******/        var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
     158/******/        var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
     159/******/        jsonpArray.push = webpackJsonpCallback;
     160/******/        jsonpArray = jsonpArray.slice();
     161/******/        for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
     162/******/        var parentJsonpFunction = oldJsonpFunction;
     163/******/
     164/******/
     165/******/        // add entry module to deferred list
     166/******/        deferredModules.push(["./js/workshop-details/src/index.js","style-workshop-details"]);
     167/******/        // run deferred modules when ready
     168/******/        return checkDeferredModules();
     169/******/ })
     170/************************************************************************/
     171/******/ ({
     172
     173/***/ "./js/workshop-details/src/edit.js":
     174/*!*****************************************!*\
     175  !*** ./js/workshop-details/src/edit.js ***!
     176  \*****************************************/
     177/*! exports provided: default */
     178/***/ (function(module, __webpack_exports__, __webpack_require__) {
     179
     180"use strict";
     181__webpack_require__.r(__webpack_exports__);
     182/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Edit; });
     183/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
     184/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
     185/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
     186/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
     187/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./js/workshop-details/src/editor.scss");
     188/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_editor_scss__WEBPACK_IMPORTED_MODULE_2__);
     189
     190
     191/**
     192 * Retrieves the translation of text.
     193 *
     194 * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
     195 */
     196
     197/**
     198 * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
     199 * Those files can contain any CSS code that gets applied to the editor.
     200 *
     201 * @see https://www.npmjs.com/package/@wordpress/scripts#using-css
     202 */
     203
     204
     205/**
     206 * The edit function describes the structure of your block in the context of the
     207 * editor. This represents what the editor will render when the block is used.
     208 *
     209 * @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#edit
     210 *
     211 * @param {Object} [props]           Properties passed from the editor.
     212 * @param {string} [props.className] Class name generated for the block.
     213 *
     214 * @return {WPElement} Element to render.
     215 */
     216
     217function Edit(_ref) {
     218  var className = _ref.className;
     219  return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
     220    className: className
     221  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("p", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Workshop Details', 'wporg-learn')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("p", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('This will be dynamically populated based on custom fields.', 'wporg-learn')));
     222}
     223
     224/***/ }),
     225
     226/***/ "./js/workshop-details/src/editor.scss":
     227/*!*********************************************!*\
     228  !*** ./js/workshop-details/src/editor.scss ***!
     229  \*********************************************/
     230/*! no static exports found */
     231/***/ (function(module, exports, __webpack_require__) {
     232
     233// extracted by mini-css-extract-plugin
     234
     235/***/ }),
     236
     237/***/ "./js/workshop-details/src/index.js":
     238/*!******************************************!*\
     239  !*** ./js/workshop-details/src/index.js ***!
     240  \******************************************/
     241/*! no exports provided */
     242/***/ (function(module, __webpack_exports__, __webpack_require__) {
     243
     244"use strict";
     245__webpack_require__.r(__webpack_exports__);
     246/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
     247/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
     248/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
     249/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
     250/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./js/workshop-details/src/style.scss");
     251/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_2__);
     252/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ "./js/workshop-details/src/edit.js");
     253/**
     254 * Registers a new block provided a unique name and an object defining its behavior.
     255 *
     256 * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block
     257 */
     258
     259/**
     260 * Retrieves the translation of text.
     261 *
     262 * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
     263 */
     264
     265
     266/**
     267 * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
     268 * All files containing `style` keyword are bundled together. The code used
     269 * gets applied both to the front of your site and to the editor.
     270 *
     271 * @see https://www.npmjs.com/package/@wordpress/scripts#using-css
     272 */
     273
     274
     275/**
     276 * Internal dependencies
     277 */
     278
     279
     280/**
     281 * Every block starts by registering a new block type definition.
     282 *
     283 * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block
     284 */
     285
     286Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__["registerBlockType"])('wporg-learn/workshop-details', {
     287  /**
     288   * This is the display title for your block, which can be translated with `i18n` functions.
     289   * The block inserter will show this name.
     290   */
     291  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Workshop Details', 'wporg-learn'),
     292
     293  /**
     294   * This is a short description for your block, can be translated with `i18n` functions.
     295   * It will be shown in the Block Tab in the Settings Sidebar.
     296   */
     297  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Show details about the workshop, pulled from post meta.', 'wporg-learn'),
     298
     299  /**
     300   * Blocks are grouped into categories to help users browse and discover them.
     301   * The categories provided by core are `common`, `embed`, `formatting`, `layout` and `widgets`.
     302   */
     303  category: 'widgets',
     304
     305  /**
     306   * An icon property should be specified to make it easier to identify a block.
     307   * These can be any of WordPress’ Dashicons, or a custom svg element.
     308   */
     309  icon: 'smiley',
     310
     311  /**
     312   * Optional block extended support features.
     313   */
     314  supports: {
     315    // Removes support for an HTML mode.
     316    html: false
     317  },
     318
     319  /**
     320   * @see ./edit.js
     321   */
     322  edit: _edit__WEBPACK_IMPORTED_MODULE_3__["default"],
     323
     324  /**
     325   * @see ./save.js
     326   */
     327  save: function save() {
     328    return null;
     329  }
     330});
     331
     332/***/ }),
     333
     334/***/ "@wordpress/blocks":
     335/*!*****************************************!*\
     336  !*** external {"this":["wp","blocks"]} ***!
     337  \*****************************************/
     338/*! no static exports found */
     339/***/ (function(module, exports) {
     340
     341(function() { module.exports = this["wp"]["blocks"]; }());
     342
     343/***/ }),
     344
     345/***/ "@wordpress/element":
     346/*!******************************************!*\
     347  !*** external {"this":["wp","element"]} ***!
     348  \******************************************/
     349/*! no static exports found */
     350/***/ (function(module, exports) {
     351
     352(function() { module.exports = this["wp"]["element"]; }());
     353
     354/***/ }),
     355
     356/***/ "@wordpress/i18n":
     357/*!***************************************!*\
     358  !*** external {"this":["wp","i18n"]} ***!
     359  \***************************************/
     360/*! no static exports found */
     361/***/ (function(module, exports) {
     362
     363(function() { module.exports = this["wp"]["i18n"]; }());
     364
     365/***/ })
     366
     367/******/ });
     368//# sourceMappingURL=workshop-details.js.map
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/index.js

    r10130 r10132  
    2626 */
    2727import Edit from './edit';
    28 import save from './save';
    2928
    3029/**
     
    4544         */
    4645        description: __(
    47                 'Example block written with ESNext standard and JSX support – build step required.',
     46                'Show details about the workshop, pulled from post meta.',
    4847                'wporg-learn'
    4948        ),
     
    7776         * @see ./save.js
    7877         */
    79         save
     78        save: () => null,
    8079} );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/package.json

    r10130 r10132  
    11{
    2         "name": "wporg-learn-plugin",
     2        "name": "wporg-learn",
    33        "version": "1.0.0",
    44        "description": "",
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php

    r10130 r10132  
    11<?php
    22/**
    3  * Plugin name: Learn
    4  * Description: Functionality for learn.wordpress.org. See also the wporg-learn theme.
    5  * Version:     1
     3 * Plugin name: WordPress.org Learn
     4 * Description: Functionality for learn.wordpress.org. See also the wporg-learn-2020 theme.
     5 * Version:     1.0.0
    66 * Author:      WordPress.org
    77 * Author URI:  http://wordpress.org/
Note: See TracChangeset for help on using the changeset viewer.