vome-core 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/components/ui/avatar/index.js +1 -1
- package/dist/admin/components/ui/checkbox/index.js +1 -1
- package/dist/admin/components/ui/dialog/index.js +1 -1
- package/dist/admin/components/ui/dropdown-menu/index.js +1 -1
- package/dist/admin/components/ui/input/index.js +1 -1
- package/dist/admin/components/ui/label/index.js +1 -1
- package/dist/admin/components/ui/scroll-area/index.js +1 -1
- package/dist/admin/components/ui/select/index.js +1 -1
- package/dist/admin/components/ui/separator/index.js +1 -1
- package/dist/admin/components/ui/sheet/index.js +1 -1
- package/dist/admin/components/ui/sonner/index.js +1 -1
- package/dist/admin/components/ui/table/index.js +1 -1
- package/dist/admin/components/ui/tabs/index.js +1 -1
- package/dist/admin/components/ui/tooltip/index.js +1 -1
- package/dist/admin/components/vm-loading.vue +113 -0
- package/dist/admin/crud/auto-fields.js +1 -1
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/components/vm-select.vue +96 -5
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/crud-page-request.js +1 -1
- package/dist/admin/crud/data-i18n.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/export-fetch.js +1 -1
- package/dist/admin/crud/index.d.ts +0 -1
- package/dist/admin/crud/index.js +0 -1
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/crud/vm-upsert.vue +0 -1
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/micro-locale.js +1 -1
- package/dist/admin/lib/micro-theme.js +1 -1
- package/dist/admin/lib/shell.js +1 -1
- package/dist/admin/lib/theme-color-options.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/admin/router/create.js +1 -1
- package/dist/admin/router/guards.js +1 -1
- package/dist/admin/styles/base.css +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/client/ai-model-registry.js +1 -1
- package/dist/client/base.js +1 -1
- package/dist/client/configure.js +1 -1
- package/dist/client/dict.js +1 -1
- package/dist/client/eps-payload.js +1 -1
- package/dist/client/eps.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/locale-store.js +1 -1
- package/dist/client/service.js +1 -1
- package/dist/client/vite-admin.js +1 -1
- package/dist/client/vite-auto-import.js +1 -1
- package/dist/client/vite-micro-proxy.js +1 -1
- package/dist/client/vite-plugin-eps.js +1 -1
- package/dist/client/vite-resolve.js +1 -1
- package/dist/config/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/package.json +1 -1
- package/dist/admin/crud/components/vm-user-select.vue +0 -234
package/dist/admin/lib/upload.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x79bf26=_0x2096;(function(_0x4c9dc5,_0x23cc81){const _0x3b8646=_0x2096,_0x3e38f7=_0x4c9dc5();while(!![]){try{const _0x1970c6=-parseInt(_0x3b8646(0x12e))/0x1+-parseInt(_0x3b8646(0x146))/0x2+-parseInt(_0x3b8646(0x13e))/0x3*(-parseInt(_0x3b8646(0x129))/0x4)+-parseInt(_0x3b8646(0x154))/0x5*(parseInt(_0x3b8646(0x12d))/0x6)+-parseInt(_0x3b8646(0x15e))/0x7+parseInt(_0x3b8646(0x123))/0x8+-parseInt(_0x3b8646(0x11f))/0x9*(-parseInt(_0x3b8646(0x151))/0xa);if(_0x1970c6===_0x23cc81)break;else _0x3e38f7['push'](_0x3e38f7['shift']());}catch(_0x4e161a){_0x3e38f7['push'](_0x3e38f7['shift']());}}}(_0x2744,0x46657));export const DEFAULT_UPLOAD_RULES=[{'name':'图片','type':_0x79bf26(0x148),'color':_0x79bf26(0x155),'exts':['bmp',_0x79bf26(0x147),'jpeg',_0x79bf26(0x163),_0x79bf26(0x14b),_0x79bf26(0x150),_0x79bf26(0x13d),_0x79bf26(0x120)]},{'name':'视频','type':_0x79bf26(0x139),'color':'#826aec','exts':[_0x79bf26(0x152),_0x79bf26(0x165),_0x79bf26(0x166),_0x79bf26(0x14e),_0x79bf26(0x14f),'rm',_0x79bf26(0x133),_0x79bf26(0x13a),_0x79bf26(0x157),_0x79bf26(0x153),_0x79bf26(0x145)]},{'name':'音频','type':_0x79bf26(0x141),'color':_0x79bf26(0x14c),'exts':[_0x79bf26(0x126),_0x79bf26(0x159),_0x79bf26(0x13f),_0x79bf26(0x127),_0x79bf26(0x13b),_0x79bf26(0x171),'ra','ape',_0x79bf26(0x131),_0x79bf26(0x16f)]},{'name':'文档','type':_0x79bf26(0x14a),'color':'#53B7F4','exts':['doc',_0x79bf26(0x121),_0x79bf26(0x128),_0x79bf26(0x138),_0x79bf26(0x167),_0x79bf26(0x13c)]},{'name':'表格','type':_0x79bf26(0x161),'color':_0x79bf26(0x12c),'exts':['xls','xlsx','xlsm',_0x79bf26(0x170),_0x79bf26(0x14d),'xltm']},{'name':'演示','type':_0x79bf26(0x168),'color':_0x79bf26(0x135),'exts':[_0x79bf26(0x168),_0x79bf26(0x144),_0x79bf26(0x162),_0x79bf26(0x11e),_0x79bf26(0x16b),'pps',_0x79bf26(0x11c),_0x79bf26(0x11d),_0x79bf26(0x142),_0x79bf26(0x156)]},{'name':_0x79bf26(0x15b),'type':_0x79bf26(0x16a),'color':_0x79bf26(0x12f),'exts':[_0x79bf26(0x16a)]},{'name':_0x79bf26(0x15c),'type':_0x79bf26(0x16e),'color':_0x79bf26(0x140),'exts':[_0x79bf26(0x16e),_0x79bf26(0x125),'7z',_0x79bf26(0x12b),'gz']},{'name':'文件','type':_0x79bf26(0x143),'color':_0x79bf26(0x16c),'exts':[]}];export function extname(_0x43969d=''){const _0x151bc2=String(_0x43969d)['split']('?')[0x0]?.['match'](/\.([^.]+)$/);return _0x151bc2?_0x151bc2[0x1]['toLowerCase']():'';}function _0x2096(_0x58179d,_0x416e76){_0x58179d=_0x58179d-0x11c;const _0x27440b=_0x2744();let _0x2096df=_0x27440b[_0x58179d];if(_0x2096['gnINcL']===undefined){var _0x374ec4=function(_0x57c070){const _0x535df3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43969d='',_0x151bc2='';for(let _0x5f221b=0x0,_0x1db70f,_0x2b3f57,_0x4d0e68=0x0;_0x2b3f57=_0x57c070['charAt'](_0x4d0e68++);~_0x2b3f57&&(_0x1db70f=_0x5f221b%0x4?_0x1db70f*0x40+_0x2b3f57:_0x2b3f57,_0x5f221b++%0x4)?_0x43969d+=String['fromCharCode'](0xff&_0x1db70f>>(-0x2*_0x5f221b&0x6)):0x0){_0x2b3f57=_0x535df3['indexOf'](_0x2b3f57);}for(let _0x5e0820=0x0,_0x321af4=_0x43969d['length'];_0x5e0820<_0x321af4;_0x5e0820++){_0x151bc2+='%'+('00'+_0x43969d['charCodeAt'](_0x5e0820)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x151bc2);};_0x2096['Pwxieq']=_0x374ec4,_0x2096['ahYJjO']={},_0x2096['gnINcL']=!![];}const _0x395b6c=_0x27440b[0x0],_0xc8e146=_0x58179d+_0x395b6c,_0x15c5d0=_0x2096['ahYJjO'][_0xc8e146];return!_0x15c5d0?(_0x2096df=_0x2096['Pwxieq'](_0x2096df),_0x2096['ahYJjO'][_0xc8e146]=_0x2096df):_0x2096df=_0x15c5d0,_0x2096df;}export function filename(_0x5f221b=''){const _0x2e29c5=_0x79bf26,_0x1db70f=String(_0x5f221b)[_0x2e29c5(0x132)]('?')[0x0]?.['split']('/')[_0x2e29c5(0x124)]()||'',_0x2b3f57=extname(_0x1db70f);return _0x2b3f57?_0x1db70f[_0x2e29c5(0x16d)](0x0,-(_0x2b3f57[_0x2e29c5(0x160)]+0x1)):_0x1db70f;}function _0x2744(){const _0x2d46c2=['5y6l57YP5yYf','BM93','mZeWmtmWmxPrvNPVwG','zMLSDgvY','BgvUz3rO','zxHJzwW','Chb0Bq','Cg5N','zxH0CW','D212','BxbN','zg90Ea','Chb0','Dg9tDhjPBMC','CgrM','ChbZBq','iZKWotm5oq','C2XPy2u','CMfY','y2rH','EgX0','BwLKAq','Cg90Ea','Cg90Bq','ChbZEa','owTeu291uG','D2vICa','zg9JEa','DxjS','otGXnZi4EfLzBfn5','Cg9W','EMLW','BxaZ','BxaY','zg9JBq','mJqWmda4rg1YAgHS','zgf0ytPPBwfNzs8','DgfY','iZuZrdm5qW','otq3ndzwBvf4ExK','mJG5mJu3s29ywLjf','iZHMmZuWma','BwfW','ywfJ','C3bSAxq','CMfT','zMLUza','i0y1nKm2qW','CMfUzg9T','Aw5JBhvKzxm','zg90','DMLKzw8','C3DM','zMXHyW','zg90Bq','C3zN','mtvwvfDgChC','D21H','i0zgqZC1nW','yxvKAw8','zhb0','zMLSzq','Chb0Ea','m2DW','odq1ndK0B1bivhnT','ANbN','Aw1Hz2u','CMvWBgfJzq','D29Yza','DgLM','iZGYnMfLyW','EgX0Ea','BxbLzW','Bw92','z2LM','mti4oteXmtbstMHPz2u','yxzP','Bxa0','odvrq0LWEvq','iZy3qZiZqq','zhbZ','zMX2','AM9PBG','D2f2','DhLWzq','uerg'];_0x2744=function(){return _0x2d46c2;};return _0x2744();}function fileRule(_0x4d0e68,_0x5e0820=DEFAULT_UPLOAD_RULES){const _0x3983ca=_0x79bf26;if(_0x4d0e68?.[_0x3983ca(0x137)](_0x3983ca(0x12a)))return _0x5e0820[_0x3983ca(0x134)](_0x49be9a=>_0x49be9a[_0x3983ca(0x15a)]===_0x3983ca(0x148));const _0x321af4=extname(_0x4d0e68||''),_0x4cd183=_0x5e0820['find'](_0xa3bd17=>_0xa3bd17[_0x3983ca(0x164)][_0x3983ca(0x137)](_0x321af4));return _0x4cd183||_0x5e0820[_0x3983ca(0x134)](_0x118620=>_0x118620[_0x3983ca(0x15a)]===_0x3983ca(0x143));}export function getFileType(_0x9b0418,_0x552718=DEFAULT_UPLOAD_RULES){const _0x1c7645=_0x79bf26;return fileRule(_0x9b0418,_0x552718)[_0x1c7645(0x15a)];}export function getUploadRule(_0x5ed2ed,_0x26191f=DEFAULT_UPLOAD_RULES){const _0x5722a7=_0x79bf26;return _0x26191f[_0x5722a7(0x134)](_0x2fc217=>_0x2fc217[_0x5722a7(0x15a)]===_0x5ed2ed)||_0x26191f[_0x26191f[_0x5722a7(0x160)]-0x1];}export function getUrls(_0x5df785){const _0x3442b3=_0x79bf26;return _0x5df785[_0x3442b3(0x130)](_0x5d8a1e=>String(_0x5d8a1e[_0x3442b3(0x122)]||'')[_0x3442b3(0x149)](/,/g,encodeURIComponent(',')));}export function pathJoin(..._0x36e2ff){const _0x4f70c1=_0x79bf26;return _0x36e2ff[_0x4f70c1(0x130)](_0x1dc0a1=>_0x1dc0a1['replace'](/(^\/+|\/+$)/g,''))[_0x4f70c1(0x15f)](Boolean)[_0x4f70c1(0x158)]('/');}export function uploadUid(){const _0x1fb84b=_0x79bf26;return Date[_0x1fb84b(0x15d)]()+'_'+Math[_0x1fb84b(0x136)]()[_0x1fb84b(0x169)](0x24)[_0x1fb84b(0x16d)](0x2,0x9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x2f9254,_0x2c8877){const _0x5ce12f=_0x5954,_0x1c7fb9=_0x2f9254();while(!![]){try{const _0x269b9d=parseInt(_0x5ce12f(0xcf))/0x1+-parseInt(_0x5ce12f(0xcd))/0x2+parseInt(_0x5ce12f(0xdb))/0x3*(-parseInt(_0x5ce12f(0xc9))/0x4)+-parseInt(_0x5ce12f(0xd3))/0x5+-parseInt(_0x5ce12f(0xbe))/0x6*(parseInt(_0x5ce12f(0xd6))/0x7)+parseInt(_0x5ce12f(0xc4))/0x8*(parseInt(_0x5ce12f(0xc3))/0x9)+parseInt(_0x5ce12f(0xda))/0xa*(parseInt(_0x5ce12f(0xd0))/0xb);if(_0x269b9d===_0x2c8877)break;else _0x1c7fb9['push'](_0x1c7fb9['shift']());}catch(_0x4e21fa){_0x1c7fb9['push'](_0x1c7fb9['shift']());}}}(_0x9d13,0x1875f));import{onUnmounted,ref,watch}from'vue';const FRAME_CAPTURE_TIMEOUT_MS=0x1f40;function _0x5954(_0xb20a29,_0x5d31fa){_0xb20a29=_0xb20a29-0xbd;const _0x9d134e=_0x9d13();let _0x59540c=_0x9d134e[_0xb20a29];if(_0x5954['PzDkoM']===undefined){var _0x1df191=function(_0x5afdfe){const _0x51c233='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2940db='',_0x3bd6be='';for(let _0x59b19f=0x0,_0x188709,_0x221b3e,_0x277728=0x0;_0x221b3e=_0x5afdfe['charAt'](_0x277728++);~_0x221b3e&&(_0x188709=_0x59b19f%0x4?_0x188709*0x40+_0x221b3e:_0x221b3e,_0x59b19f++%0x4)?_0x2940db+=String['fromCharCode'](0xff&_0x188709>>(-0x2*_0x59b19f&0x6)):0x0){_0x221b3e=_0x51c233['indexOf'](_0x221b3e);}for(let _0x2b5952=0x0,_0x4d60f2=_0x2940db['length'];_0x2b5952<_0x4d60f2;_0x2b5952++){_0x3bd6be+='%'+('00'+_0x2940db['charCodeAt'](_0x2b5952)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3bd6be);};_0x5954['oHweSw']=_0x1df191,_0x5954['bzKjmZ']={},_0x5954['PzDkoM']=!![];}const _0x93e439=_0x9d134e[0x0],_0x364be9=_0xb20a29+_0x93e439,_0x5c9ba1=_0x5954['bzKjmZ'][_0x364be9];return!_0x5c9ba1?(_0x59540c=_0x5954['oHweSw'](_0x59540c),_0x5954['bzKjmZ'][_0x364be9]=_0x59540c):_0x59540c=_0x5c9ba1,_0x59540c;}function captureVideoFrame(_0x2940db){const _0x3dcb32=_0x5954;if(typeof document===_0x3dcb32(0xde))return Promise['resolve'](null);return new Promise(_0x3bd6be=>{const _0x312246=_0x3dcb32,_0x59b19f=document[_0x312246(0xbf)](_0x312246(0xc8));_0x59b19f[_0x312246(0xd5)]=_0x312246(0xcc),_0x59b19f['muted']=!![],_0x59b19f[_0x312246(0xc7)]=!![],_0x59b19f[_0x312246(0xdc)]=_0x312246(0xbd);let _0x188709=![];const _0x221b3e=_0x2b5952=>{const _0x1490c1=_0x312246;if(_0x188709)return;_0x188709=!![],window[_0x1490c1(0xc0)](_0x277728),_0x59b19f[_0x1490c1(0xd4)]('src'),_0x59b19f[_0x1490c1(0xd7)](),_0x3bd6be(_0x2b5952);},_0x277728=window['setTimeout'](()=>_0x221b3e(null),FRAME_CAPTURE_TIMEOUT_MS);_0x59b19f[_0x312246(0xce)](_0x312246(0xcb),()=>_0x221b3e(null),{'once':!![]}),_0x59b19f[_0x312246(0xce)](_0x312246(0xdd),()=>{const _0x3fcdc9=_0x312246;try{_0x59b19f[_0x3fcdc9(0xdf)]=0.01;}catch{_0x221b3e(null);}},{'once':!![]}),_0x59b19f[_0x312246(0xce)]('seeked',()=>{const _0x5c6250=_0x312246;try{const _0x4d60f2=_0x59b19f[_0x5c6250(0xc2)],_0x1611b1=_0x59b19f[_0x5c6250(0xd2)];if(!_0x4d60f2||!_0x1611b1){_0x221b3e(null);return;}const _0x530f9c=document[_0x5c6250(0xbf)](_0x5c6250(0xd1));_0x530f9c[_0x5c6250(0xe0)]=_0x4d60f2,_0x530f9c[_0x5c6250(0xca)]=_0x1611b1;const _0x4d73fe=_0x530f9c['getContext']('2d');if(!_0x4d73fe){_0x221b3e(null);return;}_0x4d73fe[_0x5c6250(0xd9)](_0x59b19f,0x0,0x0,_0x4d60f2,_0x1611b1),_0x221b3e(_0x530f9c[_0x5c6250(0xc5)](_0x5c6250(0xc6),0.82));}catch{_0x221b3e(null);}},{'once':!![]}),_0x59b19f['src']=_0x2940db;});}export function useVideoFrame(_0x1cb310){const _0x41024a=ref(''),_0x40df94=ref(![]);let _0x21db9c=0x0;return watch(_0x1cb310,_0x303c57=>{const _0xd5120b=_0x5954;_0x21db9c+=0x1;const _0x458f5b=_0x21db9c;_0x41024a[_0xd5120b(0xd8)]='',_0x40df94[_0xd5120b(0xd8)]=![];if(!_0x303c57)return;captureVideoFrame(_0x303c57)[_0xd5120b(0xc1)](_0x169c3b=>{const _0x544112=_0xd5120b;if(_0x458f5b!==_0x21db9c)return;if(_0x169c3b)_0x41024a[_0x544112(0xd8)]=_0x169c3b;else _0x40df94[_0x544112(0xd8)]=!![];});},{'immediate':!![]}),onUnmounted(()=>{_0x21db9c+=0x1;}),{'videoFrameSrc':_0x41024a,'frameFailed':_0x40df94};}function _0x9d13(){const _0x39cbe2=['CgXHExnjBMXPBMu','DMLKzw8','odGXnLDlsgDrqW','AgvPz2H0','zxjYB3i','yw5VBNLTB3vZ','mJqXmJm2rxf0AKHY','ywrKrxzLBNrmAxn0zw5LCG','nti0ntzbCMvZEM8','ndaYndK5oxbmu1HLva','y2fUDMfZ','DMLKzw9izwLNAhq','mty5ndq1r0LMvur0','CMvTB3zLqxr0CMLIDxrL','y3jVC3npCMLNAw4','odG5wvD6AxjR','Bg9Hza','DMfSDwu','zhjHD0LTywDL','mtbmAuHnt2q','mtu5wuXNu2PX','ChjLBg9Hza','Bg9HzgvKzgf0yq','Dw5KzwzPBMvK','y3vYCMvUDfrPBwu','D2LKDgG','yxv0BW','ndq4mKzpBM9LzW','y3jLyxrLrwXLBwvUDa','y2XLyxjuAw1LB3v0','DgHLBG','DMLKzw9xAwr0Aa','ndmYmti2thzOCejv','ohPwA1LkEG','Dg9eyxrHvvjm','Aw1Hz2uVANbLzW'];_0x9d13=function(){return _0x39cbe2;};return _0x9d13();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x119e65,_0x3717b3){const _0x16b2c7=_0x18a4,_0x4d6980=_0x119e65();while(!![]){try{const _0x58a49b=parseInt(_0x16b2c7(0x1a5))/0x1+-parseInt(_0x16b2c7(0x19b))/0x2+parseInt(_0x16b2c7(0x199))/0x3*(parseInt(_0x16b2c7(0x19f))/0x4)+parseInt(_0x16b2c7(0x19e))/0x5*(parseInt(_0x16b2c7(0x1a4))/0x6)+parseInt(_0x16b2c7(0x197))/0x7*(parseInt(_0x16b2c7(0x198))/0x8)+-parseInt(_0x16b2c7(0x1a7))/0x9*(-parseInt(_0x16b2c7(0x19c))/0xa)+-parseInt(_0x16b2c7(0x1a2))/0xb;if(_0x58a49b===_0x3717b3)break;else _0x4d6980['push'](_0x4d6980['shift']());}catch(_0x5b4b76){_0x4d6980['push'](_0x4d6980['shift']());}}}(_0x139a,0x6f722));import{createRouter,createWebHistory}from'vue-router';import{setupAdminRouterGuards}from'./guards';function _0x18a4(_0x300b7e,_0x41e503){_0x300b7e=_0x300b7e-0x197;const _0x139a42=_0x139a();let _0x18a4d2=_0x139a42[_0x300b7e];if(_0x18a4['IVVWKg']===undefined){var _0x12d568=function(_0x99e8f6){const _0x557841='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a315c='',_0x11fb74='';for(let _0x2840b0=0x0,_0x25c7a9,_0x3fe915,_0x2719c5=0x0;_0x3fe915=_0x99e8f6['charAt'](_0x2719c5++);~_0x3fe915&&(_0x25c7a9=_0x2840b0%0x4?_0x25c7a9*0x40+_0x3fe915:_0x3fe915,_0x2840b0++%0x4)?_0x5a315c+=String['fromCharCode'](0xff&_0x25c7a9>>(-0x2*_0x2840b0&0x6)):0x0){_0x3fe915=_0x557841['indexOf'](_0x3fe915);}for(let _0x3c94eb=0x0,_0x3782a4=_0x5a315c['length'];_0x3c94eb<_0x3782a4;_0x3c94eb++){_0x11fb74+='%'+('00'+_0x5a315c['charCodeAt'](_0x3c94eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x11fb74);};_0x18a4['ppwqAb']=_0x12d568,_0x18a4['fQQBKI']={},_0x18a4['IVVWKg']=!![];}const _0x39bda6=_0x139a42[0x0],_0x5267ca=_0x300b7e+_0x39bda6,_0x29aaab=_0x18a4['fQQBKI'][_0x5267ca];return!_0x29aaab?(_0x18a4d2=_0x18a4['ppwqAb'](_0x18a4d2),_0x18a4['fQQBKI'][_0x5267ca]=_0x18a4d2):_0x18a4d2=_0x29aaab,_0x18a4d2;}function _0x139a(){const _0x5c5e86=['nMTpBKH1CG','mZeWnJiXyNbuC2Ly','Bgf5B3v0','ouDYzM1RsG','BM90lwzVDw5K','mtCZmJCWm0XKshH1ta','mtzdBLrmCw0','mtiZndqXDMzcwgjn','BwLZC2LUzW','mZi4odGYv2nXvurc','mJm3nJu0mfrNvwjiwa','Ag9Tzq','nZq4odCWvMDoENfr','mJrIwuLSrK8','6Ag16z2I5lIn5A2y5zYO','lZPWyxrOtwf0y2GOlIOPkG','otaWotCYnMrSy2vrza','Bg9NAw4'];_0x139a=function(){return _0x5c5e86;};return _0x139a();}export function createAdminRouter(_0x5a315c){const _0x44ae5e=_0x18a4,_0x11fb74={'missing':_0x5a315c[_0x44ae5e(0x19a)],'micro':_0x5a315c['micro']},_0x2840b0=createRouter({'history':createWebHistory(),'routes':[{'path':'/login','name':_0x44ae5e(0x1a3),'component':_0x5a315c[_0x44ae5e(0x1a3)],'meta':{'public':!![]}},{'path':'/','name':_0x44ae5e(0x1a6),'component':_0x5a315c[_0x44ae5e(0x1a6)],'children':[{'path':'','name':_0x44ae5e(0x19d),'component':_0x5a315c[_0x44ae5e(0x19d)],'meta':{'title':'首页'}}]},{'path':_0x44ae5e(0x1a1),'name':_0x44ae5e(0x1a8),'component':_0x5a315c[_0x44ae5e(0x19a)],'meta':{'title':_0x44ae5e(0x1a0)}}]});return setupAdminRouterGuards(_0x2840b0,_0x11fb74),{'router':_0x2840b0,'menuRouteShell':_0x11fb74};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x852e97,_0x2b1e96){const _0x19b943=_0x32d3,_0x88c7d3=_0x852e97();while(!![]){try{const _0x4c79ff=-parseInt(_0x19b943(0xcd))/0x1+parseInt(_0x19b943(0xcc))/0x2+parseInt(_0x19b943(0xc0))/0x3+-parseInt(_0x19b943(0xcf))/0x4+parseInt(_0x19b943(0xc7))/0x5+-parseInt(_0x19b943(0xcb))/0x6*(-parseInt(_0x19b943(0xc2))/0x7)+-parseInt(_0x19b943(0xc6))/0x8;if(_0x4c79ff===_0x2b1e96)break;else _0x88c7d3['push'](_0x88c7d3['shift']());}catch(_0x484721){_0x88c7d3['push'](_0x88c7d3['shift']());}}}(_0xe359,0xc867c));import{getAccessToken,getRefreshToken}from'../api/client';function _0x32d3(_0x44272a,_0x297076){_0x44272a=_0x44272a-0xc0;const _0xe359dd=_0xe359();let _0x32d3b6=_0xe359dd[_0x44272a];if(_0x32d3['lpVFYD']===undefined){var _0x15a9b8=function(_0x68ab45){const _0x4dbe31='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d231d='',_0x5c05be='';for(let _0x1334f0=0x0,_0x5796d8,_0x408cdc,_0x4c630e=0x0;_0x408cdc=_0x68ab45['charAt'](_0x4c630e++);~_0x408cdc&&(_0x5796d8=_0x1334f0%0x4?_0x5796d8*0x40+_0x408cdc:_0x408cdc,_0x1334f0++%0x4)?_0x1d231d+=String['fromCharCode'](0xff&_0x5796d8>>(-0x2*_0x1334f0&0x6)):0x0){_0x408cdc=_0x4dbe31['indexOf'](_0x408cdc);}for(let _0x1bc8d3=0x0,_0x5991ce=_0x1d231d['length'];_0x1bc8d3<_0x5991ce;_0x1bc8d3++){_0x5c05be+='%'+('00'+_0x1d231d['charCodeAt'](_0x1bc8d3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c05be);};_0x32d3['kLmodQ']=_0x15a9b8,_0x32d3['jlqwsh']={},_0x32d3['lpVFYD']=!![];}const _0x349f25=_0xe359dd[0x0],_0x3dfec4=_0x44272a+_0x349f25,_0x3e45fa=_0x32d3['jlqwsh'][_0x3dfec4];return!_0x3e45fa?(_0x32d3b6=_0x32d3['kLmodQ'](_0x32d3b6),_0x32d3['jlqwsh'][_0x3dfec4]=_0x32d3b6):_0x32d3b6=_0x3e45fa,_0x32d3b6;}import{createEps,setServicePerms}from'../service';import{useUserStore}from'../stores/user';import{clearMenuRoutesFlag,ensureMenuRoutes,removeAllMenuRoutes}from'./menu-routes';const menuReadyMap=new WeakMap();function _0xe359(){const _0x2ab2cd=['AgfZAa','mZG0ndi5nNnQwvDREq','Bwv0yq','mtG3ndeXmfL4AKDYqW','Bg9Hza','AxntDxbLCG','CxvLCNK','odm0otG0ofzVyurvqq','ndy1oty5mhbyCLbyAq','yMvMB3jLrwfJAa','Bg9HzgvK','zNvSBfbHDgG','nKXQtwfMsq','mJG4nde2nMjIt0TTvW','nJG1mZuXt3LgC092','C2v0','ntq5mJK2nhLxDeLgtq'];_0xe359=function(){return _0x2ab2cd;};return _0xe359();}export function setupAdminRouterGuards(_0x1d231d,_0x5c05be){const _0x552b3b=_0x32d3;_0x1d231d[_0x552b3b(0xc8)](async _0x1334f0=>{const _0x58668e=_0x552b3b;if(_0x1334f0[_0x58668e(0xc1)]['public'])return!![];if(!getAccessToken()&&!getRefreshToken())return{'name':'login','query':{'redirect':_0x1334f0[_0x58668e(0xca)]}};try{const _0x5796d8=useUserStore();if(!_0x5796d8[_0x58668e(0xc9)])await _0x5796d8[_0x58668e(0xc3)]();await createEps(),setServicePerms(_0x5796d8['perms'],_0x5796d8[_0x58668e(0xc4)]);if(!menuReadyMap['get'](_0x1d231d))return await ensureMenuRoutes(_0x1d231d,_0x5796d8['menus'],_0x5c05be),menuReadyMap[_0x58668e(0xce)](_0x1d231d,!![]),{'path':_0x1334f0['path'],'query':_0x1334f0[_0x58668e(0xc5)],'hash':_0x1334f0[_0x58668e(0xd0)],'replace':!![]};}catch{menuReadyMap['set'](_0x1d231d,![]);if(!getAccessToken()&&!getRefreshToken())return{'name':'login','query':{'redirect':_0x1334f0[_0x58668e(0xca)]}};if(!getAccessToken()&&getRefreshToken())return!![];return!![];}return!![];});}export function resetMenuRoutesFlag(_0x408cdc){const _0x21d0c7=_0x32d3;menuReadyMap[_0x21d0c7(0xce)](_0x408cdc,![]),removeAllMenuRoutes(_0x408cdc),clearMenuRoutesFlag();}
|