PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 2.2.0
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v2.2.0
2.2.0 2.1.0 2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 All 43 releases
← All changes | assets/admin/single_board.js +1 -1 2.0.4 → 2.2.0 View file →
@@ -1 +1 @@
1 -import{aO as e,S as t,T as a,a7 as r,bG as o,bx as s,bB as i,bC as n,bD as l,bE as d,bF as p}from"../vendor.js?ver=2.0.4";import{p as m,m as f,g as u,b as _,s as b,t as c,c as g,d as w,f as v,e as h,h as $,v as y,i as P,j,k as B,$ as V,R as T,l as I,S as k,o as x,r as A,n as F}from"../UpgradeUrl.js?ver=2.0.4";import{_ as S}from"../descriptionToPlainText.js?ver=2.0.4";import{k as C,l as D,m as E,n as L}from"../vendor-element-plus.js?ver=2.0.4";const Q=S({name:"SingleBoard",components:{TaskDashboard:m},data:()=>({boardId:null}),methods:{updateViewClass(){if(document.querySelector(".fluent_boards_frontend")){const e=document.getElementById("fluent-boards-app"),t=e.offsetWidth;t<=530?(e.classList.add("fbs_app_mobile_view"),e.classList.remove("fbs_app_tablet_view","fbs_app_laptop_view")):t<=809?(e.classList.add("fbs_app_tablet_view"),e.classList.remove("fbs_app_mobile_view","fbs_app_laptop_view")):t<=1024?(e.classList.add("fbs_app_laptop_view"),e.classList.remove("fbs_app_mobile_view","fbs_app_tablet_view")):e.classList.remove("fbs_app_mobile_view","fbs_app_tablet_view","fbs_app_laptop_view")}}},mounted(){const e=document.querySelector(".fluent_board_single_board_app_wrapper");if(e){const t=parseInt(e.getAttribute("data-board-id"));if(t)this.boardId=t;else{const t=e.id;this.boardId=t.split("-").pop()}}this.updateViewClass()}},[["render",function(o,s,i,n,l,d){const p=e("task-dashboard");return l.boardId?(t(),a(p,{key:0,shortcodeId:l.boardId},null,8,["shortcodeId"])):r("",!0)}]]),U=o(),M=s(Q),O=o();M.config.globalProperties.appVars=window.fluentAddonVars,M.config.globalProperties.appVars.isFrontView="front"===window.fluentAddonVars.render_in,window.Fuse=i,window.moment=f,M.mixin({data:()=>({Storage:k,hasPro:!!window.fluentAddonVars.has_pro,isTouchScreen:"ontouchstart"in window||navigator.maxTouchPoints>0}),methods:{$get:T.get,$post:T.post,$put:T.put,$del:T.delete,$uploadFile:T.uploadFile,formatNumber:(e,t=!1)=>!e&&t?"":(e||(e="0"),new Intl.NumberFormat("en-US").format(e)),$changeTitle(e=null){null!=e?jQuery("head title").text(e+" - FluentBoards"):jQuery("head title").text("FluentBoards")},$t:V,$humanTimeDiff:B,$handleError:j,handleError:j,convertToText:P,$validateEmail:y,smartDate:$,$smartDate:g,$checkOverdue:h,$formatDate:v,$smartDateRange:w,smartDateWithYear:g,taskGroupingByStages:c,sortTaskByPosition:b,$getPref:(e,t="")=>k.get(e,t),$setPref(e,t){k.set(e,t)},$getUpgradeUrl(e){return I(this.appVars.upgrade_url,e)},$formatMinutes(e){let t=parseInt(e);if(!t)return"--";const a=Math.floor(t/60);return t%=60,a?t?`${a}h ${t}m`:`${a}h`:`${t}m`},$getTaskUrl:_,$getBoardUrl:u,$isAdmin(){let e=window.fluentAddonVars.me.fluent_boards_role;return"wordpress_admin"===e||"fluent_boards_admin"===e},$isMember:()=>"member"===window.fluentAddonVars.me.fluent_boards_role,$isBoardManager(e){const t=window.fluentAddonVars.me.fluent_boards_capabilities.find(t=>t.board_id==e);return!!t&&"board_admin"===t.role},$canCreateBoard:()=>!!window.fluentAddonVars.me.can_create_board}}),M.config.globalProperties.$notify=e=>{C({...e,position:"bottom-right",style:{}})},M.config.globalProperties.$notify.success=e=>{C({...e,position:"bottom-right",type:"success",style:{}})},M.config.globalProperties.$notify.error=e=>{C({...e,position:"bottom-right",title:"Error",type:"error",style:{}})},M.config.globalProperties.$notify.warning=e=>{C({...e,position:"bottom-right",title:"Warning",type:"warning",style:{}})},M.config.globalProperties.$confirm=D.confirm,M.config.globalProperties.emitter=U;const R=n({routes:A,history:l(),scrollBehavior:x}),W=d();W.use(p),M.use(R),M.use(E),M.use(W),M.provide("eventBus",O),M.directive("prevent-context-menu",F);for(const[q,G]of Object.entries(L))M.component(q,G);M.mount("#fluent-framework-app"),R.beforeEach((e,t,a)=>{window.fbsPreviousRoute=t,a()}),R.afterEach((e,t)=>{const a=e.meta.active_menu;jQuery(".fframe_menu li").removeClass("active_item"),jQuery(".fframe_menu li.fframe_item_"+a).addClass("active_item"),jQuery(".toplevel_page_fluent_frame li").removeClass("current"),jQuery(".toplevel_page_fluent_frame li.fluent_frame_"+a).addClass("current"),e.meta.title&&jQuery("head title").text(e.meta.title+" - Fluent Boards")});
1 +import{aO as e,S as t,T as a,a7 as s,c8 as r,bx as o,c3 as n,c4 as i,c5 as l,c6 as d,c7 as p}from"../vendor.js?ver=2.2.0";import{w as f,m,g as u,b as _,s as c,c as b,d as w,e as g,f as v,h as $,i as h,v as y,j as P,k as V,l as j,$ as B,n as T,o as A,R as I,p as k,S as x,r as S,u as F,q as C}from"../UpgradeUrl.js?ver=2.2.0";import{_ as D}from"../descriptionToPlainText.js?ver=2.2.0";import{k as E,l as L,m as Q,n as U}from"../vendor-element-plus.js?ver=2.2.0";const M=D({name:"SingleBoard",components:{TaskDashboard:f},data:()=>({boardId:null}),methods:{updateViewClass(){if(document.querySelector(".fluent_boards_frontend")){const e=document.getElementById("fluent-boards-app"),t=e.offsetWidth;t<=530?(e.classList.add("fbs_app_mobile_view"),e.classList.remove("fbs_app_tablet_view","fbs_app_laptop_view")):t<=809?(e.classList.add("fbs_app_tablet_view"),e.classList.remove("fbs_app_mobile_view","fbs_app_laptop_view")):t<=1024?(e.classList.add("fbs_app_laptop_view"),e.classList.remove("fbs_app_mobile_view","fbs_app_tablet_view")):e.classList.remove("fbs_app_mobile_view","fbs_app_tablet_view","fbs_app_laptop_view")}}},mounted(){const e=document.querySelector(".fluent_board_single_board_app_wrapper");if(e){const t=parseInt(e.getAttribute("data-board-id"));if(t)this.boardId=t;else{const t=e.id;this.boardId=t.split("-").pop()}}this.updateViewClass()}},[["render",function(r,o,n,i,l,d){const p=e("task-dashboard");return l.boardId?(t(),a(p,{key:0,shortcodeId:l.boardId},null,8,["shortcodeId"])):s("",!0)}]]),q=r(),O=o(M),R=r();O.config.globalProperties.appVars=window.fluentAddonVars,O.config.globalProperties.appVars.isFrontView="front"===window.fluentAddonVars.render_in,window.Fuse=n,window.moment=m;const W=()=>window.fluentAddonVars&&window.fluentAddonVars.is_rtl?"bottom-left":"bottom-right";O.mixin({data:()=>({Storage:x,hasPro:!!window.fluentAddonVars.has_pro,isTouchScreen:"ontouchstart"in window||navigator.maxTouchPoints>0}),methods:{$get:I.get,$post:I.post,$put:I.put,$del:I.delete,$uploadFile:I.uploadFile,formatNumber:(e,t=!1)=>!e&&t?"":(e||(e="0"),new Intl.NumberFormat("en-US").format(e)),$changeTitle(e=null){null!=e?jQuery("head title").text(e+" - FluentBoards"):jQuery("head title").text("FluentBoards")},$t:A,$_n:T,$_x:B,$humanTimeDiff:j,$handleError:V,handleError:V,convertToText:P,$validateEmail:y,smartDate:h,$smartDate:w,$checkOverdue:$,$formatDate:v,$smartDateRange:g,smartDateWithYear:w,taskGroupingByStages:b,sortTaskByPosition:c,$getPref:(e,t="")=>x.get(e,t),$setPref(e,t){x.set(e,t)},$getUpgradeUrl(e){return k(this.appVars.upgrade_url,e)},$formatMinutes(e){let t=parseInt(e);if(!t)return"--";const a=Math.floor(t/60);return t%=60,a?t?`${a}h ${t}m`:`${a}h`:`${t}m`},$getTaskUrl:_,$getBoardUrl:u,$isAdmin(){let e=window.fluentAddonVars.me.fluent_boards_role;return"wordpress_admin"===e||"fluent_boards_admin"===e},$isMember:()=>"member"===window.fluentAddonVars.me.fluent_boards_role,$isBoardManager(e){const t=window.fluentAddonVars.me.fluent_boards_capabilities.find(t=>t.board_id==e);return!!t&&"board_admin"===t.role},$canCreateBoard:()=>!!window.fluentAddonVars.me.can_create_board}}),O.config.globalProperties.$notify=e=>{E({...e,position:W(),style:{}})},O.config.globalProperties.$notify.success=e=>{E({...e,position:W(),type:"success",style:{}})},O.config.globalProperties.$notify.error=e=>{E({...e,position:W(),title:A("Error"),type:"error",style:{}})},O.config.globalProperties.$notify.warning=e=>{E({...e,position:W(),title:A("Warning"),type:"warning",style:{}})},O.config.globalProperties.$confirm=L.confirm,O.config.globalProperties.emitter=q;const N=i({routes:F,history:l(),scrollBehavior:S}),G=d();G.use(p),O.use(N),O.use(Q),O.use(G),O.provide("eventBus",R),O.directive("prevent-context-menu",C);for(const[Y,z]of Object.entries(U))O.component(Y,z);O.mount("#fluent-framework-app"),N.beforeEach((e,t,a)=>{window.fbsPreviousRoute=t,a()}),N.afterEach((e,t)=>{const a=e.meta.active_menu;jQuery(".fframe_menu li").removeClass("active_item"),jQuery(".fframe_menu li.fframe_item_"+a).addClass("active_item"),jQuery(".toplevel_page_fluent_frame li").removeClass("current"),jQuery(".toplevel_page_fluent_frame li.fluent_frame_"+a).addClass("current"),e.meta.title&&jQuery("head title").text(e.meta.title+" - FluentBoards")});