You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonic/resources/admin/js/107.12df708c.js

1 line
14 KiB
JavaScript

(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[107],{53303:function(e,t,l){var a=l(15820),n=Math.floor,i=function(e,t){var l=e.length,s=n(l/2);return l<8?r(e,t):o(e,i(a(e,0,s),t),i(a(e,s),t),t)},r=function(e,t){var l,a,n=e.length,i=1;while(i<n){a=i,l=e[i];while(a&&t(e[a-1],l)>0)e[a]=e[--a];a!==i++&&(e[a]=l)}return e},o=function(e,t,l,a){var n=t.length,i=l.length,r=0,o=0;while(r<n||o<i)e[r+o]=r<n&&o<i?a(t[r],l[o])<=0?t[r++]:l[o++]:r<n?t[r++]:l[o++];return e};e.exports=i},52103:function(e,t,l){var a=l(82678),n=a.match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},76044:function(e,t,l){var a=l(82678);e.exports=/MSIE|Trident/.test(a)},97551:function(e,t,l){var a=l(82678),n=a.match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},19003:function(e,t,l){"use strict";var a=l(79644),n=l(33691),i=l(77925),r=l(43207),o=l(71768),s=l(43150),c=l(32640),d=l(53303),u=l(29415),h=l(52103),m=l(76044),f=l(3718),p=l(97551),v=[],g=n(v.sort),b=n(v.push),y=c((function(){v.sort(void 0)})),k=c((function(){v.sort(null)})),x=u("sort"),T=!c((function(){if(f)return f<70;if(!(h&&h>3)){if(m)return!0;if(p)return p<603;var e,t,l,a,n="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:l=3;break;case 68:case 71:l=4;break;default:l=2}for(a=0;a<47;a++)v.push({k:t+a,v:l})}for(v.sort((function(e,t){return t.v-e.v})),a=0;a<v.length;a++)t=v[a].k.charAt(0),n.charAt(n.length-1)!==t&&(n+=t);return"DGBEFHACIJK"!==n}})),C=y||!k||!x||!T,M=function(e){return function(t,l){return void 0===l?-1:void 0===t?1:void 0!==e?+e(t,l)||0:s(t)>s(l)?1:-1}};a({target:"Array",proto:!0,forced:C},{sort:function(e){void 0!==e&&i(e);var t=r(this);if(T)return void 0===e?g(t):g(t,e);var l,a,n=[],s=o(t);for(a=0;a<s;a++)a in t&&b(n,t[a]);d(n,M(e)),l=n.length,a=0;while(a<l)t[a]=n[a++];while(a<s)delete t[a++];return t}})},1107:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return k}});var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("page-view",{attrs:{title:e.activatedTheme?e.activatedTheme.name:"无",affix:"",subTitle:"当前启用"}},[l("template",{slot:"extra"},[l("a-button",{attrs:{loading:e.list.loading,icon:"reload"},on:{click:e.handleRefreshThemesCache}},[e._v(" 刷新")]),l("a-button",{attrs:{icon:"plus",type:"primary"},on:{click:function(t){e.installModal.visible=!0}}},[e._v(" 安装")])],1),l("a-row",{attrs:{gutter:12,align:"middle",type:"flex"}},[l("a-col",{attrs:{span:24}},[l("a-list",{attrs:{dataSource:e.sortedThemes,grid:{gutter:12,xs:1,sm:1,md:2,lg:4,xl:4,xxl:4},loading:e.list.loading},scopedSlots:e._u([{key:"renderItem",fn:function(t,a){return l("a-list-item",{key:a},[l("a-card",{attrs:{bodyStyle:{padding:0},title:t.name,hoverable:""}},[l("div",{staticClass:"theme-screenshot"},[l("img",{attrs:{alt:t.name,src:t.screenshots||"/images/placeholder.jpg",loading:"lazy"}})]),l("template",{slot:"actions"},[t.activated?l("div",[l("a-icon",{staticStyle:{"margin-right":"3px"},attrs:{theme:"twoTone",type:"unlock"}}),e._v(" 已启用 ")],1):l("div",{on:{click:function(l){return e.handleActiveTheme(t)}}},[l("a-icon",{staticStyle:{"margin-right":"3px"},attrs:{type:"lock"}}),e._v(" 启用 ")],1),l("div",{on:{click:function(l){return e.handleRouteToThemeSetting(t)}}},[l("a-icon",{staticStyle:{"margin-right":"3px"},attrs:{type:"setting"}}),e._v(" 设置 ")],1),l("a-dropdown",{attrs:{trigger:["click"],placement:"topCenter"}},[l("a",{staticClass:"ant-dropdown-link",attrs:{href:"#"}},[l("a-icon",{staticStyle:{"margin-right":"3px"},attrs:{type:"ellipsis"}}),e._v(" 更多 ")],1),l("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[l("a-menu-item",{key:1,attrs:{disabled:t.activated},on:{click:function(l){return e.handleOpenThemeDeleteModal(t)}}},[l("a-icon",{staticStyle:{"margin-right":"3px"},attrs:{type:"delete"}}),e._v(" 删除 ")],1),t.repo?l("a-menu-item",{key:2,on:{click:function(l){return e.handleConfirmRemoteUpdate(t)}}},[l("a-icon",{staticStyle:{"margin-right":"3px"},attrs:{type:"cloud"}}),e._v(" 在线更新 ")],1):e._e(),l("a-menu-item",{key:3,on:{click:function(l){return e.handleOpenLocalUpdateMo