mirror of https://github.com/go-sonic/sonic.git
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.
1 line
102 KiB
JavaScript
1 line
102 KiB
JavaScript
2 years ago
|
"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[549],{13549:function(O,e,a){a.r(e),a.d(e,{default:function(){return ca}});var t,Q,i=function(){var O=this,e=O.$createElement,a=O._self._c||e;return a("page-view",[a("a-row",{attrs:{gutter:12}},[a("a-col",{staticClass:"pb-3",attrs:{lg:6,md:6,sm:24,xl:6,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"}}},[a("template",{slot:"title"},[a("a-select",{staticClass:"w-full",attrs:{loading:O.themes.loading},on:{change:O.onSelectTheme},model:{value:O.themes.selectedId,callback:function(e){O.$set(O.themes,"selectedId",e)},expression:"themes.selectedId"}},O._l(O.themes.data,(function(e,t){return a("a-select-option",{key:t,attrs:{value:e.id}},[O._v(" "+O._s(e.name)+O._s(e.activated?"(当前启用)":"")+" ")])})),1)],1),a("a-spin",{attrs:{spinning:O.files.loading}},[O.files.data?a("theme-file",{attrs:{files:O.files.data},on:{listenToSelect:O.handleSelectFile}}):O._e()],1)],2)],1),a("a-col",{staticClass:"pb-3",attrs:{lg:18,md:18,sm:24,xl:18,xs:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"}}},[a("a-form",{attrs:{layout:"vertical"}},[a("a-form-item",[a("Codemirror",{ref:"editor",attrs:{extensions:O.editor.extensions,height:"700px"},model:{value:O.files.content,callback:function(e){O.$set(O.files,"content",e)},expression:"files.content"}})],1),a("a-form-item",[a("ReactiveButton",{attrs:{disabled:!O.files.content,errored:O.files.saveErrored,loading:O.files.saving,erroredText:"保存失败",loadedText:"保存成功",text:"保存"},on:{callback:function(e){O.files.saveErrored=!1},click:O.handlerSaveContent}})],1)],1)],1)],1)],1)],1)},r=[],n=(a(31875),a(62888),a(2923),a(21082),a(36591)),o=(a(82395),{name:"ThemeFile",props:{files:{type:Array,required:!1,default:function(){return[]}}},methods:{handleSelectFile:function(O){this.$emit("listenToSelect",O)},renderNode:function(O,e){var a=this,t=this;return e.node&&e.node.length?O("a-tree-node",{props:{key:e.path,title:e.name,isLeaf:e.isFile}},e.node.map((function(e){return a.renderNode(O,e)}))):O("a-tree-node",{props:{key:e.path,title:e.name,isLeaf:e.isFile},nativeOn:{click:function(){t.handleSelectFile(e)}}})}},render:function(O){var e=this;return this.files.length?O("a-directory-tree",this.files.map((function(a){return e.renderNode(O,a)}))):O("p","没有文件")}}),l=o,$=a(70739),s=(0,$.Z)(l,t,Q,!1,null,null,null),p=s.exports,c=a(53298),u=a(26788),d=a(8192),P=a(17918);const f=53,W=1,m=54,T=2,X=55,S=3,g=4,y=5,b=6,R=7,Y=8,x=9,k=10,Z=56,h=11,v=12,V=57,_=18,w=27,q=30,j=33,G=35,z=0,U={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},L={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},E={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function J(O){return 45==O||46==O||58==O||O>=65&&O<=90||95==O||O>=97&&O<=122||O>=161}function C(O){return 9==O||10==O||13==O||32==O}let D=null,N=null,A=0;function I(O,e){let a=O.pos+e;if(A==a&&N==O)return D;let t=O.peek(e);while(C(t))t=O.peek(++e);let Q="";for(;;){if(!J(t))break;Q+=String.fromCharCode(t),t=O.peek(++e)}return N=O,A=a,D=Q||(t==B||t==M?void 0:null)}const F=60,H=62,K=47,B=63,M=33;function OO(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a<O.length;a++)this.hash+=(this.hash<<4)+O.charCodeAt(a)+(O.charCodeAt(a)<<8)}const eO=[g,y,b,R],aO=new d.IK({start:null,shift(O,e,a,t){return eO.indexOf(e)>-1?new OO(I(t,1)||"",O):O},reduce(O,e){return e==_&&O?O.parent:O},reuse(O,e,a,t){let Q=e.type.id;return Q==g||Q==G?new OO(I(t,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),tO=new d.Jq(((O,e)=>{i
|