diff --git a/.gitignore b/.gitignore index 3e923c5..73407ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store node_modules -/AS-Editor # local env files diff --git a/AS-Editor/config/config.js b/AS-Editor/config/config.js new file mode 100644 index 0000000..0dc647b --- /dev/null +++ b/AS-Editor/config/config.js @@ -0,0 +1,4 @@ +window.global_config = { + BASE_URL: '/api/', + NODE_ENV: 'prd', +} diff --git a/AS-Editor/favicon.ico b/AS-Editor/favicon.ico new file mode 100644 index 0000000..7e73640 Binary files /dev/null and b/AS-Editor/favicon.ico differ diff --git a/AS-Editor/index.html b/AS-Editor/index.html new file mode 100644 index 0000000..bf4161a --- /dev/null +++ b/AS-Editor/index.html @@ -0,0 +1 @@ +
f){var v=c-o+l+d;Ro(r.left,v,n)}},TL=function(e,t){return H(jL.getModes(e),t)},BL=function(e){var t=function(e){return lo(e)+(parseInt(Jn(e,"margin-top"),10)||0)+(parseInt(Jn(e,"margin-bottom"),10)||0)},n=e.element;bn(n).each((function(o){var r="padding-"+jL.getModes(e)[0];if(jL.isDocked(e)){var a=go(o);Gn(n,"width",a+"px"),Gn(o,r,t(n)+"px")}else no(n,"width"),no(o,r)}))},ML=function(e,t){t?(ls(e,CL.fadeOutClass),ss(e,[CL.transitionClass,CL.fadeInClass])):(ls(e,CL.fadeInClass),ss(e,[CL.fadeOutClass,CL.transitionClass]))},NL=function(e,t){var n=tt.fromDom(e.getContainer());t?(as(n,kL),ls(n,SL)):(as(n,SL),ls(n,kL))},_L=function(e,t){var n=pn(t);kd(n).filter((function(e){return!sn(t,e)})).filter((function(t){return sn(t,tt.fromDom(n.dom.body))||fn(e,t)})).each((function(){return jd(t)}))},VL=function(e,t){return Sd(e).orThunk((function(){return t().toOptional().bind((function(e){return Sd(e.element)}))}))},AL=function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(jL.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(BL)})),e.on("SkinLoaded",(function(){n().each((function(e){jL.isDocked(e)?jL.reset(e):jL.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(jL.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){jL.refresh(t);var n=t.element;Jg(n)&&EL(e,n)}))})),e.on("PostRender",(function(){NL(e,!1)}))},DL=function(e){return e().map(jL.isDocked).getOr(!1)},PL=function(){var e;return[gd.config({channels:(e={},e[xL()]={onReceive:BL},e)})]},IL=function(e,t){var n=of(),o=t.getSink,r=function(e){o().each((function(t){return e(t.element)}))},a=function(t){e.inline||BL(t),NL(e,jL.isDocked(t)),t.getSystem().broadcastOn([Oh()],{}),o().each((function(e){return e.getSystem().broadcastOn([Oh()],{})}))},i=e.inline?[]:PL();return N([XO.config({}),jL.config({contextual:B({lazyContext:function(t){var n=lo(t.element),o=e.inline?e.getContentAreaContainer():e.getContainer(),r=Qo(tt.fromDom(o)),a=r.height-n,i=r.y+(TL(t,"top")?0:n);return P.some(Jo(r.x,i,r.width,a))},onShow:function(){r((function(e){return ML(e,!0)}))},onShown:function(e){r((function(e){return us(e,[CL.transitionClass,CL.fadeInClass])})),n.get().each((function(t){_L(e.element,t),n.clear()}))},onHide:function(e){VL(e.element,o).fold(n.clear,n.set),r((function(e){return ML(e,!1)}))},onHidden:function(){r((function(e){return us(e,[CL.transitionClass])}))}},CL),lazyViewport:function(t){var n=er(),o=qk(e),r=n.y+(TL(t,"top")?o:0),a=n.height-(TL(t,"bottom")?o:0);return Jo(n.x,r,n.width,a)},modes:[t.header.getDockingMode()],onDocked:a,onUndocked:a})],i,!0)},zL=Object.freeze({__proto__:null,setup:AL,isDocked:DL,getBehaviours:IL}),RL=function(e){var t=e.editor,n=e.sticky?IL:HR;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:fd(n(t,e.sharedBackstage))}},LL=ea([_a("type"),Ma("items",na([aa([_a("name"),Ra("items",sa)]),sa]))].concat(Cx)),FL=function(e){return Oa("GroupToolbarButton",LL,e)},HL=[$a("text"),$a("tooltip"),$a("icon"),Da("fetch"),ei("onSetup",(function(){return v}))],$L=ea(N([_a("type")],HL,!0)),UL=function(e){return Oa("menubutton",$L,e)},WL=ea([_a("type"),$a("tooltip"),$a("icon"),$a("text"),Ua("select"),Da("fetch"),ei("onSetup",(function(){return v})),Qa("presets","normal",["normal","color","listpreview"]),Ga("columns",1),Da("onAction"),Da("onItemAction")]),qL=function(e){return Oa("SplitButton",WL,e)},KL=function(e,t){var n=function(e,n){var o=q(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},o=UL(n).mapError((function(e){return xa(e)})).getOrDie();return KD(o,"tox-mbtn",t.backstage,P.some("menuitem"))}));RO.set(e,o)},o={focus:BO.focusIn,setMenus:n};return{uid:e.uid,dom:e.dom,components:[],behaviours:fd([RO.config({}),FO("menubar-events",[Hl((function(t){e.onSetup(t)})),_l(Ii(),(function(e,t){zs(e.element,".tox-mbtn--active").each((function(n){Rs(t.event.target,".tox-mbtn").each((function(t){sn(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){IM.expand(e),IM.close(n),XO.focus(e)}))}))}))}))})),_l(vl(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){IM.isOpen(n)&&(IM.expand(e),IM.close(n))}))}))}))]),BO.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),P.some(!0)}}),yB.config({})]),apis:o,domModification:{attributes:{role:"menubar"}}}},GL=fb({factory:KL,name:"silver.Menubar",configFields:[Ba("dom"),Ba("uid"),Ba("onEscape"),Ba("backstage"),Ga("onSetup",v)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),YL=function(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))},XL=function(e){return e.dimension.property},JL=function(e,t){return e.dimension.getDimension(t)},QL=function(e,t){var n=YL(e,t);us(n,[t.shrinkingClass,t.growingClass])},ZL=function(e,t){ls(e.element,t.openClass),as(e.element,t.closedClass),Gn(e.element,XL(t),"0px"),oo(e.element)},eF=function(e,t){ls(e.element,t.closedClass),as(e.element,t.openClass),no(e.element,XL(t))},tF=function(e,t,n,o){n.setCollapsed(),Gn(e.element,XL(t),JL(t,e.element)),oo(e.element),QL(e,t),ZL(e,t),t.onStartShrink(e),t.onShrunk(e)},nF=function(e,t,n,o){var r=o.getOrThunk((function(){return JL(t,e.element)}));n.setCollapsed(),Gn(e.element,XL(t),r),oo(e.element);var a=YL(e,t);ls(a,t.growingClass),as(a,t.shrinkingClass),ZL(e,t),t.onStartShrink(e)},oF=function(e,t,n){var o=JL(t,e.element),r="0px"===o?tF:nF;r(e,t,n,P.some(o))},rF=function(e,t,n){var o=YL(e,t),r=cs(o,t.shrinkingClass),a=JL(t,e.element);eF(e,t);var i=JL(t,e.element),l=function(){Gn(e.element,XL(t),a),oo(e.element)},c=function(){ZL(e,t)},s=r?l:c;s(),ls(o,t.shrinkingClass),as(o,t.growingClass),eF(e,t),Gn(e.element,XL(t),i),n.setExpanded(),t.onStartGrow(e)},aF=function(e,t,n){if(n.isExpanded()){no(e.element,XL(t));var o=JL(t,e.element);Gn(e.element,XL(t),o)}},iF=function(e,t,n){n.isExpanded()||rF(e,t,n)},lF=function(e,t,n){n.isExpanded()&&oF(e,t,n)},cF=function(e,t,n){n.isExpanded()&&tF(e,t,n)},sF=function(e,t,n){return n.isExpanded()},uF=function(e,t,n){return n.isCollapsed()},dF=function(e,t,n){var o=YL(e,t);return!0===cs(o,t.growingClass)},fF=function(e,t,n){var o=YL(e,t);return!0===cs(o,t.shrinkingClass)},pF=function(e,t,n){return dF(e,t)||fF(e,t)},mF=function(e,t,n){var o=n.isExpanded()?oF:rF;o(e,t,n)},hF=Object.freeze({__proto__:null,refresh:aF,grow:iF,shrink:lF,immediateShrink:cF,hasGrown:sF,hasShrunk:uF,isGrowing:dF,isShrinking:fF,isTransitioning:pF,toggleGrow:mF,disableTransitions:QL}),vF=function(e,t,n){var o=t.expanded;return Mc(o?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:pi(t.dimension.property,"0px")})},bF=function(e,t){return Tl([Fl(qi(),(function(n,o){var r=o.event.raw;if(r.propertyName===e.dimension.property){QL(n,e),t.isExpanded()&&no(n.element,e.dimension.property);var a=t.isExpanded()?e.onGrown:e.onShrunk;a(n)}}))])},gF=Object.freeze({__proto__:null,exhibit:vF,events:bF}),yF=[Ba("closedClass"),Ba("openClass"),Ba("shrinkingClass"),Ba("growingClass"),La("getAnimationRoot"),lu("onShrunk"),lu("onStartShrink"),lu("onGrown"),lu("onStartGrow"),Ga("expanded",!1),Ma("dimension",Ca("property",{width:[du("property","width"),du("getDimension",(function(e){return go(e)+"px"}))],height:[du("property","height"),du("getDimension",(function(e){return io(e)+"px"}))]}))],OF=function(e){var t=ri(e.expanded),n=function(){return"expanded: "+t.get()};return kc({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:x(t.set,!1),setExpanded:x(t.set,!0),readState:n})},wF=Object.freeze({__proto__:null,init:OF}),jF=md({fields:yF,name:"sliding",active:gF,apis:hF,state:wF}),xF="container",CF=[tv("slotBehaviours",[])],kF=function(e){return" "+t.translate(e)+" "+n+" j(c/b)&&C("overflow"),i*=b}t=g.length+1,x=N(O-a,t,0==a),j(O/t)>c-w&&C("overflow"),w+=j(O/t),O%=t,g.splice(O++,0,w)}return T(g)}function V(e){var t,n,o,r,a,i,l,f,p,b,g,y,O,w,k,S=[];for(e=E(e),y=e.length,t=h,n=0,a=m,i=0;i';return e?"
>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)}}])&&t(r.prototype,a),n}()}()})),X="logid_start",J="4.5.6-web";return function(n){function o(e){var t=n.call(this,e)||this;t.qimei36="",t.uselessCycleTaskNum=0,t.underWeakNet=!1,t.send=function(e,n,o){t.storage.setItem(c,Date.now().toString()),t.network.post(t.uploadUrl||t.strategy.getUploadUrl(),e.data).then((function(o){var r;100==(null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.result)?t.delayTime=1e3*o.data.delayTime:t.delayTime=0,n&&n(e.data),e.data.events.forEach((function(e){t.store.removeEvent(e).then((function(){t.removeSendingId(h(e.mapValue))}))})),t.doCustomCycleTask()})).catch((function(n){var r=e.data.events;t.errorReport.reportError(n.code?n.code.toString():"600",n.message),o&&o(e.data);var a=JSON.parse(t.storage.getItem(s));r.forEach((function(e){a&&-1!=a.indexOf(h(e))&&t.store.insertEvent(e,(function(e,n){e&&t.errorReport.reportError("604","insertEvent fail!")})),t.removeSendingId(h(e))})),t.monitorUploadFailed()}))};var o,r,a=j();return t.isUnderIE8=a>0&&a<8,t.isUnderIE8||(t.isUnderIE=a>0,e.needInitQimei&&t.initQimei(e.appkey),t.network=new K(e),t.storage=new G(e.appkey),t.initCommonInfo(e),t.store=new M(e.appkey,t.storage),t.errorReport=new g(t.config,t.commonInfo,"web",t.network),t.strategy=new y(t.config,t.commonInfo,t.storage,t.network),t.logidStartTime=t.storage.getItem(X),t.logidStartTime||(t.logidStartTime=Date.now().toString(),t.storage.setItem(X,t.logidStartTime)),o=t.logidStartTime,r=Date.now()-Number.parseFloat(o),Math.floor(r/864e5)>=365&&t.storage.clear(),t.initSession(e),t.onDirectUserAction("rqd_js_init",{}),setTimeout((function(){return t.lifeCycle.emit("init")}),0),t.initDelayTime=e.delay?e.delay:1e3,t.cycleTask(t.initDelayTime)),t}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}(o,n),o.prototype.initQimei=function(e){var t=this;(new Y).getQimei36(e,(function(e){t.qimei36=e.q36}))},o.prototype.initSession=function(e){var t=18e5;e.sessionDuration&&e.sessionDuration>3e4&&(t=e.sessionDuration),this.beaconSession=new w(this.storage,t,this)},o.prototype.initCommonInfo=function(e){var t=Number(this.storage.getItem(c));try{var n=JSON.parse(this.storage.getItem(s));(Date.now()-t>3e4||!n)&&this.storage.setItem(s,JSON.stringify([]))}catch(e){}e.uploadUrl&&(this.uploadUrl=e.uploadUrl+"?appkey="+e.appkey);var o=[window.screen.width,window.screen.height];window.devicePixelRatio&&o.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:o.join("*"),channelID:e.channelID?String(e.channelID):"",openid:e.openid?String(e.openid):"",unid:e.unionid?String(e.unionid):"",sdkVersion:J},this.config.appVersion=e.versionCode?String(e.versionCode):"",this.config.strictMode=e.strictMode},o.prototype.cycleTask=function(e){var t=this;this.intervalID=window.setInterval((function(){t.store.getEvents().then((function(e){var n=[],o=JSON.parse(t.storage.getItem(s));o||(o=[]),e&&e.forEach((function(e){var t=h(e.mapValue);-1==o.indexOf(t)&&(n.push(e),o.push(t))})),0!=n.length&&(t.storage.setItem(s,JSON.stringify(o)),t._normalLogPipeline(t.assembleData(n)))})).catch((function(e){}))}),e)},o.prototype.onReport=function(e,t,n){var o=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{var r=this.generateData(e,t,n);if(n&&0==this.delayTime&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(r));else{var a=r.shift();a&&this.store.insertEvent(a,(function(e){e&&o.errorReport.reportError("604","insertEvent fail!")})).catch((function(e){o._normalLogPipeline(o.assembleData(r))}))}}},o.prototype.onSendBeacon=function(e,t){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{var n=this.assembleData(this.generateData(e,t,!0));"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(n))}},o.prototype.generateData=function(e,n,o){var r=[],a="4.5.6-web_"+(o?"direct_log_id":"normal_log_id"),i=Number(this.storage.getItem(a));return i=i||1,n=t(t({},n),{A99:o?"Y":"N",A100:i.toString(),A72:J,A88:this.logidStartTime}),i++,this.storage.setItem(a,i.toString()),r.push({eventCode:e,eventTime:Date.now().toString(),mapValue:p(n,this.config.strictMode)}),r},o.prototype.assembleData=function(e){var n=this.beaconSession.getSession();return{appVersion:this.config.appVersion?m(this.config.appVersion):"",sdkId:"js",sdkVersion:J,mainAppKey:this.config.appkey,platformId:3,common:p(t(t({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:n.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:e}},o.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},o.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},o}(b)}))}).call(this,n(/*! ./../node_modules/webpack/buildin/global.js */"./node_modules/webpack/buildin/global.js"))},"./lib/crypto.js":
+/*!***********************!*\
+ !*** ./lib/crypto.js ***!
+ \***********************/
+/*! no static exports found */function(e,t,n){(function(e){var t=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),o=o||function(e,t){var n={},o=n.lib={},r=function(){},a=o.Base={extend:function(e){r.prototype=this;var t=new r;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes;if(e=e.sigBytes,this.clamp(),o%4)for(var r=0;r