Page Links To - Version 3.2.0

Version Description

  • Block Editor improvements
  • Smaller build
Download this release

Release Info

Developer markjaquith
Plugin Icon wp plugin Page Links To
Version 3.2.0
Comparing to
See all releases

Code changes from version 3.1.2 to 3.2.0

classes/plugin.php CHANGED
@@ -31,7 +31,7 @@ class CWS_PageLinksTo {
31
const DISMISSED_NOTICES = 'page_links_dismissed_options';
32
const MESSAGE_ID = 4;
33
const NEWSLETTER_URL = 'https://pages.convertkit.com/8eb23c1339/1ce4614706';
34
- const CSS_JS_VERSION = '3.1.2';
35
36
/**
37
* Whether to replace WP links with their specified URLs.
@@ -296,7 +296,7 @@ class CWS_PageLinksTo {
296
* @return void
297
*/
298
public function wp_enqueue_scripts() {
299
- wp_enqueue_script( 'page-links-to', $this->get_url() . 'js/new-tab.min.js', array(), self::CSS_JS_VERSION, true );
300
}
301
302
/**
@@ -306,9 +306,9 @@ class CWS_PageLinksTo {
306
*/
307
public function admin_enqueue_scripts() {
308
if ( !is_customize_preview() && current_user_can( 'edit_posts' ) ) {
309
- wp_register_script( 'plt-clipboard', $this->get_url() . 'js/clipboard.min.js', array(), self::CSS_JS_VERSION, true );
310
- wp_enqueue_script( 'plt-quick-add', $this->get_url() . 'js/quick-add.min.js', array( 'plt-clipboard', 'jquery-ui-dialog' ), self::CSS_JS_VERSION, true );
311
- wp_enqueue_style( 'plt-quick-add', $this->get_url() . 'css/quick-add.css', array( 'wp-jquery-ui-dialog' ), self::CSS_JS_VERSION );
312
}
313
}
314
@@ -320,7 +320,7 @@ class CWS_PageLinksTo {
320
public function enqueue_block_editor_assets() {
321
// Gutenberg.
322
if ( self::is_block_editor() && self::is_supported_post_type() ) {
323
- wp_enqueue_script( 'plt-gutenberg', $this->get_url() . 'js/gutenberg.min.js', array( 'wp-edit-post', 'wp-element', 'wp-plugins' ), self::CSS_JS_VERSION, true );
324
}
325
}
326
@@ -508,7 +508,7 @@ class CWS_PageLinksTo {
508
<?php do_action( 'page_links_to_meta_box_bottom' ); ?>
509
</div>
510
511
- <script src="<?php echo esc_url( $this->get_url() ) . 'js/meta-box.min.js?v=' . self::CSS_JS_VERSION; ?>"></script>
512
<?php
513
}
514
@@ -748,6 +748,10 @@ class CWS_PageLinksTo {
748
* @return string the modified HTML block.
749
*/
750
function wp_list_pages( $output, $_args = array(), $pages = array() ) {
751
$highlight = false;
752
753
$this_url = esc_url_raw( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) );
31
const DISMISSED_NOTICES = 'page_links_dismissed_options';
32
const MESSAGE_ID = 4;
33
const NEWSLETTER_URL = 'https://pages.convertkit.com/8eb23c1339/1ce4614706';
34
+ const CSS_JS_VERSION = '3.2.0';
35
36
/**
37
* Whether to replace WP links with their specified URLs.
296
* @return void
297
*/
298
public function wp_enqueue_scripts() {
299
+ wp_enqueue_script( 'page-links-to', $this->get_url() . 'dist/new-tab.js', array(), self::CSS_JS_VERSION, true );
300
}
301
302
/**
306
*/
307
public function admin_enqueue_scripts() {
308
if ( !is_customize_preview() && current_user_can( 'edit_posts' ) ) {
309
+ wp_register_script( 'plt-clipboard', $this->get_url() . 'dist/clipboard.min.js', array(), self::CSS_JS_VERSION, true );
310
+ wp_enqueue_script( 'plt-quick-add', $this->get_url() . 'dist/quick-add.js', array( 'plt-clipboard', 'jquery-ui-dialog' ), self::CSS_JS_VERSION, true );
311
+ wp_enqueue_style( 'plt-quick-add', $this->get_url() . 'dist/quick-add.css', array( 'wp-jquery-ui-dialog' ), self::CSS_JS_VERSION );
312
}
313
}
314
320
public function enqueue_block_editor_assets() {
321
// Gutenberg.
322
if ( self::is_block_editor() && self::is_supported_post_type() ) {
323
+ wp_enqueue_script( 'plt-gutenberg', $this->get_url() . 'dist/block-editor.js', array( 'wp-edit-post', 'wp-element', 'wp-plugins' ), self::CSS_JS_VERSION, true );
324
}
325
}
326
508
<?php do_action( 'page_links_to_meta_box_bottom' ); ?>
509
</div>
510
511
+ <script src="<?php echo esc_url( $this->get_url() ) . 'dist/meta-box.js?v=' . self::CSS_JS_VERSION; ?>"></script>
512
<?php
513
}
514
748
* @return string the modified HTML block.
749
*/
750
function wp_list_pages( $output, $_args = array(), $pages = array() ) {
751
+ if ( empty( $pages ) ) {
752
+ return $output;
753
+ }
754
+
755
$highlight = false;
756
757
$this_url = esc_url_raw( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) );
css/quick-add.css DELETED
@@ -1,2 +0,0 @@
1
- #plt-quick-add .footer{margin:0 -15px -15px;border-top:1px solid #dfdfdf;padding:15px;text-align:right;display:flex}#plt-quick-add .footer a{text-decoration:none}#plt-quick-add .footer div.messages{text-align:left;margin-right:auto}#plt-quick-add .footer div.messages p{margin:0;line-height:2em}#plt-quick-add .footer input[type=submit]{margin-left:15px}#plt-quick-add .footer input[name=plt-quick-add-publish]{order:2}#plt-quick-add .content{padding-bottom:20px;text-align:right}#plt-quick-add p.short-url-message{margin:15px auto 0;font-style:italic;max-width:300px;text-align:center;padding:5px;background:#f5f5f5;box-shadow:0 5px 15px 0 rgba(0,0,0,.1)}#plt-quick-add label{font-size:14px;display:flex;text-align:left;justify-content:space-between;align-items:center}#plt-quick-add label>span{font-weight:600;margin-right:15px}#plt-quick-add label>*{font-weight:400}#plt-quick-add code{margin-left:20px}.plt-post-info{opacity:.3}.wp-list-table tr:hover .plt-post-info{opacity:1}a.plt-post-state-link span.url{display:none}a.plt-post-state-link:hover span.url{display:inline}.plt-links-to{padding:5px 10px 0;line-height:24px;color:#666}#cws-links-to-custom-section{box-sizing:border-box;margin-left:30px}#cws-links-to{width:75%}
2
- /*# sourceMappingURL=quick-add.css.map */
css/quick-add.css.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../sass/quick-add.sass","quick-add.css"],"names":[],"mappings":"AACC,uBACC,qBAAA,AACA,6BAAA,AACA,aAAA,AACA,iBAAA,AACA,YAAA,CCAD,ADCC,yBACC,oBAAA,CCCF,ADAC,oCACC,gBAAA,AACA,iBAAA,CCEF,ADDE,sCACC,SAAA,AACA,eAAA,CCGH,ADFC,0CACC,gBAAA,CCIF,ADHC,yDACC,OAAA,CCKF,ADHA,wBACC,oBAAA,AACA,gBAAA,CCKD,ADHA,mCACC,mBAAA,AACA,kBAAA,AACA,gBAAA,AACA,kBAAA,AACA,YAAA,AACA,mBAAA,AACA,sCAAA,CCKD,ADHA,qBACC,eAAA,AACA,aAAA,AACA,gBAAA,AACA,8BAAA,AACA,kBAAA,CCKD,ADJC,0BACC,gBAAA,AACA,iBAAA,CCMF,ADLC,uBACC,eAAA,CCOF,ADLA,oBACC,gBAAA,CCOD,ADLD,eACC,UAAA,CCQA,ADPA,uCACC,SAAA,CCSD,ADNA,+BACC,YAAA,CCSD,ADRA,qCACC,cAAA,CCUD,ADRD,cACC,mBAAA,AACA,iBAAA,AACA,UAAA,CCWA,ADTD,6BACC,sBAAA,AACA,gBAAA,CCYA,ADVD,cACC,SAAA,CCaA","file":"quick-add.css"}
cypress.env.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "wp_username": "mark",
3
- "wp_password": "mark"
4
- }
cypress.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "baseUrl": "https://plugins.test"
3
- }
dist/block-editor.asset.php ADDED
@@ -0,0 +1 @@
1
+ <?php return array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-plugins', 'wp-polyfill'), 'version' => '8204ba84b25c5d8f2490799dab3397cb');
dist/block-editor.js ADDED
@@ -0,0 +1 @@
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=11)}([function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t){!function(){e.exports=this.wp.plugins}()},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(2),i=n(3),l=n(4),u=n(5);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=e.children;return React.createElement("div",{style:{display:"flex",flexDirection:"column"}},t)}var h=function(e){function t(e){var n,r,o,a,i,l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,n=!(o=p(t).call(this,e))||"object"!==c(o)&&"function"!=typeof o?f(r):o,a=f(n),l={prevUrl:"",prevNewTab:!1},(i="state")in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,n.toggleStatus=n.toggleStatus.bind(f(n)),n.state.enabled=n.hasUrl(),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"getUrl",value:function(){return this.props.url||""}},{key:"getDisplayUrl",value:function(){var e=this.state.prevUrl;return this.getUrl()||e}},{key:"hasUrl",value:function(){return this.getUrl().length>0}},{key:"opensInNewTab",value:function(){return this.props.newTab}},{key:"enabled",value:function(){return this.state.enabled}},{key:"toggleStatus",value:function(e){var t=this,n=this.state,r=n.prevUrl,o=n.prevNewTab,a=this.props,i=a.onUpdateLink,l=a.onUpdateNewTab;this.setState((function(n){var r={enabled:e};return n.enabled&&(r.prevUrl=t.getUrl()),r})),e?(i(r),l(o)):(i(null),l(!1),this.setState({prevUrl:this.getUrl(),prevNewTab:this.opensInNewTab()}))}},{key:"updateLink",value:function(e){var t=this.props,n=t.meta;(0,t.onUpdateLink)(n,e)}},{key:"render",value:function(){var e=this.props,t=e.onUpdateLink,n=e.onUpdateNewTab;return React.createElement(l.PluginPostStatusInfo,null,React.createElement(d,null,React.createElement(r.PanelRow,null,React.createElement(r.CheckboxControl,{label:"Custom Permalink","data-testid":"plt-enabled",checked:this.enabled(),onChange:this.toggleStatus})),this.enabled()&&React.createElement(React.Fragment,null,React.createElement(r.PanelRow,null,React.createElement(r.TextControl,{label:"Links to","data-testid":"plt-url",value:this.getDisplayUrl(),onChange:t,placeholder:"https://"})),React.createElement(r.PanelRow,null,React.createElement(r.CheckboxControl,{label:"Open in new tab","data-testid":"plt-newtab",checked:this.opensInNewTab(),onChange:n})))))}}])&&s(n.prototype,o),a&&s(n,a),t}(i.Component),y=Object(o.compose)([Object(a.withSelect)((function(e){var t=function(t){return(e("core/editor").getEditedPostAttribute("meta")||[])[t]};return{url:t("_links_to"),newTab:"_blank"===t("_links_to_target")}})),Object(a.withDispatch)((function(e){return{onUpdateLink:function(t){e("core/editor").editPost({meta:{_links_to:t}})},onUpdateNewTab:function(t){e("core/editor").editPost({meta:{_links_to_target:t?"_blank":""}})}}})),o.withInstanceId])(h);Object(u.registerPlugin)("page-links-to",{render:y})}]);
{js → dist}/clipboard.min.js RENAMED
File without changes
dist/meta-box.asset.php ADDED
@@ -0,0 +1 @@
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '0ffa12d06f2555db543d975120a34ee6');
dist/meta-box.js ADDED
@@ -0,0 +1 @@
1
+ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=9)}({9:function(e,t){jQuery((function(e){var t=e("#cws-links-to-custom-section"),n=e("input[type=radio]","#page-links-to");n.filter('input[value="wp"]').prop("checked")&&t.fadeTo(1,0).hide(),n.change((function(){"wp"===e(this).val()?t.fadeTo("fast",0,(function(){t.slideUp()})):t.slideDown("fast",(function(){t.fadeTo("fast",1,(function(){var t=e("#cws-links-to");t.focus().val(t.val())}))}))}))}))}});
dist/new-tab.asset.php ADDED
@@ -0,0 +1 @@
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '291d43f7019b13a0e577f186f8cac368');
dist/new-tab.js ADDED
@@ -0,0 +1 @@
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=10)}({10:function(e,t){var r,n;r=document,n=function(e){var t=/#new_tab#x2F;;"A"===e.tagName&&t.test(e.getAttribute("href"))&&(e.setAttribute("target","_blank"),e.setAttribute("href",e.getAttribute("href").replace(t,"")))},r.addEventListener("click",(function(e){return n(e.target)})),r.addEventListener("DOMContentLoaded",(function(){for(var e=r.getElementsByTagName("A"),t=0;t<e.length;t++)n(e[t])}))}});
dist/quick-add.asset.php ADDED
@@ -0,0 +1 @@
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a0253c7b8ec969db2f2e6abbf24068b6');
dist/quick-add.css ADDED
@@ -0,0 +1 @@
1
+ #plt-quick-add .footer{margin:0 -15px -15px -15px;border-top:1px solid #dfdfdf;padding:15px;text-align:right;display:-webkit-box;display:flex}#plt-quick-add .footer a{text-decoration:none}#plt-quick-add .footer div.messages{text-align:left;margin-right:auto}#plt-quick-add .footer div.messages p{margin:0;line-height:2em}#plt-quick-add .footer input[type=submit]{margin-left:15px}#plt-quick-add .footer input[name=plt-quick-add-publish]{-webkit-box-ordinal-group:3;order:2}#plt-quick-add .content{padding-bottom:20px;text-align:right}#plt-quick-add p.short-url-message{margin:15px auto 0 auto;font-style:italic;max-width:300px;text-align:center;padding:5px;background:#f5f5f5;box-shadow:0px 5px 15px 0px rgba(0,0,0,.1)}#plt-quick-add label{font-size:14px;display:-webkit-box;display:flex;text-align:left;-webkit-box-pack:justify;justify-content:space-between;-webkit-box-align:center;align-items:center}#plt-quick-add label>span{font-weight:600;margin-right:15px}#plt-quick-add label>*{font-weight:400}#plt-quick-add code{margin-left:20px}.plt-post-info{opacity:.3}.wp-list-table tr:hover .plt-post-info{opacity:1}a.plt-post-state-link span.url{display:none}a.plt-post-state-link:hover span.url{display:inline}.plt-links-to{padding:5px 10px 0 10px;line-height:24px;color:#666}#cws-links-to-custom-section{box-sizing:border-box;margin-left:30px}#cws-links-to{width:75%}
dist/quick-add.js ADDED
@@ -0,0 +1 @@
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=6)}({6:function(e,t,n){n(7),e.exports=n(8)},7:function(e,t){jQuery((function(e){if(void 0!==window.pltVars){var t=e(".plt-copy-short-url");ClipboardJS.isSupported()?t.click((function(e){return e.preventDefault()})):t.hide(),e(".plt-links-to button").click((function(t){e("#cws-links-to").focus()}));var n=new ClipboardJS(".plt-copy-short-url"),r=window.pltVars,o=r.copied,i=r.browserNoSupportCopying;n.on("success",(function(t){var n=e(t.trigger);n.text(o),setTimeout((function(){return n.text(n.data("original-text"))}),4e3)})),n.on("error",(function(n){e(n.trigger).text(i),setTimeout((function(){return t.hide()}),4e3)}))}})),jQuery((function(e){var t=e("#plt-quick-add"),n=t.find("form:first"),r=e("#plt-quick-add-save"),o=e("#plt-quick-add-publish"),i=e('a[href$="post_type=page&page=plt-add-page-link"], a[href$="#new-page-link"]'),l=t.find(".messages"),a=t.find(".short-url-message"),u=t.find('[name="title"]'),c=t.find('[name="url"]'),p=t.find('[name="slug"]'),d=t.find('[name="plt_nonce"]').val(),f=p.prop("placeholder"),s=window.pltVars.fancyUrls,g=function(e){return function(){return t.dialog(e)}},v=g("isOpen"),b=g("open"),h=g("close"),y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().replace(/\s+/g,"-").replace(/-{2,}/g,"-").replace(/[^a-z0-9-]/,"").replace(/-#x2F;,"").replace(/^-/,"")},k=function(t,n){var r=function(t){var n=e("<p>".concat(t,"</p>"));return l.append(n),n}(t);return setTimeout((function(){return r.fadeOut()}),n),r},w=function(){var e=y(u.val()),t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().replace(/\s+/g,"-").replace(/-{2,}/g,"-").replace(/[^a-z0-9-]/,"").replace(/^-/,"")}(p.val());p.prop("placeholder",e.length?e:f),p.val(t)},m=function(e){return function(t){t.preventDefault(),e()}},_=m((function(){return p.val(y(p.val()))})),x=m((function(){return e=p.prop("placeholder").length>16&&!p.val().length,a.toggle(e);var e})),O=function(){u.val(""),c.val(""),p.val(""),p.prop("placeholder",f),j()},j=function(){return function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.prop("disabled",!e),r.prop("disabled",!e)}(u.val().length&&c.val().length)},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.publish,r=void 0===n||n,o=u.val(),i=c.val(),l=p.val()?p.val():y(o);e.post(ajaxurl,{action:"plt_quick_add",plt_title:o,plt_url:i,plt_slug:l,plt_publish:r?1:0,plt_nonce:d},(function(e){var t=e.data.message;O(),u.focus(),k(t,5e3)}))},C=m((function(){return v()?h():b()})),P=m((function(){return S({publish:!1})})),q=m((function(){return S({publish:!0})}));t.dialog({title:"Add Page Link",dialogClass:"wp-dialog plt-ui-dialog",autoOpen:!1,draggable:!1,width:"auto",modal:!0,resizable:!1,closeOnEscape:!0,position:{my:"center",at:"center",of:window},open:function(){return e(".ui-widget-overlay").bind("click",h)},create:function(){e(".plt-ui-dialog .ui-dialog-titlebar-close").addClass("ui-button"),e(".plt-ui-dialog").css({position:"fixed"})}});var T=function(){v()&&t.dialog("option","position",{my:"center",at:"center",of:window})};e(window).scroll(T).resize(T),s&&(u.keyup(w),u.keyup(x),p.keyup(w),p.keyup(x),n.change(_)),i.click(C),r.click(P),o.click(q),n.submit(q),u.keyup(j),c.keyup(j),n.change(j),O()}))},8:function(e,t,n){e.exports=n.p+"quick-add.css"}});
js/gutenberg.jsx DELETED
@@ -1,144 +0,0 @@
1
- const { PanelRow, TextControl, CheckboxControl } = wp.components;
2
- const { withInstanceId, compose } = wp.compose;
3
- const { withSelect, withDispatch } = wp.data;
4
- const { Fragment, Component } = wp.element;
5
- const { PluginPostStatusInfo } = wp.editPost;
6
- const { registerPlugin } = wp.plugins;
7
-
8
- class LinksTo extends Component {
9
- constructor(props) {
10
- super(props);
11
- this.toggleStatus = this.toggleStatus.bind(this);
12
- this.toggleNewTab = this.toggleNewTab.bind(this);
13
- this.updateLink = this.updateLink.bind(this);
14
- this.state.enabled = this.hasUrl();
15
- }
16
-
17
- state = {
18
- prevUrl: '',
19
- prevNewTab: false,
20
- };
21
-
22
- getUrl() {
23
- return this.props.meta._links_to || '';
24
- }
25
-
26
- getDisplayUrl() {
27
- const { prevUrl } = this.state;
28
- return this.getUrl() || prevUrl;
29
- }
30
-
31
- hasUrl() {
32
- return this.getUrl().length > 0;
33
- }
34
-
35
- opensInNewTab() {
36
- return this.props.meta._links_to_target === '_blank';
37
- }
38
-
39
- enabled() {
40
- return this.state.enabled;
41
- }
42
-
43
- toggleStatus() {
44
- const { prevUrl, prevNewTab } = this.state;
45
-
46
- this.setState(prevState => {
47
- const newState = {
48
- enabled: !prevState.enabled,
49
- };
50
-
51
- if (prevState.enabled) {
52
- newState.prevUrl = this.getUrl();
53
- }
54
-
55
- return newState;
56
- });
57
-
58
- if (this.enabled()) {
59
- // If it was enabled before they clicked, they are disabling it.
60
- this.updateLink(null);
61
- this.updateNewTab(false);
62
-
63
- // Hold on to the previous state, in case they change their mind.
64
- this.setState({
65
- prevUrl: this.getUrl(),
66
- prevNewTab: this.opensInNewTab(),
67
- });
68
- } else {
69
- // If it was disabled before thy clicked, they are enabling it.
70
- // We should restore the previous states of the url and new tab checkbox.
71
- this.updateLink(prevUrl);
72
- this.updateNewTab(prevNewTab);
73
- }
74
- }
75
-
76
- toggleNewTab() {
77
- this.updateNewTab(!this.opensInNewTab());
78
- }
79
-
80
- updateLink(link) {
81
- const { meta, onUpdateLink } = this.props;
82
- onUpdateLink(meta, link);
83
- }
84
-
85
- updateNewTab(enabled) {
86
- const { meta, onUpdateNewTab } = this.props;
87
- onUpdateNewTab(meta, enabled);
88
- }
89
-
90
- render() {
91
- return (
92
- <Fragment>
93
- <PluginPostStatusInfo>
94
- <CheckboxControl
95
- label="Custom Permalink"
96
- checked={this.enabled()}
97
- onChange={this.toggleStatus}
98
- />
99
- </PluginPostStatusInfo>
100
-
101
- {this.enabled() && (
102
- <Fragment>
103
- <PluginPostStatusInfo>
104
- <TextControl
105
- label="Links to"
106
- value={this.getDisplayUrl()}
107
- onChange={this.updateLink}
108
- placeholder="https://"
109
- />
110
- </PluginPostStatusInfo>
111
- <PluginPostStatusInfo>
112
- <CheckboxControl
113
- label="Open in new tab"
114
- checked={this.opensInNewTab()}
115
- onChange={this.toggleNewTab}
116
- />
117
- </PluginPostStatusInfo>
118
- </Fragment>
119
- )}
120
- </Fragment>
121
- );
122
- }
123
- }
124
-
125
- const PageLinksTo = compose([
126
- withSelect(select => ({
127
- meta: select('core/editor').getEditedPostAttribute('meta'),
128
- })),
129
- withDispatch(dispatch => ({
130
- onUpdateLink: (meta, link) => {
131
- dispatch('core/editor').editPost({ meta: { ...meta, _links_to: link } });
132
- },
133
- onUpdateNewTab: (meta, enabled) => {
134
- dispatch('core/editor').editPost({
135
- meta: { ...meta, _links_to_target: enabled ? '_blank' : '' },
136
- });
137
- },
138
- })),
139
- withInstanceId,
140
- ])(LinksTo);
141
-
142
- registerPlugin('page-links-to', {
143
- render: PageLinksTo,
144
- });
js/gutenberg.min.js DELETED
@@ -1,206 +0,0 @@
1
- (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- 'use strict';
3
-
4
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
5
-
6
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
7
-
8
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
-
10
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
11
-
12
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
13
-
14
- var _wp$components = wp.components,
15
- PanelRow = _wp$components.PanelRow,
16
- TextControl = _wp$components.TextControl,
17
- CheckboxControl = _wp$components.CheckboxControl;
18
- var _wp$compose = wp.compose,
19
- withInstanceId = _wp$compose.withInstanceId,
20
- compose = _wp$compose.compose;
21
- var _wp$data = wp.data,
22
- withSelect = _wp$data.withSelect,
23
- withDispatch = _wp$data.withDispatch;
24
- var _wp$element = wp.element,
25
- Fragment = _wp$element.Fragment,
26
- Component = _wp$element.Component;
27
- var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
28
- var registerPlugin = wp.plugins.registerPlugin;
29
-
30
- var LinksTo = function (_Component) {
31
- _inherits(LinksTo, _Component);
32
-
33
- function LinksTo(props) {
34
- _classCallCheck(this, LinksTo);
35
-
36
- var _this = _possibleConstructorReturn(this, (LinksTo.__proto__ || Object.getPrototypeOf(LinksTo)).call(this, props));
37
-
38
- _this.state = {
39
- prevUrl: '',
40
- prevNewTab: false
41
- };
42
-
43
- _this.toggleStatus = _this.toggleStatus.bind(_this);
44
- _this.toggleNewTab = _this.toggleNewTab.bind(_this);
45
- _this.updateLink = _this.updateLink.bind(_this);
46
- _this.state.enabled = _this.hasUrl();
47
- return _this;
48
- }
49
-
50
- _createClass(LinksTo, [{
51
- key: 'getUrl',
52
- value: function getUrl() {
53
- return this.props.meta._links_to || '';
54
- }
55
- }, {
56
- key: 'getDisplayUrl',
57
- value: function getDisplayUrl() {
58
- var prevUrl = this.state.prevUrl;
59
-
60
- return this.getUrl() || prevUrl;
61
- }
62
- }, {
63
- key: 'hasUrl',
64
- value: function hasUrl() {
65
- return this.getUrl().length > 0;
66
- }
67
- }, {
68
- key: 'opensInNewTab',
69
- value: function opensInNewTab() {
70
- return this.props.meta._links_to_target === '_blank';
71
- }
72
- }, {
73
- key: 'enabled',
74
- value: function enabled() {
75
- return this.state.enabled;
76
- }
77
- }, {
78
- key: 'toggleStatus',
79
- value: function toggleStatus() {
80
- var _this2 = this;
81
-
82
- var _state = this.state,
83
- prevUrl = _state.prevUrl,
84
- prevNewTab = _state.prevNewTab;
85
-
86
-
87
- this.setState(function (prevState) {
88
- var newState = {
89
- enabled: !prevState.enabled
90
- };
91
-
92
- if (prevState.enabled) {
93
- newState.prevUrl = _this2.getUrl();
94
- }
95
-
96
- return newState;
97
- });
98
-
99
- if (this.enabled()) {
100
- // If it was enabled before they clicked, they are disabling it.
101
- this.updateLink(null);
102
- this.updateNewTab(false);
103
-
104
- // Hold on to the previous state, in case they change their mind.
105
- this.setState({
106
- prevUrl: this.getUrl(),
107
- prevNewTab: this.opensInNewTab()
108
- });
109
- } else {
110
- // If it was disabled before thy clicked, they are enabling it.
111
- // We should restore the previous states of the url and new tab checkbox.
112
- this.updateLink(prevUrl);
113
- this.updateNewTab(prevNewTab);
114
- }
115
- }
116
- }, {
117
- key: 'toggleNewTab',
118
- value: function toggleNewTab() {
119
- this.updateNewTab(!this.opensInNewTab());
120
- }
121
- }, {
122
- key: 'updateLink',
123
- value: function updateLink(link) {
124
- var _props = this.props,
125
- meta = _props.meta,
126
- onUpdateLink = _props.onUpdateLink;
127
-
128
- onUpdateLink(meta, link);
129
- }
130
- }, {
131
- key: 'updateNewTab',
132
- value: function updateNewTab(enabled) {
133
- var _props2 = this.props,
134
- meta = _props2.meta,
135
- onUpdateNewTab = _props2.onUpdateNewTab;
136
-
137
- onUpdateNewTab(meta, enabled);
138
- }
139
- }, {
140
- key: 'render',
141
- value: function render() {
142
- return React.createElement(
143
- Fragment,
144
- null,
145
- React.createElement(
146
- PluginPostStatusInfo,
147
- null,
148
- React.createElement(CheckboxControl, {
149
- label: 'Custom Permalink',
150
- checked: this.enabled(),
151
- onChange: this.toggleStatus
152
- })
153
- ),
154
- this.enabled() && React.createElement(
155
- Fragment,
156
- null,
157
- React.createElement(
158
- PluginPostStatusInfo,
159
- null,
160
- React.createElement(TextControl, {
161
- label: 'Links to',
162
- value: this.getDisplayUrl(),
163
- onChange: this.updateLink,
164
- placeholder: 'https://'
165
- })
166
- ),
167
- React.createElement(
168
- PluginPostStatusInfo,
169
- null,
170
- React.createElement(CheckboxControl, {
171
- label: 'Open in new tab',
172
- checked: this.opensInNewTab(),
173
- onChange: this.toggleNewTab
174
- })
175
- )
176
- )
177
- );
178
- }
179
- }]);
180
-
181
- return LinksTo;
182
- }(Component);
183
-
184
- var PageLinksTo = compose([withSelect(function (select) {
185
- return {
186
- meta: select('core/editor').getEditedPostAttribute('meta')
187
- };
188
- }), withDispatch(function (dispatch) {
189
- return {
190
- onUpdateLink: function onUpdateLink(meta, link) {
191
- dispatch('core/editor').editPost({ meta: _extends({}, meta, { _links_to: link }) });
192
- },
193
- onUpdateNewTab: function onUpdateNewTab(meta, enabled) {
194
- dispatch('core/editor').editPost({
195
- meta: _extends({}, meta, { _links_to_target: enabled ? '_blank' : '' })
196
- });
197
- }
198
- };
199
- }), withInstanceId])(LinksTo);
200
-
201
- registerPlugin('page-links-to', {
202
- render: PageLinksTo
203
- });
204
-
205
- },{}]},{},[1])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('#cws-links-to-custom-section');
3
- const input = $('input[type=radio]', '#page-links-to');
4
-
5
- if (input.filter('input[value="wp"]').prop('checked')) {
6
- section.fadeTo(1, 0).hide();
7
- }
8
-
9
- input.change(function() {
10
- const $this = $(this);
11
-
12
- if ($this.val() === 'wp') {
13
- section.fadeTo('fast', 0, () => {
14
- section.slideUp();
15
- });
16
- } else {
17
- section.slideDown('fast', () => {
18
- section.fadeTo('fast', 1, () => {
19
- const $linksTo = $('#cws-links-to');
20
- $linksTo.focus().val($linksTo.val());
21
- });
22
- });
23
- }
24
- });
25
- });
js/meta-box.min.js DELETED
@@ -1,31 +0,0 @@
1
- (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- 'use strict';
3
-
4
- jQuery(function ($) {
5
- var section = $('#cws-links-to-custom-section');
6
- var input = $('input[type=radio]', '#page-links-to');
7
-
8
- if (input.filter('input[value="wp"]').prop('checked')) {
9
- section.fadeTo(1, 0).hide();
10
- }
11
-
12
- input.change(function () {
13
- var $this = $(this);
14
-
15
- if ($this.val() === 'wp') {
16
- section.fadeTo('fast', 0, function () {
17
- section.slideUp();
18
- });
19
- } else {
20
- section.slideDown('fast', function () {
21
- section.fadeTo('fast', 1, function () {
22
- var $linksTo = $('#cws-links-to');
23
- $linksTo.focus().val($linksTo.val());
24
- });
25
- });
26
- }
27
- });
28
- });
29
-
30
- },{}]},{},[1])
31
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXB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aW9uLnNsaWRlVXAoKTtcblx0XHRcdH0pO1xuXHRcdH0gZWxzZSB7XG5cdFx0XHRzZWN0aW9uLnNsaWRlRG93bignZmFzdCcsICgpID0+IHtcblx0XHRcdFx0c2VjdGlvbi5mYWRlVG8oJ2Zhc3QnLCAxLCAoKSA9PiB7XG5cdFx0XHRcdFx0Y29uc3QgJGxpbmtzVG8gPSAkKCcjY3dzLWxpbmtzLXRvJyk7XG5cdFx0XHRcdFx0JGxpbmtzVG8uZm9jdXMoKS52YWwoJGxpbmtzVG8udmFsKCkpO1xuXHRcdFx0XHR9KTtcblx0XHRcdH0pO1xuXHRcdH1cblx0fSk7XG59KTtcbiJdfQ==
js/new-tab.jsx DELETED
@@ -1,21 +0,0 @@
1
- (d => {
2
- // Makes an anchor element open in a new tab.
3
- const newTab = el => {
4
- const newTabRegex = /#new_tab#x2F;;
5
- if (el.tagName === 'A' && newTabRegex.test(el.getAttribute('href'))) {
6
- el.setAttribute('target', '_blank');
7
- el.setAttribute('href', el.getAttribute('href').replace(newTabRegex, ''));
8
- }
9
- };
10
-
11
- // Immediately attach a click handler.
12
- d.addEventListener('click', e => newTab(e.target));
13
-
14
- // On page load, convert any existing new tab links.
15
- d.addEventListener('DOMContentLoaded', () => {
16
- const anchors = d.getElementsByTagName('A');
17
- for (let i = 0; i < anchors.length; i++) {
18
- newTab(anchors[i]);
19
- }
20
- });
21
- })(document);
js/new-tab.min.js DELETED
@@ -1,29 +0,0 @@
1
- (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- 'use strict';
3
-
4
- (function (d) {
5
- // Makes an anchor element open in a new tab.
6
- var newTab = function newTab(el) {
7
- var newTabRegex = /#new_tab#x2F;;
8
- if (el.tagName === 'A' && newTabRegex.test(el.getAttribute('href'))) {
9
- el.setAttribute('target', '_blank');
10
- el.setAttribute('href', el.getAttribute('href').replace(newTabRegex, ''));
11
- }
12
- };
13
-
14
- // Immediately attach a click handler.
15
- d.addEventListener('click', function (e) {
16
- return newTab(e.target);
17
- });
18
-
19
- // On page load, convert any existing new tab links.
20
- d.addEventListener('DOMContentLoaded', function () {
21
- var anchors = d.getElementsByTagName('A');
22
- for (var i = 0; i < anchors.length; i++) {
23
- newTab(anchors[i]);
24
- }
25
- });
26
- })(document);
27
-
28
- },{}]},{},[1])
29
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJqcy9uZXctdGFiLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0FDQUEsQ0FBQyxhQUFLO0FBQ0w7QUFDQSxLQUFNLFNBQVMsU0FBVCxNQUFTLEtBQU07QUFDcEIsTUFBTSxjQUFjLFdBQXBCO0FBQ0EsTUFBSSxHQUFHLE9BQUgsS0FBZSxHQUFmLElBQXNCLFlBQVksSUFBWixDQUFpQixHQUFHLFlBQUgsQ0FBZ0IsTUFBaEIsQ0FBakIsQ0FBMUIsRUFBcUU7QUFDcEUsTUFBRyxZQUFILENBQWdCLFFBQWhCLEVBQTBCLFFBQTFCO0FBQ0EsTUFBRyxZQUFILENBQWdCLE1BQWhCLEVBQXdCLEdBQUcsWUFBSCxDQUFnQixNQUFoQixFQUF3QixPQUF4QixDQUFnQyxXQUFoQyxFQUE2QyxFQUE3QyxDQUF4QjtBQUNBO0FBQ0QsRUFORDs7QUFRQTtBQUNBLEdBQUUsZ0JBQUYsQ0FBbUIsT0FBbkIsRUFBNEI7Q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PiB7XG5cdC8vIE1ha2VzIGFuIGFuY2hvciBlbGVtZW50IG9wZW4gaW4gYSBuZXcgdGFiLlxuXHRjb25zdCBuZXdUYWIgPSBlbCA9PiB7XG5cdFx0Y29uc3QgbmV3VGFiUmVnZXggPSAvI25ld190YWIkLztcblx0XHRpZiAoZWwudGFnTmFtZSA9PT0gJ0EnICYmIG5ld1RhYlJlZ2V4LnRlc3QoZWwuZ2V0QXR0cmlidXRlKCdocmVmJykpKSB7XG5cdFx0XHRlbC5zZXRBdHRyaWJ1dGUoJ3RhcmdldCcsICdfYmxhbmsnKTtcblx0XHRcdGVsLnNldEF0dHJpYnV0ZSgnaHJlZicsIGVsLmdldEF0dHJpYnV0ZSgnaHJlZicpLnJlcGxhY2UobmV3VGFiUmVnZXgsICcnKSk7XG5cdFx0fVxuXHR9O1xuXG5cdC8vIEltbWVkaWF0ZWx5IGF0dGFjaCBhIGNsaWNrIGhhbmRsZXIuXG5cdGQuYWRkRXZlbnRMaXN0ZW5lcignY2xpY2snLCBlID0+IG5ld1RhYihlLnRhcmdldCkpO1xuXG5cdC8vIE9uIHBhZ2UgbG9hZCwgY29udmVydCBhbnkgZXhpc3RpbmcgbmV3IHRhYiBsaW5rcy5cblx0ZC5hZGRFdmVudExpc3RlbmVyKCdET01Db250ZW50TG9hZGVkJywgKCkgPT4ge1xuXHRcdGNvbnN0IGFuY2hvcnMgPSBkLmdldEVsZW1lbnRzQnlUYWdOYW1lKCdBJyk7XG5cdFx0Zm9yIChsZXQgaSA9IDA7IGkgPCBhbmNob3JzLmxlbmd0aDsgaSsrKSB7XG5cdFx0XHRuZXdUYWIoYW5jaG9yc1tpXSk7XG5cdFx0fVxuXHR9KTtcbn0pKGRvY3VtZW50KTtcbiJdfQ==
js/quick-add.jsx DELETED
@@ -1,220 +0,0 @@
1
- // Copy to clipboard.
2
- jQuery($ => {
3
- if (undefined === window.pltVars) {
4
- return;
5
- }
6
-
7
- const $clipboardLinks = $('.plt-copy-short-url');
8
- if (ClipboardJS.isSupported()) {
9
- $clipboardLinks.click(e => e.preventDefault());
10
- } else {
11
- $clipboardLinks.hide();
12
- }
13
-
14
- $('.plt-links-to button').click(e => {
15
- $('#cws-links-to').focus();
16
- });
17
-
18
- const clipboard = new ClipboardJS('.plt-copy-short-url');
19
- const { copied, browserNoSupportCopying } = window.pltVars;
20
-
21
- clipboard.on('success', e => {
22
- const $trigger = $(e.trigger);
23
-
24
- $trigger.text(copied);
25
- setTimeout(() => $trigger.text($trigger.data('original-text')), 4000);
26
- });
27
-
28
- clipboard.on('error', e => {
29
- const $trigger = $(e.trigger);
30
-
31
- $trigger.text(browserNoSupportCopying);
32
- setTimeout(() => $clipboardLinks.hide(), 4000);
33
- });
34
- });
35
-
36
- // Quick Add.
37
- jQuery($ => {
38
- const $modal = $('#plt-quick-add');
39
- const $form = $modal.find('form:first');
40
- const $saveDraft = $('#plt-quick-add-save');
41
- const $publish = $('#plt-quick-add-publish');
42
- const $menuItem = $(
43
- 'a[href$="post_type=page&page=plt-add-page-link"], a[href$="#new-page-link"]'
44
- );
45
- const $messages = $modal.find('.messages');
46
- const $shortUrlMessage = $modal.find('.short-url-message');
47
- const $title = $modal.find('[name="title"]');
48
- const $url = $modal.find('[name="url"]');
49
- const $slug = $modal.find('[name="slug"]');
50
- const nonce = $modal.find('[name="plt_nonce"]').val();
51
- const defaultSlugPlaceholder = $slug.prop('placeholder');
52
- const fancyUrls = window.pltVars.fancyUrls;
53
- const [yes, no] = [true, false];
54
-
55
- const modalAction = action => () => $modal.dialog(action);
56
- const isOpen = modalAction('isOpen');
57
- const open = modalAction('open');
58
- const close = modalAction('close');
59
-
60
- const makeSlugFromTitle = (title = '') => {
61
- return title
62
- .toLowerCase()
63
- .replace(/\s+/g, '-')
64
- .replace(/-{2,}/g, '-')
65
- .replace(/[^a-z0-9-]/, '')
66
- .replace(/-#x2F;, '')
67
- .replace(/^-/, '');
68
- };
69
-
70
- const makeSlugFromSlug = (slug = '') => {
71
- return slug
72
- .toLowerCase()
73
- .replace(/\s+/g, '-')
74
- .replace(/-{2,}/g, '-')
75
- .replace(/[^a-z0-9-]/, '')
76
- .replace(/^-/, '');
77
- };
78
-
79
- const addMessage = message => {
80
- const $newMessage = $(`<p>${message}</p>`);
81
- $messages.append($newMessage);
82
- return $newMessage;
83
- };
84
-
85
- const addExpiringMessage = (message, duration) => {
86
- const $newMessage = addMessage(message);
87
- setTimeout(() => $newMessage.fadeOut(), duration);
88
- return $newMessage;
89
- };
90
-
91
- const displayShortUrlMessage = show => $shortUrlMessage.toggle(show);
92
-
93
- const updateSlug = () => {
94
- const placeholderSlug = makeSlugFromTitle($title.val());
95
- const slug = makeSlugFromSlug($slug.val());
96
-
97
- $slug.prop(
98
- 'placeholder',
99
- placeholderSlug.length ? placeholderSlug : defaultSlugPlaceholder
100
- );
101
- $slug.val(slug);
102
- };
103
-
104
- const noDefaultEvent = func => e => {
105
- e.preventDefault();
106
- func();
107
- };
108
-
109
- const hardUpdateSlug = noDefaultEvent(() =>
110
- $slug.val(makeSlugFromTitle($slug.val()))
111
- );
112
-
113
- const handleShowSlugMessage = noDefaultEvent(() =>
114
- displayShortUrlMessage(
115
- $slug.prop('placeholder').length > 16 && !$slug.val().length
116
- )
117
- );
118
-
119
- const reset = () => {
120
- $title.val('');
121
- $url.val('');
122
- $slug.val('');
123
- $slug.prop('placeholder', defaultSlugPlaceholder);
124
- maybeUpdateButtons();
125
- };
126
-
127
- const updateButtons = (enabled = yes) => {
128
- $publish.prop('disabled', !enabled);
129
- $saveDraft.prop('disabled', !enabled);
130
- };
131
-
132
- const maybeUpdateButtons = () =>
133
- updateButtons($title.val().length && $url.val().length);
134
-
135
- const submit = ({ publish = yes } = {}) => {
136
- const title = $title.val();
137
- const url = $url.val();
138
- let slug = $slug.val() ? $slug.val() : makeSlugFromTitle(title);
139
-
140
- $.post(
141
- ajaxurl,
142
- {
143
- action: 'plt_quick_add',
144
- plt_title: title,
145
- plt_url: url,
146
- plt_slug: slug,
147
- plt_publish: publish ? 1 : 0,
148
- plt_nonce: nonce,
149
- },
150
- response => {
151
- const { message } = response.data;
152
- const delay = 5000;
153
- reset();
154
- $title.focus();
155
- addExpiringMessage(message, delay);
156
- }
157
- );
158
- };
159
-
160
- const clickMenuItem = noDefaultEvent(() => (isOpen() ? close() : open()));
161
- const saveDraft = noDefaultEvent(() => submit({ publish: no }));
162
- const publish = noDefaultEvent(() => submit({ publish: yes }));
163
-
164
- $modal.dialog({
165
- title: 'Add Page Link',
166
- dialogClass: 'wp-dialog plt-ui-dialog',
167
- autoOpen: no,
168
- draggable: no,
169
- width: 'auto',
170
- modal: yes,
171
- resizable: no,
172
- closeOnEscape: yes,
173
- position: {
174
- my: 'center',
175
- at: 'center',
176
- of: window,
177
- },
178
- open: () => $('.ui-widget-overlay').bind('click', close),
179
- create: () => {
180
- $('.plt-ui-dialog .ui-dialog-titlebar-close').addClass('ui-button');
181
- $('.plt-ui-dialog').css({ position: 'fixed' });
182
- },
183
- });
184
-
185
- const repositionModal = () => {
186
- if (!isOpen()) {
187
- return;
188
- }
189
-
190
- $modal.dialog('option', 'position', {
191
- my: 'center',
192
- at: 'center',
193
- of: window,
194
- });
195
- };
196
-
197
- $(window)
198
- .scroll(repositionModal)
199
- .resize(repositionModal);
200
-
201
- // Events.
202
- if (fancyUrls) {
203
- $title.keyup(updateSlug);
204
- $title.keyup(handleShowSlugMessage);
205
- $slug.keyup(updateSlug);
206
- $slug.keyup(handleShowSlugMessage);
207
- $form.change(hardUpdateSlug);
208
- }
209
-
210
- $menuItem.click(clickMenuItem);
211
- $saveDraft.click(saveDraft);
212
- $publish.click(publish);
213
- $form.submit(publish);
214
- $title.keyup(maybeUpdateButtons);
215
- $url.keyup(maybeUpdateButtons);
216
- $form.change(maybeUpdateButtons);
217
-
218
- // Init.
219
- reset();
220
- });
js/quick-add.min.js DELETED
@@ -1,243 +0,0 @@
1
- (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- 'use strict';
3
-
4
- // Copy to clipboard.
5
- jQuery(function ($) {
6
- if (undefined === window.pltVars) {
7
- return;
8
- }
9
-
10
- var $clipboardLinks = $('.plt-copy-short-url');
11
- if (ClipboardJS.isSupported()) {
12
- $clipboardLinks.click(function (e) {
13
- return e.preventDefault();
14
- });
15
- } else {
16
- $clipboardLinks.hide();
17
- }
18
-
19
- $('.plt-links-to button').click(function (e) {
20
- $('#cws-links-to').focus();
21
- });
22
-
23
- var clipboard = new ClipboardJS('.plt-copy-short-url');
24
- var _window$pltVars = window.pltVars,
25
- copied = _window$pltVars.copied,
26
- browserNoSupportCopying = _window$pltVars.browserNoSupportCopying;
27
-
28
-
29
- clipboard.on('success', function (e) {
30
- var $trigger = $(e.trigger);
31
-
32
- $trigger.text(copied);
33
- setTimeout(function () {
34
- return $trigger.text($trigger.data('original-text'));
35
- }, 4000);
36
- });
37
-
38
- clipboard.on('error', function (e) {
39
- var $trigger = $(e.trigger);
40
-
41
- $trigger.text(browserNoSupportCopying);
42
- setTimeout(function () {
43
- return $clipboardLinks.hide();
44
- }, 4000);
45
- });
46
- });
47
-
48
- // Quick Add.
49
- jQuery(function ($) {
50
- var $modal = $('#plt-quick-add');
51
- var $form = $modal.find('form:first');
52
- var $saveDraft = $('#plt-quick-add-save');
53
- var $publish = $('#plt-quick-add-publish');
54
- var $menuItem = $('a[href$="post_type=page&page=plt-add-page-link"], a[href$="#new-page-link"]');
55
- var $messages = $modal.find('.messages');
56
- var $shortUrlMessage = $modal.find('.short-url-message');
57
- var $title = $modal.find('[name="title"]');
58
- var $url = $modal.find('[name="url"]');
59
- var $slug = $modal.find('[name="slug"]');
60
- var nonce = $modal.find('[name="plt_nonce"]').val();
61
- var defaultSlugPlaceholder = $slug.prop('placeholder');
62
- var fancyUrls = window.pltVars.fancyUrls;
63
- var yes = true,
64
- no = false;
65
-
66
-
67
- var modalAction = function modalAction(action) {
68
- return function () {
69
- return $modal.dialog(action);
70
- };
71
- };
72
- var isOpen = modalAction('isOpen');
73
- var open = modalAction('open');
74
- var close = modalAction('close');
75
-
76
- var makeSlugFromTitle = function makeSlugFromTitle() {
77
- var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
78
-
79
- return title.toLowerCase().replace(/\s+/g, '-').replace(/-{2,}/g, '-').replace(/[^a-z0-9-]/, '').replace(/-#x2F;, '').replace(/^-/, '');
80
- };
81
-
82
- var makeSlugFromSlug = function makeSlugFromSlug() {
83
- var slug = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
84
-
85
- return slug.toLowerCase().replace(/\s+/g, '-').replace(/-{2,}/g, '-').replace(/[^a-z0-9-]/, '').replace(/^-/, '');
86
- };
87
-
88
- var addMessage = function addMessage(message) {
89
- var $newMessage = $('<p>' + message + '</p>');
90
- $messages.append($newMessage);
91
- return $newMessage;
92
- };
93
-
94
- var addExpiringMessage = function addExpiringMessage(message, duration) {
95
- var $newMessage = addMessage(message);
96
- setTimeout(function () {
97
- return $newMessage.fadeOut();
98
- }, duration);
99
- return $newMessage;
100
- };
101
-
102
- var displayShortUrlMessage = function displayShortUrlMessage(show) {
103
- return $shortUrlMessage.toggle(show);
104
- };
105
-
106
- var updateSlug = function updateSlug() {
107
- var placeholderSlug = makeSlugFromTitle($title.val());
108
- var slug = makeSlugFromSlug($slug.val());
109
-
110
- $slug.prop('placeholder', placeholderSlug.length ? placeholderSlug : defaultSlugPlaceholder);
111
- $slug.val(slug);
112
- };
113
-
114
- var noDefaultEvent = function noDefaultEvent(func) {
115
- return function (e) {
116
- e.preventDefault();
117
- func();
118
- };
119
- };
120
-
121
- var hardUpdateSlug = noDefaultEvent(function () {
122
- return $slug.val(makeSlugFromTitle($slug.val()));
123
- });
124
-
125
- var handleShowSlugMessage = noDefaultEvent(function () {
126
- return displayShortUrlMessage($slug.prop('placeholder').length > 16 && !$slug.val().length);
127
- });
128
-
129
- var reset = function reset() {
130
- $title.val('');
131
- $url.val('');
132
- $slug.val('');
133
- $slug.prop('placeholder', defaultSlugPlaceholder);
134
- maybeUpdateButtons();
135
- };
136
-
137
- var updateButtons = function updateButtons() {
138
- var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : yes;
139
-
140
- $publish.prop('disabled', !enabled);
141
- $saveDraft.prop('disabled', !enabled);
142
- };
143
-
144
- var maybeUpdateButtons = function maybeUpdateButtons() {
145
- return updateButtons($title.val().length && $url.val().length);
146
- };
147
-
148
- var submit = function submit() {
149
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
150
- _ref$publish = _ref.publish,
151
- publish = _ref$publish === undefined ? yes : _ref$publish;
152
-
153
- var title = $title.val();
154
- var url = $url.val();
155
- var slug = $slug.val() ? $slug.val() : makeSlugFromTitle(title);
156
-
157
- $.post(ajaxurl, {
158
- action: 'plt_quick_add',
159
- plt_title: title,
160
- plt_url: url,
161
- plt_slug: slug,
162
- plt_publish: publish ? 1 : 0,
163
- plt_nonce: nonce
164
- }, function (response) {
165
- var message = response.data.message;
166
-
167
- var delay = 5000;
168
- reset();
169
- $title.focus();
170
- addExpiringMessage(message, delay);
171
- });
172
- };
173
-
174
- var clickMenuItem = noDefaultEvent(function () {
175
- return isOpen() ? close() : open();
176
- });
177
- var saveDraft = noDefaultEvent(function () {
178
- return submit({ publish: no });
179
- });
180
- var publish = noDefaultEvent(function () {
181
- return submit({ publish: yes });
182
- });
183
-
184
- $modal.dialog({
185
- title: 'Add Page Link',
186
- dialogClass: 'wp-dialog plt-ui-dialog',
187
- autoOpen: no,
188
- draggable: no,
189
- width: 'auto',
190
- modal: yes,
191
- resizable: no,
192
- closeOnEscape: yes,
193
- position: {
194
- my: 'center',
195
- at: 'center',
196
- of: window
197
- },
198
- open: function open() {
199
- return $('.ui-widget-overlay').bind('click', close);
200
- },
201
- create: function create() {
202
- $('.plt-ui-dialog .ui-dialog-titlebar-close').addClass('ui-button');
203
- $('.plt-ui-dialog').css({ position: 'fixed' });
204
- }
205
- });
206
-
207
- var repositionModal = function repositionModal() {
208
- if (!isOpen()) {
209
- return;
210
- }
211
-
212
- $modal.dialog('option', 'position', {
213
- my: 'center',
214
- at: 'center',
215
- of: window
216
- });
217
- };
218
-
219
- $(window).scroll(repositionModal).resize(repositionModal);
220
-
221
- // Events.
222
- if (fancyUrls) {
223
- $title.keyup(updateSlug);
224
- $title.keyup(handleShowSlugMessage);
225
- $slug.keyup(updateSlug);
226
- $slug.keyup(handleShowSlugMessage);
227
- $form.change(hardUpdateSlug);
228
- }
229
-
230
- $menuItem.click(clickMenuItem);
231
- $saveDraft.click(saveDraft);
232
- $publish.click(publish);
233
- $form.submit(publish);
234
- $title.keyup(maybeUpdateButtons);
235
- $url.keyup(maybeUpdateButtons);
236
- $form.change(maybeUpdateButtons);
237
-
238
- // Init.
239
- reset();
240
- });
241
-
242
- },{}]},{},[1])
243
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJqcy9xdWljay1hZGQuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7QUNBQTtBQUNBLE9BQU8sYUFBSztBQUNYLEtBQUksY0FBYyxPQUFPLE9BQXpCLEVBQWtDO0FBQ2pDO0FBQ0E7O0FBRUQsS0FBTSxrQkFBa0IsRUFBRSxxQkFBRixDQUF4QjtBQUNBLEtBQUksWUFBWSxXQUFaLEVBQUosRUFBK0I7QUFDOUIsa0JBQWdCLEtBQWhCLENBQXNCO0FBQUEsVUFBSyxFQUFFLGNBQUYsRUFBTDtB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ZFVwZGF0ZVNsdWcpO1xuXHR9XG5cblx0JG1lbnVJdGVtLmNsaWNrKGNsaWNrTWVudUl0ZW0pO1xuXHQkc2F2ZURyYWZ0LmNsaWNrKHNhdmVEcmFmdCk7XG5cdCRwdWJsaXNoLmNsaWNrKHB1Ymxpc2gpO1xuXHQkZm9ybS5zdWJtaXQocHVibGlzaCk7XG5cdCR0aXRsZS5rZXl1cChtYXliZVVwZGF0ZUJ1dHRvbnMpO1xuXHQkdXJsLmtleXVwKG1heWJlVXBkYXRlQnV0dG9ucyk7XG5cdCRmb3JtLmNoYW5nZShtYXliZVVwZGF0ZUJ1dHRvbnMpO1xuXG5cdC8vIEluaXQuXG5cdHJlc2V0KCk7XG59KTtcbiJdfQ==
languages/import.rb DELETED
@@ -1,153 +0,0 @@
1
- #!/usr/bin/ruby
2
- langs = {
3
- 'af' => 'af',
4
- 'ak' => 'ak',
5
- 'ar' => 'ar',
6
- 'as' => 'as',
7
- 'az' => 'az',
8
- 'azb' => 'azb',
9
- 'az_TR' => 'az-tr',
10
- 'ba' => 'ba',
11
- 'bal' => 'bal',
12
- 'bg_BG' => 'bg',
13
- 'bn_BD' => 'bn',
14
- 'bs_BA' => 'bs',
15
- 'ca' => 'ca',
16
- 'ckb' => 'ckb',
17
- 'co' => 'co',
18
- 'cs_CZ' => 'cs',
19
- 'cy' => 'cy',
20
- 'da_DK' => 'da',
21
- 'de_DE' => 'de',
22
- 'dv' => 'dv',
23
- 'el' => 'el',
24
- 'en_US' => 'en',
25
- 'en_CA' => 'en-ca',
26
- 'en_GB' => 'en-gb',
27
- 'eo' => 'eo',
28
- 'es_CL' => 'es-cl',
29
- 'es_MX' => 'es-mx',
30
- 'es_PE' => 'es-pe',
31
- 'es_PR' => 'es-pr',
32
- 'es_VE' => 'es-ve',
33
- 'es_CO' => 'es-co',
34
- 'es_ES' => 'es',
35
- 'et' => 'et',
36
- 'eu' => 'eu',
37
- 'fa_IR' => 'fa',
38
- 'fa_AF' => 'fa-af',
39
- 'fi' => 'fi',
40
- 'fo' => 'fo',
41
- 'fr_FR' => 'fr',
42
- 'fr_BE' => 'fr-be',
43
- 'fy' => 'fy',
44
- 'gd' => 'gd',
45
- 'gl_ES' => 'gl',
46
- 'gn' => 'gn',
47
- 'gsw' => 'gsw',
48
- 'gu_IN' => 'gu',
49
- 'haw_US' => 'haw',
50
- 'haz' => 'haz',
51
- 'he_IL' => 'he',
52
- 'hi_IN' => 'hi',
53
- 'hr' => 'hr',
54
- 'hu_HU' => 'hu',
55
- 'hy' => 'hy',
56
- 'id_ID' => 'id',
57
- 'is_IS' => 'is',
58
- 'it_IT' => 'it',
59
- 'ja' => 'ja',
60
- 'jv_ID' => 'jv',
61
- 'ka_GE' => 'ka',
62
- 'kk' => 'kk',
63
- 'kn' => 'kn',
64
- 'ko_KR' => 'ko',
65
- 'ky_KY' => 'ky',
66
- 'lb_LU' => 'lb',
67
- 'li' => 'li',
68
- 'lo' => 'lo',
69
- 'lt_LT' => 'lt',
70
- 'lv' => 'lv',
71
- 'me_ME' => 'me',
72
- 'mg_MG' => 'mg',
73
- 'mk_MK' => 'mk',
74
- 'ml_IN' => 'ml',
75
- 'ms_MY' => 'ms',
76
- 'my_MM' => 'mya',
77
- 'ne_NP' => 'ne',
78
- 'nb_NO' => 'nb',
79
- 'nl_NL' => 'nl',
80
- 'nl_BE' => 'nl-be',
81
- 'nn_NO' => 'nn',
82
- 'os' => 'os',
83
- 'pa_IN' => 'pa',
84
- 'pl_PL' => 'pl',
85
- 'pt_BR' => 'pt-br',
86
- 'pt_PT' => 'pt',
87
- 'ps' => 'ps',
88
- 'ro_RO' => 'ro',
89
- 'ru_RU' => 'ru',
90
- 'ru_UA' => 'ru-ua',
91
- 'rue' => 'rue',
92
- 'rup_MK' => 'rup',
93
- 'sah' => 'sah',
94
- 'sa_IN' => 'sa-in',
95
- 'sd_PK' => 'sd',
96
- 'si_LK' => 'si',
97
- 'sk_SK' => 'sk',
98
- 'sl_SI' => 'sl',
99
- 'so_SO' => 'so',
100
- 'sq' => 'sq',
101
- 'sr_RS' => 'sr',
102
- 'srd' => 'srd',
103
- 'su_ID' => 'su',
104
- 'sv_SE' => 'sv',
105
- 'sw' => 'sw',
106
- 'ta_IN' => 'ta',
107
- 'ta_LK' => 'ta-lk',
108
- 'te' => 'te',
109
- 'tg' => 'tg',
110
- 'th' => 'th',
111
- 'tl' => 'tl',
112
- 'tr_TR' => 'tr',
113
- 'tt_RU' => 'tt',
114
- 'tuk' => 'tuk',
115
- 'tzm' => 'tzm',
116
- 'ug_CN' => 'ug',
117
- 'uk' => 'uk',
118
- 'ur' => 'ur',
119
- 'uz_UZ' => 'uz',
120
- 'vi' => 'vi',
121
- 'wa' => 'wa',
122
- 'xmf' => 'xmf',
123
- 'zh_CN' => 'zh-cn',
124
- 'zh_HK' => 'zh-hk',
125
- 'zh_TW' => 'zh-tw',
126
- }
127
- reverse_langs = langs.invert
128
- require 'pathname'
129
- require 'open-uri'
130
- plugin = Pathname.new(File.expand_path '../').basename
131
- url_domain = 'http://translate.markjaquith.com'
132
- url_path = '/projects/wordpress-plugins/'
133
- item_url = url_domain + url_path + '%s/%s/default/export-translations?format=%s'
134
- index_url = url_domain + url_path + '%s/'
135
-
136
- formats = []
137
- language_regex = %r{<a href="#{url_path}#{plugin}/([^/]+)/default"}
138
-
139
- open( format index_url, plugin ) do |f|
140
- f.each_line do |l|
141
- if l.match language_regex
142
- lang = l[language_regex, 1]
143
- formats << [reverse_langs[lang], lang]
144
- end
145
- end
146
- end
147
-
148
- formats.each do |l|
149
- ['po', 'mo'].each do |fmt|
150
- `wget -O #{plugin}-#{l[0]}.#{fmt} #{format item_url, plugin, l[1], fmt} 2>/dev/null`
151
- end
152
- `git checkout #{plugin}-#{l[0]}.*` if `git diff #{plugin}-#{l[0]}.po | ack '^[+-][^+-]{2}' | ack -v 'PO-Revision-Date'`.chomp.length === 0
153
- end
package-lock.json DELETED
@@ -1,13777 +0,0 @@
1
- {
2
- "name": "page-links-to",
3
- "version": "3.1.0",
4
- "lockfileVersion": 1,
5
- "requires": true,
6
- "dependencies": {
7
- "@babel/runtime": {
8
- "version": "7.3.1",
9
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.3.1.tgz",
10
- "integrity": "sha512-7jGW8ppV0ant637pIqAcFfQDDH1orEPGJb8aXfUozuCU3QqX7rX4DA8iwrbPrR1hcH0FTTHz47yQnk+bl5xHQA==",
11
- "requires": {
12
- "regenerator-runtime": "^0.12.0"
13
- },
14
- "dependencies": {
15
- "regenerator-runtime": {
16
- "version": "0.12.1",
17
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz",
18
- "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg=="
19
- }
20
- }
21
- },
22
- "@babel/runtime-corejs2": {
23
- "version": "7.0.0-beta.56",
24
- "resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.0.0-beta.56.tgz",
25
- "integrity": "sha512-LE2R7zTLAgaM54y/XdyAMzHERY1lv1cyQll3IvgN2VrTVxdlUBO7t/cHpc5iwqqHI85/VRNfGtQZdO2PecCIqg==",
26
- "requires": {
27
- "core-js": "^2.5.7",
28
- "regenerator-runtime": "^0.12.0"
29
- },
30
- "dependencies": {
31
- "regenerator-runtime": {
32
- "version": "0.12.1",
33
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz",
34
- "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg=="
35
- }
36
- }
37
- },
38
- "@cypress/listr-verbose-renderer": {
39
- "version": "0.4.1",
40
- "resolved": "https://registry.npmjs.org/@cypress/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz",
41
- "integrity": "sha1-p3SS9LEdzHxEajSz4ochr9M8ZCo=",
42
- "dev": true,
43
- "requires": {
44
- "chalk": "^1.1.3",
45
- "cli-cursor": "^1.0.2",
46
- "date-fns": "^1.27.2",
47
- "figures": "^1.7.0"
48
- }
49
- },
50
- "@cypress/xvfb": {
51
- "version": "1.2.4",
52
- "resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz",
53
- "integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==",
54
- "dev": true,
55
- "requires": {
56
- "debug": "^3.1.0",
57
- "lodash.once": "^4.1.1"
58
- },
59
- "dependencies": {
60
- "debug": {
61
- "version": "3.2.6",
62
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
63
- "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
64
- "dev": true,
65
- "requires": {
66
- "ms": "^2.1.1"
67
- }
68
- },
69
- "ms": {
70
- "version": "2.1.1",
71
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
72
- "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
73
- "dev": true
74
- }
75
- }
76
- },
77
- "@icons/material": {
78
- "version": "0.2.4",
79
- "resolved": "https://registry.npmjs.org/@icons/material/-/material-0.2.4.tgz",
80
- "integrity": "sha512-QPcGmICAPbGLGb6F/yNf/KzKqvFx8z5qx3D1yFqVAjoFmXK35EgyW+cJ57Te3CNsmzblwtzakLGFqHPqrfb4Tw=="
81
- },
82
- "@types/q": {
83
- "version": "1.5.2",
84
- "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz",
85
- "integrity": "sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==",
86
- "dev": true
87
- },
88
- "@wordpress/a11y": {
89
- "version": "1.1.3",
90
- "resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-1.1.3.tgz",
91
- "integrity": "sha512-tOR3iog3V3pFgxsCB6oeH9En+wAfdwge4XijCzGwqqd/Nk2hj/A8VAYefktXTTIQW+EfKXm4CN/c1oEhJZmIaA==",
92
- "requires": {
93
- "@babel/runtime-corejs2": "7.0.0-beta.56",
94
- "@wordpress/dom-ready": "^1.2.0"
95
- }
96
- },
97
- "@wordpress/api-fetch": {
98
- "version": "1.1.1",
99
- "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-1.1.1.tgz",
100
- "integrity": "sha512-+9l80mmTlWV8OsFporLTVhW9NR20KgfGRy7LR/lSch2noQfmDxUZRXPAn3QhqCrGUI05w9aaALkrFIB6cLyvwA==",
101
- "requires": {
102
- "@babel/runtime-corejs2": "7.0.0-beta.56",
103
- "@wordpress/hooks": "^1.3.3",
104
- "@wordpress/i18n": "^1.2.3"
105
- }
106
- },
107
- "@wordpress/components": {
108
- "version": "1.1.1",
109
- "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-1.1.1.tgz",
110
- "integrity": "sha512-oNGpKrwvjbZlixYNsNe0fuEj6+F/kyzgW2q/Wj4lCm7DWV5CxJY9SDepuyfuL/UGB+jWERr9dmcXth/KUpjwWg==",
111
- "requires": {
112
- "@babel/runtime": "^7.0.0-beta.52",
113
- "@wordpress/a11y": "^1.1.2",
114
- "@wordpress/api-fetch": "^1.1.0",
115
- "@wordpress/compose": "^1.0.2",
116
- "@wordpress/deprecated": "^1.0.2",
117
- "@wordpress/dom": "^1.0.2",
118
- "@wordpress/element": "^1.0.2",
119
- "@wordpress/hooks": "^1.3.2",
120
- "@wordpress/i18n": "^1.2.2",
121
- "@wordpress/is-shallow-equal": "^1.1.2",
122
- "@wordpress/keycodes": "^1.0.2",
123
- "@wordpress/url": "^1.2.2",
124
- "classnames": "^2.2.5",
125
- "clipboard": "^1.7.1",
126
- "dom-scroll-into-view": "^1.2.1",
127
- "element-closest": "^2.0.2",
128
- "lodash": "^4.17.10",
129
- "memize": "^1.0.5",
130
- "moment": "^2.22.1",
131
- "mousetrap": "^1.6.2",
132
- "react-click-outside": "^2.3.1",
133
- "react-color": "^2.13.4",
134
- "react-datepicker": "^1.4.1",
135
- "rememo": "^3.0.0",
136
- "uuid": "^3.1.0"
137
- },
138
- "dependencies": {
139
- "clipboard": {
140
- "version": "1.7.1",
141
- "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-1.7.1.tgz",
142
- "integrity": "sha1-Ng1taUbpmnof7zleQrqStem1oWs=",
143
- "requires": {
144
- "good-listener": "^1.2.2",
145
- "select": "^1.1.2",
146
- "tiny-emitter": "^2.0.0"
147
- }
148
- }
149
- }
150
- },
151
- "@wordpress/compose": {
152
- "version": "1.0.4",
153
- "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-1.0.4.tgz",
154
- "integrity": "sha512-+lRptVQkEDqG7yCidCqQXFy/z+RT3hPSTQCMquPieP9xdENxy1JFmLsirWjK/A1AiXRA8/hQ6glC4pn9rsQrrw==",
155
- "requires": {
156
- "@babel/runtime-corejs2": "7.0.0-beta.56",
157
- "@wordpress/element": "^1.0.4",
158
- "@wordpress/is-shallow-equal": "^1.1.3",
159
- "lodash": "^4.17.10"
160
- }
161
- },
162
- "@wordpress/data": {
163
- "version": "1.2.1",
164
- "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-1.2.1.tgz",
165
- "integrity": "sha512-UXPmQL+RTlCAkMjd4RuCfT++kvoPAg6u11U+GQchqxMEmCpYM02NfGRxFUI/s4hYi+I9zl5ltrOmqN09x2y6YA==",
166
- "requires": {
167
- "@babel/runtime-corejs2": "7.0.0-beta.56",
168
- "@wordpress/compose": "^1.0.4",
169
- "@wordpress/deprecated": "^1.0.3",
170
- "@wordpress/element": "^1.0.4",
171
- "@wordpress/is-shallow-equal": "^1.1.3",
172
- "@wordpress/redux-routine": "^1.0.0",
173
- "equivalent-key-map": "^0.2.0",
174
- "lodash": "^4.17.10",
175
- "redux": "^3.7.2"
176
- }
177
- },
178
- "@wordpress/deprecated": {
179
- "version": "1.0.3",
180
- "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-1.0.3.tgz",
181
- "integrity": "sha512-7XO1NssUXor1jSB1rQjsXyGzfgk+lJ1oer8pMkjtTuCwIXZZAvThyISrNzmzoKJM2q/ZtosaNxIei1gkm4eI6w==",
182
- "requires": {
183
- "@babel/runtime-corejs2": "7.0.0-beta.56"
184
- }
185
- },
186
- "@wordpress/dom": {
187
- "version": "1.0.3",
188
- "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-1.0.3.tgz",
189
- "integrity": "sha512-dE8P+pDERmx130jpeWCpif2Q2Wsdj/JVp3ebRSYz9OXeBpjyxJNYxxbkz8andW5StR7GNdDfY9AoLe7V33doZw==",
190
- "requires": {
191
- "@babel/runtime-corejs2": "7.0.0-beta.56",
192
- "element-closest": "^2.0.2",
193
- "lodash": "^4.17.10"
194
- }
195
- },
196
- "@wordpress/dom-ready": {
197
- "version": "1.2.0",
198
- "resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-1.2.0.tgz",
199
- "integrity": "sha512-ioQuy28Z3jJWwIVUANYoy83GjGYdy5wS6cmm8kiVIcScu1gYKkw4lbKi2Le9ynfOzHkCDeatMU8g9TX91hgbPw==",
200
- "requires": {
201
- "@babel/runtime-corejs2": "7.0.0-beta.56"
202
- }
203
- },
204
- "@wordpress/element": {
205
- "version": "1.0.4",
206
- "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-1.0.4.tgz",
207
- "integrity": "sha512-56QZ65YtDyjlxz7kAZQNAXqteMWGnKhc90op7fNtl/oTwyjVoZDdJz3FZI4V3LrYoipolvEtpzP/5uBXY5QgMQ==",
208
- "requires": {
209
- "@babel/runtime-corejs2": "7.0.0-beta.56",
210
- "lodash": "^4.17.10",
211
- "react": "^16.4.1",
212
- "react-dom": "^16.4.1"
213
- }
214
- },
215
- "@wordpress/hooks": {
216
- "version": "1.3.3",
217
- "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-1.3.3.tgz",
218
- "integrity": "sha512-k7JRx5I9ZcC0oYN1H3TtmZ4HJEn9CGb73ta4EXfqHb/BH4GKg/HxLxWBl2UZiA0SBpK9PGbg4lalHE43PoeeWw==",
219
- "requires": {
220
- "@babel/runtime-corejs2": "7.0.0-beta.56"
221
- }
222
- },
223
- "@wordpress/i18n": {
224
- "version": "1.2.3",
225
- "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-1.2.3.tgz",
226
- "integrity": "sha512-ABa8cr3cfzS6YocxeBjrc1iHxt28S0EglX0heGKHUtyAQZEg5K+AtWCEJiqhthWpqnXkDEp9ZIqzXkRGhhHuYw==",
227
- "requires": {
228
- "@babel/runtime-corejs2": "7.0.0-beta.56",
229
- "gettext-parser": "^1.3.1",
230
- "jed": "^1.1.1",
231
- "lodash": "^4.17.10",
232
- "memize": "^1.0.5"
233
- }
234
- },
235
- "@wordpress/is-shallow-equal": {
236
- "version": "1.1.5",
237
- "resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-1.1.5.tgz",
238
- "integrity": "sha512-8sRM/lg6ISi4jo7MBycSGRkUCsDP/k7kIXT7Au7m6XSuyfLGTuFQjFCUIufXmKsS08ALsp0I9PN6iCFMyirBSw==",
239
- "requires": {
240
- "@babel/runtime": "^7.0.0"
241
- }
242
- },
243
- "@wordpress/keycodes": {
244
- "version": "1.1.0",
245
- "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-1.1.0.tgz",
246
- "integrity": "sha512-f+4H9wdw+QFukwi8vh7RsHrEn7b/pCQ/FjpIWlDl/BpK5zqNVcshcSZGAJMVITPVMeubcUktIyOLKy6mLy6tUQ==",
247
- "requires": {
248
- "@babel/runtime-corejs2": "7.0.0-beta.56",
249
- "lodash": "^4.17.10"
250
- }
251
- },
252
- "@wordpress/redux-routine": {
253
- "version": "1.0.0",
254
- "resolved": "https://registry.npmjs.org/@wordpress/redux-routine/-/redux-routine-1.0.0.tgz",
255
- "integrity": "sha512-FkXF7yEsRbRnLOxXTzmSMvBCWNxso9CgZ+jBVii6YrQvxLRUdJZk1wMchi5BF70S0/vypPsrqZ8i7oyzFKmfSA==",
256
- "requires": {
257
- "@babel/runtime-corejs2": "7.0.0-beta.56"
258
- }
259
- },
260
- "@wordpress/url": {
261
- "version": "1.2.3",
262
- "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-1.2.3.tgz",
263
- "integrity": "sha512-QzRrgU6p6qYoW/ZJ0rsSPK1Ql/Tw+UjuBrtu79D6M0+I72Senxcpq0Rw2cWWm+HjqwgW2dbPqnUXmNrdpax1bg==",
264
- "requires": {
265
- "@babel/runtime-corejs2": "7.0.0-beta.56",
266
- "qs": "^6.5.2s"
267
- }
268
- },
269
- "JSONStream": {
270
- "version": "1.3.5",
271
- "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz",
272
- "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==",
273
- "dev": true,
274
- "requires": {
275
- "jsonparse": "^1.2.0",
276
- "through": ">=2.2.7 <3"
277
- }
278
- },
279
- "abbrev": {
280
- "version": "1.1.1",
281
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
282
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
283
- "dev": true
284
- },
285
- "acorn": {
286
- "version": "6.0.6",
287
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.0.6.tgz",
288
- "integrity": "sha512-5M3G/A4uBSMIlfJ+h9W125vJvPFH/zirISsW5qfxF5YzEvXJCtolLoQvM5yZft0DvMcUrPGKPOlgEu55I6iUtA==",
289
- "dev": true
290
- },
291
- "acorn-dynamic-import": {
292
- "version": "4.0.0",
293
- "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-4.0.0.tgz",
294
- "integrity": "sha512-d3OEjQV4ROpoflsnUA8HozoIR504TFxNivYEUi6uwz0IYhBkTDXGuWlNdMtybRt3nqVx/L6XqMt0FxkXuWKZhw==",
295
- "dev": true
296
- },
297
- "acorn-node": {
298
- "version": "1.6.2",
299
- "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.6.2.tgz",
300
- "integrity": "sha512-rIhNEZuNI8ibQcL7ANm/mGyPukIaZsRNX9psFNQURyJW0nu6k8wjSDld20z6v2mDBWqX13pIEnk9gGZJHIlEXg==",
301
- "dev": true,
302
- "requires": {
303
- "acorn": "^6.0.2",
304
- "acorn-dynamic-import": "^4.0.0",
305
- "acorn-walk": "^6.1.0",
306
- "xtend": "^4.0.1"
307
- }
308
- },
309
- "acorn-walk": {
310
- "version": "6.1.1",
311
- "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.1.1.tgz",
312
- "integrity": "sha512-OtUw6JUTgxA2QoqqmrmQ7F2NYqiBPi/L2jqHyFtllhOUvXYQXf0Z1CYUinIfyT4bTCGmrA7gX9FvHA81uzCoVw==",
313
- "dev": true
314
- },
315
- "ajv": {
316
- "version": "6.10.0",
317
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz",
318
- "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==",
319
- "dev": true,
320
- "optional": true,
321
- "requires": {
322
- "fast-deep-equal": "^2.0.1",
323
- "fast-json-stable-stringify": "^2.0.0",
324
- "json-schema-traverse": "^0.4.1",
325
- "uri-js": "^4.2.2"
326
- }
327
- },
328
- "alphanum-sort": {
329
- "version": "1.0.2",
330
- "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz",
331
- "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=",
332
- "dev": true
333
- },
334
- "ansi-escapes": {
335
- "version": "1.4.0",
336
- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz",
337
- "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG4=",
338
- "dev": true
339
- },
340
- "ansi-regex": {
341
- "version": "2.1.1",
342
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
343
- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
344
- "dev": true
345
- },
346
- "ansi-styles": {
347
- "version": "2.2.1",
348
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
349
- "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
350
- "dev": true
351
- },
352
- "anymatch": {
353
- "version": "2.0.0",
354
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz",
355
- "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==",
356
- "dev": true,
357
- "requires": {
358
- "micromatch": "^3.1.4",
359
- "normalize-path": "^2.1.1"
360
- }
361
- },
362
- "aproba": {
363
- "version": "1.2.0",
364
- "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
365
- "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
366
- "dev": true,
367
- "optional": true
368
- },
369
- "archiver": {
370
- "version": "1.3.0",
371
- "resolved": "https://registry.npmjs.org/archiver/-/archiver-1.3.0.tgz",
372
- "integrity": "sha1-TyGU1tj5nfP1MeaIHxTxXVX6ryI=",
373
- "dev": true,
374
- "requires": {
375
- "archiver-utils": "^1.3.0",
376
- "async": "^2.0.0",
377
- "buffer-crc32": "^0.2.1",
378
- "glob": "^7.0.0",
379
- "lodash": "^4.8.0",
380
- "readable-stream": "^2.0.0",
381
- "tar-stream": "^1.5.0",
382
- "walkdir": "^0.0.11",
383
- "zip-stream": "^1.1.0"
384
- }
385
- },
386
- "archiver-utils": {
387
- "version": "1.3.0",
388
- "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-1.3.0.tgz",
389
- "integrity": "sha1-5QtMCccL89aA4y/xt5lOn52JUXQ=",
390
- "dev": true,
391
- "requires": {
392
- "glob": "^7.0.0",
393
- "graceful-fs": "^4.1.0",
394
- "lazystream": "^1.0.0",
395
- "lodash": "^4.8.0",
396
- "normalize-path": "^2.0.0",
397
- "readable-stream": "^2.0.0"
398
- }
399
- },
400
- "are-we-there-yet": {
401
- "version": "1.1.5",
402
- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
403
- "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
404
- "dev": true,
405
- "optional": true,
406
- "requires": {
407
- "delegates": "^1.0.0",
408
- "readable-stream": "^2.0.6"
409
- }
410
- },
411
- "argparse": {
412
- "version": "1.0.10",
413
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
414
- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
415
- "dev": true,
416
- "requires": {
417
- "sprintf-js": "~1.0.2"
418
- }
419
- },
420
- "arr-diff": {
421
- "version": "4.0.0",
422
- "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz",
423
- "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=",
424
- "dev": true
425
- },
426
- "arr-flatten": {
427
- "version": "1.1.0",
428
- "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz",
429
- "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
430
- "dev": true
431
- },
432
- "arr-union": {
433
- "version": "3.1.0",
434
- "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz",
435
- "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=",
436
- "dev": true
437
- },
438
- "array-differ": {
439
- "version": "1.0.0",
440
- "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz",
441
- "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=",
442
- "dev": true
443
- },
444
- "array-each": {
445
- "version": "1.0.1",
446
- "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz",
447
- "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=",
448
- "dev": true
449
- },
450
- "array-filter": {
451
- "version": "0.0.1",
452
- "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz",
453
- "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=",
454
- "dev": true
455
- },
456
- "array-find-index": {
457
- "version": "1.0.2",
458
- "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
459
- "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=",
460
- "dev": true
461
- },
462
- "array-map": {
463
- "version": "0.0.0",
464
- "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz",
465
- "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=",
466
- "dev": true
467
- },
468
- "array-reduce": {
469
- "version": "0.0.0",
470
- "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz",
471
- "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=",
472
- "dev": true
473
- },
474
- "array-slice": {
475
- "version": "1.1.0",
476
- "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz",
477
- "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==",
478
- "dev": true
479
- },
480
- "array-union": {
481
- "version": "1.0.2",
482
- "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz",
483
- "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=",
484
- "dev": true,
485
- "requires": {
486
- "array-uniq": "^1.0.1"
487
- }
488
- },
489
- "array-uniq": {
490
- "version": "1.0.3",
491
- "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz",
492
- "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=",
493
- "dev": true
494
- },
495
- "array-unique": {
496
- "version": "0.3.2",
497
- "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz",
498
- "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
499
- "dev": true
500
- },
501
- "arrify": {
502
- "version": "1.0.1",
503
- "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
504
- "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=",
505
- "dev": true
506
- },
507
- "asap": {
508
- "version": "2.0.6",
509
- "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
510
- "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY="
511
- },
512
- "asn1": {
513
- "version": "0.2.3",
514
- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
515
- "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=",
516
- "dev": true
517
- },
518
- "asn1.js": {
519
- "version": "4.10.1",
520
- "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz",
521
- "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==",
522
- "dev": true,
523
- "requires": {
524
- "bn.js": "^4.0.0",
525
- "inherits": "^2.0.1",
526
- "minimalistic-assert": "^1.0.0"
527
- }
528
- },
529
- "assert": {
530
- "version": "1.4.1",
531
- "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz",
532
- "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=",
533
- "dev": true,
534
- "requires": {
535
- "util": "0.10.3"
536
- },
537
- "dependencies": {
538
- "inherits": {
539
- "version": "2.0.1",
540
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
541
- "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=",
542
- "dev": true
543
- },
544
- "util": {
545
- "version": "0.10.3",
546
- "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz",
547
- "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=",
548
- "dev": true,
549
- "requires": {
550
- "inherits": "2.0.1"
551
- }
552
- }
553
- }
554
- },
555
- "assert-plus": {
556
- "version": "1.0.0",
557
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
558
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
559
- "dev": true
560
- },
561
- "assign-symbols": {
562
- "version": "1.0.0",
563
- "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz",
564
- "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=",
565
- "dev": true
566
- },
567
- "async": {
568
- "version": "2.6.1",
569
- "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz",
570
- "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==",
571
- "dev": true,
572
- "requires": {
573
- "lodash": "^4.17.10"
574
- }
575
- },
576
- "async-each": {
577
- "version": "1.0.3",
578
- "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz",
579
- "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==",
580
- "dev": true
581
- },
582
- "asynckit": {
583
- "version": "0.4.0",
584
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
585
- "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
586
- "dev": true
587
- },
588
- "atob": {
589
- "version": "2.1.2",
590
- "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
591
- "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
592
- "dev": true
593
- },
594
- "autoprefixer": {
595
- "version": "9.4.7",
596
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.4.7.tgz",
597
- "integrity": "sha512-qS5wW6aXHkm53Y4z73tFGsUhmZu4aMPV9iHXYlF0c/wxjknXNHuj/1cIQb+6YH692DbJGGWcckAXX+VxKvahMA==",
598
- "dev": true,
599
- "requires": {
600
- "browserslist": "^4.4.1",
601
- "caniuse-lite": "^1.0.30000932",
602
- "normalize-range": "^0.1.2",
603
- "num2fraction": "^1.2.2",
604
- "postcss": "^7.0.14",
605
- "postcss-value-parser": "^3.3.1"
606
- },
607
- "dependencies": {
608
- "ansi-styles": {
609
- "version": "3.2.1",
610
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
611
- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
612
- "dev": true,
613
- "requires": {
614
- "color-convert": "^1.9.0"
615
- }
616
- },
617
- "browserslist": {
618
- "version": "4.4.1",
619
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.4.1.tgz",
620
- "integrity": "sha512-pEBxEXg7JwaakBXjATYw/D1YZh4QUSCX/Mnd/wnqSRPPSi1U39iDhDoKGoBUcraKdxDlrYqJxSI5nNvD+dWP2A==",
621
- "dev": true,
622
- "requires": {
623
- "caniuse-lite": "^1.0.30000929",
624
- "electron-to-chromium": "^1.3.103",
625
- "node-releases": "^1.1.3"
626
- }
627
- },
628
- "caniuse-lite": {
629
- "version": "1.0.30000932",
630
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000932.tgz",
631
- "integrity": "sha512-4bghJFItvzz8m0T3lLZbacmEY9X1Z2AtIzTr7s7byqZIOumASfr4ynDx7rtm0J85nDmx8vsgR6vnaSoeU8Oh0A==",
632
- "dev": true
633
- },
634
- "chalk": {
635
- "version": "2.4.2",
636
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
637
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
638
- "dev": true,
639
- "requires": {
640
- "ansi-styles": "^3.2.1",
641
- "escape-string-regexp": "^1.0.5",
642
- "supports-color": "^5.3.0"
643
- },
644
- "dependencies": {
645
- "supports-color": {
646
- "version": "5.5.0",
647
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
648
- "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
649
- "dev": true,
650
- "requires": {
651
- "has-flag": "^3.0.0"
652
- }
653
- }
654
- }
655
- },
656
- "electron-to-chromium": {
657
- "version": "1.3.109",
658
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.109.tgz",
659
- "integrity": "sha512-1qhgVZD9KIULMyeBkbjU/dWmm30zpPUfdWZfVO3nPhbtqMHJqHr4Ua5wBcWtAymVFrUCuAJxjMF1OhG+bR21Ow==",
660
- "dev": true
661
- },
662
- "node-releases": {
663
- "version": "1.1.6",
664
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.6.tgz",
665
- "integrity": "sha512-lODUVHEIZutZx+TDdOk47qLik8FJMXzJ+WnyUGci1MTvTOyzZrz5eVPIIpc5Hb3NfHZGeGHeuwrRYVI1PEITWg==",
666
- "dev": true,
667
- "requires": {
668
- "semver": "^5.3.0"
669
- }
670
- },
671
- "postcss": {
672
- "version": "7.0.14",
673
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.14.tgz",
674
- "integrity": "sha512-NsbD6XUUMZvBxtQAJuWDJeeC4QFsmWsfozWxCJPWf3M55K9iu2iMDaKqyoOdTJ1R4usBXuxlVFAIo8rZPQD4Bg==",
675
- "dev": true,
676
- "requires": {
677
- "chalk": "^2.4.2",
678
- "source-map": "^0.6.1",
679
- "supports-color": "^6.1.0"
680
- }
681
- },
682
- "postcss-value-parser": {
683
- "version": "3.3.1",
684
- "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz",
685
- "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==",
686
- "dev": true
687
- },
688
- "semver": {
689
- "version": "5.6.0",
690
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz",
691
- "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==",
692
- "dev": true
693
- },
694
- "source-map": {
695
- "version": "0.6.1",
696
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
697
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
698
- "dev": true
699
- },
700
- "supports-color": {
701
- "version": "6.1.0",
702
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz",
703
- "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==",
704
- "dev": true,
705
- "requires": {
706
- "has-flag": "^3.0.0"
707
- }
708
- }
709
- }
710
- },
711
- "aws-sign2": {
712
- "version": "0.7.0",
713
- "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
714
- "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
715
- "dev": true
716
- },
717
- "aws4": {
718
- "version": "1.8.0",
719
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
720
- "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==",
721
- "dev": true,
722
- "optional": true
723
- },
724
- "babel-code-frame": {
725
- "version": "6.26.0",
726
- "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz",
727
- "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=",
728
- "dev": true,
729
- "requires": {
730
- "chalk": "^1.1.3",
731
- "esutils": "^2.0.2",
732
- "js-tokens": "^3.0.2"
733
- }
734
- },
735
- "babel-core": {
736
- "version": "6.26.3",
737
- "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz",
738
- "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==",
739
- "dev": true,
740
- "requires": {
741
- "babel-code-frame": "^6.26.0",
742
- "babel-generator": "^6.26.0",
743
- "babel-helpers": "^6.24.1",
744
- "babel-messages": "^6.23.0",
745
- "babel-register": "^6.26.0",
746
- "babel-runtime": "^6.26.0",
747
- "babel-template": "^6.26.0",
748
- "babel-traverse": "^6.26.0",
749
- "babel-types": "^6.26.0",
750
- "babylon": "^6.18.0",
751
- "convert-source-map": "^1.5.1",
752
- "debug": "^2.6.9",
753
- "json5": "^0.5.1",
754
- "lodash": "^4.17.4",
755
- "minimatch": "^3.0.4",
756
- "path-is-absolute": "^1.0.1",
757
- "private": "^0.1.8",
758
- "slash": "^1.0.0",
759
- "source-map": "^0.5.7"
760
- },
761
- "dependencies": {
762
- "convert-source-map": {
763
- "version": "1.5.1",
764
- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz",
765
- "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=",
766
- "dev": true
767
- },
768
- "debug": {
769
- "version": "2.6.9",
770
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
771
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
772
- "dev": true,
773
- "requires": {
774
- "ms": "2.0.0"
775
- }
776
- },
777
- "ms": {
778
- "version": "2.0.0",
779
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
780
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
781
- "dev": true
782
- }
783
- }
784
- },
785
- "babel-generator": {
786
- "version": "6.26.1",
787
- "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz",
788
- "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==",
789
- "dev": true,
790
- "requires": {
791
- "babel-messages": "^6.23.0",
792
- "babel-runtime": "^6.26.0",
793
- "babel-types": "^6.26.0",
794
- "detect-indent": "^4.0.0",
795
- "jsesc": "^1.3.0",
796
- "lodash": "^4.17.4",
797
- "source-map": "^0.5.7",
798
- "trim-right": "^1.0.1"
799
- }
800
- },
801
- "babel-helper-builder-binary-assignment-operator-visitor": {
802
- "version": "6.24.1",
803
- "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz",
804
- "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=",
805
- "dev": true,
806
- "requires": {
807
- "babel-helper-explode-assignable-expression": "^6.24.1",
808
- "babel-runtime": "^6.22.0",
809
- "babel-types": "^6.24.1"
810
- }
811
- },
812
- "babel-helper-builder-react-jsx": {
813
- "version": "6.26.0",
814
- "resolved": "https://registry.npmjs.org/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz",
815
- "integrity": "sha1-Of+DE7dci2Xc7/HzHTg+D/KkCKA=",
816
- "dev": true,
817
- "requires": {
818
- "babel-runtime": "^6.26.0",
819
- "babel-types": "^6.26.0",
820
- "esutils": "^2.0.2"
821
- }
822
- },
823
- "babel-helper-call-delegate": {
824
- "version": "6.24.1",
825
- "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz",
826
- "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=",
827
- "dev": true,
828
- "requires": {
829
- "babel-helper-hoist-variables": "^6.24.1",
830
- "babel-runtime": "^6.22.0",
831
- "babel-traverse": "^6.24.1",
832
- "babel-types": "^6.24.1"
833
- }
834
- },
835
- "babel-helper-define-map": {
836
- "version": "6.26.0",
837
- "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz",
838
- "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=",
839
- "dev": true,
840
- "requires": {
841
- "babel-helper-function-name": "^6.24.1",
842
- "babel-runtime": "^6.26.0",
843
- "babel-types": "^6.26.0",
844
- "lodash": "^4.17.4"
845
- }
846
- },
847
- "babel-helper-explode-assignable-expression": {
848
- "version": "6.24.1",
849
- "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz",
850
- "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=",
851
- "dev": true,
852
- "requires": {
853
- "babel-runtime": "^6.22.0",
854
- "babel-traverse": "^6.24.1",
855
- "babel-types": "^6.24.1"
856
- }
857
- },
858
- "babel-helper-function-name": {
859
- "version": "6.24.1",
860
- "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz",
861
- "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=",
862
- "dev": true,
863
- "requires": {
864
- "babel-helper-get-function-arity": "^6.24.1",
865
- "babel-runtime": "^6.22.0",
866
- "babel-template": "^6.24.1",
867
- "babel-traverse": "^6.24.1",
868
- "babel-types": "^6.24.1"
869
- }
870
- },
871
- "babel-helper-get-function-arity": {
872
- "version": "6.24.1",
873
- "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz",
874
- "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=",
875
- "dev": true,
876
- "requires": {
877
- "babel-runtime": "^6.22.0",
878
- "babel-types": "^6.24.1"
879
- }
880
- },
881
- "babel-helper-hoist-variables": {
882
- "version": "6.24.1",
883
- "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz",
884
- "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=",
885
- "dev": true,
886
- "requires": {
887
- "babel-runtime": "^6.22.0",
888
- "babel-types": "^6.24.1"
889
- }
890
- },
891
- "babel-helper-optimise-call-expression": {
892
- "version": "6.24.1",
893
- "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz",
894
- "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=",
895
- "dev": true,
896
- "requires": {
897
- "babel-runtime": "^6.22.0",
898
- "babel-types": "^6.24.1"
899
- }
900
- },
901
- "babel-helper-regex": {
902
- "version": "6.26.0",
903
- "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz",
904
- "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=",
905
- "dev": true,
906
- "requires": {
907
- "babel-runtime": "^6.26.0",
908
- "babel-types": "^6.26.0",
909
- "lodash": "^4.17.4"
910
- }
911
- },
912
- "babel-helper-remap-async-to-generator": {
913
- "version": "6.24.1",
914
- "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz",
915
- "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=",
916
- "dev": true,
917
- "requires": {
918
- "babel-helper-function-name": "^6.24.1",
919
- "babel-runtime": "^6.22.0",
920
- "babel-template": "^6.24.1",
921
- "babel-traverse": "^6.24.1",
922
- "babel-types": "^6.24.1"
923
- }
924
- },
925
- "babel-helper-replace-supers": {
926
- "version": "6.24.1",
927
- "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz",
928
- "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=",
929
- "dev": true,
930
- "requires": {
931
- "babel-helper-optimise-call-expression": "^6.24.1",
932
- "babel-messages": "^6.23.0",
933
- "babel-runtime": "^6.22.0",
934
- "babel-template": "^6.24.1",
935
- "babel-traverse": "^6.24.1",
936
- "babel-types": "^6.24.1"
937
- }
938
- },
939
- "babel-helpers": {
940
- "version": "6.24.1",
941
- "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz",
942
- "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=",
943
- "dev": true,
944
- "requires": {
945
- "babel-runtime": "^6.22.0",
946
- "babel-template": "^6.24.1"
947
- }
948
- },
949
- "babel-messages": {
950
- "version": "6.23.0",
951
- "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz",
952
- "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=",
953
- "dev": true,
954
- "requires": {
955
- "babel-runtime": "^6.22.0"
956
- }
957
- },
958
- "babel-plugin-add-module-exports": {
959
- "version": "0.2.1",
960
- "resolved": "https://registry.npmjs.org/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz",
961
- "integrity": "sha1-mumh9KjcZ/DN7E9K7aHkOl/2XiU=",
962
- "dev": true
963
- },
964
- "babel-plugin-check-es2015-constants": {
965
- "version": "6.22.0",
966
- "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz",
967
- "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=",
968
- "dev": true,
969
- "requires": {
970
- "babel-runtime": "^6.22.0"
971
- }
972
- },
973
- "babel-plugin-syntax-async-functions": {
974
- "version": "6.13.0",
975
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz",
976
- "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=",
977
- "dev": true
978
- },
979
- "babel-plugin-syntax-class-properties": {
980
- "version": "6.13.0",
981
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz",
982
- "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=",
983
- "dev": true
984
- },
985
- "babel-plugin-syntax-exponentiation-operator": {
986
- "version": "6.13.0",
987
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz",
988
- "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=",
989
- "dev": true
990
- },
991
- "babel-plugin-syntax-flow": {
992
- "version": "6.18.0",
993
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz",
994
- "integrity": "sha1-TDqyCiryaqIM0lmVw5jE63AxDI0=",
995
- "dev": true
996
- },
997
- "babel-plugin-syntax-jsx": {
998
- "version": "6.18.0",
999
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz",
1000
- "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=",
1001
- "dev": true
1002
- },
1003
- "babel-plugin-syntax-object-rest-spread": {
1004
- "version": "6.13.0",
1005
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz",
1006
- "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=",
1007
- "dev": true
1008
- },
1009
- "babel-plugin-syntax-trailing-function-commas": {
1010
- "version": "6.22.0",
1011
- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz",
1012
- "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=",
1013
- "dev": true
1014
- },
1015
- "babel-plugin-transform-async-to-generator": {
1016
- "version": "6.24.1",
1017
- "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz",
1018
- "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=",
1019
- "dev": true,
1020