PluginProbe
Assistant – Every Day Productivity Apps / 0.7.0.9
Assistant – Every Day Productivity Apps v0.7.0.9
1.5.5.1 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 All 72 releases
assistant / build / chunk-app-content.js

chunk-app-content.js in Assistant – Every Day Productivity Apps 0.7.0.9, at build/chunk-app-content.js

1 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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),s=a(5112),r=a(6711),i=a(9818),u=a(4533),c=a(3882),d=a(4352);const m=({type:e="post"})=>{const t="fl-content",{query:a,listStyle:l}=(0,i.useAppState)(t),{setQuery:s,setListStyle:r}=(0,i.getAppActions)(t),c=d.W.query,m=()=>{const t={title:(0,o.__)("Title"),author:(0,o.__)("Author"),ID:(0,o.__)("Post ID"),date:(0,o.__)("Date Created"),modified:(0,o.__)("Date Modified")},i={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")},m={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:i,value:a.post_status,defaultValue:c.post_status,onChange:e=>s({...a,post_status:e})}),n().createElement(u.Filter.LabelsItem,{value:a.label,defaultValue:c.label,onChange:e=>s({...a,label:e})}),n().createElement(u.Filter.RadioGroupItem,{title:(0,o.__)("Display As"),items:p,value:l,defaultValue:d.W.listStyle,onChange:e=>r(e)}),n().createElement(u.Filter.RadioGroupItem,{title:(0,o.__)("Sort By"),items:t,value:a.orderby,defaultValue:c.orderby,onChange:e=>s({...a,orderby:e})}),n().createElement(u.Filter.RadioGroupItem,{title:(0,o.__)("Order"),items:m,value:a.order,defaultValue:d.W.query.order,onChange:e=>s({...a,order:e})}),n().createElement(u.Filter.Button,{onClick:()=>s(c)},(0,o.__)("Reset Filter"))),n().createElement(u.List.InlineCreate,{postType:e,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:{...a,post_type:e},listStyle:l,getItemProps:(e,a)=>e.id?{...a,to:{pathname:`/${t}/post/${e.id}`,state:{item:e}}}:a,before:n().createElement(m,null)}))};(0,c.addFilter)("fl-asst.list-item-actions","fl-assistant",((e,{item:t,listType:a})=>{if("post"===a){const a=e.findIndex((e=>"edit-post"===e.handle));if(a){const l=e[a];delete l.href,l.isShowing=!0,l.title=(0,o.__)("Edit Details"),l.to={pathname:`/fl-content/post/${t.id}`,state:{item:t}}}}return e}));var p=a(7309);const _=({baseURL:e})=>n().createElement(r.Switch,null,n().createElement(r.Route,{exact:!0,path:e},n().createElement(r.Redirect,{to:{pathname:`${e}/tab/post`}})),n().createElement(r.Route,{path:`${e}/tab/:tab`,component:h}),n().createElement(r.Route,{path:`${e}/post/new`,component:u.Page.CreatePost}),n().createElement(r.Route,{path:`${e}/post/:id`,component:({location:e,match:t,history:a})=>n().createElement(u.Page.Post,{location:e,match:t,history:a,CloudUI:s})})),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}))}}}]);