diff --git a/assets/call-bind@1.0.2-BD5aDJOM.js b/assets/call-bind@1.0.2-BD5aDJOM.js deleted file mode 100644 index a2c37adc..00000000 --- a/assets/call-bind@1.0.2-BD5aDJOM.js +++ /dev/null @@ -1 +0,0 @@ -import{g as f}from"./get-intrinsic@1.2.1-5uWIhZOj.js";import{f as B}from"./function-bind@1.1.2-B8G-TZ45.js";var v={exports:{}};(function(a){var n=B,r=f,e=r("%Function.prototype.apply%"),p=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||n.call(p,e),o=r("%Object.getOwnPropertyDescriptor%",!0),t=r("%Object.defineProperty%",!0),g=r("%Math.max%");if(t)try{t({},"a",{value:1})}catch{t=null}a.exports=function(d){var i=l(n,p,arguments);if(o&&t){var x=o(i,"length");x.configurable&&t(i,"length",{value:1+g(0,d.length-(arguments.length-1))})}return i};var c=function(){return l(n,e,arguments)};t?t(a.exports,"apply",{value:c}):a.exports.apply=c})(v);var $=v.exports,s=f,y=$,h=y(s("String.prototype.indexOf")),b=function(n,r){var e=s(n,!!r);return typeof e=="function"&&h(n,".prototype.")>-1?y(e):e};export{b as c}; diff --git a/assets/en-US-BLn75TTZ.js b/assets/en-US-BLn75TTZ.js deleted file mode 100644 index 912d82af..00000000 --- a/assets/en-US-BLn75TTZ.js +++ /dev/null @@ -1 +0,0 @@ -import{t as K}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const e="The current environment does not support full screen",W={isEnabledFullscreen:e},X=Object.freeze(Object.defineProperty({__proto__:null,default:W,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="Configuration",t={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},n="Display",i="Content Transition",Y={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:i},Z=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:Y},Symbol.toStringTag,{value:"Module"})),r="Reload Current Page",c="Lock",s="Setting",l="Github",a="Full Screen",m="Cancel Full Screen",p="Search",ee={Reload:r,Lock:c,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:p},oe=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:c,Reload:r,Search:p,Setting:s,default:ee},Symbol.toStringTag,{value:"Module"})),u="Home",g="Rely",d="Rely About",_="Chart",f="Scroll Reveal",S="Axios Request",b="Table",h="MultiMenu(catch)",T="Doc",D="Doc (China)",y="Doc(inside)",C="Office",O="Document",R="Presentation",P="Spreadsheet",M="Precision",v="Directive",j="Same Level Router Demo",L="Mock",k="QRCode",I="SVG Icon",U="Template Api",F="Modal",x="Right Click Menu",w="Cache Utils Demo",te={Dashboard:u,Rely:g,RelyAbout:d,Error:"Error Page",Echart:_,scrollReveal:f,Axios:S,Table:b,MultiMenu:h,Doc:T,DocLocal:D,DocLocalInside:y,Office:C,Office_Document:O,Office_Presentation:R,Office_Spreadsheet:P,CalculatePrecision:M,Directive:v,RouterDemo:j,Mock:L,QRCode:k,SvgIcon:I,TemplateHooks:U,Modal:F,ContextMenu:x,CacheDemo:w},ne=Object.freeze(Object.defineProperty({__proto__:null,Axios:S,CacheDemo:w,CalculatePrecision:M,ContextMenu:x,Dashboard:u,Directive:v,Doc:T,DocLocal:D,DocLocalInside:y,Echart:_,Mock:L,Modal:F,MultiMenu:h,Office:C,Office_Document:O,Office_Presentation:R,Office_Spreadsheet:P,QRCode:k,Rely:g,RelyAbout:d,RouterDemo:j,SvgIcon:I,Table:b,TemplateHooks:U,default:te,scrollReveal:f},Symbol.toStringTag,{value:"Module"})),A="Configuration",z={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},E="Interface Display",ie={Title:A,ThemeOptions:z,InterfaceDisplay:E},re=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:E,ThemeOptions:z,Title:A,default:ie},Symbol.toStringTag,{value:"Module"})),Q="Register",N="Signing",G="QRCode Signing",H="please enter user name",$="please enter password",q="Login",B="User Name",V="User Password",J="Fast Background Template",ce={Register:Q,Signing:N,QRCodeSigning:G,NamePlaceholder:H,PasswordPlaceholder:$,Login:q,Name:B,Password:V,RayTemplate:J},se=Object.freeze(Object.defineProperty({__proto__:null,Login:q,Name:B,NamePlaceholder:H,Password:V,PasswordPlaceholder:$,QRCodeSigning:G,RayTemplate:J,Register:Q,Signing:N,default:ce},Symbol.toStringTag,{value:"Module"})),le=Object.assign({"./en-US/globalMessage.json":X,"./en-US/headerSettingOptions.json":Z,"./en-US/headerTooltip.json":oe,"./en-US/menu.json":ne,"./en-US/setting.json":re,"./en-US/views/login/index.json":se}),Ne={message:{...K(le,"en-US")}};export{Ne as default}; diff --git a/assets/en-US-BLn75TTZ.js.gz b/assets/en-US-BLn75TTZ.js.gz deleted file mode 100644 index 5981dd5a..00000000 Binary files a/assets/en-US-BLn75TTZ.js.gz and /dev/null differ diff --git a/assets/export_excel-CkAGWFBN.js b/assets/export_excel-CkAGWFBN.js deleted file mode 100644 index 3db5233c..00000000 --- a/assets/export_excel-CkAGWFBN.js +++ /dev/null @@ -1 +0,0 @@ -const e="/ray-template/assets/export_excel-Re1cVpta.svg";export{e as default}; diff --git a/assets/function-bind@1.1.2-B8G-TZ45.js b/assets/function-bind@1.1.2-B8G-TZ45.js deleted file mode 100644 index 00ddc1c0..00000000 --- a/assets/function-bind@1.1.2-B8G-TZ45.js +++ /dev/null @@ -1 +0,0 @@ -var l="Function.prototype.bind called on incompatible ",y=Object.prototype.toString,g=Math.max,h="[object Function]",v=function(o,t){for(var n=[],r=0;r"u"||!o?r:o(Uint8Array),s={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u&&o?o([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":N,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&o?o(o([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u||!o?r:o(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u||!o?r:o(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&o?o(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":P,"%ThrowTypeError%":_,"%TypedArray%":C,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(o)try{null.error}catch(i){var M=o(o(i));s["%Error.prototype%"]=M}var j=function i(t){var n;if(t==="%AsyncFunction%")n=R("async function () {}");else if(t==="%GeneratorFunction%")n=R("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=R("async function* () {}");else if(t==="%AsyncGenerator%"){var e=i("%AsyncGeneratorFunction%");e&&(n=e.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=i("%AsyncGenerator%");a&&o&&(n=o(a.prototype))}return s[t]=n,n},B={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=T,F=k,W=v.call(Function.call,Array.prototype.concat),D=v.call(Function.apply,Array.prototype.splice),x=v.call(Function.call,String.prototype.replace),b=v.call(Function.call,String.prototype.slice),J=v.call(Function.call,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,q=function(t){var n=b(t,0,1),e=b(t,-1);if(n==="%"&&e!=="%")throw new P("invalid intrinsic syntax, expected closing `%`");if(e==="%"&&n!=="%")throw new P("invalid intrinsic syntax, expected opening `%`");var a=[];return x(t,V,function(p,l,y,m){a[a.length]=y?x(m,z,"$1"):l||p}),a},L=function(t,n){var e=t,a;if(F(B,e)&&(a=B[e],e="%"+a[0]+"%"),F(s,e)){var p=s[e];if(p===A&&(p=j(e)),typeof p>"u"&&!n)throw new d("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:e,value:p}}throw new P("intrinsic "+t+" does not exist!")},X=function(t,n){if(typeof t!="string"||t.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new d('"allowMissing" argument must be a boolean');if(J(/^%?[^%]*%?$/,t)===null)throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=q(t),a=e.length>0?e[0]:"",p=L("%"+a+"%",n),l=p.name,y=p.value,m=!1,U=p.alias;U&&(a=U[0],D(e,W([0,1],U)));for(var S=1,g=!0;S=e.length){var I=c(y,f);g=!!I,g&&"get"in I&&!("originalValue"in I.get)?y=I.get:y=y[f]}else g=F(y,f),y=y[f];g&&!m&&(s[l]=y)}}return y};export{X as g}; diff --git a/assets/get-intrinsic@1.2.1-5uWIhZOj.js.gz b/assets/get-intrinsic@1.2.1-5uWIhZOj.js.gz deleted file mode 100644 index 7b66848a..00000000 Binary files a/assets/get-intrinsic@1.2.1-5uWIhZOj.js.gz and /dev/null differ diff --git a/assets/has-proto@1.0.1-CgulNy6r.js b/assets/has-proto@1.0.1-CgulNy6r.js deleted file mode 100644 index f682ae66..00000000 --- a/assets/has-proto@1.0.1-CgulNy6r.js +++ /dev/null @@ -1 +0,0 @@ -var o={foo:{}},t=Object,_=function(){return{__proto__:o}.foo===o.foo&&!({__proto__:null}instanceof t)};export{_ as h}; diff --git a/assets/has-symbols@1.0.3-eVqrYdw7.js b/assets/has-symbols@1.0.3-eVqrYdw7.js deleted file mode 100644 index f867a92a..00000000 --- a/assets/has-symbols@1.0.3-eVqrYdw7.js +++ /dev/null @@ -1 +0,0 @@ -var a=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),l=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var r=42;t[e]=r;for(e in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(t,e);if(f.value!==r||f.enumerable!==!0)return!1}return!0},n=typeof Symbol<"u"&&Symbol,s=a,b=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()};export{b as h}; diff --git a/assets/has@1.0.3-B6xjtObm.js b/assets/has@1.0.3-B6xjtObm.js deleted file mode 100644 index 9f06dc34..00000000 --- a/assets/has@1.0.3-B6xjtObm.js +++ /dev/null @@ -1 +0,0 @@ -import{f as r}from"./function-bind@1.1.2-B8G-TZ45.js";var o=r,a=o.call(Function.call,Object.prototype.hasOwnProperty);export{a as s}; diff --git a/assets/hooks-BhHffBS8.js b/assets/hooks-BhHffBS8.js deleted file mode 100644 index 187609a4..00000000 --- a/assets/hooks-BhHffBS8.js +++ /dev/null @@ -1,17 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/en-US-BLn75TTZ.js","assets/dayjs@1.11.10-BYZwCyGy.js","assets/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js","assets/canvas@2.11.2-CVRTzJty.js","assets/js-binary-schema-parser@2.0.3-D0akQrQ7.js","assets/print-js@1.6.0-C3lAJnMa.js","assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js","assets/lodash@4.17.21-CM7ROh5r.js","assets/js-cookie@3.0.5-Z_8Sd105.js","assets/screenfull@5.2.0-DuGDi0R7.js","assets/qs@6.11.2-5yoVYNs7.js","assets/side-channel@1.0.4-DiPXwnX9.js","assets/get-intrinsic@1.2.1-5uWIhZOj.js","assets/has-symbols@1.0.3-eVqrYdw7.js","assets/has-proto@1.0.1-CgulNy6r.js","assets/function-bind@1.1.2-B8G-TZ45.js","assets/has@1.0.3-B6xjtObm.js","assets/call-bind@1.0.2-BD5aDJOM.js","assets/currency.js@2.0.4-9OAR_aOO.js","assets/lodash-es@4.17.21-C8H4BJij.js","assets/@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js","assets/@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js","assets/utils-Dx3WEey5.js","assets/interactjs@1.10.26-DmsZVOf4.js","assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js","assets/dom-to-image@2.6.0-CaeIWam-.js","assets/echarts@5.5.0-BEyY33Zi.js","assets/zrender@5.5.0-JN1hODMT.js","assets/tslib@2.3.0-BDyQ-Jie.js","assets/@vue_runtime-core@3.4.21-DW3iHaBZ.js","assets/@vue_reactivity@3.4.21-8_tu8c_o.js","assets/@vue_shared@3.4.21-DCcVmNGw.js","assets/zh-CN-B4BrSi05.js","assets/index-DmvoDQhO.js","assets/index-DsYRgjoY.js","assets/index-DeeQXRbp.css","assets/index-Cy2_cSlW.js","assets/instance-BsZCPX3D.js","assets/index-CTOeMyqn.css","assets/index-GTAGoru-.js","assets/index-CRY21eF9.js","assets/index-4uEHM6pu.js","assets/index-C9mVF7vq.js","assets/index-BqPIKfai.css","assets/index-Bx0BEiE2.js","assets/index-CBEOIsoH.js","assets/index-CZLY0-H-.js","assets/index-C8e0GZr5.js","assets/index-pRjFjSww.js","assets/ray-CES7ACvF.js","assets/index-COneQDUR.js","assets/index-cMo-v_SD.css","assets/index-ClsMUk-h.js","assets/index-DlFOimWs.js","assets/index-Dig957GB.css","assets/index-8ifF5Uik.js","assets/index-CIq6_pk2.css","assets/index-Cg5RYVLG.js","assets/index-Bf3h6amV.js","assets/index-Dq6gNjVH.js","assets/index-G2qqDeP0.css","assets/index-CZ48_9-m.js","assets/index-BhnoEzFG.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -var Do=Object.defineProperty;var zo=(e,t,o)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Fe=(e,t,o)=>(zo(e,typeof t!="symbol"?t+"":t,o),o);import{s as _e,t as ze,c as Io,i as jo}from"./lodash-es@4.17.21-C8H4BJij.js";import{o as Eo,u as le,a as $o,b as Bo,c as Ie,d as we,e as Fo}from"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import{d as F}from"./dayjs@1.11.10-BYZwCyGy.js";import{p as Wo}from"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as ie,i as G,s as je,c as Ko,a as z,r as ae,b as L,d as Uo,u as ye,e as qo,p as Go,f as be,h as We,j as Ho,k as Le,q as Me,l as Yo,m as Xo,n as Zo,o as Qo,w as Jo,t as en,v as K,x as tn}from"./utils-Dx3WEey5.js";import{l as on}from"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import{u as nt}from"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import{i as Ke}from"./interactjs@1.10.26-DmsZVOf4.js";import{s as nn}from"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import{d as ne}from"./dom-to-image@2.6.0-CaeIWam-.js";import{r as rn,u as re,i as an,a as ln,b as sn,c as cn,d as un,e as dn,f as pn,g as mn,h as hn,j as fn,k as gn,l as yn,m as bn,n as vn,o as Vn,p as Sn,q as _n,s as wn}from"./echarts@5.5.0-BEyY33Zi.js";import{f as Cn}from"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import{c as rt,o as at,a as lt}from"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";const kl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const r=e[n].default;let a=n.replace(`./${t}/`,"").replace(/^\.\//,"");const i=a.lastIndexOf(".");a=a.substring(0,i);const l=a.split("/"),s=l.shift(),u=l.join(".");s&&(u?(_e(o,s,o[s]||{}),_e(o[s],u,r)):_e(o,s,r||{}))}),o},Nn="modulepreload",Tn=function(e){return"/ray-template/"+e},Ue={},k=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){const a=document.getElementsByTagName("link");r=Promise.all(o.map(i=>{if(i=Tn(i),i in Ue)return;Ue[i]=!0;const l=i.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!n)for(let p=a.length-1;p>=0;p--){const f=a[p];if(f.href===i&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":Nn,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((p,f)=>{c.addEventListener("load",p),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})},kn=(e,t)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},On=async e=>{var o;const t={};for(const n of e){const r=await kn(Object.assign({"../lang/en-US.ts":()=>k(()=>import("./en-US-BLn75TTZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../lang/zh-CN.ts":()=>k(()=>import("./zh-CN-B4BrSi05.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))}),`../lang/${n.key}.ts`),a=n.key;a&&(t[a]=((o=r==null?void 0:r.default)==null?void 0:o.message)??{})}return t},Ol=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},it={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},xl="",D={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},xn=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],$={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},st=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Rn="zh-CN",An="zh-CN",Pn={"zh-CN":"zh-cn","en-US":"en"},Ln="zh-cn",Rl={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Al={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},ee=Vue.ref(null),Mn={setupRouterLoadingBar:!0,setupRouterGuard:!0},Dn=["RLogin","ErrorPage","RayTemplateDoc"],me=["admin"],Pl=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),r=Vue.ref(!1),{clickOutside:a}=t??{},i=p=>{r.value=p},l=p=>{p.preventDefault(),i(!1),Vue.nextTick().then(()=>{const{clientX:f,clientY:v}=p;o.value=f,n.value=v,i(!0)})};a&&Eo(e,p=>{a(p)});const s=le(e,"contextmenu",l,t),u=le(e,"click",()=>{i(!1)});return{stop:()=>{s(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(r),updateShow:i}},ct=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function U(e,t,o){ct[e]=t,o==null||o()}function X(e){return Vue.readonly(Vue.toRef(ct,e))}let W;const zn=async()=>{const e=xo(),t=await On(st);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:An})},Ll=async e=>{const t=await zn();e.use(t),W=t},qe=(e,t)=>!e||t[0]===e?t:`${e}.${t}`,te=e=>{if(!W)return{t:a=>qe(e,a),locale:a=>{}};const{t,...o}=W.global;return{...o,t:(a,...i)=>a?!a.includes(".")&&!e?a:t(qe(e,a),...i):"",locale:a=>{W.mode==="legacy"?W.global.locale=a:Vue.isRef(W.global.locale)?W.global.locale.value=a:W.global.locale=a}}},x=e=>e,In={path:"/dashboard",name:"RDashboard",component:()=>k(()=>import("./index-DmvoDQhO.js"),__vite__mapDeps([33,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,34,19,20,21,22,23,24,25,26,27,28,29,30,31,35])),meta:{i18nKey:x("menu.Dashboard"),icon:"dashboard",order:0}},jn=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),En={path:"/axios",name:"RAxios",component:()=>k(()=>import("./index-Cy2_cSlW.js"),__vite__mapDeps([36,6,7,2,3,4,8,9,10,11,12,13,14,15,16,17,37,22,18,1,5,19,20,21,23,24,25,26,27,28,29,30,31,38])),meta:{i18nKey:x("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},$n=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Bn={path:"/cache-demo",name:"CacheDemo",component:()=>k(()=>import("./index-GTAGoru-.js"),__vite__mapDeps([39,22,18,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,5,19,20,21,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.CacheDemo"),icon:"other",order:3,extra:{label:"new"}}},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"})),Wn={path:"/context-menu",name:"ContextMenuDemo",component:()=>k(()=>import("./index-CRY21eF9.js"),__vite__mapDeps([40,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.ContextMenu"),icon:"other",order:2}},Kn=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),Un={path:"/directive",name:"RDirective",component:()=>k(()=>import("./index-rdKGIz_K.js"),__vite__mapDeps([])),meta:{i18nKey:x("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},qn=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),q=()=>k(()=>Promise.resolve().then(()=>Sa),void 0),Gn={path:"/doc",name:"RDocLayout",component:q,meta:{i18nKey:x("menu.Doc"),icon:"doc",order:5},children:[{path:"doc-inside",name:"RDocInside",component:()=>k(()=>import("./index-4uEHM6pu.js"),__vite__mapDeps([41,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.DocLocalInside")}},{path:"doc-outside",name:"RDoc",component:q,meta:{i18nKey:x("menu.Doc"),windowOpen:"https://xiaodaigua-ray.github.io/ray-template-doc/"}},{path:"doc-outside-local",name:"RDocLocal",component:q,meta:{i18nKey:x("menu.DocLocal"),windowOpen:"https://ray-template.yunkuangao.com/ray-template-doc/"}}]},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/echart",name:"REchart",component:()=>k(()=>import("./index-C9mVF7vq.js"),__vite__mapDeps([42,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,43])),meta:{i18nKey:x("menu.Echart"),icon:"echart",order:1}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={path:"/iframe",name:"IframeDemo",component:()=>k(()=>import("./index-Bx0BEiE2.js"),__vite__mapDeps([44,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Jn={path:"/mock-demo",name:"MockDemo",component:()=>k(()=>import("./index-CBEOIsoH.js"),__vite__mapDeps([45,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,37,22,19,20,21,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.Mock"),icon:"other",order:3,keepAlive:!1}},er=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),tr={path:"/modal-demo",name:"ModalDemo",component:()=>k(()=>import("./index-CZLY0-H-.js"),__vite__mapDeps([46,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.Modal"),icon:"other",order:3}},or=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),nr={path:"/multi",name:"MultiMenu",component:q,meta:{i18nKey:x("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>k(()=>import("./index-BtZPyenx.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:q,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>k(()=>import("./index-B6a_PCdD.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:q,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>k(()=>import("./index-Cg1Whvge.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},rr=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ar={path:"/precision",name:"CalculatePrecision",component:()=>k(()=>import("./index-C8e0GZr5.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,22,18,19,20,21,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.CalculatePrecision"),icon:"other",order:2}},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),ir={path:"/qrcode",name:"RQRCode",component:()=>k(()=>import("./index-pRjFjSww.js"),__vite__mapDeps([48,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,49,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.QRCode"),icon:"other",order:3}},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),cr={path:"/rely",name:"Rely",component:q,meta:{i18nKey:x("menu.Rely"),icon:"rely",order:999},children:[{path:"rely-about",name:"RelyAbout",component:()=>k(()=>import("./index-COneQDUR.js"),__vite__mapDeps([50,51])),meta:{i18nKey:x("menu.RelyAbout")}}]},ur=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),dr={path:"/router-demo",name:"RouterDemoRoot",component:q,meta:{i18nKey:x("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",name:"RouterDemoHome",component:()=>k(()=>import("./index-ClsMUk-h.js"),__vite__mapDeps([52,1,2,3,4,5,18,19,20,21,22,6,7,8,9,10,11,12,13,14,15,16,17,23,24,25,26,27,28,29,30,31])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",name:"RouterDemoDetail",component:()=>k(()=>import("./index-BRGdSJVO.js"),__vite__mapDeps([])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},pr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),mr={path:"/scroll-reveal",name:"ScrollReveal",component:()=>k(()=>import("./index-DlFOimWs.js"),__vite__mapDeps([53,54])),meta:{i18nKey:x("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},hr=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),fr={path:"/svg-icons",name:"PreviewSVGIcons",component:()=>k(()=>import("./index-8ifF5Uik.js"),__vite__mapDeps([55,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,56])),meta:{i18nKey:x("menu.SvgIcon"),icon:"other",order:3}},gr=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),yr={path:"/table",name:"TableView",component:()=>k(()=>import("./index-Cg5RYVLG.js"),__vite__mapDeps([57,1,2,3,4,5,18,19,20,21,22,6,7,8,9,10,11,12,13,14,15,16,17,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.Table"),icon:"other",order:2}},br=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),vr={path:"/template-hooks",name:"TemplateHooks",component:()=>k(()=>import("./index-Bf3h6amV.js"),__vite__mapDeps([58,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.TemplateHooks"),icon:"other",order:1,extra:{label:"new"}}},Vr=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Sr={path:"/:catchAll(.*)",name:"ErrorPage",component:()=>k(()=>import("./index-Dq6gNjVH.js"),__vite__mapDeps([59,19,20,21,1,2,3,4,5,18,22,6,7,8,9,10,11,12,13,14,15,16,17,23,24,25,26,27,28,29,30,31,60])),meta:{i18nKey:x("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}},_r=Object.freeze(Object.defineProperty({__proto__:null,default:Sr},Symbol.toStringTag,{value:"Module"})),wr=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":jn,"/src/router/modules/demo/axios.ts":$n,"/src/router/modules/demo/cache-demo.ts":Fn,"/src/router/modules/demo/context-menu.ts":Kn,"/src/router/modules/demo/directive.ts":qn,"/src/router/modules/demo/doc.ts":Hn,"/src/router/modules/demo/echart.ts":Xn,"/src/router/modules/demo/iframe.ts":Qn,"/src/router/modules/demo/mock.ts":er,"/src/router/modules/demo/modal.ts":or,"/src/router/modules/demo/multi-menu.ts":rr,"/src/router/modules/demo/precision.ts":lr,"/src/router/modules/demo/qrcode.ts":sr,"/src/router/modules/demo/rely.ts":ur,"/src/router/modules/demo/router-demo.ts":pr,"/src/router/modules/demo/scroll-reveal.ts":hr,"/src/router/modules/demo/svg-icons.ts":gr,"/src/router/modules/demo/table.ts":br,"/src/router/modules/demo/template-hooks.ts":Vr,"/src/router/modules/error404.ts":_r});return Object.keys(e).reduce((o,n)=>{const r=e[n].default;if(r)o.push(r);else throw new Error("router helper combine: an exception occurred while parsing the routing file!");return o},[])},Cr=e=>e.sort((t,o)=>{var a,i;const n=((a=t.meta)==null?void 0:a.order)??1,r=((i=o.meta)==null?void 0:i.order)??0;if(typeof n!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===r?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-r}),Nr=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=ee.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Tr=e=>{const{beforeEach:t}=e,{getRootPath:o}=oe(),n=(r,a)=>r.path==="/"||a.path==="/login";t((r,a,i)=>{const l=ie(D.token),s=ie(D.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=r;l!==null?n(r,a)?Ne(!0):!G(c,"Symbol")&&c&&Dn.includes(c)?i():No(u)?n(r,a)?s?i(s):Ne(!0):i():Ne(!0):n(r,a)?i():i("/")})};var kr={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.6","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.1"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ut=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=kr,{locale:t}=te(),{locale:o}=ol(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:xo(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"}}),r=l=>{t(l),o(l),n.localeLanguage=l,je(D.localeLanguage,l,"localStorage")},a=(l,s=.3)=>{const u=Ko(l,s),c={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};n.primaryColorOverride.common=c;const p=document.body;p.style.setProperty("--ray-theme-primary-color",l),p.style.setProperty("--ray-theme-primary-fade-color",u)},i=(l,s,u)=>{Reflect.has(n,l)&&(n[l]=s),u==null||u()};return Cn(()=>n.appTheme,l=>{l?Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:r,changePrimaryColor:a,updateSettingState:i}},{persist:{key:D.appPiniaSettingStore}}),dt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],pt="transparent",mt={},ht={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},ft={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},gt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},yt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},bt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},St={itemStyle:{borderWidth:0,borderColor:"#ccc"}},_t={itemStyle:{borderWidth:0,borderColor:"#ccc"}},wt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ct={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Nt={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},Tt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},kt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Ot={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},xt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Rt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},At={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Pt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Lt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Mt={textStyle:{color:"#999999"}},Dt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},zt={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},It={color:["#fc97af","#87f7cf"]},jt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Et={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Or={color:dt,backgroundColor:pt,textStyle:mt,title:ht,line:ft,radar:gt,bar:yt,pie:bt,scatter:vt,boxplot:Vt,parallel:St,sankey:_t,funnel:wt,gauge:Ct,candlestick:Nt,graph:Tt,map:kt,geo:Ot,categoryAxis:xt,valueAxis:Rt,logAxis:At,timeAxis:Pt,toolbox:Lt,legend:Mt,tooltip:Dt,timeline:zt,visualMap:It,dataZoom:jt,markPoint:Et},xr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:pt,bar:yt,boxplot:Vt,candlestick:Nt,categoryAxis:xt,color:dt,dataZoom:jt,default:Or,funnel:wt,gauge:Ct,geo:Ot,graph:Tt,legend:Mt,line:ft,logAxis:At,map:kt,markPoint:Et,parallel:St,pie:bt,radar:gt,sankey:_t,scatter:vt,textStyle:mt,timeAxis:Pt,timeline:zt,title:ht,toolbox:Lt,tooltip:Dt,valueAxis:Rt,visualMap:It},Symbol.toStringTag,{value:"Module"})),$t=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],Bt="transparent",Ft={},Wt={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},Kt={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Ut={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},qt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Yt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Xt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Zt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Qt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Jt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},eo={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},to={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},oo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},no={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},ro={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ao={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},lo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},io={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},so={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},co={textStyle:{color:"#333333"}},uo={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},po={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},mo={color:["#5ab1ef","#e0ffff"]},ho={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},fo={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Rr={color:$t,backgroundColor:Bt,textStyle:Ft,title:Wt,line:Kt,radar:Ut,bar:qt,pie:Gt,scatter:Ht,boxplot:Yt,parallel:Xt,sankey:Zt,funnel:Qt,gauge:Jt,candlestick:eo,graph:to,map:oo,geo:no,categoryAxis:ro,valueAxis:ao,logAxis:lo,timeAxis:io,toolbox:so,legend:co,tooltip:uo,timeline:po,visualMap:mo,dataZoom:ho,markPoint:fo},Ar=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Bt,bar:qt,boxplot:Yt,candlestick:eo,categoryAxis:ro,color:$t,dataZoom:ho,default:Rr,funnel:Qt,gauge:Jt,geo:no,graph:to,legend:co,line:Kt,logAxis:lo,map:oo,markPoint:fo,parallel:Xt,pie:Gt,radar:Ut,sankey:Zt,scatter:Ht,textStyle:Ft,timeAxis:io,timeline:po,title:Wt,toolbox:so,tooltip:uo,valueAxis:ao,visualMap:mo},Symbol.toStringTag,{value:"Module"})),Pr=()=>{const e=Object.assign({"/src/echart-themes/macarons/macarons-dark.json":xr,"/src/echart-themes/macarons/macarons.json":Ar}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,r)=>{var i;const a=(i=r.match(t))==null?void 0:i[1];if(a)return n.push({name:a,theme:e[r].default}),n;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},Lr=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),Mr={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Lr()},autoResizeObserverTarget:{type:Object,default:null},throttleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]})}},Dr={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},zr=Pr(),Ge="__R_CHART_DOWN_LOAD_CHART__";zr.forEach(e=>{rn(e.name,e.theme)});const Ml=Vue.defineComponent({name:"RChart",props:Mr,setup(e,{expose:t}){const{getAppTheme:o}=j(),n=Vue.ref(),r=Vue.ref(),a=Vue.ref();let i,l;const{echartTheme:s}=$;let u,c;const p=Vue.computed(()=>[{label:"下载图片",key:Ge,disabled:!(a.value&&a.value.getDom())}]),f=Vue.computed(()=>({"--ray-chart-width":z(e.width),"--ray-chart-height":z(e.height)})),v=Vue.ref(!1);let y;const h=async()=>{var O;re([ln,sn,cn,un,dn,pn,mn,hn]),re([fn,gn,yn,bn,vn,Vn]),re([Sn,_n]),re([wn]);try{re((O=e.use)==null?void 0:O.filter(Boolean))}catch(R){console.error("[RChart register error]: ",R)}},b=()=>{if(c!=null&&c.getDom()&&w(),e.theme==="default"){e.autoChangeTheme?m("dark"):m("");return}if(e.theme)m(e.theme);else{const O=e.autoChangeTheme&&o.value?`${s}-dark`:s;m(O)}},d=O=>{let R=Vue.unref(O);const A=E=>Object.assign({},R,E);return e.showAria&&(R=A({aria:{enabled:!0,decal:{show:!0}}})),R},m=(O=s)=>{const R=n.value,A=d(e.options),{height:E,width:Q}=R.getBoundingClientRect(),{onSuccess:ue,onError:de}=e;try{c=an(R,O,{width:Q===0?200:void 0,height:E===0?200:void 0}),a.value=c,ue&&L(ue,c),e.nextTick?(c.setOption({}),Vue.nextTick(()=>{A&&(c==null||c.setOption(A))})):A&&(c==null||c.setOption(A))}catch(Se){de&&L(de),console.error("[RChart]: render error: ",Se)}},V=()=>!(c&&c.getDom()),w=()=>{V()||(c.clear(),c.dispose(),a.value=void 0,c=null)},g=()=>{c&&c.resize()},S=(O,R)=>{if(O===Ge&&!V()){const{filename:E,...Q}=e.downloadOptions;Uo(c.getDataURL(Q),E??`${new Date().getTime()}`)}const{onDropdownSelect:A}=e;A&&L(A,O,R)},T=()=>{e.autoResize&&(i||(i=ze(g,e.throttleWait)),l||(l=Bo(e.autoResizeObserverTarget||r,i))),!(c!=null&&c.getDom())&&(!v.value&&e.intersectionObserver||(b(),y==null||y.stop()))};e.intersectionObserver&&(y=$o(e.intersectionObserverTarget||r,([O])=>{v.value=O.isIntersecting},e.intersectionOptions));const P=()=>{w(),i==null||i.cancel(),l==null||l.stop(),y==null||y.stop(),y=null,i=null,l=null};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(w(),b())}),Vue.watch(()=>e.showAria,()=>{w(),b()}),Vue.watchEffect(()=>{e.watchOptions?u=Vue.watch(()=>e.options,O=>{const R=d(O),A=Object.assign({},e.setChartOptions,Dr);c==null||c.setOption(R,A)},{deep:!0}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading(),v.value&&T()}),t({echart:a,dispose:P,render:T,isDispose:V}),Vue.onBeforeMount(async()=>{await h()}),Vue.onMounted(()=>{T()}),Vue.onBeforeUnmount(()=>{P(),u==null||u()}),{rayChartRef:n,cssVarsRef:f,rayChartWrapperRef:r,moreDropDownOptions:p,dropdownSelect:S}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:r,bordered:a,dropdownOptions:i}=this,{cardExtra:l}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a},{default:ae(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ae(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ae(l,{defaultElement:Vue.createVNode(go,{iconSize:18,cursor:"pointer",options:i??n,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Ir={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},Dl=Vue.defineComponent({name:"RCollapseGrid",props:Ir,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:r,"onUpdate:value":a}=e;r&&L(r,t.value),a&&L(a,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(C,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var o,n;return[(n=(o=this.$slots).action)==null?void 0:n.call(o),this.CollapseIcon()]}})]})]}})})}}),jr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},C=Vue.defineComponent({name:"RIcon",props:jr,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?z(e.width):z(e.size),"--ray-icon-height":e.height?z(e.height):z(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor}));return{symbolId:t,cssVars:o,iconClick:r=>{const{onClick:a}=e;a&&L(a,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Er={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},wrapperClass:{type:String,default:null}},zl=Vue.defineComponent({name:"RIframe",props:Er,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":z(e.frameborder),"--ray-iframe-width":z(e.width),"--ray-iframe-height":z(e.height)})),n=Vue.ref(),r=Vue.ref(!0),a=l=>{r.value=!1;const{onSuccess:s}=e;s&&L(s,n.value,l)},i=l=>{r.value=!1;const{onError:s}=e;s&&L(s,l)};return le(n,"load",a),le(n,"error",i),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.wrapperClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),$r={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Br=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(r=>{setTimeout(()=>{const a=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const i=Ke(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Ke.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{n==null||n(l)}}}).resizable(!1);r(i)}},30)})},Il=Vue.defineComponent({name:"RModal",props:$r,setup(e){const{height:t}=Ie(),o=Vue.computed(()=>({"--r-modal-width":z(e.width??600),"--r-modal-card-width":z(e.cardWidth??600),"--r-modal-dialog-width":z(e.dialogWidth??446)})),n=ye();let r;const a={x:0,y:0},i=()=>e.preset==="card"&&e.fullscreen,l=()=>{const s=document.getElementById(n);s&&Br(s,e.preset,{scheduler:u=>{const c=u.target;a.x+=u.dx,a.y+=u.dy,c.style.transform=`translate(${a.x}px, ${a.y}px)`}}).then(u=>{r=u})};return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{l();const u=document.getElementById(n);e.memo&&u&&(u.style.transform=`translate(${a.x}px, ${a.y}px)`)}):(r==null||r.unset(),r=null)},{immediate:!0}),{cssVars:o,height:t,isFullscreenCardType:i,uuidEl:n}},render(){const{isFullscreenCardType:e}=this,{$props:t,$slots:o,$attrs:n}=this,{preset:r,...a}=t,{cssVars:i,height:l,uuidEl:s}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:["r-modal",e()?"r-modal__preset-card--fullscreen":""],style:[i,e()?`height: ${l}px`:""],preset:r},{id:s},a,n),{...o})}}),Fr={...naive.dropdownProps,iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function Wr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const go=Vue.defineComponent({name:"RMoreDropdown",props:Fr,render(){let e;const{iconSize:t,cursor:o}=this,{default:n}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),Wr(e=ae(n,{defaultElement:Vue.createVNode(C,{name:"more",size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),Kr={loadingDescription:{type:String},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:e=>[0,1,2,3].includes(e)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}},Ur=e=>new Promise((t,o)=>{const n=new XMLHttpRequest;n.responseType="blob",n.onload=()=>{const r=new FileReader;r.onloadend=()=>{t(r.result)},r.onerror=a=>{o(a)},r.onabort=a=>{o(a)},r.readAsArrayBuffer(n.response)},n.open("GET",e),n.send()}),jl=Vue.defineComponent({name:"RayQRcode",props:Kr,setup(e,t){const{expose:o}=t,n=Vue.ref();let r,a;const i=async()=>{const{gifBackgroundURL:c}=e;if(c)try{r=await Ur(c)}catch(p){console.error(p)}},l=()=>{const{gifBackground:c,...p}=e;new on.AwesomeQR({...p,gifBackground:r??void 0}).draw().then(f=>{const{onSuccess:v}=e;v&&L(v,f),n.value=f}).catch(f=>{const{onError:v}=e;v&&L(v,f)})},s=()=>{if(t.slots.errorAction)return;const{onReload:c}=e;c&&L(c)},u=c=>n.value&&G(n.value,"String")?qo(n.value,c||new Date().getTime()+".png"):Promise.reject();return Vue.watchEffect(()=>{e.watchText?a=Vue.watch(()=>e.text,()=>l()):a==null||a()}),o({downloadQRCode:u}),Vue.onMounted(async()=>{await i(),l()}),Vue.onBeforeUnmount(()=>{a==null||a()}),{qrcodeURL:n,errorActionClick:s}},render(){const{qrcodeURL:e,status:t,loadingDescription:o,errorDescription:n,$slots:r,errorActionDescription:a}=this,{errorActionClick:i}=this;return Vue.createVNode("div",{class:["ray-qrcode",`ray-qrcode--${t}`]},[Vue.createVNode(naive.NSpin,{show:t==="loading",description:o},{default:()=>[Vue.createVNode("img",{src:e},null)]}),t==="error"?Vue.createVNode("div",{class:"ray-qrcode__error"},[Vue.createVNode("div",{class:"ray-qrcode__error-content"},[G(n,"String")?n:()=>n]),Vue.createVNode("div",{class:"ray-qrcode__error-btn",onClick:i.bind(this)},[r.errorAction?r.errorAction():Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{text:!0,type:"primary",color:"#ffffff"},{default:()=>a,icon:()=>Vue.createVNode(C,{name:"reload",size:"16",color:"#ffffff"},null)})])])]):null])}}),se={...naive.dataTableProps,downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null}},B={tableIconSize:"18",tableKey:Symbol("r-table")},qr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...se},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:a}=e;a&&L(a,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(C,{name:"adjustment",size:B.tableIconSize,cursor:"pointer"},null)]})}}),Gr=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(B.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=nt(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(C,{name:"fullscreen",size:B.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),Hr=()=>Vue.createVNode(C,{name:"draggable",size:14,cursor:"all-scroll"},null),He=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:e,size:B.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),De=(e,t)=>{if(!t)return[null,null];for(let o=0;oe.columns.map((i,l)=>{const{key:s,title:u,children:c,fixed:p,isResizable:f,...v}=i,y=p==="left",h=p==="right",b={...v,title:u,key:s,fixed:p,isLeftFixedActivated:y,isRightFixedActivated:h,isResizable:f};return{...b,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(He,{icon:"row_head",title:"固定在列首",customClassName:y?Ce:"",onClick:r.bind(this,"left",b,l)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:"resize_h",size:B.tableIconSize,cursor:"pointer",customClassName:f?Ce:"",onClick:n.bind(this,b,l)},null),default:()=>"修改列宽"}),Vue.createVNode(He,{icon:"row_end",title:"固定在列尾",customClassName:h?Ce:"",onClick:r.bind(this,"right",b,l)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:l}=e;l&&L(l,i)},n=(i,l)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[l]=i,o(t.value)},r=(i,l,s)=>{const u=`${i}FixedActivated`,c=`${i==="left"?"right":"left"}FixedActivated`;l[c]=!1,l[u]=!l[u],l[u]?l.fixed=i:l.fixed=void 0,t.value[s]=l,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:l,dropPosition:s})=>{const[u,c]=De(l,t.value);if(u===null||c===null)return;u.splice(c,1);const[p,f]=De(i,t.value);p===null||f===null||(s==="before"?p.splice(f,0,l):p.splice(f+1,0,l),o(p))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:"setting",size:B.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Hr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Xr=Vue.defineComponent({name:"TablePrint",props:se,setup(e){const{wrapperRef:t}=Vue.inject(B.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:r}={},title:a}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof a=="string"?a:""),Go(t,{printOptions:n,domToImageOptions:r})}}},render(){return Vue.createVNode(C,{name:"print",size:B.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),Zr=Vue.defineComponent({name:"TablePropsSelect",props:{...se,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],r=i=>{const{onPopselectChange:l}=e;l&&L(l,i)};return(()=>{const{striped:i,bordered:l,onInitialed:s}=e;i&&o.value.push("striped"),l&&o.value.push("bordered"),s&&L(s,o.value)})(),{propsPopselectValue:o,propsOptions:n,popoverShow:t,updatePopselectValue:r}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:this.propsOptions,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(C,{name:"expanded",size:B.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Qr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const El=Vue.defineComponent({name:"RTable",props:se,setup(e,t){const{expose:o}=t,n=Vue.ref(),r=Vue.ref(),a=ye(16),i=ye(16),l=Vue.reactive({x:0,y:0,showContextMenu:!1}),s=Vue.reactive({size:e.size}),u=Vue.ref({striped:!1,bordered:!1}),c=(d,m)=>{const{onContextMenuClick:V}=e;V&&L(V,d,m),l.showContextMenu=!1},p=(d,m)=>{var w;return{...(w=e.rowProps)==null?void 0:w.call(e,d,m),onContextmenu:e.disabledContextMenu?void 0:g=>{g.preventDefault(),l.showContextMenu=!1,Vue.nextTick().then(()=>{l.showContextMenu=!0,l.x=g.clientX,l.y=g.clientY})}}},f=d=>{s.size=d},v=d=>{const{onUpdateColumns:m,"onUpdate:columns":V}=e;m&&L(m,d),V&&L(V,d)},y=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(()=>Boolean).map(m=>typeof m=="function"?m():m)},h=d=>{Object.keys(u.value).forEach(V=>{u.value[V]=d.includes(V)})},b=d=>{const m=()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Xr,d,null),Vue.createVNode(qr,Vue.mergeProps(d,{onChangeSize:f.bind(this)}),null),Vue.createVNode(Gr,null,null),Vue.createVNode(Yr,Vue.mergeProps(d,{onUpdateColumn:v.bind(this)}),null),Vue.createVNode(Zr,Vue.mergeProps(d,{onPopselectChange:h.bind(this),onInitialed:h.bind(this)}),null)]);return e.toolOptions?e.coverTool?y:()=>Vue.createVNode(Vue.Fragment,null,[m(),y()]):m};return Vue.provide(B.tableKey,{uuidTable:i,uuidWrapper:a,wrapperRef:r}),o({rTableInst:n,uuidTable:i,uuidWrapper:a}),{uuidWrapper:a,uuidTable:i,contextMenuReactive:l,rTableInst:n,combineRowProps:p,contextMenuSelect:c,privateReactive:s,tool:b,wrapperRef:r,propsPopselectValue:u}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:r,disabledContextMenu:a,contextMenuReactive:i,contextMenuOptions:l,uuidTable:s,title:u,$slots:c,propsPopselectValue:p}=this,{tool:f,combineRowProps:v,contextMenuSelect:y}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps({ref:"wrapperRef",bordered:o},{id:n}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({ref:"rTableInst"},{id:s},t,e,p,{rowProps:v.bind(this),size:r.size}),{...c}),a?null:Vue.createVNode(naive.NDropdown,{show:i.showContextMenu,placement:"bottom-start",trigger:"manual",x:i.x,y:i.y,options:l,onClickoutside:()=>i.showContextMenu=!1,onSelect:y.bind(this)},null)]),header:ae(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":()=>{let h;return Vue.createVNode(naive.NFlex,{align:"center"},Qr(h=f(e))?h:{default:()=>[h]})},footer:()=>{var h;return(h=c.tableFooter)==null?void 0:h.call(c)},action:()=>{var h;return(h=c.tableAction)==null?void 0:h.call(c)}})}}),Jr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},ea=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Jr),setup(e){const{getKeepAliveInclude:t}=da(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:r}=it;return(a,i)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createBlock(l,null,{default:Vue.withCtx(({Component:s,route:u})=>[s?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})}}});var ta={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.6","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.1"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const oa=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,yo=(e,t,o)=>{const n=[];if(oa(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const r of e.children){const a=yo(r,t,o);a.length>0&&n.push(e,...a)}return n},na=(e,t,o)=>{const n=[];for(const r of e){const a=yo(r,t,o);a.length>0&&n.push(...a)}return n},ra=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}=ta,n=o?o.title:"";document.title=t+" - "+n},aa=e=>{const{meta:{icon:t}}=e;if(!t)return;if(G(t,"Object"))return()=>t;const o=Vue.h(C,{name:t,size:Y.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},bo=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=te(),{label:r,icon:a,type:i,i18nLabel:l}=t,s={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>l?n(l):r||null,c=()=>a&&(l||r)||!a&&(l||r)?null:{"padding-right":"0"};if(G(t,"Object"))return()=>Vue.h(naive.NTag,{...s,type:i||"primary",style:c()},{default:()=>u(),icon:()=>a})},Ye=()=>{const{getRootPath:e}=oe();return ie(D.appMenuKey,"sessionStorage",{defaultValue:e.value})},la=e=>e[0]==="/",vo=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const r of e){const a=o+(la(r.path)?r.path:"/"+r.path);if((n=r.children)!=null&&n.length){vo(r.children,t,a);continue}else t.push({...r,path:a})}return t},ia=e=>Array.isArray(e)?vo(Io(e)):[],Vo=()=>Cr(wr()),sa=()=>ia(Vo());let he;const So=(e,t)=>{var o;if(he&&We(he.fullPath,t))return he;for(const n of e){if(We(n.fullPath,t))return he=n,n;if((o=n.children)!=null&&o.length){So(n.children,t);continue}}},_o=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=te(),{setKeepAliveInclude:r}=pa(),a=Vue.reactive({menuKey:Ye(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=Vue.ref(!0),l=d=>{const{meta:m}=d,{i18nKey:V,noLocalTitle:w}=m,g=Vue.computed(()=>V?n(`${V}`):w),S={...d,key:d.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>g.value}),breadcrumbLabel:g.value},T=Object.assign({},S,{icon:aa(d),extra:bo(d)});return d.fullPath===Ye()&&(a.currentMenuOption=T),T.show=To(T),T},s=d=>{a.breadcrumbOptions=na(a.options,"fullPath",d)},u=(d,m=!0)=>{const w=Array.isArray(d)?[...d]:[d];m?a.menuTagOptions.push(...w):a.menuTagOptions=w},c=(d,m)=>{a.menuTagOptions.find(w=>w.fullPath===d)||a.menuTagOptions.push(m)},p=(d,m,V)=>{const{meta:w}=m;if(w.windowOpen)window.open(w.windowOpen);else{e({path:String(d),query:V});const{sameLevel:g}=w;if(r(m),ra(m),!g)c(d,m),s(d),a.menuKey=d,a.currentMenuOption=m,je(D.appMenuKey,d);else{const S=be(l(m),["breadcrumbLabel","children","key","meta","name","path","show"]);a.breadcrumbOptions.find(P=>P.key===S.key)||a.breadcrumbOptions.push({...S,fullPath:String(S.key)})}}},f=async(d,m)=>{const[V]=d.split("?"),w=t().find(g=>g.path===V);if(w){const g=be(w,["children","meta","path","name","redirect"]);p(V,l({...g,fullPath:g.path}),m)}},v=()=>new Promise(d=>{const m=(V,w)=>{var S;const g=[];for(const T of V){let P=`${w.endsWith("/")?w:w+"/"}${T.path}`;if(P=P.replace(/\/+/g,"/"),(S=T.children)!=null&&S.length)T.children=m(T.children,P);else if(!No(T.meta))continue;g.push(l({...T,fullPath:P}))}return g};if(a.options=m(Vo(),""),a.currentMenuOption){const{currentMenuOption:V}=a;s(V.key),c(V.fullPath,V)}d()}),y=d=>a.collapsed=d,h=(d,m=1)=>a.menuTagOptions.splice(d,m),b=async()=>{i.value&&(await v(),i.value=!1)};return Vue.watch(()=>o.fullPath,async(d,m)=>{await b(),d!==m&&await f(d,o.query)},{immediate:!0}),{...Vue.toRefs(a),changeMenuModelValue:p,collapsedMenu:y,spliceMenTagOptions:h,setMenuTagOptions:u,resolveOption:l}},{persist:{key:D.appPiniaMenuStore,storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),wo=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((r,a)=>{jo(n)?a({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{window.$message.info("账号退出中..."),Ho("__all_sessionStorage__","sessionStorage"),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:D.appPiniaSigningStore,paths:["signingCallback"],storage:sessionStorage}}),Co=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=it,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=a=>{const i=o(),{name:l,meta:{keepAlive:s}}=a;if(s){if(i=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:r}},{persist:{key:D.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),Z=()=>{const e=_o(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:l}=oe();return e.menuTagOptions.map((s,u,c)=>(s.key===n.value&&s.key!==l.value?s.closeable=!0:s.closeable=!1,s.key===l.value&&(s.closeable=!1),c.length<=1&&(s.closeable=!1),s))}),a=Vue.computed(()=>e.currentMenuOption),i=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:r,getCurrentMenuOption:a,getCollapsed:i}},ce=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}=_o();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}},j=()=>{const e=ut(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),a=Vue.computed(()=>e.breadcrumbSwitch),i=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),s=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),p=Vue.computed(()=>e.watermarkConfig),f=Vue.computed(()=>e.appRootRoute);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:r,getBreadcrumbSwitch:a,getLocaleLanguage:i,getLockScreenSwitch:l,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:p,getAppRootRoute:f}},I=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=ut();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},ca=()=>{const e=wo();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},ua=()=>{const{signing:e,logout:t}=wo();return{signing:e,logout:t}},da=()=>{const e=Co();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},pa=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Co();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},$l=e=>{const t=Pinia.createPinia();e.use(t),t.use(nn)},No=e=>{const{getSigningCallback:t}=ca(),{role:o}=e;return me!=null&&me.length&&me.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},To=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:r}=t,{MODE:a}=Le();return!(n||o||r&&typeof r=="string"&&r!==a||r&&Array.isArray(r)&&!r.includes(a))},ma=e=>{e.beforeEach(()=>{window==null||window.$loadingBar.start()}),e.afterEach(()=>{window==null||window.$loadingBar.finish()}),e.onError(()=>{window==null||window.$loadingBar.error()})},ha=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Mn;t&&ma(e),o&&Tr(e)},Ne=(e=!0)=>{const{router:t}=Ee(),{push:o,replace:n}=t,{getRootPath:r}=oe();je(D.appMenuKey,r.value),e?n(r.value):o(r.value)};var fa={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.6","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.1"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ga=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=fa;return{sideBarLogo:t,handleSideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:r})=>Vue.createVNode(C,{name:t.icon,size:"30",cursor:r},null)}},render(){var e,t,o,n;return(e=this.sideBarLogo)!=null&&e.icon&&((t=this.sideBarLogo)!=null&&t.title)?Vue.createVNode("div",{class:["ray-menu__logo",(o=this.sideBarLogo)!=null&&o.url?"ray-menu__logo-url":null],onClick:this.handleSideBarLogoClick.bind(this)},[(n=this.sideBarLogo)!=null&&n.icon?this.collapsed?Vue.createVNode(naive.NPopover,{placement:"right"},{trigger:()=>Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null),default:()=>{var r;return(r=this.sideBarLogo)==null?void 0:r.title}}):Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null):null,Vue.createVNode("h1",{class:[this.collapsed?null:"ray-menu__logo-title--open","ray-menu__logo-title"]},[Vue.createVNode(naive.NEllipsis,null,{default:()=>{var r;return[(r=this.sideBarLogo)==null?void 0:r.title]}})])]):null}}),ya=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o}=ce(),{getMenuOptions:n,getCollapsed:r,getMenuKey:a}=Z(),i=Vue.computed({get:()=>(Vue.nextTick().then(()=>{u()}),a.value),set:()=>{l.value&&U("globalDrawerValue",!1)}}),{isTabletOrSmaller:l}=Ve(),s=Vue.computed({get:()=>X("globalDrawerValue").value,set:p=>{U("globalDrawerValue",p)}}),u=()=>{const p=i.value;Vue.nextTick().then(()=>{var f,v;(v=(f=e.value)==null?void 0:f.showOption)==null||v.call(f,p)})};return{isTabletOrSmaller:l,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!l.value,collapseMode:Y.menuCollapsedMode,collapsedWidth:Y.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1},{default:()=>[Vue.createVNode(ga,{collapsed:r.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:i.value,"onUpdate:value":p=>i.value=p,options:n.value,indent:Y.menuCollapsedIndent,collapsed:r.value,collapsedIconSize:Y.menuCollapsedIconSize,collapsedWidth:Y.menuCollapsedWidth,onUpdateValue:(p,f)=>{t(p,f)},accordion:Y.menuAccordion},null)]}),modelGlobalDrawerValue:s}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class ba{constructor(){Fe(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(n,r)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Te={requestInstance:null,responseInstance:null},ke={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},fe={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},va=new ba,Bl=()=>{const e=(l,s)=>{s==="requestInstance"?Te.requestInstance=l:Te.responseInstance=l},t=l=>Te[l],o=(l,s,u)=>{u==="ok"?ke[l]=s:fe[l]=s},n=(l,s)=>s==="ok"?ke[l]:fe[l],r=(l,...s)=>{Array.isArray(l)&&l.forEach(u=>{typeof u=="function"&&u(...s)})};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(l,s,u)=>{const c=u==="ok"?ke[s]:fe[s],p=t(l),{MODE:f}=Le();p&&r(c,p,f)},fetchError:(l,s,u)=>{const c=fe[u],{MODE:p}=Le();r(c,s,p)}}},Va=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{va.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),ko=Vue.defineComponent({name:"LayoutContentWrapper",setup(){const e=VueRouter.useRouter(),{maximize:t}=Oo(),{getContentTransition:o}=j(),n=Vue.ref(!1),r={opacitySpinning:"0"},a=X("globalMainLayoutLoad"),i=X("layoutContentMaximize"),l=X("layoutContentSpinning");return(()=>{e.beforeEach(()=>{n.value=!0}),e.afterEach(()=>{n.value=!1})})(),{globalMainLayoutLoad:a,spinning:n,themeOverridesSpin:r,getContentTransition:o,layoutContentMaximize:i,maximize:t,layoutContentSpinning:l}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o}=this,{maximize:n}=this;return Vue.createVNode(naive.NSpin,{show:this.spinning||!e||o,description:"loading...",size:"large",themeOverrides:this.themeOverridesSpin,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(C,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(Va,null,null),e?Vue.createVNode(ea,{class:"content-wrapper",transitionPropName:this.getContentTransition+"-transform"},null):null]})}}),Sa=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"}));var _a={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.6","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.1"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const wa=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=_a;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Xe=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=r=>{t("click",r)};return{iconClick:o,Icon:()=>Vue.createVNode(C,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Ca=Vue.defineComponent({name:"ThemeSwitch",setup(){const{changeDarkTheme:e,changeLightTheme:t}=al(),{getAppTheme:o}=j(),n=Vue.ref(o.value);return{changeDarkTheme:e,changeLightTheme:t,getAppTheme:o,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,changeDarkTheme:t,changeLightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:n.bind(this),onUpdateValue:r=>r?t():o()},{"checked-icon":()=>Vue.createVNode(C,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(C,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function ge(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Na=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:n}=I(),{getAppTheme:r,getPrimaryColorOverride:a,getMenuTagSwitch:i,getBreadcrumbSwitch:l,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c}=j(),p=Vue.computed({get:()=>e.show,set:v=>{t("update:show",v)}}),f=Vue.computed({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:s.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:v=>{}});return{modelShow:p,changePrimaryColor:o,getAppTheme:r,getPrimaryColorOverride:a,updateSettingState:n,modelSwitchReactive:f}},render(){let e,t,o,n;const{$t:r,changePrimaryColor:a,updateSettingState:i}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Ca,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:$.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":l=>this.getPrimaryColorOverride.common.primaryColor=l,onUpdateValue:a.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(o=r("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:xn,onUpdateValue:l=>{i("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(n=r("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getMenuTagSwitch=l,onUpdateValue:l=>i("menuTagSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getBreadcrumbSwitch=l,onUpdateValue:l=>i("breadcrumbSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getWatermarkSwitch=l,onUpdateValue:l=>i("watermarkSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getCopyrightSwitch=l,onUpdateValue:l=>i("copyrightSwitch",l)},null)]})]})]})]})]})}});function Ta(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ka=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ce(),{getBreadcrumbOptions:t}=Z(),{isTabletOrSmaller:o}=Ve();return{getBreadcrumbOptions:t,dropdownSelect:(a,i)=>{e(a,i)},breadcrumbItemClick:a=>{var i;if(!((i=a.children)!=null&&i.length)){const{meta:l={}}=a;l.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Ta(e=o.map(a=>Vue.createVNode(naive.NBreadcrumbItem,{key:a.fullPath,onClick:r.bind(this,a)},{default:()=>{var i;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((i=a.children)==null?void 0:i.length)>1?a.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Oe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Oa=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ce(),{getRoutes:r}=VueRouter.useRouter(),a=Vue.computed({get:()=>e.show,set:g=>{t("update:show",g),g||f()}}),i=Vue.reactive({searchValue:null,searchOptions:[]}),l=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let s=0,u=s;const{isTabletOrSmaller:c}=Ve(),p=Vue.ref(!1),f=()=>{i.searchOptions=[],i.searchValue=null,s=0,u=s},v=g=>{a.value||(g.ctrlKey||g.metaKey)&&g.key==="k"&&(g.preventDefault(),g.stopPropagation(),f(),a.value=!0)},y=g=>{if(g)p.value=!0;else{p.value=!1,i.searchOptions=[];return}const S=r().reduce((T,P)=>{var E;const O=be(P,["children","meta","path","name"]),R=n({...O,fullPath:P.path}),{breadcrumbLabel:A}=R;return(E=A==null?void 0:A.toLocaleLowerCase())!=null&&E.includes(g.toLocaleLowerCase())&&To(R)&&T.push(R),T},[]);setTimeout(()=>{i.searchOptions=S,Vue.nextTick().then(()=>{b()}),p.value=!1},500)},h=g=>{if(g){const{meta:S}=g;S.windowOpen?window.open(S.windowOpen):(a.value=!1,o(g.fullPath,g))}},b=()=>{const g=i.searchOptions[s],S=i.searchOptions[u],T="content-item--active";g&&Vue.nextTick().then(()=>{const P=Me(`attr:data_path="${g.path}"`),O=S?Me(`attr:data_path="${S==null?void 0:S.path}"`):null;if(O!=null&&O.length){const[R]=O;Yo(R,T)}if(P!=null&&P.length){const[R]=P;Xo(R,T)}})},d=g=>{const{icon:S}=g;return typeof S=="string"?Vue.createVNode(C,{name:S,size:"24"},null):typeof S=="function"?()=>S:Vue.createVNode(C,{name:"search",size:"24"},null)},m=g=>{g==="up"?s=s-1<0?0:s-1:g==="down"&&(s=s+1>=i.searchOptions.length?i.searchOptions.length-1:s+1)},V=g=>{const S=g.key;switch((S==="ArrowUp"||S==="ArrowDown"||S==="Enter")&&(g.preventDefault(),g.stopPropagation()),u=s<=0?0:s,S){case"ArrowUp":m("up");break;case"ArrowDown":m("down");break;case"Enter":const T=i.searchOptions[s];T&&h(T);break}b()},w=({menuOption:g})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:h.bind(this,g),data_path:g.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[d(g.meta)]),Vue.createVNode("div",{class:"content-item-label"},[g.breadcrumbLabel]),Vue.createVNode(C,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{c.value&&(a.value=!1)}),le(window,"keydown",g=>{v(g),V(g)},!0),{...Vue.toRefs(i),modelShow:a,helperTipOptions:l,fuzzySearchMenuOptions:ze(y,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:w,loading:p}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:r}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(C,{name:"search",size:"24"},null)}),default:()=>{let a;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Oe(a=t.map((i,l)=>Vue.createVNode(n,{menuOption:i,key:i.fullPath},null)))?a:{default:()=>[a]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createTextVNode("没有搜索结果")]})})]})]})},action:()=>{let a;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Oe(a=this.helperTipOptions.map(i=>Vue.createVNode(naive.NFlex,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(l=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Oe(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?a:{default:()=>[a]})}})])])]})}});function xa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ra=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=Zo();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:r}=e;r&&L(r,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(C,{name:"search",size:"16"},null),default:()=>{let n;return Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode(naive.NButton,{size:"tiny"},xa(n=e())?n:{default:()=>[n]})]})}})}}),Aa=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,...naive.flexProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){const t=ie(D.signing),o=Vue.computed(()=>({"--app-avatar-cursor":e.cursor}));return{signing:t,cssVars:o}},render(){const{signing:e,cssVars:t,spaceSize:o,avatarSize:n,$props:r}=this;return Vue.createVNode(naive.NFlex,Vue.mergeProps({class:"app-avatar"},this.$props,{style:t,size:o}),{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(r,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),Vue.createVNode("div",{class:"app-avatar__name"},[e==null?void 0:e.name])]})}}),Pa=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],La={logout:()=>{const{logout:e}=ua();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=I();e("lockScreenSwitch",!0)}},Ma=e=>{const t=La[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Da=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},za=e=>{const{isFullscreen:t,isTabletOrSmaller:o}=e,{t:n}=te(),r=[{name:"fullscreen",size:18,tooltip:t.value?n("headerTooltip.CancelFullScreen"):n("headerTooltip.FullScreen"),eventKey:"screen"},{name:"github",size:18,tooltip:n("headerTooltip.Github"),eventKey:"github"},{name:"setting",size:18,tooltip:n("headerTooltip.Setting"),eventKey:"setting"}],a=[...r],i=[...r];return o.value?i:a},Ia=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=I(),{t:o}=te(),[n,{toggleFullscreen:r,isEnabled:a}]=nt(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:l}=j(),s=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=Ve(),p=X("globalDrawerValue"),f=Vue.computed(()=>Da({isFullscreen:n,isTabletOrSmaller:c})),v=Vue.computed(()=>za({isFullscreen:n,isTabletOrSmaller:c})),y={search:()=>{u.value=!0},setting:()=>{s.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(o("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{U("globalDrawerValue",!p.value)}};return{leftIconOptions:f,rightTooltipIconOptions:v,toolIconClick:d=>{var m;(m=y[d])==null||m.call(y)},showSettings:s,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:l,globalSearchShown:u,isRenderVNode:d=>c.value?null:d}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:r,updateLocale:a,isRenderVNode:i}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Oa,{show:this.globalSearchShown,"onUpdate:show":l=>this.globalSearchShown=l},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[t.map(l=>Vue.createVNode(Xe,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:r.bind(this,l.name)},null)),n?Vue.createVNode(ka,null,null):null]}),Vue.createVNode(naive.NFlex,{align:"center",size:[16,0]},{default:()=>[i(Vue.createVNode(Ra,{onClick:l=>{l.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(l=>Vue.createVNode(Xe,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:r.bind(this,l.name)},null)),Vue.createVNode(naive.NDropdown,{options:st,onSelect:l=>a(String(l)),trigger:"click"},{default:()=>[Vue.createVNode(C,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]}),Vue.createVNode(naive.NDropdown,{options:Pa(),onSelect:Ma.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(Aa,{avatarSize:"small",align:"center",cursor:"pointer"},null)]})]})]}),Vue.createVNode(Na,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:o},null)]})}}),ja=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(Ia,null,null)]})}}),Ea={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},$a=lt('',1),Ba=[$a];function Fa(e,t){return at(),rt("svg",Ea,[...Ba])}const Wa={render:Fa},Ka={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},Ua=lt('',1),qa=[Ua];function Ga(e,t){return at(),rt("svg",Ka,[...qa])}const Ha={render:Ga};function Ya(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Xa=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:r}=Z(),{changeMenuModelValue:a}=ce(),{getRootPath:i}=oe(),{maximize:l}=Oo(),{reload:s}=rl(),{close:u,closeAll:c,closeRight:p,closeLeft:f,closeOther:v,checkCloseLeft:y,checkCloseRight:h}=ll(),b=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let d=1/0;const m={size:16},V=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(C,{name:"reload",size:m.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(C,{name:"close",size:m.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(Ha,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(Wa,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(C,{name:"other",size:m.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(C,{name:"resize_h",size:m.size},null),disabled:!1}]),w=ye(16),g={closeCurrentPage:()=>{n.value!==i.value&&u(d)},reloadCurrentPage:()=>{s()},closeAll:()=>{c()},closeRight:()=>{p(d)},closeLeft:()=>{f(d)},closeOther:()=>{v(d)}},S=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),T="menu_tag_data",P=X("globalMainLayoutLoad"),O="n-scrollbar-container",R=_=>{u(_)},A=(_,N)=>{V.value.forEach(M=>{if(M.key===_){M.disabled=N;return}})},E=_=>{S.actionDropdownShow=!1,a(_.fullPath,_)},Q=()=>{const _=document.getElementById(w);if(_)return Array.from(_.childNodes).find(pe=>Qo(pe,O).value)},ue=_=>{var M;const N=Q();if(N){const pe=N.scrollLeft||0,Be=_==="left"?Math.max(0,pe-200):pe+200;(M=o.value)==null||M.scrollTo({left:Be,behavior:"smooth"})}},de=_=>{S.actionDropdownShow=!1;const N=g[_];N&&N()},Se=(_,N)=>{N.preventDefault(),S.actionDropdownShow=!1,d=_,Vue.nextTick(()=>{S.actionDropdownShow=!0,S.x=N.clientX,S.y=N.clientY})},$e=()=>{const{closeable:_}=r.value[d]??{};A("closeCurrentPage",!_),h(d)?A("closeRight",!1):A("closeRight",!0),y(d)?A("closeLeft",!1):A("closeLeft",!0)},Ro=()=>{d=r.value.findIndex(N=>N.fullPath===n.value),$e()},Ao=_=>{r.value.length>1&&_.fullPath!==i.value&&(_.closeable=!0)},Po=_=>{_.fullPath!==n.value&&(_.closeable=!1)},Lo=()=>{Q()&&Vue.nextTick().then(()=>{var N;(N=o.value)==null||N.scrollTo({left:99999,behavior:"smooth"})})},Mo=()=>{Vue.nextTick().then(()=>{const _=Me(`attr:${T}="${n.value}"`);if(_!=null&&_.length){const[N]=_;Vue.nextTick().then(()=>{var M;(M=o.value)==null||M.scrollTo({left:N.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(_,N)=>{V.value.forEach(M=>{b.includes(M.key)&&(_.length>1?M.disabled=!1:M.disabled=!0)}),N!=null&&N.length&&(_.length>(N==null?void 0:N.length)?Lo():_.length===(N==null?void 0:N.length)&&Mo())},{immediate:!0}),Vue.watch(()=>S.actionDropdownShow,_=>{var N;_&&((N=ze($e,100))==null||N())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:R,getMenuKey:n,menuTagClick:E,moreOptions:V,scrollX:ue,scrollRef:o,uuidScrollBar:w,actionDropdownSelect:de,actionState:S,menuTagContextMenu:Se,setCurrentContextmenuIndex:Ro,menuTagMouseenter:Ao,menuTagMouseleave:Po,MENU_TAG_DATA:T,iconConfig:{width:22,height:22},maximize:l,getRootPath:i,reload:s,globalMainLayoutLoad:P}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:r,MENU_TAG_DATA:a,globalMainLayoutLoad:i}=this,{maximize:l,closeCurrentMenuTag:s,scrollX:u,$t:c,menuTagClick:p,menuTagContextMenu:f,menuTagMouseenter:v,menuTagMouseleave:y,actionDropdownSelect:h,reload:b}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:h.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(C,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Ya(e=r.map((d,m)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:d.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:d.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,d),onContextmenu:f.bind(this,m),onMouseenter:v.bind(this,d),onMouseleave:y.bind(this,d),[a]:d.path}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:V,meta:{i18nKey:w}}=d;return w?c(w):V}}),(d.closeable||r.length===1)&&d.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,m)}),{default:()=>[Vue.createVNode(C,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[d.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(C,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(C,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{l(!0)}},null),Vue.createVNode(C,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${i?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{b()}},null),Vue.createVNode(go,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(C,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),Za=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(Xa,null,null)}}),Qa=e=>{const t=we(e[0]),o=we(e[1]),n=we(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},Ze=Fo(D.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),Ja=()=>({setLockAppScreen:o=>{Ze.value=o},getLockAppScreen:()=>Ze.value}),el=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:r}=j(),{getLockAppScreen:a}=Ja(),i=Qa([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:i,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0},{default:()=>[Vue.createVNode(ya,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(ja,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(Za,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:ee,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(ko,null,null)]}),o?Vue.createVNode(wa,{ref:"layoutFooterRef"},null):null]})]})}}),tl=[{path:"/",name:"RLogin",component:()=>k(()=>import("./index-CZ48_9-m.js"),__vite__mapDeps([61,22,18,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,5,19,49,20,21,34,23,24,25,26,27,28,29,30,31,62]))},{path:"/",name:"RLayout",component:el,children:sa()}],ve=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:tl,scrollBehavior:e=>{Nr(e)}}),Fl=e=>{e.use(ve),ha(ve)},Ee=()=>ve?{router:ve}:{router:{}},Qe="YYYY-MM-DD HH:mm:ss",ol=()=>({locale:i=>{const l=Pn[i];l?F.locale(l):F.locale(Ln)},getStartAndEndOfDay:i=>{const{format:l=Qe}=i??{},s=F(),u=s.startOf("day"),c=s.endOf("day"),p=s.format(l),f=u.format(l);return{today:s,startOfDay:u,endOfDay:c,formatToday:p,formatStartOfDay:f}},format:(i,l)=>{const{format:s=Qe}=l??{};return F(i).format(s)},isDayjs:i=>F.isDayjs(i),daysDiff:(i,l)=>{const s=F(i);return F(l).diff(s,"days")},isDateInRange:(i,l)=>{const{start:s,end:u}=l,c=F(i);return c.isAfter(s)&&c.isBefore(u)}});function Ve(e){const{width:t,height:o}=Ie(e),n=Vue.ref(!1);return Jo(()=>{n.value=t.value<=768}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let Je=999,xe=!1;const H="ELEMENT-FULLSCREEN-RAY",{height:et}=Ie(),tt=document.createElement("style"),nl=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:r,exit:a,backgroundColor:i,zIndex:l}=t??{},s={};let u=!1;const c=()=>{const h=K(e);if(!h)return;const{left:b,top:d}=h.getBoundingClientRect(),m=` - [${H}] { - position: fixed; - width: 100% !important; - height: ${et.value}px !important; - transform: translate(-${b}px, -${d}px) !important; - transition: all 0.3s var(--r-bezier); - z-index: ${G(l,"Null")||G(l,"Undefined")?Je:l} !important; - background-color: ${i??null}; - } - `;tt.innerHTML=m,xe||document.head.appendChild(tt)},p=()=>{const h=K(e);o==null||o(),h&&(h.getAttribute(H)||h.setAttribute(H,H),u||(u=!0,Je+=1),xe||(c(),xe=!0),s.transition=h.style.transition,h.style.transition="all 0.3s var(--r-bezier)",r==null||r())},f=()=>{n==null||n();const h=K(e);h&&h.removeAttribute(H),a==null||a()},v=()=>{const h=K(e);h&&(h.getAttribute(H)?f():p())},y=Vue.watch(()=>et.value,c);return en(()=>{const h=K(e);h&&(h.style.transition=s.transition??"",h.removeAttribute(H)),y()}),{enter:p,exit:f,toggleFullscreen:v}},Re={svg:ne.toSvg,png:ne.toPng,jpeg:ne.toJpeg,blob:ne.toBlob,pixelData:ne.toPixelData},Wl=(e,t)=>{const{beforeCreate:o,created:n,createdError:r,finally:a,imageType:i}=t??{};return{create:s=>new Promise((u,c)=>{var f;const p=K(e);if(o==null||o(p),!p)return r==null||r(),c("useDomToImage: element is undefined.");(f=Re[s??i??"jpeg"])==null||f.call(Re,p,t).then(v=>(n==null||n(v,p),u(v))).catch(v=>(r==null||r(v),c(v))).finally(()=>{a==null||a()})})}},Kl=(e,t)=>({print:()=>{const n=K(e)||e;Wo({...tn(t,["printable"]),printable:n})}}),Oo=()=>({isLayoutContentMaximized:Vue.computed(()=>X("layoutContentMaximize").value),maximize:(o,n)=>{var l;const{scrollToOptions:r}=n??{},a=K(ee),{toggleFullscreen:i}=nl(a,n);U("layoutContentMaximize",o),i(),r&&o&&((l=ee==null?void 0:ee.value)==null||l.scrollTo(r))}}),rl=()=>({reload:(n=800)=>{U("globalMainLayoutLoad",!1),setTimeout(()=>U("globalMainLayoutLoad",!0),n)},openSpin:()=>{U("layoutContentSpinning",!0)},closeSpin:()=>{U("layoutContentSpinning",!1)}}),Ul=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:a}=j(),i=Object.assign(a.value,{content:r}),{updateSettingState:l}=I();l("watermarkConfig",i)},showWatermark:()=>{const{updateSettingState:r}=I();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=I();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=j(),{updateSettingState:a}=I();a("watermarkSwitch",!r.value)}}),Ae=e=>{const{getPrimaryColorOverride:t}=j(),{updateSettingState:o}=I();o("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},al=()=>{const e=()=>{const{getAppTheme:r}=j(),{t:a}=te();return{theme:r.value,themeLabel:r.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light")}};return{changeDarkTheme:()=>{const{updateSettingState:r}=I();r("appTheme",!0),Ae(!0)},changeLightTheme:()=>{const{updateSettingState:r}=I();r("appTheme",!1),Ae(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:a}=I();a("appTheme",!r),Ae(!r)},getAppTheme:e}},J=(e,t)=>{const{getMenuTagOptions:o}=Z();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(r=>r.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,r=o.value.findIndex(a=>a.fullPath===n);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function ll(){const{getMenuTagOptions:e,getMenuKey:t}=Z(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:a}=ce(),i=()=>e.value.findIndex(y=>y.fullPath===t.value);return{close:y=>{const h=J(y,"close");if(e.value.length!==1&&h){const{index:b,option:d}=h;if(n(b),d.fullPath===t.value){const m=e.value[b-1];m&&o(m.fullPath,m)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:y}=oe(),{router:{getRoutes:h}}=Ee(),b=h().find(d=>d.path===y.value);if(b){const d=be(b,["children","meta","path","name","redirect"]),m=a(d);o(m.path,a({...m,fullPath:m.path}))}},closeRight:y=>{const h=J(y,"closeRight");if(h){const{option:b,index:d}=h,m=e.value.length-d,V=i();n(d+1,m),d<=V&&t.value!==b.fullPath&&o(b.fullPath,b)}},closeLeft:y=>{const h=J(y,"closeLeft");if(h){const{option:b,index:d}=h,m=i();n(0,d),m<=d&&t.value!==b.fullPath&&o(b.fullPath,b)}},closeOther:y=>{const h=J(y,"closeOther");if(h){const{option:b}=h;t.value!==b.fullPath?(n(0,e.value.length),o(b.fullPath,b)):r(b,!1)}},getCurrentTagIndex:i,checkCloseRight:y=>{const h=J(y,"checkCloseRight");if(h){const{index:b}=h,d=e.value.length-1;return!(b>=d)}return!1},checkCloseLeft:y=>{const h=J(y,"checkCloseRight");if(h){const{index:b}=h,d=e.value.length-1;return b===0?!1:b>0&&d>0}return!1}}}function ql(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:r,replace:a}}=Ee(),{isPush:i=!0,query:l}=o||{},s=u=>i?r({path:u,query:l}):a({path:u,query:l});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=Z();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],p=f=>{if(f.children&&f.children.length>0){const{children:[v]}=f;p(v);return}s(f.fullPath)};p(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?s(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else s(t.fullPath)}}}function oe(){const{getAppRootRoute:e}=j(),{updateSettingState:t}=I(),o=e,n=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:r,setRootRoute:i=>{t("appRootRoute",Object.assign({},e.value,i))}}}const il=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=bo(e)},ot=(e,t,o)=>{const n=So(e,t);n&&il(n,o)},Pe=(e,t,o)=>{const{getMenuOptions:n}=Z();if(typeof e=="string")ot(n.value,e,o);else if(G(e,"Object")){const{fullPath:r}=e;ot(n.value,r,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function Gl(){return{hidden:n=>{Pe(n,"hidden",{show:!1})},show:n=>{Pe(n,"show",{show:!0})},update:(n,r)=>{Pe(n,"update",r)}}}const xo=()=>ie(D.localeLanguage,"localStorage",{defaultValue:Rn});export{xl as A,va as B,Bl as C,Ln as D,Al as E,go as F,Oo as G,ql as H,rl as I,Ul as J,al as K,st as L,Gl as M,Ne as N,Il as R,Ca as T,k as _,Kl as a,Rl as b,j as c,D as d,I as e,Aa as f,Ol as g,Ja as h,ua as i,Ve as j,X as k,Ll as l,Fl as m,oe as n,te as o,U as p,jl as q,C as r,$l as s,kl as t,Wl as u,Pl as v,zl as w,Ml as x,Dl as y,El as z}; diff --git a/assets/hooks-BhHffBS8.js.gz b/assets/hooks-BhHffBS8.js.gz deleted file mode 100644 index cae47bd0..00000000 Binary files a/assets/hooks-BhHffBS8.js.gz and /dev/null differ diff --git a/assets/index-4uEHM6pu.js b/assets/index-4uEHM6pu.js deleted file mode 100644 index 2915b8c7..00000000 --- a/assets/index-4uEHM6pu.js +++ /dev/null @@ -1 +0,0 @@ -import{w as t}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const A=Vue.defineComponent({name:"RTemplateDoc",setup(){return{}},render(){return Vue.createVNode(t,{width:"100%",height:"100%",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",lazy:!0},null)}});export{A as default}; diff --git a/assets/index-4uEHM6pu.js.gz b/assets/index-4uEHM6pu.js.gz deleted file mode 100644 index 64fbe49f..00000000 Binary files a/assets/index-4uEHM6pu.js.gz and /dev/null differ diff --git a/assets/index-8ifF5Uik.js b/assets/index-8ifF5Uik.js deleted file mode 100644 index 8245e5d3..00000000 --- a/assets/index-8ifF5Uik.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{r as s,_}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";function e(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Vue.isVNode(o)}const F=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const o=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/adjustment.svg":()=>_(()=>import("./adjustment-DIo_g8Za.js"),__vite__mapDeps([])),"/src/icons/axios.svg":()=>_(()=>import("./axios-o8g4A-7A.js"),__vite__mapDeps([])),"/src/icons/close.svg":()=>_(()=>import("./close-10SEVxdb.js"),__vite__mapDeps([])),"/src/icons/close_left.svg":()=>_(()=>import("./close_left-C6k2eGWg.js"),__vite__mapDeps([])),"/src/icons/close_right.svg":()=>_(()=>import("./close_right-CrnE5vtw.js"),__vite__mapDeps([])),"/src/icons/dark.svg":()=>_(()=>import("./dark-BqsidBpX.js"),__vite__mapDeps([])),"/src/icons/dashboard.svg":()=>_(()=>import("./dashboard-70op-CO0.js"),__vite__mapDeps([])),"/src/icons/doc.svg":()=>_(()=>import("./doc-DOlmxwep.js"),__vite__mapDeps([])),"/src/icons/draggable.svg":()=>_(()=>import("./draggable-D6qza0mp.js"),__vite__mapDeps([])),"/src/icons/echart.svg":()=>_(()=>import("./echart-c_3t778P.js"),__vite__mapDeps([])),"/src/icons/empty.svg":()=>_(()=>import("./empty-BrREX6wo.js"),__vite__mapDeps([])),"/src/icons/enter.svg":()=>_(()=>import("./enter-CPGcsJ25.js"),__vite__mapDeps([])),"/src/icons/error.svg":()=>_(()=>import("./error-CjWalrOZ.js"),__vite__mapDeps([])),"/src/icons/expanded.svg":()=>_(()=>import("./expanded-BswQDJyW.js"),__vite__mapDeps([])),"/src/icons/export_excel.svg":()=>_(()=>import("./export_excel-CkAGWFBN.js"),__vite__mapDeps([])),"/src/icons/fullscreen.svg":()=>_(()=>import("./fullscreen-Cjm0bPGx.js"),__vite__mapDeps([])),"/src/icons/fullscreen_fold.svg":()=>_(()=>import("./fullscreen_fold-BUWP5JFn.js"),__vite__mapDeps([])),"/src/icons/github.svg":()=>_(()=>import("./github-B4ARmChV.js"),__vite__mapDeps([])),"/src/icons/google.svg":()=>_(()=>import("./google-GEcrFhWr.js"),__vite__mapDeps([])),"/src/icons/language.svg":()=>_(()=>import("./language-C4AMs4_p.js"),__vite__mapDeps([])),"/src/icons/left_arrow.svg":()=>_(()=>import("./left_arrow-DAKeumRT.js"),__vite__mapDeps([])),"/src/icons/light.svg":()=>_(()=>import("./light-DWbddXnY.js"),__vite__mapDeps([])),"/src/icons/lock.svg":()=>_(()=>import("./lock-dC7sQfx2.js"),__vite__mapDeps([])),"/src/icons/login_bg.svg":()=>_(()=>import("./login_bg-DcvEftiQ.js"),__vite__mapDeps([])),"/src/icons/menu.svg":()=>_(()=>import("./menu-CPMkWw77.js"),__vite__mapDeps([])),"/src/icons/more.svg":()=>_(()=>import("./more-DW-qndwg.js"),__vite__mapDeps([])),"/src/icons/mouse.svg":()=>_(()=>import("./mouse-C_l6KSTs.js"),__vite__mapDeps([])),"/src/icons/office.svg":()=>_(()=>import("./office-B5pC1KGi.js"),__vite__mapDeps([])),"/src/icons/other.svg":()=>_(()=>import("./other-DU6bZUrM.js"),__vite__mapDeps([])),"/src/icons/out.svg":()=>_(()=>import("./out-CMQCc625.js"),__vite__mapDeps([])),"/src/icons/print.svg":()=>_(()=>import("./print-jFo_n0lx.js"),__vite__mapDeps([])),"/src/icons/qrcode.svg":()=>_(()=>import("./qrcode-Cr9UFjAo.js"),__vite__mapDeps([])),"/src/icons/ray.svg":()=>_(()=>import("./ray-08S_o84h.js"),__vite__mapDeps([])),"/src/icons/reload.svg":()=>_(()=>import("./reload-BCsJCBo-.js"),__vite__mapDeps([])),"/src/icons/rely.svg":()=>_(()=>import("./rely-DlDUQEbT.js"),__vite__mapDeps([])),"/src/icons/resize_h.svg":()=>_(()=>import("./resize_h-DA2p7YCQ.js"),__vite__mapDeps([])),"/src/icons/right_arrow.svg":()=>_(()=>import("./right_arrow-CbmroMoE.js"),__vite__mapDeps([])),"/src/icons/row_end.svg":()=>_(()=>import("./row_end-CqbNhb3G.js"),__vite__mapDeps([])),"/src/icons/row_head.svg":()=>_(()=>import("./row_head-BCxi2x-p.js"),__vite__mapDeps([])),"/src/icons/search.svg":()=>_(()=>import("./search-DPR73sQp.js"),__vite__mapDeps([])),"/src/icons/setting.svg":()=>_(()=>import("./setting-CqYm8XBn.js"),__vite__mapDeps([])),"/src/icons/table.svg":()=>_(()=>import("./table-tYkftQGA.js"),__vite__mapDeps([])),"/src/icons/twitter.svg":()=>_(()=>import("./twitter-DjE7U1HD.js"),__vite__mapDeps([]))})).forEach(t=>{const i=t.match(/\/(\w+)\.svg/)[1];i&&o.value.push(i)}),{icons:o}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let o;return Vue.createVNode(naive.NFlex,null,e(o=this.icons.map(r=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:r},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[Vue.resolveDirective("copy"),``]])))?o:{default:()=>[o]})}})}});export{F as default}; diff --git a/assets/index-8ifF5Uik.js.gz b/assets/index-8ifF5Uik.js.gz deleted file mode 100644 index 47535b72..00000000 Binary files a/assets/index-8ifF5Uik.js.gz and /dev/null differ diff --git a/assets/index-Bf3h6amV.js b/assets/index-Bf3h6amV.js deleted file mode 100644 index b572dfbe..00000000 --- a/assets/index-Bf3h6amV.js +++ /dev/null @@ -1 +0,0 @@ -import{k as h,c as A,G as E,r as g,H as f,I as k,J as x,K as T,M as b}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const le=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=h("layoutContentMaximize"),o=Vue.ref(A().getWatermarkConfig.value.content),i=Vue.ref("new"),{navigationTo:n}=f(),{maximize:r,isLayoutContentMaximized:l}=E(),{reload:d,openSpin:V,closeSpin:c}=k(),{showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=x(),{changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e}=T(),{hidden:s,show:D,update:v}=b();return{navigationTo:n,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:c,showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:s,badgeShow:D,badgeUpdateLabel:v,badgeValue:i}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:i,closeSpin:n,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,changeDarkTheme:c,changeLightTheme:F,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:p,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>p("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(g,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{i(),setTimeout(()=>{n()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{le as default}; diff --git a/assets/index-Bf3h6amV.js.gz b/assets/index-Bf3h6amV.js.gz deleted file mode 100644 index 0f70084f..00000000 Binary files a/assets/index-Bf3h6amV.js.gz and /dev/null differ diff --git a/assets/index-Bx0BEiE2.js b/assets/index-Bx0BEiE2.js deleted file mode 100644 index 7808810f..00000000 --- a/assets/index-Bx0BEiE2.js +++ /dev/null @@ -1 +0,0 @@ -import{w as t}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const R=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(t,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(t,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{R as default}; diff --git a/assets/index-Bx0BEiE2.js.gz b/assets/index-Bx0BEiE2.js.gz deleted file mode 100644 index 8b627cfd..00000000 Binary files a/assets/index-Bx0BEiE2.js.gz and /dev/null differ diff --git a/assets/index-C8e0GZr5.js b/assets/index-C8e0GZr5.js deleted file mode 100644 index 0ac9d1c0..00000000 --- a/assets/index-C8e0GZr5.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import{A as s,B as p,C as d,D as l,E as c,F as V}from"./utils-Dx3WEey5.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const Q=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(o,a)=>{const r=e[a],n=r(...o);return"结果: "+s(n)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{Q as default}; diff --git a/assets/index-C8e0GZr5.js.gz b/assets/index-C8e0GZr5.js.gz deleted file mode 100644 index 0ba89c9b..00000000 Binary files a/assets/index-C8e0GZr5.js.gz and /dev/null differ diff --git a/assets/index-C9mVF7vq.js b/assets/index-C9mVF7vq.js deleted file mode 100644 index 3384b973..00000000 --- a/assets/index-C9mVF7vq.js +++ /dev/null @@ -1 +0,0 @@ -import{x as t}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const z=Vue.defineComponent({name:"REchart",setup(){const u=Vue.ref(),n=Vue.ref(!1),o=Vue.ref(!1),i=Vue.reactive({loading:!1}),s={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},l={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},a=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),d=e=>{i.loading=e},c=e=>{o.value=e},h=()=>{var e,r;(e=u.value)!=null&&e.isDispose()?window.$message.warning("图表已经渲染"):(r=u.value)==null||r.render()},V=()=>{var e;(e=u.value)==null||e.dispose()},p=()=>{const e=()=>Math.floor((Math.random()+1)*100);a.value.series[0].data=new Array(7).fill(0).map(()=>e()),a.value.series[1].data=new Array(7).fill(0).map(()=>e())};return{baseOptions:s,baseChartRef:u,chartLoading:n,handleLoadingShow:d,chartAria:o,handleAriaShow:c,basePieOptions:l,baseLineOptions:a,...Vue.toRefs(i),mountChart:h,unmountChart:V,updateChartOptions:p}},render(){return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("ul",null,[Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("1. 当未获取到宽高时,组件会默认以 200*200 尺寸填充。")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("2. 默认启用 autoChangeTheme,自动监听模板主题变化,如果设置为 false 则为 APP_THEME.echartTheme 配置项为渲染结果(RayTemplate 独有)")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("3. 默认启用 watchOptions,自动监听配置项变化")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("4. 默认启用 nextTick,强制在下一队列渲染图标内容")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("5. 配置 setChartOptions 属性,可以定制化合并模式")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("6. 默认启用 intersectionObserver 属性,只有元素在可见范围才会渲染图表,可以滚动查看效果")])])])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.updateChartOptions.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(t,{title:"周销售量",ref:"baseChartRef",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card"},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(t,{autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":u=>this.chartLoading=u,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(t,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":u=>this.chartAria=u,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(t,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{z as default}; diff --git a/assets/index-C9mVF7vq.js.gz b/assets/index-C9mVF7vq.js.gz deleted file mode 100644 index 129c05d0..00000000 Binary files a/assets/index-C9mVF7vq.js.gz and /dev/null differ diff --git a/assets/index-CBEOIsoH.js b/assets/index-CBEOIsoH.js deleted file mode 100644 index a281351a..00000000 --- a/assets/index-CBEOIsoH.js +++ /dev/null @@ -1 +0,0 @@ -import{y as p,z as d}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import{a as c}from"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import{s}from"./instance-BsZCPX3D.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";const V=o=>s({url:"/api/list",method:"get",params:o}),Q=Vue.defineComponent({name:"MockDemo",setup(){const o=[{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:u=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],t=Vue.reactive({email:null}),e=Vue.reactive({page:1,pageSize:10,itemCount:0,pageSizes:[10,20,30,40,50],showSizePicker:!0,onUpdatePage:u=>{e.page=u,a()},onUpdatePageSize:u=>{e.pageSize=u,e.page=1,a()}}),{data:i,loading:n,run:l}=c(V,{defaultParams:[{page:e.page,pageSize:e.pageSize,email:t.email}],onSuccess:u=>{const{total:r}=u;e.itemCount=r}}),a=()=>{const{pageSize:u,page:r}=e,{email:m}=t;l({page:r,pageSize:u,email:m})};return{personData:i,personLoading:n,paginationRef:e,columns:o,...Vue.toRefs(t),getPerson:a}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var o;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":t=>this.email=t,clearable:!0},null)]})]),action:()=>Vue.createVNode(naive.NButton,{type:"primary",onClick:this.getPerson.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})})]}),Vue.createVNode(d,{title:"Mock数据表格",data:(o=this.personData)==null?void 0:o.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":t=>this.columns=t,pagination:this.paginationRef,remote:!0},null)]}})}});export{Q as default}; diff --git a/assets/index-CBEOIsoH.js.gz b/assets/index-CBEOIsoH.js.gz deleted file mode 100644 index 2106dbad..00000000 Binary files a/assets/index-CBEOIsoH.js.gz and /dev/null differ diff --git a/assets/index-COneQDUR.js b/assets/index-COneQDUR.js deleted file mode 100644 index 3dcd02f0..00000000 --- a/assets/index-COneQDUR.js +++ /dev/null @@ -1 +0,0 @@ -var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.6","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.1"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/assets/index-COneQDUR.js.gz b/assets/index-COneQDUR.js.gz deleted file mode 100644 index e5bb179c..00000000 Binary files a/assets/index-COneQDUR.js.gz and /dev/null differ diff --git a/assets/index-CRY21eF9.js b/assets/index-CRY21eF9.js deleted file mode 100644 index 129b1f27..00000000 --- a/assets/index-CRY21eF9.js +++ /dev/null @@ -1 +0,0 @@ -import{v as p}from"./hooks-BhHffBS8.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const I=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),r=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:i,y:u,show:a,updateShow:t}=p(e);return{demoOneRef:e,demoOneShow:o,x:i,y:u,show:a,options:r,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:r}=this,{clickOutside:i,updateShow:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:r,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),u(!1)},onClickoutside:i.bind(this)},null)]})}});export{I as default}; diff --git a/assets/index-CRY21eF9.js.gz b/assets/index-CRY21eF9.js.gz deleted file mode 100644 index 71df0276..00000000 Binary files a/assets/index-CRY21eF9.js.gz and /dev/null differ diff --git a/assets/index-CZ48_9-m.js b/assets/index-CZ48_9-m.js deleted file mode 100644 index 0ac4a61d..00000000 --- a/assets/index-CZ48_9-m.js +++ /dev/null @@ -1 +0,0 @@ -import{s as u}from"./utils-Dx3WEey5.js";import{i as v,n as h,k as N,o as f,p,d,q as y,r as o,e as w,T as b,L as S}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{L as x}from"./ray-CES7ACvF.js";import{c as R}from"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import{R as _}from"./index-DsYRgjoY.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";function j(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const k=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=f(),{signing:i}=v(),{getRootPath:n}=h(),a=N("globalSpinning"),c=()=>({name:"Ray Admin",pwd:"123456"}),g=VueRouter.useRouter(),r=Vue.ref(c()),m={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var l;(l=e.value)==null||l.validate(V=>{V||(p("globalSpinning",!0),i(r.value).then(s=>{s.code===0&&setTimeout(()=>{p("globalSpinning",!1),window.$message.success(`欢迎${r.value.name}登陆~`),u(d.token,"tokenValue"),u(d.signing,s.data),g.push(n.value)},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:m,globalSpinning:a}},render(){let e;const{$t:t,globalSpinning:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder")},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},j(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),C=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),F=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(y,{text:"ray template yes",size:200,logoImage:x},null)])}});function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const O=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},L(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(o,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var T={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.6","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.1"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function P(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ve=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=T,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=R(),{updateLocale:a}=w();return{...Vue.toRefs(t),windowHeight:i,updateLocale:a,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(b,null,null),Vue.createVNode(naive.NDropdown,{options:S,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(o,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(o,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},P(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(k,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(C,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(F,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(O,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(_,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ve as default}; diff --git a/assets/index-CZ48_9-m.js.gz b/assets/index-CZ48_9-m.js.gz deleted file mode 100644 index 9cebfa5b..00000000 Binary files a/assets/index-CZ48_9-m.js.gz and /dev/null differ diff --git a/assets/index-CZLY0-H-.js b/assets/index-CZLY0-H-.js deleted file mode 100644 index f38e2271..00000000 --- a/assets/index-CZLY0-H-.js +++ /dev/null @@ -1 +0,0 @@ -import{R as e}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const b=Vue.defineComponent({name:"ModalDemo",setup(){const u=Vue.reactive({modal1:!1,modal2:!1,modal3:!1});return{...Vue.toRefs(u)}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(e,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(e,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(e,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]})]})}});export{b as default}; diff --git a/assets/index-CZLY0-H-.js.gz b/assets/index-CZLY0-H-.js.gz deleted file mode 100644 index 4f681074..00000000 Binary files a/assets/index-CZLY0-H-.js.gz and /dev/null differ diff --git a/assets/index-Cg5RYVLG.js b/assets/index-Cg5RYVLG.js deleted file mode 100644 index 795ccae0..00000000 --- a/assets/index-Cg5RYVLG.js +++ /dev/null @@ -1 +0,0 @@ -import{y as d,z as s,r as c,F as V}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";function p(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Y=Vue.defineComponent({name:"TableView",setup(){const e=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(a=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},p(a)?a:{default:()=>[a]}))},{title:"Remark",key:"remark",width:300},{title:"Action",key:"actions",render:t=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(V,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:o=>{window.$message.info(`当前选择: ${o}`)}},null)]})}],r=Vue.ref([...e].map(t=>({...t,width:400}))),u=Vue.ref([{key:0,name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"},{key:1,name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["wow"],remark:"我是一条很长很长的备注"},{key:2,name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"],remark:"我是一条很长很长的备注"}]),n=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],l=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),i=t=>{window.$message.info(`${t}`)};return{...Vue.toRefs(l),tableData:u,actionColumns:r,baseColumns:e,tableMenuOptions:n,handleMenuSelect:i}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(d,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:e=>window.$message.info(`我是 RCollapseGrid 组件${e?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(s,{scrollX:2e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:e=>this.tableLoading=e},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":e=>this.actionColumns=e,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.handleMenuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(c,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})]},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Y as default}; diff --git a/assets/index-Cg5RYVLG.js.gz b/assets/index-Cg5RYVLG.js.gz deleted file mode 100644 index fb05476a..00000000 Binary files a/assets/index-Cg5RYVLG.js.gz and /dev/null differ diff --git a/assets/index-ClsMUk-h.js b/assets/index-ClsMUk-h.js deleted file mode 100644 index 1d65d1fc..00000000 --- a/assets/index-ClsMUk-h.js +++ /dev/null @@ -1 +0,0 @@ -import{z as i}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";const P=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{P as default}; diff --git a/assets/index-ClsMUk-h.js.gz b/assets/index-ClsMUk-h.js.gz deleted file mode 100644 index 48f6df63..00000000 Binary files a/assets/index-ClsMUk-h.js.gz and /dev/null differ diff --git a/assets/index-Cy2_cSlW.js b/assets/index-Cy2_cSlW.js deleted file mode 100644 index 4dad5bd8..00000000 --- a/assets/index-Cy2_cSlW.js +++ /dev/null @@ -1 +0,0 @@ -import{a as u}from"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import{s as o}from"./instance-BsZCPX3D.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./hooks-BhHffBS8.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";function N(e,t){return u(()=>o(e),Object.assign({},t))}const D=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),X=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:m}=u(D,{throttleWait:1e3,manual:!0}),{data:p,loading:s,run:F}=N({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:m,demoData:p,demoLoading:s,demoRun:F}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{X as default}; diff --git a/assets/index-Cy2_cSlW.js.gz b/assets/index-Cy2_cSlW.js.gz deleted file mode 100644 index 5221c4c0..00000000 Binary files a/assets/index-Cy2_cSlW.js.gz and /dev/null differ diff --git a/assets/index-DSoxqjdP.js b/assets/index-DSoxqjdP.js deleted file mode 100644 index 39c2f4b5..00000000 --- a/assets/index-DSoxqjdP.js +++ /dev/null @@ -1 +0,0 @@ -import{c as f,g as O,d as u,e as b,f as C,h as M,i as Z,j as F,k as R,R as E,D as $,s as I,l as U,m as q}from"./hooks-BhHffBS8.js";import{d as p}from"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as W,d as Y,t as G,f as J}from"./lodash-es@4.17.21-C8H4BJij.js";import{g as H,c as K,y as m,l as g,m as S,s as V,a as _}from"./utils-Dx3WEey5.js";import{C as Q}from"./clipboard@2.0.11-CB9-kMTz.js";import{u as N}from"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const i of c)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function t(c){const i={};return c.integrity&&(i.integrity=c.integrity),c.referrerPolicy&&(i.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?i.credentials="include":c.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(c){if(c.ep)return;c.ep=!0;const i=t(c);fetch(c.href,i)}})();const X=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:l}){const{getPrimaryColorOverride:t,getAppTheme:o,getLocaleLanguage:c}=f(),i=Vue.computed(()=>{const r=c.value;return O(r)}),a=()=>{const{message:r,notification:n,dialog:d,loadingBar:s}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:o.value?naive.darkTheme:null}))});window.$dialog=d,window.$message=r,window.$loadingBar=s,window.$notification=n};return l(),{getPrimaryColorOverride:t,localePackage:i,getAppTheme:o,discreteApi:a}},render(){const{$slots:{default:e},discreteApi:l}=this,{getPrimaryColorOverride:t,getAppTheme:o,localePackage:c}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:t,theme:o?naive.darkTheme:null,locale:c.locale,dateLocale:c.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,null,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NModalProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),l()]})]})]})]})]})]})}});var e1={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.6","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.1"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const l1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:l}){const{getAppTheme:t}=f(),o=()=>{const{appPrimaryColor:{primaryColor:a,primaryFadeColor:r}}=e1,n=document.body,d=H(u.appPiniaSettingStore,"localStorage");if(d){const s=W(d,"primaryColorOverride.common.primaryColor",a),v=K(s,.38);n.style.setProperty("--ray-theme-primary-color",s),n.style.setProperty("--ray-theme-primary-fade-color",v||r)}},c=()=>{const a=document.getElementById("pre-loading-animation");a&&m(a,{display:"none"})},i=a=>{const r=document.body,n="ray-template--dark",d="ray-template--light";a?g(r,d):g(r,n),S(r,a?n:d)};o(),c(),Vue.watch(()=>t.value,a=>{i(a)},{immediate:!0}),l()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),x={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},h=()=>({lockPassword:null}),t1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{setLockAppScreen:t}=M(),{updateSettingState:o}=b(),c=Vue.reactive({lockCondition:h()}),i=()=>{var a;(a=e.value)==null||a.validate(r=>{r||(t(!0),o("lockScreenSwitch",!0),c.lockCondition=h())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var a;(a=l.value)==null||a.focus()})}),{...Vue.toRefs(c),lockScreen:i,formInstRef:e,inputInstRef:l}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(C,{vertical:!0,align:"center",avatarSize:52},null),Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:x,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),c1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{logout:t}=Z(),{updateSettingState:o}=b(),{setLockAppScreen:c}=M(),{isTabletOrSmaller:i}=F(),a="HH:mm",r="A",n="YY年MM月DD日",d="ddd",s=Vue.reactive({lockCondition:h(),HH_MM:p().format(a),AM_PM:p().locale("en").format(r),YY_MM_DD:p().format(n),DDD:p().format(d)}),v=setInterval(()=>{s.HH_MM=p().format(a),s.AM_PM=p().format(r)},6e3),B=setInterval(()=>{s.YY_MM_DD=p().format(n),s.DDD=p().format(d)},864e5),j=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{t(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},T=()=>{var y;(y=e.value)==null||y.validate(D=>{D||(c(!1),o("lockScreenSwitch",!1),s.lockCondition=h())})};return Vue.onBeforeUnmount(()=>{clearInterval(v),clearInterval(B)}),{...Vue.toRefs(s),backToSigning:j,unlockScreen:T,formRef:e,inputInstRef:l,isTabletOrSmaller:i}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:l,AM_PM:t,YY_MM_DD:o,DDD:c}=this,i=l.split(":"),{unlockScreen:a,backToSigning:r}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content-wrapper"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[i[0]]),Vue.createVNode("div",{class:"right"},[i[1]])])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(C,{vertical:!0,align:"center",avatarSize:52},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:x},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":n=>this.lockCondition.lockPassword=n,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:n=>{n.code==="Enter"&&a()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:r.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:a.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[l,Vue.createTextVNode(" "),Vue.createVNode("span",null,[t])]),Vue.createVNode("div",{class:"current-year"},[o,Vue.createTextVNode(" "),Vue.createVNode("span",null,[c])])])])])}}),o1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=M(),{updateSettingState:l}=b(),{getLockScreenSwitch:t}=f();return{lockScreenSwitchRef:Vue.computed({get:()=>t.value,set:c=>{l("lockScreenSwitch",c)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(naive.NModal,{show:this.lockScreenSwitchRef,"onUpdate:show":l=>this.lockScreenSwitchRef=l,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(c1,null,null):Vue.createVNode(t1,null,null)])]})}}),i1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:l}=f();return{getWatermarkSwitch:e,getWatermarkConfig:l}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:l}=this;return l?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),a1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:R("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var r1={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.6","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.1"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const n1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=r1,l=H(u.appVersionProvider,"localStorage"),t=Vue.ref(!1),{logout:o}=Z();return l!==null?e!==l&&(t.value=!0,V(u.appVersionProvider,e,"localStorage")):V(u.appVersionProvider,e,"localStorage"),{modalShow:t,logout:o}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(E,{show:this.modalShow,"onUpdate:show":l=>this.modalShow=l,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),A=Vue.defineComponent({name:"App",render(){return Vue.createVNode(X,null,{default:()=>[Vue.createVNode(n1,null,null),Vue.createVNode(o1,null,null),Vue.createVNode(l1,null,null),Vue.createVNode(i1,null,null),Vue.createVNode(a1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>"loading..."})]})}});if(typeof window<"u"){let e=function(){var l=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',l.insertBefore(t,l.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const s1=()=>{p.locale($)},w=(e,l)=>{const t=new Q(e,{text:()=>l});e.$$clipboard=t,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},d1=()=>({mounted:(e,{value:l})=>{w(e,l)},updated:(e,{value:l,oldValue:t})=>{var o;l!==t&&((o=e.$$clipboard)==null||o.destroy(),w(e,l))},beforeUnmount:e=>{var l;e.$$clipboard&&((l=e.$$clipboard)==null||l.destroy(),e.$$clipboard=null)}}),p1=Object.freeze(Object.defineProperty({__proto__:null,default:d1},Symbol.toStringTag,{value:"Module"})),u1=()=>{let e,l;return{beforeMount:(t,{value:o})=>{const{func:c,trigger:i="click",wait:a=500,options:r}=o;if(typeof c!="function")throw new TypeError("debounce directive value must be a function");e=Y(c,a,Object.assign({},r)),l=N(t,i,e)},beforeUnmount:(t,{value:o})=>{e&&(e.cancel(),l==null||l()),e=null}}},h1=Object.freeze(Object.defineProperty({__proto__:null,default:u1},Symbol.toStringTag,{value:"Module"})),k=(e,l)=>{if(e){const t="ray-template__directive--disabled";l?(e.setAttribute("disabled","disabled"),S(e,t)):(e.removeAttribute("disabled"),g(e,t)),e==null||e.setAttribute("disabled",l?"disabled":"")}},f1=()=>({mounted:(e,{value:l})=>{k(e,l)},updated:(e,{value:l,oldValue:t})=>{l!==t&&k(e,l)}}),v1=Object.freeze(Object.defineProperty({__proto__:null,default:f1},Symbol.toStringTag,{value:"Module"})),z=(e,l)=>{const{line:t=1,type:o="block",width:c,popoverText:i}=l;if(c==null){console.error(`[v-ellipsis]: Expected width, but got ${c}!`);return}i&&e.setAttribute("title",e.textContent||""),o==="line"?m(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t,overflow:"hidden",width:_(c)}):m(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:_(c)})},m1=()=>({mounted:(e,{value:l})=>{z(e,l)},updated:(e,{value:l})=>{z(e,l)}}),g1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),b1=()=>{let e;return{beforeMount:(l,{value:t})=>{const{func:o,trigger:c="click",wait:i=500,options:a}=t;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=G(o,i,Object.assign({},a)),N(l,c,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},M1=Object.freeze(Object.defineProperty({__proto__:null,default:b1},Symbol.toStringTag,{value:"Module"})),y1=e=>Object.keys(e).reduce((t,o)=>{var i;const c=(i=e[o])==null?void 0:i.default;if(typeof c=="function")return t[o]=c,t;throw new TypeError(`directiveModules: ${o} is not function`)},{}),V1=e=>{const t=y1(Object.assign({"/src/directives/modules/copy/index.ts":p1,"/src/directives/modules/debounce/index.ts":h1,"/src/directives/modules/disabled/index.ts":v1,"/src/directives/modules/ellipsis/index.ts":g1,"/src/directives/modules/throttle/index.ts":M1})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),c=/^([^-]+-)*[^-]+$/;J(t,(i,a)=>{var n;const r=(n=a.match(o))==null?void 0:n[0];typeof r=="string"&&c.test(r)?e.directive(r,i()):console.error(`[setupDirectives] ${r} is not a valid directive name`)})},_1=async()=>{},w1=async()=>{},P=async()=>{await _1(),await w1()},L=async e=>{I(e),await U(e),q(e),s1(),V1(e)},k1=async()=>{const e=Vue.createApp(A);await L(e),e.mount("#app"),await P()},z1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(A),await L(e),e.mount("#app"),await P()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?z1():k1(); diff --git a/assets/index-DSoxqjdP.js.gz b/assets/index-DSoxqjdP.js.gz deleted file mode 100644 index 1832405c..00000000 Binary files a/assets/index-DSoxqjdP.js.gz and /dev/null differ diff --git a/assets/index-DmvoDQhO.js b/assets/index-DmvoDQhO.js deleted file mode 100644 index 3a94b9d4..00000000 --- a/assets/index-DmvoDQhO.js +++ /dev/null @@ -1 +0,0 @@ -import{r as l}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import{R as r}from"./index-DsYRgjoY.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";function o(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const X=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(l,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(l,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},o(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},o(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,o(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(r,null,null)]})]})}});export{X as default}; diff --git a/assets/index-DmvoDQhO.js.gz b/assets/index-DmvoDQhO.js.gz deleted file mode 100644 index 7edd6cbe..00000000 Binary files a/assets/index-DmvoDQhO.js.gz and /dev/null differ diff --git a/assets/index-Dq6gNjVH.js b/assets/index-Dq6gNjVH.js deleted file mode 100644 index 31201e10..00000000 --- a/assets/index-Dq6gNjVH.js +++ /dev/null @@ -1 +0,0 @@ -import{N as r}from"./hooks-BhHffBS8.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./utils-Dx3WEey5.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";const t=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},render(){return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NButton,{onClick:r.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]})})])}}),q=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(t,{status:"404"},null)}});export{q as default}; diff --git a/assets/index-Dq6gNjVH.js.gz b/assets/index-Dq6gNjVH.js.gz deleted file mode 100644 index e5d86beb..00000000 Binary files a/assets/index-Dq6gNjVH.js.gz and /dev/null differ diff --git a/assets/index-GTAGoru-.js b/assets/index-GTAGoru-.js deleted file mode 100644 index 2bb38840..00000000 --- a/assets/index-GTAGoru-.js +++ /dev/null @@ -1 +0,0 @@ -import{s as r,g as u,j as o,z as a}from"./utils-Dx3WEey5.js";import"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const L=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{r("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=u("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{L as default}; diff --git a/assets/index-GTAGoru-.js.gz b/assets/index-GTAGoru-.js.gz deleted file mode 100644 index a6c12ba2..00000000 Binary files a/assets/index-GTAGoru-.js.gz and /dev/null differ diff --git a/assets/index-pRjFjSww.js b/assets/index-pRjFjSww.js deleted file mode 100644 index e8b49359..00000000 --- a/assets/index-pRjFjSww.js +++ /dev/null @@ -1 +0,0 @@ -import{q as e}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import{L as u}from"./ray-CES7ACvF.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const b=Vue.defineComponent({name:"RQRCodeDemo",setup(){const t=Vue.ref("ray template yes"),o=Vue.ref(),a=Vue.ref();return{qrcodeText:t,qrcodeStatus:o,rayQRCodeRef:a}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),Vue.createVNode("h2",null,[Vue.createTextVNode("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),Vue.createVNode("h2",null,[Vue.createTextVNode("具体使用请参考 props 配置项")])]}),Vue.createVNode(naive.NCard,{title:"基础二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes"},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u},null),Vue.createVNode(e,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),Vue.createVNode(naive.NCard,{title:"状态二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"error",onReload:()=>{window.$message.info("reload event")}},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"loading"},null)]})]}),Vue.createVNode(naive.NCard,{title:"监听内容变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[Vue.createTextVNode("更新二维码内容")]}),Vue.createVNode(naive.NButton,{onClick:()=>{var t;(t=this.rayQRCodeRef)==null||t.downloadQRCode()}},{default:()=>[Vue.createTextVNode("下载二维码")]})]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:u,ref:"rayQRCodeRef"},null),Vue.createTextVNode("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{b as default}; diff --git a/assets/index-pRjFjSww.js.gz b/assets/index-pRjFjSww.js.gz deleted file mode 100644 index 79f9eb93..00000000 Binary files a/assets/index-pRjFjSww.js.gz and /dev/null differ diff --git a/assets/instance-BsZCPX3D.js b/assets/instance-BsZCPX3D.js deleted file mode 100644 index 3a0bd86c..00000000 --- a/assets/instance-BsZCPX3D.js +++ /dev/null @@ -1 +0,0 @@ -import{B as t,C as n,d as R,E as q}from"./hooks-BhHffBS8.js";import{g as d}from"./utils-Dx3WEey5.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";const A=(e,r)=>{t.removePendingRequest(e)},y=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},k=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},P=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},v=(e,r)=>{const o=d(R.token);return e.url,{key:"X-TOKEN",value:o}},C=(e,r)=>{P(e,[v(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},g=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},f=(e,r)=>{t.removePendingRequest(e)},c={implementRequestInterceptorArray:[C,g],implementRequestInterceptorErrorArray:[f]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(k(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/assets/instance-BsZCPX3D.js.gz b/assets/instance-BsZCPX3D.js.gz deleted file mode 100644 index fd8575cd..00000000 Binary files a/assets/instance-BsZCPX3D.js.gz and /dev/null differ diff --git a/assets/login_bg-DcvEftiQ.js b/assets/login_bg-DcvEftiQ.js deleted file mode 100644 index 69fa825c..00000000 --- a/assets/login_bg-DcvEftiQ.js +++ /dev/null @@ -1 +0,0 @@ -const s="/ray-template/assets/login_bg-CH0AhDTq.svg";export{s as default}; diff --git a/assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js b/assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js deleted file mode 100644 index c4ccbca7..00000000 --- a/assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js +++ /dev/null @@ -1 +0,0 @@ -function y(r){return typeof r=="object"&&r!==null}function g(r,t){return r=y(r)?r:Object.create(null),new Proxy(r,{get(i,n,e){return n==="key"?Reflect.get(i,n,e):Reflect.get(i,n,e)||Reflect.get(t,n,e)}})}function S(r,t){return t.reduce((i,n)=>i==null?void 0:i[n],r)}function R(r,t,i){return t.slice(0,-1).reduce((n,e)=>/^(__proto__)$/.test(e)?{}:n[e]=n[e]||{},r)[t[t.length-1]]=i,r}function p(r,t){return t.reduce((i,n)=>{const e=n.split(".");return R(i,e,S(r,e))},{})}function _(r,{storage:t,serializer:i,key:n,debug:e}){try{const o=t==null?void 0:t.getItem(n);o&&r.$patch(i==null?void 0:i.deserialize(o))}catch(o){e&&console.error(o)}}function $(r,{storage:t,serializer:i,key:n,paths:e,debug:o}){try{const u=Array.isArray(e)?p(r,e):r;t.setItem(n,i.serialize(u))}catch(u){o&&console.error(u)}}function b(r={}){return t=>{const{auto:i=!1}=r,{options:{persist:n=i},store:e,pinia:o}=t;if(!n)return;if(!(e.$id in o.state.value)){const l=o._s.get(e.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const u=(Array.isArray(n)?n.map(l=>g(l,r)):[g(n,r)]).map(({storage:l=localStorage,beforeRestore:s=null,afterRestore:a=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:f=e.$id,paths:h=null,debug:m=!1})=>{var d;return{storage:l,beforeRestore:s,afterRestore:a,serializer:c,key:((d=r.key)!=null?d:v=>v)(typeof f=="string"?f:f(e.$id)),paths:h,debug:m}});e.$persist=()=>{u.forEach(l=>{$(e.$state,l)})},e.$hydrate=({runHooks:l=!0}={})=>{u.forEach(s=>{const{beforeRestore:a,afterRestore:c}=s;l&&(a==null||a(t)),_(e,s),l&&(c==null||c(t))})},u.forEach(l=>{const{beforeRestore:s,afterRestore:a}=l;s==null||s(t),_(e,l),a==null||a(t),e.$subscribe((c,f)=>{$(f,l)},{detached:!0})})}}var A=b();export{A as s}; diff --git a/assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js.gz b/assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js.gz deleted file mode 100644 index 1c82dc18..00000000 Binary files a/assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js.gz and /dev/null differ diff --git a/assets/qs@6.11.2-5yoVYNs7.js b/assets/qs@6.11.2-5yoVYNs7.js deleted file mode 100644 index e314aeb2..00000000 --- a/assets/qs@6.11.2-5yoVYNs7.js +++ /dev/null @@ -1 +0,0 @@ -import"./side-channel@1.0.4-DiPXwnX9.js";var m=String.prototype.replace,O=/%20/g,v={RFC1738:"RFC1738",RFC3986:"RFC3986"},y={default:v.RFC3986,formatters:{RFC1738:function(f){return m.call(f,O,"+")},RFC3986:function(f){return String(f)}},RFC1738:v.RFC1738,RFC3986:v.RFC3986},C=y,x=Object.prototype.hasOwnProperty,p=Array.isArray,s=function(){for(var f=[],e=0;e<256;++e)f.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return f}(),R=function(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(p(t)){for(var a=[],l=0;l=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||l===C.RFC1738&&(n===40||n===41)){i+=o.charAt(u);continue}if(n<128){i=i+s[n];continue}if(n<2048){i=i+(s[192|n>>6]+s[128|n&63]);continue}if(n<55296||n>=57344){i=i+(s[224|n>>12]+s[128|n>>6&63]+s[128|n&63]);continue}u+=1,n=65536+((n&1023)<<10|o.charCodeAt(u)&1023),i+=s[240|n>>18]+s[128|n>>12&63]+s[128|n>>6&63]+s[128|n&63]}return i},A=function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],a=0;a(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(p||{}),P={VITE_APP_URL:"/",VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",BASE_URL:"/ray-template/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const X=()=>P,k=(e,r)=>{const t=document.createElement("a");t.href=e,t.download=r,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},y=(e,r)=>Object.prototype.toString.call(e).includes(r),J=(e=16,r=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],i=window.crypto||window.msCrypto;let s=0;for(s=0;snew Promise((t,o)=>{let i;try{if(typeof e=="string")return k(e,r),t();if(e instanceof ArrayBuffer)i=new Blob([new Uint8Array(e)],{type:"application/octet-stream"});else if(e instanceof File||e instanceof Blob)i=e;else return o(new Error("downloadAnyFile: Unsupported data type."));const s=URL.createObjectURL(i),n=document.createElement("a");n.href=s,n.download=r,n.style.display="none";const a=()=>{URL.revokeObjectURL(s),document.body.removeChild(n)};n.addEventListener("load",()=>(a(),t())),n.addEventListener("error",c=>(a(),o(c))),document.body.appendChild(n),n.click()}catch(s){return o(s)}});function C(e,r){if(!e)return console.warn(`[omit]: The targetObject is expected to be an object, but got ${e}.`),{};const t=Array.isArray(r)?r:[r];return t.length&&t.forEach(o=>{delete e[o]}),e}function G(e,r){if(!e)return console.warn(`[pick]: The targetObject is expected to be an object, but got ${e}.`),{};const t=Array.isArray(r)?r:[r];return t.length?t.reduce((i,s)=>(Reflect.has(e,s)&&(i[s]=e[s]),i),{}):e}const H=()=>{const e=navigator.userAgent;return/windows/i.test(e)?p.Windows:/macintosh|mac os x/i.test(e)?p.MacOS:/linux/i.test(e)?p.Linux:/android/i.test(e)?p.Android:/iphone|ipad|ipod/i.test(e)?p.IOS:p.Unknown},Q=(e,r)=>{const t=e.endsWith("/"),o=r.endsWith("/");return t&&o?e.slice(0,-1)===r.slice(0,-1):!t&&!o?e===r:e===r||e.slice(0,-1)===r||e===r.slice(0,-1)};function Z(e,r="sessionStorage",t){const{prefix:o,prefixKey:i}=t??{},s=o?i||S:"",n=r==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(n).find(a=>a===s+e)}function O(e,r,t="sessionStorage",o){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:i,prefixKey:s}=o??{},n=i?s||S:"";try{const a=JSON.stringify(r);t==="localStorage"?window.localStorage.setItem(n+e,a):window.sessionStorage.setItem(n+e,a)}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function T(e,r="sessionStorage",t){const{prefix:o,prefixKey:i,defaultValue:s}=t??{},n=o?i||S:"";try{const a=r==="localStorage"?window.localStorage.getItem(n+e):window.sessionStorage.getItem(n+e);return a===null?s??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),s??null}}const z=(e,r,t)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:o,prefixKey:i}=t??{},s=o?i||S:"",n=Object.keys(window.localStorage),a=Object.keys(window.sessionStorage),c=(w,m)=>{(w?[...a,...n]:m==="localStorage"?n:a).forEach(d=>{e==="__all__"?(window.sessionStorage.removeItem(s+d),window.localStorage.removeItem(s+d)):m==="localStorage"?window.localStorage.removeItem(s+d):window.sessionStorage.removeItem(s+d)})};switch(e){case"__all__":c(!0);break;case"__all_sessionStorage__":c(!1,"sessionStorage");break;case"__all_localStorage__":c(!1,"localStorage");break;default:r==="localStorage"?window.localStorage.removeItem(s+e):window.sessionStorage.removeItem(s+e);break}},N=(e,r)=>{var s;const{domToImageOptions:t,printOptions:o}=r??{},{create:i}=A(e,{...t,beforeCreate:n=>{var a;(a=t==null?void 0:t.beforeCreate)==null||a.call(t,n),window==null||window.$loadingBar.start()},created(n,a){var c;(c=t==null?void 0:t.created)==null||c.call(t,n,a),window==null||window.$loadingBar.finish()},createdError(n){var a;(a=t==null?void 0:t.createdError)==null||a.call(t,n),window==null||window.$loadingBar.error()}});(s=i("jpeg"))==null||s.then(n=>{const{print:a}=x(n,{type:"image",base64:!0,targetStyles:["*"],...C(o,["type","base64"])});a()})},ee=(e,r)=>{const t=()=>{const i=f(e);i&&(typeof r=="string"?r.trim().split(" "):r).forEach(n=>{n&&i.classList.add(n)})},o=Vue.watch(()=>f(e),t,{immediate:!0});h(o)},te=(e,r)=>{const t=()=>{const i=f(e);if(i)if(r==="removeAllClass"){const s=i.classList;s.forEach(n=>s.remove(n))}else(typeof r=="string"?r.trim().split(" "):r).forEach(n=>{n&&i.classList.remove(n)})},o=Vue.watch(()=>f(e),t,{immediate:!0});h(o)},re=(e,r)=>{const t=Vue.ref(!1),o=()=>{const s=f(e);if(!s)t.value=!1;else{const n=s.className,a=typeof r=="string"?r.trim().split(" ").filter(c=>c!==""):r;t.value=a.some(c=>n.includes(c))}},i=Vue.watch(()=>f(e),o,{immediate:!0});return h(i),t},R=e=>{const r=["webkit","moz","ms","o"],t={};return r.forEach(o=>{t[`${o}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t},ne=(e,r)=>{const t=(s,n)=>{s.split(";").forEach(a=>{const[c,w]=a.split(":");if(c&&w){const m=c.trim(),g=w.trim();if(c.startsWith("--"))n.style.setProperty(m,g);else if(c.startsWith("-"))n.style[c]=w;else{const d=R(m);Object.keys(d).forEach(E=>{n.style[E]=d[E]}),n.style[m]=g}}})},o=()=>{const s=f(e);s&&(y(r,"String")?t(r,s):y(r,"Array")?r.forEach(n=>{t(n,s)}):Object.keys(r).forEach(a=>{t(`${a}: ${r[a]}`,s)}))},i=Vue.watch(()=>f(e),o,{immediate:!0});h(i)},se=(e,r=1)=>{const t=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i,o=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/i,i=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/i;let s;if(t.test(e)){const n=e.substring(1);s="rgb("+[parseInt(n.substring(0,2),16),parseInt(n.substring(2,4),16),parseInt(n.substring(4,6),16)].join(", ")+")"}else return o.test(e)||i.test(e),e;return s&&!s.startsWith("rgba")&&(s=s.replace("rgb","rgba").replace(")",`, ${r})`)),s},oe=(e,r)=>{const{defaultElement:t}=r||{};if(!e)return t?[t]:null;const o=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{return Array.from(document.querySelectorAll(o))}catch(i){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,i),t?[t]:null}},ie=(e,r="px")=>typeof e=="number"?e.toString()+r:y(e,"String")&&v.cssUnit.test(e)?e:e+r,u={precision:8,decimal:"."},b=(e,r,t)=>e!=null&&e.length?e.length===1?l(e[0],u):e.reduce((i,s,n,a)=>(i=t==null?void 0:t(i,s,n,a),i),r):0,$=(e,r,t="number")=>{const o=Object.assign({},u,r),i=l(e,o);return t==="number"?i.value:i.toString()},ae=(...e)=>e.length===1?l(e[0],u).add(0):b(e,0,(r,t)=>l(r,u).add(t)),ce=(...e)=>{if(e.length===1)return l(e[0],u).subtract(0);if(e.length===2){const[o,i]=e;return l(o,u).subtract(i)}const r=_(e),t=r.shift();return r.length?b(r,t,(o,i)=>l(o,u).subtract(i)):t},le=(...e)=>e.length===1?l(e[0],u).multiply(1):b(e,1,(r,t)=>l(r,u).multiply(t)),ue=(...e)=>{if(e.length===1)return l(e[0],u).divide(1);if(e.length===2){const[o,i]=e;return l(o,u).divide(i)}const r=_(e),t=r.shift();return b(r,t,(o,i)=>l(o,u).divide(i))},fe=(e,r)=>r<=1?[e||0]:e?l(e,u).distribute(r).map(o=>$(o)):new Array(r).fill(0);function V(e,...r){if(Array.isArray(e))e.forEach(t=>V(t,...r));else return e(...r)}function f(e,r){var o;if(!e)return r;let t;return typeof e=="function"?t=e():Vue.isRef(e)?t=((o=e.value)==null?void 0:o.$el)??e.value:t=e,t}function de(e,r){if(!e){const{defaultElement:t=null}=r??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||y(e,"Object"))return()=>e;if(typeof e=="function")return e}function h(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function pe(e,r){const t=Vue.watchEffect(e,r);h(t)}export{$ as A,fe as B,ae as C,ce as D,le as E,ue as F,ie as a,V as b,se as c,k as d,Y as e,G as f,T as g,Q as h,y as i,z as j,X as k,te as l,ee as m,H as n,re as o,N as p,oe as q,de as r,O as s,h as t,J as u,f as v,pe as w,C as x,ne as y,Z as z}; diff --git a/assets/utils-Dx3WEey5.js.gz b/assets/utils-Dx3WEey5.js.gz deleted file mode 100644 index dbe0f592..00000000 Binary files a/assets/utils-Dx3WEey5.js.gz and /dev/null differ diff --git a/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js b/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js deleted file mode 100644 index 0b8b475d..00000000 --- a/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js +++ /dev/null @@ -1 +0,0 @@ -import{d as Q,t as W,c as U}from"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as p}from"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";const M=(n,{manual:e,ready:t=!0,refreshDeps:s=[],refreshDepsAction:r})=>{const u=Vue.ref(!1);return Vue.watchEffect(()=>{!e&&n.options.refreshDeps!==!0&&(u.value=Vue.unref(t))}),s instanceof Array?Vue.watch([u,...s],([i])=>{i&&!e&&i&&(r?r():n.refresh())},{deep:!0,immediate:!1}):Vue.watch(u,i=>{!e&&i&&(r?r():n.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!Vue.unref(t))return{stopNow:!0}}}};M.onInit=({ready:n=!0,manual:e})=>({loading:!e&&Vue.unref(n)});const S=new Map,G=(n,e,t)=>{const s=S.get(n);s!=null&&s.timer&&clearTimeout(s.timer);let r;e>-1&&(r=setTimeout(()=>{S.delete(n)},e)),S.set(n,{...t,timer:r})},Y=n=>S.get(n),O=new Map,z=n=>O.get(n),J=(n,e)=>{O.set(n,e),e.then(t=>(O.delete(n),t)).catch(t=>{throw O.delete(n),t})},w={},X=[],Z=(n,e)=>{w[n]&&(w[n].forEach(t=>t(e)),X.forEach(t=>t({type:n,data:e})))},T=(n,e)=>(w[n]||(w[n]=[]),w[n].push(e),function(){const s=w[n].indexOf(e);w[n].splice(s,1)}),K=(n,{cacheKey:e,cacheTime:t=5*60*1e3,staleTime:s=0,setCache:r,getCache:u})=>{const i=Vue.ref(),a=Vue.ref(),o=(l,c)=>{r?r(c):G(l,t,c),Z(l,c.data)},d=(l,c=[])=>u?u(c):Y(l);return Vue.watchEffect(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(n.state.data=l.data,n.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(n.state.loading=!1)),i.value=T(e,c=>{n.setState({data:c})})}),Vue.onScopeDispose(()=>{var l;(l=i.value)==null||l.call(i)}),e?{name:"cachePlugin",onBefore:l=>{const c=d(e,l);return!c||!Object.hasOwnProperty.call(c,"data")?{}:s===-1||new Date().getTime()-c.time<=s?{loading:!1,data:c==null?void 0:c.data,returnNow:!0}:{data:c==null?void 0:c.data}},onRequest:(l,c)=>{let h=z(e);return h&&h!==a.value?{servicePromise:h}:(h=l(...c),a.value=h,J(e,h),{servicePromise:h})},onSuccess:(l,c)=>{var h;e&&((h=i.value)==null||h.call(i),o(e,{data:l,params:c,time:new Date().getTime()}),i.value=T(e,f=>{n.setState({data:f})}))},onMutate:l=>{var c;e&&((c=i.value)==null||c.call(i),o(e,{data:l,params:n.state.params,time:new Date().getTime()}),i.value=T(e,h=>{n.setState({data:h})}))}}:{}},k=(n,{debounceWait:e,debounceLeading:t,debounceTrailing:s,debounceMaxWait:r})=>{const u=Vue.ref(),i=Vue.computed(()=>{const a={},o=Vue.unref(t),d=Vue.unref(s),l=Vue.unref(r);return o!==void 0&&(a.leading=o),d!==void 0&&(a.trailing=d),l!==void 0&&(a.maxWait=l),a});return Vue.watchEffect(a=>{if(Vue.unref(e)){const o=n.runAsync.bind(n);u.value=Q(d=>{d()},Vue.unref(e),i.value),n.runAsync=(...d)=>new Promise((l,c)=>{var h;(h=u.value)==null||h.call(u,()=>{o(...d).then(l).catch(c)})}),a(()=>{var d;(d=u.value)==null||d.cancel(),n.runAsync=o})}}),Vue.unref(e)?{name:"debouncePlugin",onCancel:()=>{var a;(a=u.value)==null||a.cancel()}}:{}};var ee=Object.defineProperty,te=(n,e,t)=>e in n?ee(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,L=(n,e,t)=>(te(n,typeof e!="symbol"?e+"":e,t),t);class ne{constructor(){L(this,"table",{}),L(this,"hashTable",{})}insert(e){const t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}}new ne;var se=Object.defineProperty,re=(n,e,t)=>e in n?se(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e,t)=>(re(n,typeof e!="symbol"?e+"":e,t),t);class ie{constructor(){$(this,"requestInstances",new Map),$(this,"listeners",[])}emit(e){this.listeners.forEach(t=>t(e))}subscribe(e){return this.listeners.push(e),()=>{const t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new ie;const ue=(n,{loadingDelay:e})=>{const t=Vue.ref();if(!Vue.unref(e))return{};const s=()=>{t.value&&clearTimeout(t.value)};return{name:"loadingDelayPlugin",onBefore:()=>(s(),t.value=setTimeout(()=>{n.setState({loading:!0})},Vue.unref(e)),{loading:!1}),onFinally:()=>{s()},onCancel:()=>{s()}}};function D(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const oe=!!(typeof window<"u"&&window.document&&window.document.createElement);function F(){return D()?document.visibilityState!=="hidden":!0}const E=[];function le(n){return E.push(n),function(){const t=E.indexOf(n);E.splice(t,1)}}if(D()){const n=()=>{if(F())for(let e=0;e{const r=Vue.ref(),u=Vue.ref(),i=Vue.ref(0),a=()=>{var o;r.value&&clearInterval(r.value),(o=u.value)==null||o.call(u)};return Vue.watchEffect(()=>{Vue.unref(e)||a()}),Vue.unref(e)?{name:"pollingPlugin",onBefore:()=>{a()},onError:()=>{i.value+=1},onSuccess:()=>{i.value=0},onFinally:()=>{s===-1||s!==-1&&i.value<=s?r.value=setTimeout(()=>{!t&&!F()?u.value=le(()=>{n.refresh()}):n.refresh()},Vue.unref(e)):i.value=0},onCancel:()=>{a()}}:{}};function ce(n,e){let t=!1;return(...s)=>{t||(t=!0,n(...s),setTimeout(()=>{t=!1},e))}}function fe(){return D()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const P=[];function de(n){return P.push(n),function(){const t=P.indexOf(n);t>-1&&P.splice(t,1)}}if(oe){const n=()=>{if(!(!F()||!fe()))for(let e=0;e{const s=Vue.ref(),r=()=>{var u;(u=s.value)==null||u.call(s)};return Vue.watchEffect(u=>{if(Vue.unref(e)){const i=ce(n.refresh.bind(n),Vue.unref(t));s.value=de(()=>{i()})}u(()=>{r()})}),Vue.onScopeDispose(()=>{r()}),{name:"refreshOnWindowFocusPlugin"}},ve=(n,{retryInterval:e,retryCount:t})=>{const s=Vue.ref(),r=Vue.ref(0),u=Vue.ref(!1);return t?{name:"retryPlugin",onBefore:()=>{u.value||(r.value=0),u.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{r.value=0},onError:()=>{if(r.value+=1,t===-1||r.value<=t){const i=e??Math.min(1e3*2**r.value,3e4);s.value=setTimeout(()=>{u.value=!0,n.refresh()},i)}else r.value=0},onCancel:()=>{r.value=0,s.value&&clearTimeout(s.value)}}:{}},me=(n,{throttleWait:e,throttleLeading:t,throttleTrailing:s})=>{const r=Vue.computed(()=>{const i={};return Vue.unref(t)!==void 0&&(i.leading=Vue.unref(t)),Vue.unref(s)!==void 0&&(i.trailing=Vue.unref(s)),i}),u=Vue.computed(()=>W(i=>{i()},Vue.unref(e),r.value));return Vue.watchEffect(i=>{if(Vue.unref(e)){const a=n.runAsync.bind(n);n.runAsync=(...o)=>new Promise((d,l)=>{var c;(c=u.value)==null||c.call(u,()=>{a(...o).then(d).catch(l)})}),i(()=>{var o;n.runAsync=a,(o=u.value)==null||o.cancel()})}}),Vue.unref(e)?{name:"throttlePlugin",onCancel:()=>{var i;(i=u.value)==null||i.cancel()}}:{}},H=n=>typeof n=="function",pe=n=>typeof n=="boolean";var be=Object.defineProperty,ge=(n,e,t)=>e in n?be(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,R=(n,e,t)=>(ge(n,typeof e!="symbol"?e+"":e,t),t);class _e{constructor(e,t,s,r={}){R(this,"pluginImpls"),R(this,"count",0),R(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),R(this,"previousValidData"),this.serviceRef=e,this.options=t,this.setUpdateData=s,this.initState=r,this.state={...this.state,loading:!t.manual,...r}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){console.warn("Please use 'setFetchState' instead of 'setData'"),t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){var s,r,u;const i=(u=(r=(s=this.pluginImpls)==null?void 0:s.map(a=>{var o;return(o=a[e])==null?void 0:o.call(a,...t)}))!=null?r:[])==null?void 0:u.filter(Boolean);return Object.assign({},...i)}async runAsync(...e){var t,s,r,u,i,a,o,d,l,c,h;this.count+=1;const f=this.count,{stopNow:g=!1,returnNow:v=!1,...b}=this.runPluginHandler("onBefore",e);if(g)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...b}),v)return Promise.resolve(b.data);try{(s=(t=this.options).onBefore)==null||s.call(t,e)}catch(m){return this.setState({error:m,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,m,e),this.runPluginHandler("onError",m,e),new Promise(()=>{})}try{let{servicePromise:m}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const I=C=>{var q,B,x,y;if(f!==this.count)return new Promise(()=>{});const _=this.options.formatResult?this.options.formatResult(C):C;return this.setState({data:_,error:void 0,loading:!1}),(B=(q=this.options).onSuccess)==null||B.call(q,_,e),this.runPluginHandler("onSuccess",_,e),this.previousValidData=_,(y=(x=this.options).onFinally)==null||y.call(x,e,_,void 0),f===this.count&&this.runPluginHandler("onFinally",e,_,void 0),_};m||(m=this.serviceRef.value(...e));const j=await m;return I(j)}catch(m){if(f!==this.count)return new Promise(()=>{});throw this.setState({error:m,loading:!1}),(a=(i=this.options).onError)==null||a.call(i,m,e),this.runPluginHandler("onError",m,e),(H((o=this.options)==null?void 0:o.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||pe((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(h=(c=this.options).onFinally)==null||h.call(c,e,void 0,m),f===this.count&&this.runPluginHandler("onFinally",e,void 0,m),m}}run(...e){this.runAsync(...e).catch(t=>{this.options.onError||console.error(t)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const t=H(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}const Ve=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function we(n){return Object.keys(n).filter(t=>["data","loading","params","error"].includes(t)).length===4}function Ee(n,e={},t=[]){const s=Vue.inject(Ve,{}),{initialData:r=void 0,manual:u=!1,ready:i=!0,...a}={...s??{},...e??{}},o={manual:u,ready:i,...a},d=Vue.ref(n),l=Vue.reactive({data:r,loading:!1,params:void 0,error:void 0}),c=(v,b)=>{b?l[b]=v:we(v)&&(l.data=v.data,l.loading=v.loading,l.error=v.error,l.params=v.params)},h=t.map(v=>{var b;return(b=v==null?void 0:v.onInit)==null?void 0:b.call(v,o)}).filter(Boolean),f=new _e(d,o,c,Object.assign({},...h,l));f.options=o,f.pluginImpls=t.map(v=>v(f,o));const g=Vue.computed(()=>Vue.isRef(i)?i.value:i);if(Vue.watchEffect(()=>{if(!u){const v=f.state.params||e.defaultParams||[];g.value&&f.options.refreshDeps===!0&&d.value&&f.run(...v)}}),!u&&f.options.refreshDeps!==!0){const v=f.state.params||e.defaultParams||[];Vue.unref(i)&&f.run(...v)}return Vue.onScopeDispose(()=>{f.cancel()}),{...Vue.toRefs(l),cancel:f.cancel.bind(f),refresh:f.refresh.bind(f),refreshAsync:f.refreshAsync.bind(f),run:f.run.bind(f),runAsync:f.runAsync.bind(f),mutate:f.mutate.bind(f)}}const Pe=(n,e)=>function(s,r={},u=[]){let i=n;const a=e||[];for(let o=a.length;o--;)i=a[o](i);return i(s,r,u)};function Be(n,e,t){var s;const r=(s=[null,k,ue,ae,he,me,M,K,ve])==null?void 0:s.filter(Boolean);return Pe(Ee,e==null?void 0:e.use)(n,e,[...t||[],...r])}const Re=!!(typeof window<"u"&&window.document&&window.document.createElement);function A(n,e){var t,s;if(!Re)return;if(!n)return e;let r;return typeof n=="function"?r=n():Vue.isRef(n)?r=(s=(t=n.value)==null?void 0:t.$el)!=null?s:n.value:r=n,r}function N(n,e){if(n===e)return!0;for(let t=0;t(t,s,r)=>{const u=Vue.ref(!1),i=Vue.ref([]),a=Vue.ref([]),o=Vue.ref();n(()=>{var d;const c=(Array.isArray(r)?r:[r]).map(h=>A(h));if(!u.value){u.value=!0,i.value=c,a.value=s,o.value=t();return}(c.length!==i.value.length||!N(c,i.value)||!N(s,a.value))&&((d=o.value)==null||d.call(o),i.value=c,a.value=s,o.value=t())}),Vue.onUnmounted(()=>{var d;(d=o.value)==null||d.call(o),u.value=!1})};Se(Vue.watchEffect);var Oe=Object.defineProperty,Ae=(n,e,t)=>e in n?Oe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,V=(n,e,t)=>(Ae(n,typeof e!="symbol"?e+"":e,t),t);class Te{constructor(){V(this,"subscriptions",new Map),V(this,"emitEffectCache",new Map),V(this,"useSubscription",(e,t)=>{const s=Vue.ref();Vue.watchEffect(r=>{var u,i;s.value=t;function a(d){s.value&&s.value(d)}const o=(i=(u=this.subscriptions)==null?void 0:u.get(e))!=null?i:[];o.push(a),this.subscriptions.set(e,o),this.emitEffect(e),r(()=>{this.subscriptions.delete(e)})})}),V(this,"emit",(e,...t)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(r=>{r==null||r({params:U(t),event:e})}),this.emitEffectCache.set(e,{params:U(t),event:e})}else throw new TypeError("event must be string or number !")}),V(this,"emitEffect",e=>{const t=this.emitEffectCache.get(e),s=this.subscriptions.get(e);t&&(s==null||s.forEach(r=>{r==null||r({...t})}))}),V(this,"removeListener",e=>{this.subscriptions.delete(e)}),V(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new Te;const xe=(n,e)=>{const{onExit:t,onEnter:s,defaultElement:r=document.documentElement}=e||{},u=Vue.ref(t),i=Vue.ref(s),a=Vue.ref(!1),o=f=>{a.value=f},d=()=>{var f,g,v;if(p.isEnabled){const b=A(n,r);if(!p.element)(f=u.value)==null||f.call(u),o(!1),p.off("change",d);else{const m=p.element===b;m?(g=i.value)==null||g.call(i):(v=u.value)==null||v.call(u),o(m)}}},l=()=>{const f=A(n,r);if(f&&p.isEnabled)try{p.request(f),p.on("change",d)}catch(g){console.error(g)}},c=()=>{const f=A(n,r);p.isEnabled&&p.element===f&&p.exit()},h=()=>{a.value?c():l()};return Vue.onUnmounted(()=>{p.isEnabled&&p.off("change",d)}),[Vue.readonly(a),{enterFullscreen:l,exitFullscreen:c,toggleFullscreen:h,isEnabled:p.isEnabled}]};export{Be as a,xe as u}; diff --git a/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js.gz b/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js.gz deleted file mode 100644 index b7ffc9b6..00000000 Binary files a/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js.gz and /dev/null differ diff --git a/assets/zh-CN-B4BrSi05.js b/assets/zh-CN-B4BrSi05.js deleted file mode 100644 index 72817a12..00000000 --- a/assets/zh-CN-B4BrSi05.js +++ /dev/null @@ -1 +0,0 @@ -import{t as U}from"./hooks-BhHffBS8.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-CShlBTir.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-Dx3WEey5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const e="当前环境不支持全屏",W={isEnabledFullscreen:e},X=Object.freeze(Object.defineProperty({__proto__:null,default:W,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",Y={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},Z=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:Y},Symbol.toStringTag,{value:"Module"})),i="刷新当前页面",s="锁屏",r="设置",l="Github",a="全屏",p="退出全屏",m="搜索",ee={Reload:i,Lock:s,Setting:r,Github:l,FullScreen:a,CancelFullScreen:p,Search:m},oe=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:p,FullScreen:a,Github:l,Lock:s,Reload:i,Search:m,Setting:r,default:ee},Symbol.toStringTag,{value:"Module"})),_="首页",u="依赖项",d="关于",g="可视化",f="滚动动画",b="请求",h="表格",S="多级菜单(缓存)",O="文档",T="文档 (加速地址)",C="文档(内嵌)",y="办公",D="文档",M="演示",P="表格",j="数字精度",v="指令",R="页面详情模式",z="Mock 数据",N="二维码",I="SVG 图标",L="模板内置 Api",k="模态框",x="右键菜单",F="缓存工具函数",te={Dashboard:_,Rely:u,RelyAbout:d,Error:"错误页",Echart:g,scrollReveal:f,Axios:b,Table:h,MultiMenu:S,Doc:O,DocLocal:T,DocLocalInside:C,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,CalculatePrecision:j,Directive:v,RouterDemo:R,Mock:z,QRCode:N,SvgIcon:I,TemplateHooks:L,Modal:k,ContextMenu:x,CacheDemo:F},ne=Object.freeze(Object.defineProperty({__proto__:null,Axios:b,CacheDemo:F,CalculatePrecision:j,ContextMenu:x,Dashboard:_,Directive:v,Doc:O,DocLocal:T,DocLocalInside:C,Echart:g,Mock:z,Modal:k,MultiMenu:S,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,QRCode:N,Rely:u,RelyAbout:d,RouterDemo:R,SvgIcon:I,Table:h,TemplateHooks:L,default:te,scrollReveal:f},Symbol.toStringTag,{value:"Module"})),w="项目配置",A={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},E="界面显示",ce={Title:w,ThemeOptions:A,InterfaceDisplay:E},ie=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:E,ThemeOptions:A,Title:w,default:ce},Symbol.toStringTag,{value:"Module"})),G="注册",Q="登录",$="扫码登陆",H="请输入用户名",V="请输入密码",q="登 陆",B="用户名",J="密码",K="开箱即用的中后台管理系统",se={Register:G,Signing:Q,QRCodeSigning:$,NamePlaceholder:H,PasswordPlaceholder:V,Login:q,Name:B,Password:J,RayTemplate:K},re=Object.freeze(Object.defineProperty({__proto__:null,Login:q,Name:B,NamePlaceholder:H,Password:J,PasswordPlaceholder:V,QRCodeSigning:$,RayTemplate:K,Register:G,Signing:Q,default:se},Symbol.toStringTag,{value:"Module"})),le=Object.assign({"./zh-CN/globalMessage.json":X,"./zh-CN/headerSettingOptions.json":Z,"./zh-CN/headerTooltip.json":oe,"./zh-CN/menu.json":ne,"./zh-CN/setting.json":ie,"./zh-CN/views/login/index.json":re}),Qe={message:{...U(le,"zh-CN")}};export{Qe as default}; diff --git a/assets/zh-CN-B4BrSi05.js.gz b/assets/zh-CN-B4BrSi05.js.gz deleted file mode 100644 index 02ba3f8e..00000000 Binary files a/assets/zh-CN-B4BrSi05.js.gz and /dev/null differ diff --git a/assets/hooks-Bn_fmFnB.css b/css/hooks-Bn_fmFnB.css similarity index 100% rename from assets/hooks-Bn_fmFnB.css rename to css/hooks-Bn_fmFnB.css diff --git a/assets/hooks-Bn_fmFnB.css.gz b/css/hooks-Bn_fmFnB.css.gz similarity index 100% rename from assets/hooks-Bn_fmFnB.css.gz rename to css/hooks-Bn_fmFnB.css.gz diff --git a/assets/index-BhnoEzFG.css b/css/index-BhnoEzFG.css similarity index 100% rename from assets/index-BhnoEzFG.css rename to css/index-BhnoEzFG.css diff --git a/assets/index-BhnoEzFG.css.gz b/css/index-BhnoEzFG.css.gz similarity index 100% rename from assets/index-BhnoEzFG.css.gz rename to css/index-BhnoEzFG.css.gz diff --git a/assets/index-BqPIKfai.css b/css/index-BqPIKfai.css similarity index 100% rename from assets/index-BqPIKfai.css rename to css/index-BqPIKfai.css diff --git a/assets/index-CIq6_pk2.css b/css/index-CIq6_pk2.css similarity index 100% rename from assets/index-CIq6_pk2.css rename to css/index-CIq6_pk2.css diff --git a/assets/index-CTOeMyqn.css b/css/index-CTOeMyqn.css similarity index 100% rename from assets/index-CTOeMyqn.css rename to css/index-CTOeMyqn.css diff --git a/assets/index-DeeQXRbp.css b/css/index-DeeQXRbp.css similarity index 100% rename from assets/index-DeeQXRbp.css rename to css/index-DeeQXRbp.css diff --git a/assets/index-Dig957GB.css b/css/index-Dig957GB.css similarity index 100% rename from assets/index-Dig957GB.css rename to css/index-Dig957GB.css diff --git a/assets/index-E5hzVTFx.css b/css/index-E5hzVTFx.css similarity index 100% rename from assets/index-E5hzVTFx.css rename to css/index-E5hzVTFx.css diff --git a/assets/index-E5hzVTFx.css.gz b/css/index-E5hzVTFx.css.gz similarity index 100% rename from assets/index-E5hzVTFx.css.gz rename to css/index-E5hzVTFx.css.gz diff --git a/assets/index-G2qqDeP0.css b/css/index-G2qqDeP0.css similarity index 100% rename from assets/index-G2qqDeP0.css rename to css/index-G2qqDeP0.css diff --git a/assets/index-cMo-v_SD.css b/css/index-cMo-v_SD.css similarity index 100% rename from assets/index-cMo-v_SD.css rename to css/index-cMo-v_SD.css diff --git a/index.html b/index.html index 88351df1..17699f4f 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,9 @@ - + - + @@ -16,42 +16,34 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +