mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-10 01:48:11 +00:00
1 line
16 KiB
JavaScript
Vendored
1 line
16 KiB
JavaScript
Vendored
"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[846],{31846:(t,e,s)=>{s.r(e),s.d(e,{default:()=>d});var a=s(20629),i=s(69138);function o(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function n(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?o(Object(s),!0).forEach((function(e){r(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function r(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const l={components:{UpdateLog:s(12702).Z},data:function(){return{languageList:i.s0,languageType:i.AX,showItem:{pro:!1,github:"",updateLog:"",updateVer:""},needStartHome:!1,homeFooter:"",uplogShow:!1}},computed:n(n({},(0,a.rn)(["themeMode","themeIsDark","themeList"])),{},{isSoftware:function(){return this.$Electron||this.$isEEUiApp},currentLanguage:function(){return i.s0[i.AX]||"Language"},appTitle:function(){return window.systemInfo.title||"DooTask"}}),mounted:function(){/^https*:/i.test(window.location.protocol)&&("hash"===this.$router.mode?$A.stringLength(window.location.pathname)>2&&(window.location.href="".concat(window.location.origin,"/#").concat(window.location.pathname).concat(window.location.search)):"history"===this.$router.mode&&$A.strExists(window.location.href,"/#/")&&(window.location.href=window.location.href.replace("/#/","/")))},activated:function(){this.getShowItem(),this.getNeedStartHome()},methods:{onPro:function(){this.goForward({name:"pro"})},setTheme:function(t){this.$store.dispatch("setTheme",t)},login:function(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},register:function(){this.goForward({name:"login",query:{type:"reg"}})},windowOpen:function(t){window.open(t)},getShowItem:function(){var t=this;this.$store.dispatch("call",{url:"system/get/showitem",spinner:1e3}).then((function(e){var s=e.data;t.showItem=s})).catch((function(e){t.showItem={}}))},getNeedStartHome:function(){var t=this;if(this.isSoftware)return this.needStartHome=!1,void(this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0));this.$store.dispatch("showSpinner",1e3),this.$store.dispatch("needHome").then((function(e){0===t.userId||"index"===t.$route.query.action?(t.needStartHome=!0,t.homeFooter=e.home_footer):t.goNext()})).catch((function(e){t.needStartHome=!1,t.goNext()})).finally((function(e){t.$store.dispatch("hiddenSpinner")}))},goNext:function(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},onLanguage:function(t){(0,i.m0)(t)}}};const d=(0,s(51900).Z)(l,(function(){var t=this,e=t._self._c;return t.needStartHome?e("div",{staticClass:"page-index"},[e("PageTitle",{attrs:{title:t.appTitle}}),t._v(" "),e("div",{staticClass:"page-warp"},[e("div",{staticClass:"page-header"},[e("div",{staticClass:"header-nav"},[t._m(0),t._v(" "),t.windowWidth>780?e("div",{staticClass:"header-nav-box header-nav-boxs"},[t.showItem.pro?e("Button",{staticClass:"header-right-pro no-dark-content",attrs:{size:"small"},on:{click:t.onPro}},[t._v(t._s(t.$L("Pro版")))]):t._e(),t._v(" "),t.windowWidth>=820?[t.showItem.github?e("a",{staticClass:"header-right-github",attrs:{href:t.showItem.github,target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1):t._e(),t._v(" "),t.showItem.updateLog?e("div",{staticClass:"header-right-uplog",on:{click:function(e){t.uplogShow=!0}}},[t._v(t._s(t.$L("更新日志")))]):t._e()]:t._e(),t._v(" "),e("div",{staticClass:"header-right-1"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onLanguage}},[e("a",{staticClass:"header-right-1-dropdown",attrs:{href:"javascript:void(0)"}},[t._v("\n "+t._s(t.currentLanguage)+"\n "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),t._v(" "),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,(function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])})),1)],1)],1),t._v(" "),t.windowWidth>=980?e("div",{staticClass:"header-right-2"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.setTheme}},[e("a",{staticClass:"header-right-2-dropdown",attrs:{href:"javascript:void(0)"}},[t._v("\n "+t._s(t.$L("主题皮肤"))+"\n "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),t._v(" "),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,(function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])})),1)],1)],1):t._e(),t._v(" "),t.userId>0?e("div",{staticClass:"header-right-5 no-dark-content",on:{click:t.login}},[e("UserAvatar",{attrs:{userid:t.userId,size:38}})],1):[e("div",{staticClass:"header-right-3",on:{click:t.register}},[t._v(t._s(t.$L("注册帐号")))]),t._v(" "),e("div",{staticClass:"header-right-4 no-dark-content",on:{click:t.login}},[t._v(t._s(t.$L("登录")))])]],2):e("div",{staticClass:"header-nav-box header-nav-boxs"},[e("Dropdown",{attrs:{trigger:"click"}},[e("a",{attrs:{href:"javascript:void(0)"}},[e("Icon",{staticClass:"header-nav-more no-dark-content",attrs:{type:"md-menu"}})],1),t._v(" "),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.userId>0?e("DropdownItem",{nativeOn:{click:function(e){return t.login.apply(null,arguments)}}},[e("UserAvatar",{attrs:{userid:t.userId,"show-name":"","show-icon":!1}})],1):[e("DropdownItem",{nativeOn:{click:function(e){return t.login.apply(null,arguments)}}},[t._v(t._s(t.$L("登录")))]),t._v(" "),e("DropdownItem",{nativeOn:{click:function(e){return t.register.apply(null,arguments)}}},[t._v(t._s(t.$L("注册帐号")))])],t._v(" "),t.showItem.github?e("DropdownItem",{nativeOn:{click:function(e){return t.windowOpen(t.showItem.github)}}},[t._v("Github")]):t._e(),t._v(" "),t.showItem.updateLog?e("DropdownItem",{nativeOn:{click:function(e){t.uplogShow=!0}}},[t._v(t._s(t.$L("更新日志")))]):t._e(),t._v(" "),e("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":t.onLanguage}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v("\n "+t._s(t.currentLanguage)+"\n "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t._v(" "),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,(function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])})),1)],1),t._v(" "),e("Dropdown",{attrs:{trigger:"click",placement:"right-end",transfer:""},on:{"on-click":t.setTheme}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v("\n "+t._s(t.$L("主题皮肤"))+"\n "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t._v(" "),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,(function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])})),1)],1)],2)],1)],1)]),t._v(" "),e("div",{staticClass:"header-content"},[e("div",{staticClass:"header-title header-title-one"},[t._v(t._s(t.appTitle))]),t._v(" "),e("div",{staticClass:"header-title"},[t._v("\n "+t._s(t.$L("轻量级任务管理工具"))+"\n ")]),t._v(" "),e("div",{staticClass:"header-tips"},[t._v("\n "+t._s(t.$L("".concat(t.appTitle,"是一款轻量级的开源在线项目任务管理工具,提供各类文档协作工具、在线思维导图、在线流程图、项目管理、任务分发、即时IM,文件管理等工具。")))+"\n ")]),t._v(" "),e("div",{staticClass:"login-buttom no-dark-content",on:{click:t.login}},[t._v("\n "+t._s(t.$L("登录"))+"\n ")])])]),t._v(" "),e("div",{staticClass:"page-header-bottom"},[e("div",{staticClass:"page-header-bottoms"},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/1.png":"images/index/light/1.png"}})],1)]),t._v(" "),e("div",{staticClass:"page-main"},[e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/2.png":"images/index/light/2.png"}})],1),t._v(" "),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(" "),e("h3",[t._v(t._s(t.$L("高效便捷的团队沟通工具")))]),t._v(" "),e("p",[t._v(t._s(t.$L("针对项目和任务建立群组,工作问题可及时沟通,促进团队快速协作,提高团队工作效率。")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("高效便捷的团队沟通工具")))],1),t._v(" "),e("p",[t._v(t._s(t.$L("针对项目和任务建立群组,工作问题可及时沟通,促进团队快速协作,提高团队工作效率。")))])])],1),t._v(" "),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(" "),e("h3",[t._v(t._s(t.$L("强大易用的协同创作云文档")))]),t._v(" "),e("p",[t._v(t._s(t.$L("汇集文档、电子表格、思维笔记等多种在线工具,汇聚企业知识资源于一处,支持多人实时协同编辑,让团队协作更便捷。")))])],1):t._e(),t._v(" "),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/3.png":"images/index/light/3.png"}})],1),t._v(" "),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("强大易用的协同创作云文档")))],1),t._v(" "),e("p",[t._v(t._s(t.$L("汇集文档、电子表格、思维笔记等多种在线工具,汇聚企业知识资源于一处,支持多人实时协同编辑,让团队协作更便捷。")))])]):t._e()],1),t._v(" "),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/4.png":"images/index/light/4.png"}})],1),t._v(" "),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(" "),e("h3",[t._v(t._s(t.$L("便捷易用的项目管理模板")))]),t._v(" "),e("p",[t._v(t._s(t.$L("模版满足多种团队协作场景,同时支持自定义模版,满足团队个性化场景管理需求,可直观的查看项目的进展情况,团队协作更方便。")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("便捷易用的项目管理模板")))],1),t._v(" "),e("p",[t._v(t._s(t.$L("模版满足多种团队协作场景,同时支持自定义模版,满足团队个性化场景管理需求,可直观的查看项目的进展情况,团队协作更方便。")))])])],1),t._v(" "),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(" "),e("h3",[t._v(t._s(t.$L("清晰直观的任务日历")))]),t._v(" "),e("p",[t._v(t._s(t.$L("通过灵活的任务日历,轻松安排每一天的日程,把任务拆解到每天,让工作目标更清晰,时间分配更合理。")))])],1):t._e(),t._v(" "),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/5.png":"images/index/light/5.png"}})],1),t._v(" "),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("清晰直观的任务日历")))],1),t._v(" "),e("p",[t._v(t._s(t.$L("通过灵活的任务日历,轻松安排每一天的日程,把任务拆解到每天,让工作目标更清晰,时间分配更合理。")))])]):t._e()],1),t._v(" "),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/6.png":"images/index/light/6.png"}})],1),t._v(" "),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(" "),e("h3",[t._v(t._s(t.$L("支持多平台应用")))]),t._v(" "),e("p",[t._v(t._s(t.$L("多平台应用支持,打开客户端即可跟进项目任务进度, 同时让你在工作中每一个步骤都能拥有更高效愉悦的体验。")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("支持多平台应用")))],1),t._v(" "),e("p",[t._v(t._s(t.$L("多平台应用支持,打开客户端即可跟进项目任务进度, 同时让你在工作中每一个步骤都能拥有更高效愉悦的体验。")))])])],1)],1),t._v(" "),e("div",{staticClass:"page-footer"},[e("div",{staticClass:"footer-service no-dark-content"},[e("div",{staticClass:"footer-bg-box"},[e("div",{staticClass:"box-title"},[t._v(t._s(t.$L("开启您的 ".concat(t.appTitle," 团队协作"))))]),t._v(" "),e("div",{staticClass:"buttom-box"},[e("div",{staticClass:"login-btn",on:{click:t.login}},[t._v(t._s(t.$L("立即登录")))]),t._v(" "),e("div",{staticClass:"reg-btn",on:{click:t.register}},[t._v(t._s(t.$L("注册")))])])])]),t._v(" "),t.homeFooter?e("div",{staticClass:"footer-copyright",domProps:{innerHTML:t._s(t.homeFooter)}}):t._e()])]),t._v(" "),e("UpdateLog",{attrs:{"update-log":t.showItem.updateLog,"update-ver":t.showItem.updateVer},model:{value:t.uplogShow,callback:function(e){t.uplogShow=e},expression:"uplogShow"}})],1):t._e()}),[function(){var t=this._self._c;return t("div",{staticClass:"header-nav-box"},[t("div",{staticClass:"logo no-dark-content"})])}],!1,null,null,null).exports},12702:(t,e,s)=>{s.d(e,{Z:()=>i});const a={name:"UpdateLog",components:{MarkdownPreview:s(54556).Z},props:{value:{type:Boolean,default:!1},updateVer:{},updateLog:{}},data:function(){return{uplogShow:!1,uplogFull:!1}},watch:{value:{handler:function(t){this.uplogShow=t},immediate:!0},uplogShow:function(t){this.$emit("input",t)}}};const i=(0,s(51900).Z)(a,(function(){var t=this,e=t._self._c;return e("Modal",{attrs:{fullscreen:t.uplogFull,"class-name":"update-log"},model:{value:t.uplogShow,callback:function(e){t.uplogShow=e},expression:"uplogShow"}},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"uplog-head"},[e("div",{staticClass:"uplog-title"},[t._v(t._s(t.$L("更新日志")))]),t._v(" "),t.updateVer?e("Tag",{attrs:{color:"volcano"}},[t._v(t._s(t.updateVer))]):t._e()],1)]),t._v(" "),e("MarkdownPreview",{staticClass:"uplog-body scrollbar-overlay",attrs:{initialValue:t.updateLog}}),t._v(" "),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(e){t.uplogFull=!t.uplogFull}}},[t._v(t._s(t.$L(t.uplogFull?"缩小查看":"全屏查看")))])],1)],1)}),[],!1,null,null,null).exports}}]); |