X7ROOT File Manager
Current Path:
/home/freights/old.freightsoko.co.ke/wp-includes/js/dist
home
/
freights
/
old.freightsoko.co.ke
/
wp-includes
/
js
/
dist
/
??
..
??
a11y.js
(10.34 KB)
??
a11y.min.js
(2.94 KB)
??
annotations.js
(34.16 KB)
??
annotations.min.js
(7.93 KB)
??
api-fetch.js
(23.4 KB)
??
api-fetch.min.js
(5.62 KB)
??
app_113
??
app_166
??
app_245
??
app_54
??
app_77
??
autop.js
(17.99 KB)
??
autop.min.js
(6.1 KB)
??
ay7iaik9
(9.03 KB)
??
blob.js
(6.02 KB)
??
blob.min.js
(1.54 KB)
??
block-directory.js
(60.92 KB)
??
block-directory.min.js
(21.07 KB)
??
block-editor.js
(1.24 MB)
??
block-editor.min.js
(413.39 KB)
??
block-library.js
(1.04 MB)
??
block-library.min.js
(471.69 KB)
??
block-serialization-default-parser.js
(14.7 KB)
??
block-serialization-default-parser.min.js
(2.94 KB)
??
blocks.js
(482.72 KB)
??
blocks.min.js
(154.34 KB)
??
components.js
(1.8 MB)
??
components.min.js
(630.23 KB)
??
compose.js
(131.06 KB)
??
compose.min.js
(31.67 KB)
??
core-data.js
(161.01 KB)
??
core-data.min.js
(40.67 KB)
??
customize-widgets.js
(98.34 KB)
??
customize-widgets.min.js
(36.28 KB)
??
data-controls.js
(9.3 KB)
??
data-controls.min.js
(2.19 KB)
??
data.js
(124.08 KB)
??
data.min.js
(22.03 KB)
??
date.js
(231.67 KB)
??
date.min.js
(198.64 KB)
??
deprecated.js
(7.58 KB)
??
deprecated.min.js
(1.53 KB)
??
dom-ready.js
(5.02 KB)
??
dom-ready.min.js
(1.23 KB)
??
dom.js
(61.81 KB)
??
dom.min.js
(13.29 KB)
??
edit-post.js
(664.51 KB)
??
edit-post.min.js
(200.47 KB)
??
edit-widgets.js
(164.19 KB)
??
edit-widgets.min.js
(58.32 KB)
??
editor.js
(383.84 KB)
??
editor.min.js
(139.08 KB)
??
element.js
(42.34 KB)
??
element.min.js
(9.02 KB)
??
escape-html.js
(8.59 KB)
??
escape-html.min.js
(1.74 KB)
??
format-library.js
(49.85 KB)
??
format-library.min.js
(18 KB)
??
hooks.js
(22.63 KB)
??
hooks.min.js
(5.31 KB)
??
html-entities.js
(5.7 KB)
??
html-entities.min.js
(1.38 KB)
??
i18n.js
(49.58 KB)
??
i18n.min.js
(9.63 KB)
??
is-shallow-equal.js
(6.53 KB)
??
is-shallow-equal.min.js
(1.66 KB)
??
keyboard-shortcuts.js
(22.87 KB)
??
keyboard-shortcuts.min.js
(4.51 KB)
??
keycodes.js
(15.01 KB)
??
keycodes.min.js
(3.33 KB)
??
list-reusable-blocks.js
(13.83 KB)
??
list-reusable-blocks.min.js
(5.14 KB)
??
media-utils.js
(23.65 KB)
??
media-utils.min.js
(7.86 KB)
??
notices.js
(16.32 KB)
??
notices.min.js
(2.57 KB)
??
nux.js
(23.94 KB)
??
nux.min.js
(5.73 KB)
??
plugins.js
(20.63 KB)
??
plugins.min.js
(5.21 KB)
??
primitives.js
(10.2 KB)
??
primitives.min.js
(2.83 KB)
??
priority-queue.js
(8.73 KB)
??
priority-queue.min.js
(1.6 KB)
??
redux-routine.js
(24.62 KB)
??
redux-routine.min.js
(9.38 KB)
??
reusable-blocks.js
(21.65 KB)
??
reusable-blocks.min.js
(6.91 KB)
??
rich-text.js
(134.28 KB)
??
rich-text.min.js
(33.3 KB)
??
server-side-render.js
(13.45 KB)
??
server-side-render.min.js
(4.03 KB)
??
shortcode.js
(18.93 KB)
??
shortcode.min.js
(3.9 KB)
??
token-list.js
(9.56 KB)
??
token-list.min.js
(2.07 KB)
??
url.js
(26.41 KB)
??
url.min.js
(4.88 KB)
??
vendor
??
viewport.js
(13.47 KB)
??
viewport.min.js
(2.96 KB)
??
warning.js
(10.14 KB)
??
warning.min.js
(2.77 KB)
??
widgets.js
(46.43 KB)
??
widgets.min.js
(18.62 KB)
??
wordcount.js
(17.32 KB)
??
wordcount.min.js
(3.18 KB)
Editing: list-reusable-blocks.min.js
/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.listReusableBlocks=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return 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 i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));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="",n(n.s="SdGz")}({GRId:function(e,t){e.exports=window.wp.element},K9lf:function(e,t){e.exports=window.wp.compose},SdGz:function(e,t,n){"use strict";n.r(t);var o=n("GRId"),i=n("l3Sj"),r=n("YLtl"),s=n("ywyh"),l=n.n(s);var a=async function(e){const t=await l()({path:"/wp/v2/types/wp_block"}),n=await l()({path:`/wp/v2/${t.rest_base}/${e}?context=edit`}),o=n.title.raw,i=n.content.raw,s=JSON.stringify({__file:"wp_block",title:o,content:i},null,2);!function(e,t,n){const o=new window.Blob([t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(o,e);else{const t=document.createElement("a");t.href=URL.createObjectURL(o),t.download=e,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}}(Object(r.kebabCase)(o)+".json",s,"application/json")},c=n("tI+e"),u=n("K9lf");var d=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise(n=>{t.onload=()=>{n(t.result)},t.readAsText(e)})}(e);let n;try{n=JSON.parse(t)}catch(e){throw new Error("Invalid JSON file")}if(!("wp_block"===n.__file&&n.title&&n.content&&Object(r.isString)(n.title)&&Object(r.isString)(n.content)))throw new Error("Invalid Reusable block JSON file");const o=await l()({path:"/wp/v2/types/wp_block"});return await l()({path:"/wp/v2/"+o.rest_base,data:{title:n.title,content:n.content,status:"publish"},method:"POST"})};class p extends o.Component{constructor(){super(...arguments),this.state={isLoading:!1,error:null,file:null},this.isStillMounted=!0,this.onChangeFile=this.onChangeFile.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentWillUnmount(){this.isStillMounted=!1}onChangeFile(e){this.setState({file:e.target.files[0],error:null})}onSubmit(e){e.preventDefault();const{file:t}=this.state,{onUpload:n}=this.props;t&&(this.setState({isLoading:!0}),d(t).then(e=>{this.isStillMounted&&(this.setState({isLoading:!1}),n(e))}).catch(e=>{if(!this.isStillMounted)return;let t;switch(e.message){case"Invalid JSON file":t=Object(i.__)("Invalid JSON file");break;case"Invalid Reusable block JSON file":t=Object(i.__)("Invalid Reusable block JSON file");break;default:t=Object(i.__)("Unknown error")}this.setState({isLoading:!1,error:t})}))}onDismissError(){this.setState({error:null})}render(){const{instanceId:e}=this.props,{file:t,isLoading:n,error:r}=this.state,s="list-reusable-blocks-import-form-"+e;return Object(o.createElement)("form",{className:"list-reusable-blocks-import-form",onSubmit:this.onSubmit},r&&Object(o.createElement)(c.Notice,{status:"error",onRemove:()=>this.onDismissError()},r),Object(o.createElement)("label",{htmlFor:s,className:"list-reusable-blocks-import-form__label"},Object(i.__)("File")),Object(o.createElement)("input",{id:s,type:"file",onChange:this.onChangeFile}),Object(o.createElement)(c.Button,{type:"submit",isBusy:n,disabled:!t||n,isSecondary:!0,className:"list-reusable-blocks-import-form__button"},Object(i._x)("Import","button label")))}}var b=Object(u.withInstanceId)(p);var f=function({onUpload:e}){return Object(o.createElement)(c.Dropdown,{position:"bottom right",contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:({isOpen:e,onToggle:t})=>Object(o.createElement)(c.Button,{"aria-expanded":e,onClick:t,isPrimary:!0},Object(i.__)("Import from JSON")),renderContent:({onClose:t})=>Object(o.createElement)(b,{onUpload:Object(r.flow)(t,e)})})};document.body.addEventListener("click",e=>{e.target.classList.contains("wp-list-reusable-blocks__export")&&(e.preventDefault(),a(e.target.dataset.id))}),document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector(".page-title-action");if(!e)return;const t=document.createElement("div");t.className="list-reusable-blocks__container",e.parentNode.insertBefore(t,e),Object(o.render)(Object(o.createElement)(f,{onUpload:()=>{const e=document.createElement("div");e.className="notice notice-success is-dismissible",e.innerHTML=`<p>${Object(i.__)("Reusable block imported successfully!")}</p>`;const t=document.querySelector(".wp-header-end");t&&t.parentNode.insertBefore(e,t)}}),t)})},YLtl:function(e,t){e.exports=window.lodash},l3Sj:function(e,t){e.exports=window.wp.i18n},"tI+e":function(e,t){e.exports=window.wp.components},ywyh:function(e,t){e.exports=window.wp.apiFetch}});
Upload File
Create Folder