PluginProbe
Assistant – Every Day Productivity Apps / 1.4.7
Assistant – Every Day Productivity Apps v1.4.7
1.5.5 trunk 0.1.0 0.2.0 0.2.1 0.2.2 0.3.0 0.3.1 0.4 0.4.1 0.4.2 0.5.0 0.5.1 0.6.0 0.7.0 0.7.0.2 0.7.0.3 0.7.0.4 0.7.0.5 0.7.0.6 0.7.0.7 0.7.0.8 0.7.0.9 0.7.1 1.0 All 71 releases
← All changes | build/chunk-app-content.js +1 -1 0.7.0.4 → 1.4.7 View file →
@@ -1 +1 @@
1 -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{226:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),s=n(6),i=n(7),l=n(3),c=n(21),u=n(104);const f=({type:e="post"})=>{const t="fl-content",{query:n,listStyle:r}=Object(i.useAppState)(t),{setQuery:s,setListStyle:c}=Object(i.getAppActions)(t),f=u.a.query,d=()=>{const t={title:Object(a.__)("Title"),author:Object(a.__)("Author"),ID:Object(a.__)("Post ID"),date:Object(a.__)("Date Created"),modified:Object(a.__)("Date Modified")},i={any:Object(a.__)("Any"),publish:Object(a.__)("Published"),draft:Object(a.__)("Drafted"),pending:Object(a.__)("Pending"),future:Object(a.__)("Scheduled"),private:Object(a.__)("Private"),trash:Object(a.__)("Trashed")},d={ASC:Object(a.__)("Ascending"),DESC:Object(a.__)("Descending")},p={"":Object(a.__)("List"),thumb:Object(a.__)("Post Thumbnails")};return o.a.createElement(o.a.Fragment,null,o.a.createElement(l.Filter,null,o.a.createElement(l.Filter.RadioGroupItem,{title:Object(a.__)("Status"),items:i,value:n.post_status,defaultValue:f.post_status,onChange:e=>s({...n,post_status:e})}),o.a.createElement(l.Filter.LabelsItem,{value:n.label,defaultValue:f.label,onChange:e=>s({...n,label:e})}),o.a.createElement(l.Filter.RadioGroupItem,{title:Object(a.__)("Display As"),items:p,value:r,defaultValue:u.a.listStyle,onChange:e=>c(e)}),o.a.createElement(l.Filter.RadioGroupItem,{title:Object(a.__)("Sort By"),items:t,value:n.orderby,defaultValue:f.orderby,onChange:e=>s({...n,orderby:e})}),o.a.createElement(l.Filter.RadioGroupItem,{title:Object(a.__)("Order"),items:d,value:n.order,defaultValue:u.a.query.order,onChange:e=>s({...n,order:e})}),o.a.createElement(l.Filter.Button,{onClick:()=>s(f)},Object(a.__)("Reset Filter"))),o.a.createElement(l.List.InlineCreate,{postType:e,onPostCreated:()=>s({...u.a.query,order:"DESC",orderby:"ID",key:(new Date).getTime()})}))};return o.a.createElement(l.Layout.Box,{outset:!0,padY:!1,style:{maxHeight:"100%",minHeight:0,flex:"1 1 auto"}},o.a.createElement(l.List.Posts,{query:{...n,post_type:e},listStyle:r,getItemProps:(e,n)=>e.id?{...n,to:{pathname:`/${t}/post/${e.id}`,state:{item:e}}}:n,before:o.a.createElement(d,null)}))};Object(c.addFilter)("fl-asst.list-item-actions","fl-assistant",((e,{item:t,listType:n})=>{if("post"===n){const n=e.findIndex((e=>"edit-post"===e.handle));if(n){const r=e[n];delete r.href,r.isShowing=!0,r.title=Object(a.__)("Edit Details"),r.to={pathname:`/fl-content/post/${t.id}`,state:{item:t}}}}return e}));var d=n(90);n(262),t.default=({baseURL:e})=>o.a.createElement(s.Switch,null,o.a.createElement(s.Route,{exact:!0,path:e},o.a.createElement(s.Redirect,{to:{pathname:`${e}/tab/post`}})),o.a.createElement(s.Route,{path:`${e}/tab/:tab`,component:p}),o.a.createElement(s.Route,{path:`${e}/post/new`,component:l.Page.CreatePost}),o.a.createElement(s.Route,{path:`${e}/post/:id`,component:l.Page.Post}));const p=()=>{const{contentTypes:e}=Object(i.getSystemConfig)(),t=()=>o.a.createElement(l.Layout.Tabs,{tabs:n,shouldHandleOverflow:!0}),n=(()=>{let t=[];return Object.keys(e).map((n=>{const r=e[n];t.push({handle:n,path:"/fl-content/tab/"+n,label:r.labels.plural,component:()=>o.a.createElement(f,{type:n})})})),t})();return o.a.createElement(l.Page,{id:"fl-asst-content-list-page",title:Object(a.__)("Content"),icon:o.a.createElement(d.a,{context:"sidebar"}),padY:!1,header:o.a.createElement(t,null),topContentStyle:{border:"none"},shouldScroll:!1,shouldShowBackButton:!1,showAsRoot:!0,onLoad:()=>{const e=document.querySelector(".fl-asst-filter .fluid-button");e&&e.focus()}},o.a.createElement(l.Layout.CurrentTab,{tabs:n}))}},26:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,a=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?e:(o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},262:function(e,t,n){var r=n(263);"string"==typeof r&&(r=[[e.i,r,""]]);var o={sourceMap:!0,hmr:!0,transform:undefined,insertInto:void 0};n(9)(r,o);r.locals&&(e.exports=r.locals)},263:function(e,t,n){"use strict";n.r(t)},9:function(e,t,n){var r,o,a={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),i=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=i.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,u=0,f=[],d=n(26);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=a[r.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](r.parts[s]);for(;s<r.parts.length;s++)o.parts.push(_(r.parts[s],t))}else{var i=[];for(s=0;s<r.parts.length;s++)i.push(_(r.parts[s],t));a[r.id]={id:r.id,refs:1,parts:i}}}}function b(e,t){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],s=t.base?a[0]+t.base:a[0],i={css:a[1],media:a[2],sourceMap:a[3]};r[s]?r[s].parts.push(i):n.push(r[s]={id:s,parts:[i]})}return n}function h(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),f.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=l(e.insertAt.before,n);n.insertBefore(t,o)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=f.indexOf(e);t>=0&&f.splice(t,1)}function y(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return v(t,e.attrs),h(e,t),t}function v(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function _(e,t){var n,r,o,a;if(t.transform&&e.css){if(!(a="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=a}if(t.singleton){var s=u++;n=c||(c=y(t)),r=j.bind(null,n,s,!1),o=j.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),h(e,t),t}(t),r=E.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(t),r=w.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=b(e,t);return p(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var s=n[o];(i=a[s.id]).refs--,r.push(i)}e&&p(b(e,t),t);for(o=0;o<r.length;o++){var i;if(0===(i=r[o]).refs){for(var l=0;l<i.parts.length;l++)i.parts[l]();delete a[i.id]}}}};var g,O=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function j(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=O(t,o);else{var a=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function w(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function E(e,t,n){var r=n.css,o=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||a)&&(r=d(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(s),i&&URL.revokeObjectURL(i)}}}]);
1 +"use strict";(self.webpackChunkfl_assistant=self.webpackChunkfl_assistant||[]).push([[870],{4046:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var l=a(7363),n=a.n(l),o=a(8003),r=a(2974),s=a(6711),i=a(9818),u=a(4533),c=a(3882),d=a(4352);const m=e=>{let{type:t="post"}=e;const a="fl-content",{query:l,listStyle:r}=(0,i.useAppState)(a),{setQuery:s,setListStyle:c}=(0,i.getAppActions)(a),m=d.W.query,p=()=>{const e={title:(0,o.__)("Title"),author:(0,o.__)("Author"),ID:(0,o.__)("Post ID"),date:(0,o.__)("Date Created"),modified:(0,o.__)("Date Modified")},a={any:(0,o.__)("Any"),publish:(0,o.__)("Published"),draft:(0,o.__)("Drafted"),pending:(0,o.__)("Pending"),future:(0,o.__)("Scheduled"),private:(0,o.__)("Private"),trash:(0,o.__)("Trashed")},i={ASC:(0,o.__)("Ascending"),DESC:(0,o.__)("Descending")},p={"":(0,o.__)("List"),thumb:(0,o.__)("Post Thumbnails")};return n().createElement(n().Fragment,null,n().createElement(u.Filter,null,n().createElement(u.Filter.RadioGroupItem,{title:(0,o.__)("Status"),items:a,value:l.post_status,defaultValue:m.post_status,onChange:e=>s({...l,post_status:e})}),n().createElement(u.Filter.LabelsItem,{value:l.label,defaultValue:m.label,onChange:e=>s({...l,label:e})}),n().createElement(u.Filter.RadioGroupItem,{title:(0,o.__)("Display As"),items:p,value:r,defaultValue:d.W.listStyle,onChange:e=>c(e)}),n().createElement(u.Filter.RadioGroupItem,{title:(0,o.__)("Sort By"),items:e,value:l.orderby,defaultValue:m.orderby,onChange:e=>s({...l,orderby:e})}),n().createElement(u.Filter.RadioGroupItem,{title:(0,o.__)("Order"),items:i,value:l.order,defaultValue:d.W.query.order,onChange:e=>s({...l,order:e})}),n().createElement(u.Filter.Button,{onClick:()=>s(m)},(0,o.__)("Reset Filter"))),!t.startsWith("wp_template")&&n().createElement(u.List.InlineCreate,{postType:t,onPostCreated:()=>s({...d.W.query,order:"DESC",orderby:"ID",key:(new Date).getTime()})}))};return n().createElement(u.Layout.Box,{outset:!0,padY:!1,style:{maxHeight:"100%",minHeight:0,flex:"1 1 auto"}},n().createElement(u.List.Posts,{query:{...l,post_type:t},listStyle:r,getItemProps:(e,t)=>e.id?{...t,to:{pathname:`/${a}/post/${e.id}`,state:{item:e}}}:t,before:n().createElement(p,null)}))};(0,c.addFilter)("fl-asst.list-item-actions","fl-assistant",((e,t)=>{let{item:a,listType:l}=t;if("post"===l){const t=e.findIndex((e=>"edit-post"===e.handle));if(t){const l=e[t];delete l.href,l.isShowing=!0,l.title=(0,o.__)("Edit Details"),l.to={pathname:`/fl-content/post/${a.id}`,state:{item:a}}}}return e}));var p=a(7309);const _=e=>{let{baseURL:t}=e;return n().createElement(s.Switch,null,n().createElement(s.Route,{exact:!0,path:t},n().createElement(s.Redirect,{to:{pathname:`${t}/tab/post`}})),n().createElement(s.Route,{path:`${t}/tab/:tab`,component:h}),n().createElement(s.Route,{path:`${t}/post/new`,component:u.Page.CreatePost}),n().createElement(s.Route,{path:`${t}/post/:id`,component:e=>{let{location:t,match:a,history:l}=e;return n().createElement(u.Page.Post,{location:t,match:a,history:l,CloudUI:r})}}))},h=()=>{const{contentTypes:e}=(0,i.getSystemConfig)(),t=()=>n().createElement(u.Layout.Tabs,{tabs:a,shouldHandleOverflow:!0}),a=(()=>{let t=[];return Object.keys(e).map((a=>{const l=e[a];t.push({handle:a,path:"/fl-content/tab/"+a,label:l.labels.plural,component:()=>n().createElement(m,{type:a})})})),t})();return n().createElement(u.Page,{id:"fl-asst-content-list-page",title:(0,o.__)("Content"),icon:n().createElement(p.Z,{context:"sidebar"}),padY:!1,header:n().createElement(t,null),topContentStyle:{border:"none"},shouldScroll:!1,shouldShowBackButton:!1,showAsRoot:!0,onLoad:()=>{const e=document.querySelector(".fl-asst-filter .fluid-button");e&&e.focus()}},n().createElement(u.Layout.CurrentTab,{tabs:a}))}}}]);