2 lines
29 KiB
JavaScript
2 lines
29 KiB
JavaScript
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}define("tpl!taoTaskQueue/component/listing/tpl/element",["handlebars"],function(hb){return hb.template(function(Handlebars,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),data=data||{};var stack1,helper,options,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+="<div class=\"task-element ",(helper=helpers.status)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.status,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"\">\n <div class=\"container-icon\">\n <div class=\"shape\">\n <span class=\"",(helper=helpers.icon)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.icon,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"\"/>\n </div>\n </div>\n <div class=\"container-text\">\n <div class=\"label\">",(helper=helpers.taskLabel)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.taskLabel,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"</div>\n <div class=\"time\">",(helper=helpers.time)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.time,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"</div>\n </div>\n <div class=\"action-group action-top\">\n <span data-role=\"remove\" class=\"icon-result-nok\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"remove",options):helperMissing.call(depth0,"__","remove",options)))+"\"/>\n </div>\n <div class=\"action-group action-bottom\">\n <span data-role=\"notify\" class=\"icon-preview\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"notify me when done",options):helperMissing.call(depth0,"__","notify me when done",options)))+"\"/>\n <span data-role=\"download\" class=\"icon-download\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"download",options):helperMissing.call(depth0,"__","download",options)))+"\"/>\n <span data-role=\"redirect\" class=\"icon-external\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"go to resource",options):helperMissing.call(depth0,"__","go to resource",options)))+"\"/>\n <span data-role=\"report\" class=\"icon-document\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"see report",options):helperMissing.call(depth0,"__","see report",options)))+"\"/>\n </div>\n</div>",buffer})}),define("css!taoTaskQueue/component/listing/css/element",[],function(){}),define("taoTaskQueue/component/listing/element",["jquery","lodash","i18n","moment","ui/component","ui/hider","tpl!taoTaskQueue/component/listing/tpl/element","css!taoTaskQueue/component/listing/css/element"],function($,_,__,moment,component,hider,elementTpl){'use strict';var _defaults={},_allowedStatus=["in_progress","failed","completed"],_categoryMap={import:"import",export:"export",delivery_comp:"delivery",transfer:"connect",create:"magicwand",update:"edit",delete:"bin"},_statusIcon={in_progress:"property-advanced",completed:"result-ok",failed:"result-nok"},getLabelString=function(data){return data.taskLabel},getFormattedTime=function(from,elapsed){return moment.unix(from).from(moment.unix(parseInt(from,10)+parseInt(elapsed,10)))},getTimeString=function(data){switch(data.status){case"created":case"in_progress":return __("Started %s",getFormattedTime(data.createdAt,data.createdAtElapsed));case"completed":return __("Completed %s",getFormattedTime(data.updatedAt,data.updatedAtElapsed));case"failed":return __("Failed %s",getFormattedTime(data.updatedAt,data.updatedAtElapsed));default:return"";}},getIcon=function(data){var icon;if(!_.isPlainObject(data))throw new Error("invalid data");return icon=data.category&&_categoryMap[data.category]?_categoryMap[data.category]:data.status&&_statusIcon[data.status]?_statusIcon[data.status]:_statusIcon.in_progress,"icon-"+icon},taskElementApi={getId:function(){if(this.data&&this.data.id)return this.data.id},getStatus:function(){if(this.data&&this.data.status)return this.data.status},getData:function(){return this.data},update:function(data){var $container=this.getElement();return _.assign(this.data||{},data),$container.find(".shape > span").removeAttr("class").addClass(getIcon(this.data)),$container.find(".label").html(getLabelString(this.data)),$container.find(".time").html(getTimeString(this.data)),this.setStatus(this.data.status),hider.toggle($container.find(".action-bottom [data-role=\"download\"]"),this.data.hasFile),hider.toggle($container.find(".action-bottom [data-role=\"redirect\"]"),!!this.data.redirectUrl),this.trigger("update"),this},highlight:function(){var $container=this.getElement();return $container.addClass("highlight"),_.delay(function(){$container.removeClass("highlight")},500),this},setStatus:function(status){var self=this;if(!status)throw new Error("status should not be empty");if(-1!==["created"].indexOf(status)&&(status="in_progress"),-1===_allowedStatus.indexOf(status))throw new Error("unknown status "+status);return this.is(status)||(_.forEach(_.without(_allowedStatus,status),function(st){self.setState(st,!1)}),this.setState(status,!0)),this}};return function(config,data){var initConfig=_.defaults(config||{},_defaults);return component(taskElementApi).setTemplate(elementTpl).on("init",function(){this.data=data||{}}).on("render",function(){var self=this,$component=this.getElement();this.update(data),$component.find("[data-role=\"download\"]").click(function(){self.trigger("download")}),$component.find("[data-role=\"remove\"]").click(function(){self.trigger("remove")}),$component.find("[data-role=\"report\"]").click(function(){self.trigger("report")}),$component.find("[data-role=\"redirect\"]").click(function(){self.trigger("redirect")})}).init(initConfig)}}),define("tpl!taoTaskQueue/component/listing/tpl/report",["handlebars"],function(hb){return hb.template(function(Handlebars,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),data=data||{};var helper,options,buffer="",helperMissing=helpers.helperMissing,escapeExpression=this.escapeExpression;return buffer+="<div class=\"task-detail-element\">\n <div class=\"detail-description\">\n <span class=\"label\"></span>\n <span class=\"time\"></span>\n </div>\n <div class=\"action-group action-top\">\n <span data-role=\"close\" class=\"icon-compress\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"close report",options):helperMissing.call(depth0,"__","close report",options)))+"\"/>\n </div>\n <div class=\"detail-body\">\n </div>\n <div class=\"no-detail\">\n <span class=\"message\">"+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"No report available",options):helperMissing.call(depth0,"__","No report available",options)))+"</span>\n </div>\n</div>",buffer})}),define("css!taoTaskQueue/component/listing/css/report",[],function(){}),define("taoTaskQueue/component/listing/report",["jquery","lodash","i18n","moment","ui/component","ui/hider","ui/report","tpl!taoTaskQueue/component/listing/tpl/report","css!taoTaskQueue/component/listing/css/report"],function($,_,__,moment,component,hider,reportFactory,elementTpl){'use strict';var _defaults={},reportElementApi={update:function(data){var $component=this.getElement();$component.find(".label").html(data.taskLabel),data.report&&_.isArray(data.report.children)&&data.report.children.length?(this.setState("noreport",!1),reportFactory({replace:!0},data.report.children[0]).render($component.find(".detail-body"))):this.setState("noreport",!0)}};return function(config,data){var initConfig=_.defaults(config||{},_defaults);return component(reportElementApi).setTemplate(elementTpl).on("render",function(){var self=this,$component=this.getElement();this.update(data),$component.find("[data-role=\"close\"]").click(function(){self.trigger("close")})}).init(initConfig)}}),define("tpl!taoTaskQueue/component/listing/tpl/list",["handlebars"],function(hb){return hb.template(function(Handlebars,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),data=data||{};var stack1,helper,options,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+="<div class=\"task-listing\">\n <div class=\"box\">\n <div class=\"arrow\"></div>\n <div class=\"description\">",(helper=helpers.title)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.title,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"</div>\n <div class=\"empty-placeholder\">",(helper=helpers.emptyText)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.emptyText,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"</div>\n <ul class=\"task-list plain\"></ul>\n <div class=\"clear-box\">\n <a class=\"clear-all\" href=\"#\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"Clear all finished tasks",options):helperMissing.call(depth0,"__","Clear all finished tasks",options)))+"\">"+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"Clear all finished",options):helperMissing.call(depth0,"__","Clear all finished",options)))+"</a>\n </div>\n <div class=\"view-detail\"></div>\n </div>\n</div>",buffer})}),define("tpl!taoTaskQueue/component/listing/tpl/elementWrapper",["handlebars"],function(hb){return hb.template(function(Handlebars,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),data=data||{};var stack1,helper,buffer="",escapeExpression=this.escapeExpression;return buffer+="<li data-id=\"",(helper=helpers.id)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.id,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"\"></li>",buffer})}),define("css!taoTaskQueue/component/listing/css/list",[],function(){}),define("taoTaskQueue/component/listing/list",["jquery","lodash","i18n","ui/component","taoTaskQueue/component/listing/element","tpl!taoTaskQueue/component/listing/tpl/list","tpl!taoTaskQueue/component/listing/tpl/elementWrapper","css!taoTaskQueue/component/listing/css/list"],function($,_,__,component,listElementFactory,listTpl,elementWrapperTpl){'use strict';var _defaults={title:"Task List",emptyText:__("The list is currently empty.")},listApi={removeElement:function(listElement){return listElement.destroy(),this.getElement().find("ul li[data-id=\""+listElement.getId()+"\"]").remove(),this},insertElement:function(listElement){var id=listElement.getId(),$li=$(elementWrapperTpl({id:id}));return this.getElement().find("ul").prepend($li),listElement.render($li),this},setDetail:function(detailElement,show){return detailElement.render(this.getElement().find(".view-detail")),show&&this.setState("detail-view",!0),this},hideDetail:function(){return this.setState("detail-view",!1),this},scrollToTop:function(){return this.getElement().find(".task-list").get(0).scrollTo(0,0),this},animateInsertion:function(listElement){var $listElement=listElement.getElement(),$container=$listElement.parent();return $container.addClass("inserting"),$listElement.addClass("new-element"),_.delay(function(){$container.removeClass("inserting"),_.delay(function(){$listElement.removeClass("new-element")},400)},100),this}};return function(config){var initConfig=_.defaults(config||{},_defaults);return component(listApi).setTemplate(listTpl).on("render",function(){var self=this;this.getElement().find(".clear-all").on("click",function(e){e.preventDefault(),self.trigger("clearall")})}).init(initConfig)}}),define("tpl!taoTaskQueue/component/manager/tpl/manager",["handlebars"],function(hb){return hb.template(function(Handlebars,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),data=data||{};var helper,options,buffer="",helperMissing=helpers.helperMissing,escapeExpression=this.escapeExpression;return buffer+="<div class=\"task-manager-container\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"Background tasks",options):helperMissing.call(depth0,"__","Background tasks",options)))+"\">\n</div>",buffer})}),define("css!taoTaskQueue/component/manager/css/manager",[],function(){}),define("taoTaskQueue/component/manager/manager",["jquery","lodash","i18n","layout/loading-bar","ui/hider","ui/component","ui/badge/badge","ui/component/alignable","ui/animable/absorbable/absorbable","ui/animable/pulsable/pulsable","taoTaskQueue/component/listing/element","taoTaskQueue/component/listing/report","taoTaskQueue/component/listing/list","tpl!taoTaskQueue/component/manager/tpl/manager","css!taoTaskQueue/component/manager/css/manager"],function($,_,__,loadingBar,hider,component,badgeFactory,makeAlignable,makeAbsorbable,makePulsable,listElementFactory,reportElementFactory,taskListFactory,managerTpl){'use strict';var getBadgeDataFromStatus=function(tasksStatuses){var total=0,data={loading:!1};if(tasksStatuses)return tasksStatuses.numberOfTasksInProgress&&(total+=parseInt(tasksStatuses.numberOfTasksInProgress,10),data.type="info",data.loading=0<tasksStatuses.numberOfTasksInProgress),tasksStatuses.numberOfTasksCompleted&&(total+=parseInt(tasksStatuses.numberOfTasksCompleted,10),data.type="success"),tasksStatuses.numberOfTasksFailed&&(total+=parseInt(tasksStatuses.numberOfTasksFailed,10),data.type="success"===data.type?"warning":"error"),data.value=total,data},getBadgeDataFromElements=function(elements){var statusMap={in_progress:"numberOfTasksInProgress",created:"numberOfTasksInProgress",failed:"numberOfTasksFailed",completed:"numberOfTasksCompleted"},stats={numberOfTasksFailed:0,numberOfTasksCompleted:0,numberOfTasksInProgress:0};return _.forEach(elements,function(element){var status=element.getStatus();statusMap[status]&&stats[statusMap[status]]++}),getBadgeDataFromStatus(stats)},_alignementConfig={initial:{hPos:"center",hOrigin:"center",vPos:"bottom",vOrigin:"top",hOffset:-156},showDetail:{hPos:"center",hOrigin:"center",vPos:"bottom",vOrigin:"top",hOffset:-277}},taskQueue={getTaskElements:function(){return this.taskElements},showDetail:function(taskData){var $component=this.getElement(),list=this.list,reportElement=reportElementFactory({replace:!0},taskData).on("close",function(){list.hideDetail(),list.alignWith($component,_alignementConfig.initial),this.destroy()});return list.setDetail(reportElement,!0),list.alignWith($component,_alignementConfig.showDetail),this},addNewTask:function(taskData,animate){var self=this,taskId=taskData.id,listElement=listElementFactory({},taskData).on("remove",function(){delete self.taskElements[taskId],self.list.removeElement(listElement),self.trigger("remove",taskId),self.trigger("listchange")}).on("report",function(){self.trigger("report",taskId)}).on("download",function(){self.trigger("download",taskId)}).on("redirect",function(){loadingBar.start(),self.hideList(),self.trigger("redirect",taskId)});return animate&&(this.list.is("hidden")&&this.list.show(),this.list.scrollToTop()),this.list.insertElement(listElement),this.taskElements[taskId]=listElement,this.trigger("listchange"),animate&&this.list.animateInsertion(listElement),this},selfUpdateBadge:function(){var badgeData=getBadgeDataFromElements(this.getTaskElements());return this.badge?this.badge.update(badgeData):this.badge=makePulsable(badgeFactory(badgeData)).render(this.getElement()),this},loadData:function(tasksData){var self=this,found=[];return tasksData.length&&(tasksData=tasksData.reverse()),_.forEach(tasksData,function(entry){var id=entry.id;self.taskElements[id]?(self.taskElements[id].update(entry),self.taskElements[id].getStatus()!==entry.status&&self.taskElements[id].highlight()):self.addNewTask(entry),found.push(id)}),_.forEach(_.difference(_.keys(self.taskElements),found),function(id){self.list.removeElement(self.taskElements[id]),delete self.taskElements[id]}),this.trigger("listchange"),this},pulse:function(){return this.badge&&this.badge.pulse(3),this},showList:function(){return this.list&&(this.list.show(),this.trigger("listshow")),this},hideList:function(){return this.list&&(this.list.hide(),this.trigger("listhide")),this},removeAllFinished:function(){var self=this;return _(this.taskElements).filter(function(element){return"completed"===element.getStatus()||"failed"===element.getStatus()}).forEach(function(element){delete self.taskElements[element.getId()],self.list.removeElement(element),self.trigger("listchange")}),this.trigger("listclearfinished"),this},selfUpdateClearButton:function(){var $clearAllBox=this.getElement().find(".clear-box"),finishedCount=_(this.taskElements).map(function(element){return element.getStatus()}).filter(function(status){return"completed"===status||"failed"===status}).size();return 0<finishedCount?hider.show($clearAllBox):hider.hide($clearAllBox),this}};return function(config,data){return data=data||{},makeAbsorbable(component(taskQueue)).setTemplate(managerTpl).on("destroy listhide",function(){$(document).off("click.task-queue-manager")}).on("init",function(){this.taskElements={},this.list=makeAlignable(taskListFactory()).init({title:__("Background tasks"),emptyText:__("There is currently no background task")})}).on("listshow",function(){var self=this,$component=this.getElement();$(document).off("click.task-queue-manager").on("click.task-queue-manager",function(e){$component.get(0)===e.target||$.contains($component.get(0),e.target)||self.list.is("hidden")||self.hideList()})}).on("listchange",function(){this.selfUpdateBadge(),this.selfUpdateClearButton()}).on("render",function(){var self=this,$trigger=this.getElement();this.list.render($trigger).moveBy(0,0).alignWith($trigger,_alignementConfig.initial).hide(),this.loadData(data),this.list.getElement().addClass("overflown-element").on("click",function(e){e.stopPropagation()}),this.list.on("clearall",function(){self.removeAllFinished()}),$trigger.on("click",function(){self.list.is("hidden")?self.showList():self.hideList()})}).init(config||{})}}),define("taoTaskQueue/controller/main",["jquery","taoTaskQueue/component/manager/manager","ui/taskQueue/taskQueue"],function($,taskQueueManagerFactory,taskQueue){'use strict';return{start:function start(){var taskManager=taskQueueManagerFactory({replace:!0}).on("remove",function(taskId){return taskQueue.archive(taskId)}).on("report",function(taskId){taskQueue.get(taskId).then(function(task){return taskManager.showDetail(task)})}).on("download",function(taskId){return taskQueue.download(taskId)}).on("redirect",function(taskId){return taskQueue.redirect(taskId)}).on("listclearfinished",function(){taskQueue.pollAllStop().archive("all").then(function(){return taskQueue.pollAll()})}).render($("#taskqueue").parent()).hide();taskQueue.on("taskcreated",function(data){taskManager.list.is("hidden")?taskManager.absorbBurst(data.sourceDom,[0,300,600]).then(function(){taskManager.addNewTask(data.task),taskQueue.pollAll()}):(taskManager.addNewTask(data.task,!0),taskQueue.pollAll())}).on("multitaskstatuschange",function(){return taskManager.pulse()}).on("pollAll",function(tasks){taskManager.is("hidden")&&taskManager.show(),taskManager.loadData(tasks)}).pollAll(!0)}}}),define("taoTaskQueue/controller/routes",[],function(){'use strict';return{Main:{actions:{index:"taoTaskQueue/controller/main"}}}}),function(c){var d=document,s=d.createElement("style");s.type="text/css",d.getElementsByTagName("head")[0].appendChild(s),s.styleSheet?s.styleSheet.cssText=c:s.appendChild(d.createTextNode(c))}("div.task-element{position:relative;background:#f3f1ef;padding:10px 20px;width:100%;height:70px;-webkit-transition:background, 2s, ease-out, 0s;-moz-transition:background, 2s, ease-out, 0s;-ms-transition:background, 2s, ease-out, 0s;-o-transition:background, 2s, ease-out, 0s;transition:background, 2s, ease-out, 0s}div.task-element.highlight{background:white;-webkit-transition:background, 0s, ease-out, 0s;-moz-transition:background, 0s, ease-out, 0s;-ms-transition:background, 0s, ease-out, 0s;-o-transition:background, 0s, ease-out, 0s;transition:background, 0s, ease-out, 0s}div.task-element .container-icon{position:absolute}div.task-element .container-icon .shape{display:inline-block;border-radius:50%;width:40px;height:40px;top:2px;position:relative}div.task-element .container-icon .shape [class^=\"icon-\"],div.task-element .container-icon .shape [class*=\" icon-\"]{font-size:20px;font-size:2rem;position:relative;top:9px;left:12px;text-shadow:none}div.task-element .container-icon .shape .icon-export,div.task-element .container-icon .shape .icon-import,div.task-element .container-icon .shape .icon-connect{left:10px}div.task-element .container-icon .shape .icon-property-advanced,div.task-element .container-icon .shape .icon-result-ok,div.task-element .container-icon .shape .icon-result-nok{top:10px;left:10px}div.task-element.in_progress .container-icon .shape{background:#0e5d91}div.task-element.in_progress .container-icon .shape [class^=\"icon-\"],div.task-element.in_progress .container-icon .shape [class*=\" icon-\"]{color:#e7eff4}div.task-element.in_progress .action-group.action-bottom [data-role=\"notify\"]{display:none}div.task-element.in_progress .action-group.action-top [data-role=\"remove\"]{display:none}div.task-element.completed .container-icon .shape{background:#0e914b}div.task-element.completed .container-icon .shape [class^=\"icon-\"],div.task-element.completed .container-icon .shape [class*=\" icon-\"]{color:#e7f4ed}div.task-element.completed .action-group.action-bottom [data-role=\"download\"],div.task-element.completed .action-group.action-bottom [data-role=\"report\"],div.task-element.completed .action-group.action-bottom [data-role=\"redirect\"]{display:inline-block}div.task-element.failed .container-icon .shape{background:#ba122b}div.task-element.failed .container-icon .shape [class^=\"icon-\"],div.task-element.failed .container-icon .shape [class*=\" icon-\"]{color:#f8e7ea}div.task-element.failed .action-group.action-bottom [data-role=\"download\"],div.task-element.failed .action-group.action-bottom [data-role=\"report\"],div.task-element.failed .action-group.action-bottom [data-role=\"redirect\"]{display:inline-block}div.task-element .container-text{padding-top:0px;margin-left:60px;width:240px}div.task-element .container-text .label{min-height:22px;max-height:38px;overflow:hidden;color:#222}div.task-element .container-text .time{color:#92918f;font-size:12px;font-size:1.2rem}div.task-element .action-group{position:absolute}div.task-element .action-group [class^=\"icon-\"],div.task-element .action-group [class*=\" icon-\"]{font-size:16px;font-size:1.6rem;background-color:transparent;width:20px;height:20px;display:inline-block;padding-left:4px;margin-left:5px;cursor:pointer}div.task-element .action-group [class^=\"icon-\"]:hover,div.task-element .action-group [class*=\" icon-\"]:hover{opacity:0.6}div.task-element .action-group.action-top{top:6px;right:14px}div.task-element .action-group.action-bottom{bottom:6px;right:12px}div.task-element .action-group.action-bottom [class^=\"icon-\"],div.task-element .action-group.action-bottom [class*=\" icon-\"]{display:none}\n\n/*# sourceMappingURL=taoTaskQueue/component/listing/css/element.css.map */div.task-detail-element{position:relative;padding:10px 20px;width:600px;min-height:250px;background:#f3f1ef}div.task-detail-element .detail-description .label{margin-right:4px;color:#222;font-weight:bold}div.task-detail-element .detail-description .time{margin-left:4px;color:#92918f;font-size:12px;font-size:1.2rem}div.task-detail-element .detail-body{max-height:500px;overflow-y:auto;padding:10px 0}div.task-detail-element .action-top{position:absolute;top:9px;right:14px}div.task-detail-element .action-top [class^=\"icon-\"],div.task-detail-element .action-top [class*=\" icon-\"]{font-size:16px;font-size:1.6rem;color:#222;background-color:transparent;width:20px;height:20px;display:inline-block;padding-left:4px;margin-left:5px;cursor:pointer}div.task-detail-element .action-top [class^=\"icon-\"]:hover,div.task-detail-element .action-top [class*=\" icon-\"]:hover{opacity:0.6}div.task-detail-element .no-detail{display:none}div.task-detail-element.noreport .no-detail{display:block;color:#92918f}\n\n/*# sourceMappingURL=taoTaskQueue/component/listing/css/report.css.map */div.task-listing{position:relative;cursor:default;padding-top:0px}div.task-listing div.box{position:relative;min-height:76px;min-width:360px;background:#f3f1ef;-webkit-box-shadow:0 3px 6px 0px rgba(0,0,0,0.6);-moz-box-shadow:0 3px 6px 0px rgba(0,0,0,0.6);-ms-box-shadow:0 3px 6px 0px rgba(0,0,0,0.6);-o-box-shadow:0 3px 6px 0px rgba(0,0,0,0.6);box-shadow:0 3px 6px 0px rgba(0,0,0,0.6);border:1px solid #ddd;border-radius:2px;-webkit-border-radius:2px}div.task-listing div.box .description{padding:2px 20px;background:#dbd9d7;color:#222;font-weight:bold;border-bottom:solid 1px #ddd;min-height:8px}div.task-listing div.box .arrow{-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);border:1px #ddd solid;border-right:none;border-bottom:none;width:16px;height:16px;background:#dbd9d7;color:#222;position:absolute;right:14px;top:-9px}div.task-listing div.box ul.task-list{position:relative;top:0;left:0;right:0;opacity:1;padding:0 !important;border:none;max-height:460px;overflow:auto;background:#c2c1bf;position:relative}div.task-listing div.box ul.task-list li{position:relative;width:100%;max-height:100px;color:#222;background:#c2c1bf}div.task-listing div.box ul.task-list li:not(:last-child){border-bottom:solid 1px #dbd9d7}div.task-listing div.box ul.task-list li.inserting{max-height:0;-webkit-transition:max-height, .5s, ease-out, 0s;-moz-transition:max-height, .5s, ease-out, 0s;-ms-transition:max-height, .5s, ease-out, 0s;-o-transition:max-height, .5s, ease-out, 0s;transition:max-height, .5s, ease-out, 0s}div.task-listing div.box ul.task-list li.inserting .task-element{height:0px}div.task-listing div.box ul.task-list li.inserted{min-height:70px}div.task-listing div.box ul.task-list li .task-element{transform:scaleY(1);-webkit-transition:scaleY, .6s, ease-out, 0s;-moz-transition:scaleY, .6s, ease-out, 0s;-ms-transition:scaleY, .6s, ease-out, 0s;-o-transition:scaleY, .6s, ease-out, 0s;transition:scaleY, .6s, ease-out, 0s}div.task-listing div.box ul.task-list li .task-element.new-element{transform-origin:20% 0;transform:scaleY(0)}div.task-listing div.box .clear-box{text-align:center;border-top:solid 1px #ddd;background:#eceae8;padding:2px 0}div.task-listing div.box .clear-box .clear-all{text-decoration:none;color:#3e7da7}div.task-listing div.box .clear-box .clear-all:hover{text-decoration:underline;color:#0e5d91}div.task-listing div.box .empty-placeholder{width:100%;position:absolute;top:25px;padding:12px 20px;font-style:italic;color:#222}div.task-listing div.box .view-detail{display:none}div.task-listing.detail-view .box .task-list,div.task-listing.detail-view .box .clear-box{display:none}div.task-listing.detail-view .box .view-detail{display:block;position:relative}\n\n/*# sourceMappingURL=taoTaskQueue/component/listing/css/list.css.map */.task-manager-container{cursor:pointer;position:relative;width:40px;height:64px;background-color:transparent;padding:22px 8px 0px}.task-manager-container:hover{-webkit-transition:background-color 0.2s ease;-moz-transition:background-color 0.2s ease;-ms-transition:background-color 0.2s ease;-o-transition:background-color 0.2s ease;transition:background-color 0.2s ease;background-color:rgba(14,93,145,0.5);text-decoration:none}.dark-bar nav .settings-menu:hover ~ .persistent-menu .task-listing .box{box-shadow:none;border-color:#eee}.dark-bar nav .settings-menu:hover ~ .persistent-menu .task-listing .box .arrow{display:none}\n\n/*# sourceMappingURL=taoTaskQueue/component/manager/css/manager.css.map */"),define("taoTaskQueue/loader/taoTaskQueue.bundle",function(){});
|
|
//# sourceMappingURL=taoTaskQueue.min.js.map
|