vome-core 0.1.77 → 0.1.79
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/api/client.js +2 -3
- package/dist/admin/components/layout/vm-app-header.vue +341 -0
- package/dist/admin/components/layout/vm-app-sidebar.vue +187 -0
- package/dist/admin/components/layout/vm-sidebar-flyout.vue +268 -0
- package/dist/admin/components/layout/vm-sidebar-nav-item.vue +490 -0
- package/dist/admin/components/layout/vm-sidebar-nav.vue +104 -0
- package/dist/admin/components/layout/vm-tags-view.vue +233 -0
- package/dist/admin/components/ui/avatar/Avatar.vue +18 -0
- package/dist/admin/components/ui/avatar/AvatarFallback.vue +21 -0
- package/dist/admin/components/ui/avatar/AvatarImage.vue +16 -0
- package/dist/admin/components/ui/avatar/index.d.ts +3 -0
- package/dist/admin/components/ui/avatar/index.js +1 -0
- package/dist/admin/components/ui/badge/Badge.vue +26 -0
- package/dist/admin/components/ui/badge/index.d.ts +6 -0
- package/dist/admin/components/ui/badge/index.js +1 -0
- package/dist/admin/components/ui/button/Button.vue +31 -0
- package/dist/admin/components/ui/button/index.d.ts +7 -0
- package/dist/admin/components/ui/button/index.js +1 -0
- package/dist/admin/components/ui/checkbox/Checkbox.vue +35 -0
- package/dist/admin/components/ui/checkbox/index.d.ts +1 -0
- package/dist/admin/components/ui/checkbox/index.js +1 -0
- package/dist/admin/components/ui/dialog/Dialog.vue +19 -0
- package/dist/admin/components/ui/dialog/DialogClose.vue +15 -0
- package/dist/admin/components/ui/dialog/DialogContent.vue +135 -0
- package/dist/admin/components/ui/dialog/DialogDescription.vue +23 -0
- package/dist/admin/components/ui/dialog/DialogFooter.vue +27 -0
- package/dist/admin/components/ui/dialog/DialogHeader.vue +17 -0
- package/dist/admin/components/ui/dialog/DialogOverlay.vue +21 -0
- package/dist/admin/components/ui/dialog/DialogScrollContent.vue +60 -0
- package/dist/admin/components/ui/dialog/DialogTitle.vue +23 -0
- package/dist/admin/components/ui/dialog/DialogTrigger.vue +15 -0
- package/dist/admin/components/ui/dialog/index.d.ts +10 -0
- package/dist/admin/components/ui/dialog/index.js +1 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenu.vue +19 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuGroup.vue +15 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuItem.vue +31 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuLabel.vue +23 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
- package/dist/admin/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/admin/components/ui/dropdown-menu/index.js +1 -0
- package/dist/admin/components/ui/input/Input.vue +34 -0
- package/dist/admin/components/ui/input/index.d.ts +1 -0
- package/dist/admin/components/ui/input/index.js +1 -0
- package/dist/admin/components/ui/label/Label.vue +26 -0
- package/dist/admin/components/ui/label/index.d.ts +1 -0
- package/dist/admin/components/ui/label/index.js +1 -0
- package/dist/admin/components/ui/scroll-area/ScrollArea.vue +33 -0
- package/dist/admin/components/ui/scroll-area/ScrollBar.vue +32 -0
- package/dist/admin/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/admin/components/ui/scroll-area/index.js +1 -0
- package/dist/admin/components/ui/select/Select.vue +19 -0
- package/dist/admin/components/ui/select/SelectContent.vue +51 -0
- package/dist/admin/components/ui/select/SelectGroup.vue +15 -0
- package/dist/admin/components/ui/select/SelectItem.vue +44 -0
- package/dist/admin/components/ui/select/SelectItemText.vue +15 -0
- package/dist/admin/components/ui/select/SelectLabel.vue +17 -0
- package/dist/admin/components/ui/select/SelectScrollDownButton.vue +26 -0
- package/dist/admin/components/ui/select/SelectScrollUpButton.vue +26 -0
- package/dist/admin/components/ui/select/SelectSeparator.vue +19 -0
- package/dist/admin/components/ui/select/SelectTrigger.vue +33 -0
- package/dist/admin/components/ui/select/SelectValue.vue +15 -0
- package/dist/admin/components/ui/select/index.d.ts +11 -0
- package/dist/admin/components/ui/select/index.js +1 -0
- package/dist/admin/components/ui/separator/Separator.vue +29 -0
- package/dist/admin/components/ui/separator/index.d.ts +1 -0
- package/dist/admin/components/ui/separator/index.js +1 -0
- package/dist/admin/components/ui/sheet/Sheet.vue +19 -0
- package/dist/admin/components/ui/sheet/SheetClose.vue +15 -0
- package/dist/admin/components/ui/sheet/SheetContent.vue +63 -0
- package/dist/admin/components/ui/sheet/SheetDescription.vue +21 -0
- package/dist/admin/components/ui/sheet/SheetFooter.vue +16 -0
- package/dist/admin/components/ui/sheet/SheetHeader.vue +15 -0
- package/dist/admin/components/ui/sheet/SheetOverlay.vue +21 -0
- package/dist/admin/components/ui/sheet/SheetTitle.vue +21 -0
- package/dist/admin/components/ui/sheet/SheetTrigger.vue +15 -0
- package/dist/admin/components/ui/sheet/index.d.ts +8 -0
- package/dist/admin/components/ui/sheet/index.js +1 -0
- package/dist/admin/components/ui/sonner/Toaster.vue +117 -0
- package/dist/admin/components/ui/sonner/index.d.ts +1 -0
- package/dist/admin/components/ui/sonner/index.js +1 -0
- package/dist/admin/components/ui/table/Table.vue +16 -0
- package/dist/admin/components/ui/table/TableBody.vue +17 -0
- package/dist/admin/components/ui/table/TableCaption.vue +17 -0
- package/dist/admin/components/ui/table/TableCell.vue +22 -0
- package/dist/admin/components/ui/table/TableEmpty.vue +34 -0
- package/dist/admin/components/ui/table/TableFooter.vue +17 -0
- package/dist/admin/components/ui/table/TableHead.vue +17 -0
- package/dist/admin/components/ui/table/TableHeader.vue +17 -0
- package/dist/admin/components/ui/table/TableRow.vue +17 -0
- package/dist/admin/components/ui/table/index.d.ts +9 -0
- package/dist/admin/components/ui/table/index.js +1 -0
- package/dist/admin/components/ui/tabs/Tabs.vue +24 -0
- package/dist/admin/components/ui/tabs/TabsContent.vue +21 -0
- package/dist/admin/components/ui/tabs/TabsList.vue +24 -0
- package/dist/admin/components/ui/tabs/TabsTrigger.vue +26 -0
- package/dist/admin/components/ui/tabs/index.d.ts +4 -0
- package/dist/admin/components/ui/tabs/index.js +1 -0
- package/dist/admin/components/ui/tooltip/Tooltip.vue +19 -0
- package/dist/admin/components/ui/tooltip/TooltipContent.vue +34 -0
- package/dist/admin/components/ui/tooltip/TooltipProvider.vue +14 -0
- package/dist/admin/components/ui/tooltip/TooltipTrigger.vue +15 -0
- package/dist/admin/components/ui/tooltip/index.d.ts +4 -0
- package/dist/admin/components/ui/tooltip/index.js +1 -0
- package/dist/admin/crud/components/vm-color-picker.vue +0 -3
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.d.ts +8 -0
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/crud-page-request.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/export-fetch.js +1 -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.d.ts +4 -0
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/env.d.ts +0 -4
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/index.d.ts +11 -9
- package/dist/admin/index.js +16 -27
- 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/document-title.d.ts +6 -0
- package/dist/admin/lib/document-title.js +1 -0
- 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.d.ts +5 -0
- package/dist/admin/lib/micro-locale.js +1 -0
- package/dist/admin/lib/micro-theme.d.ts +14 -0
- package/dist/admin/lib/micro-theme.js +1 -0
- package/dist/admin/lib/setup-crud-defaults.d.ts +2 -0
- package/dist/admin/lib/setup-crud-defaults.js +1 -0
- package/dist/admin/lib/shell.d.ts +13 -0
- package/dist/admin/lib/shell.js +1 -0
- 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.d.ts +16 -0
- package/dist/admin/router/create.js +1 -0
- package/dist/admin/router/guards.d.ts +6 -0
- package/dist/admin/router/guards.js +1 -0
- package/dist/admin/router/index.d.ts +5 -3
- package/dist/admin/router/index.js +5 -80
- package/dist/admin/router/menu-routes.d.ts +7 -2
- package/dist/admin/router/menu-routes.js +10 -12
- package/dist/admin/service/index.js +0 -3
- package/dist/admin/stores/dict.d.ts +13 -0
- package/dist/admin/stores/dict.js +1 -0
- package/dist/admin/stores/locale.d.ts +3 -0
- package/dist/admin/stores/locale.js +1 -0
- package/dist/admin/stores/theme.d.ts +1 -0
- package/dist/admin/stores/theme.js +1 -0
- package/dist/admin/themes/dark.d.ts +2 -0
- package/dist/admin/themes/dark.js +1 -0
- package/dist/admin/themes/index.d.ts +9 -0
- package/dist/admin/themes/index.js +1 -0
- package/dist/admin/themes/light.d.ts +2 -0
- package/dist/admin/themes/light.js +1 -0
- package/dist/client/configure.d.ts +3 -0
- package/dist/client/configure.js +8 -1
- package/dist/client/vite-admin.js +2 -4
- package/dist/client/vite-auto-import.js +4 -4
- package/dist/client/vite-resolve.d.ts +3 -3
- package/dist/client/vite-resolve.js +10 -15
- package/dist/ext/plugin-market-urls.d.ts +8 -0
- 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 +13 -4
- package/typings/admin/theme.ts +10 -0
- package/dist/admin/config/plugin-dev.d.ts +0 -52
- package/dist/admin/config/plugin-dev.js +0 -1
- package/dist/comm/chinese-segments.test.d.ts +0 -1
- package/dist/comm/path.test.d.ts +0 -1
- package/typings/admin/base/auth.d.ts +0 -21
- package/typings/admin/base/permission.d.ts +0 -19
- package/typings/admin/comm/crud.d.ts +0 -343
- package/typings/admin/comm/eps.d.ts +0 -66
- package/typings/admin/comm/request.d.ts +0 -13
- package/typings/admin/comm/service.d.ts +0 -48
- package/typings/admin/comm/upload.d.ts +0 -26
- package/typings/admin/host.d.ts +0 -66
- package/typings/admin/vome/browser.d.ts +0 -10
- package/typings/admin/vome/module.d.ts +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x417b10=_0x5f1e;(function(_0x45c88,_0x9adf5e){const _0x922776=_0x5f1e,_0x4a35b2=_0x45c88();while(!![]){try{const _0x983129=-parseInt(_0x922776(0x199))/0x1+-parseInt(_0x922776(0x18f))/0x2*(-parseInt(_0x922776(0x17e))/0x3)+parseInt(_0x922776(0x184))/0x4+parseInt(_0x922776(0x17c))/0x5+parseInt(_0x922776(0x188))/0x6+-parseInt(_0x922776(0x197))/0x7+-parseInt(_0x922776(0x18e))/0x8;if(_0x983129===_0x9adf5e)break;else _0x4a35b2['push'](_0x4a35b2['shift']());}catch(_0x344e01){_0x4a35b2['push'](_0x4a35b2['shift']());}}}(_0x3b8a,0xb0427));const PRECISIONS=[_0x417b10(0x189),_0x417b10(0x187),'day',_0x417b10(0x18d)];export function normalizeDateTimePrecision(_0x51382a){const _0x29d979=_0x417b10,_0x5162dc=String(_0x51382a||'')[_0x29d979(0x180)]()[_0x29d979(0x18b)]();return PRECISIONS[_0x29d979(0x18a)](_0x5162dc)?_0x5162dc:_0x29d979(0x192);}export function clampTimePart(_0x18bc80,_0xf9f1c8){const _0x20e711=_0x417b10,_0x21af26=_0x18bc80==='h'?0x17:0x3b;return Math[_0x20e711(0x185)](0x0,Math[_0x20e711(0x191)](_0x21af26,Math[_0x20e711(0x18c)](_0xf9f1c8)));}function pad2(_0x4f77b8){return String(_0x4f77b8)['padStart'](0x2,'0');}export function formatYmd(_0x50793a){const _0x11de17=_0x417b10;return _0x50793a[_0x11de17(0x182)]()+'-'+pad2(_0x50793a[_0x11de17(0x181)]()+0x1)+'-'+pad2(_0x50793a[_0x11de17(0x17f)]());}export function parseApiDateTime(_0x4ef976){const _0x584879=_0x417b10;if(!_0x4ef976)return null;const _0xfc607b=String(_0x4ef976)[_0x584879(0x180)](),_0x2afdd6=/^(\d{4})-(\d{2})-(\d{2})/[_0x584879(0x198)](_0xfc607b);if(!_0x2afdd6)return null;const _0x23a8a7=new Date(Number(_0x2afdd6[0x1]),Number(_0x2afdd6[0x2])-0x1,Number(_0x2afdd6[0x3]));if(Number[_0x584879(0x193)](_0x23a8a7[_0x584879(0x17d)]()))return null;const _0x5ca77a=/(?:T|\s)(\d{2}):(\d{2})(?::(\d{2}))?/[_0x584879(0x198)](_0xfc607b);return _0x5ca77a&&_0x23a8a7[_0x584879(0x196)](Number(_0x5ca77a[0x1]),Number(_0x5ca77a[0x2]),Number(_0x5ca77a[0x3]||0x0),0x0),_0x23a8a7;}function _0x5f1e(_0x46927f,_0x54a342){_0x46927f=_0x46927f-0x17c;const _0x3b8a88=_0x3b8a();let _0x5f1e89=_0x3b8a88[_0x46927f];if(_0x5f1e['iOxBkp']===undefined){var _0x2db586=function(_0x30747c){const _0x14ff25='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x51382a='',_0x5162dc='';for(let _0x18bc80=0x0,_0xf9f1c8,_0x21af26,_0x4f77b8=0x0;_0x21af26=_0x30747c['charAt'](_0x4f77b8++);~_0x21af26&&(_0xf9f1c8=_0x18bc80%0x4?_0xf9f1c8*0x40+_0x21af26:_0x21af26,_0x18bc80++%0x4)?_0x51382a+=String['fromCharCode'](0xff&_0xf9f1c8>>(-0x2*_0x18bc80&0x6)):0x0){_0x21af26=_0x14ff25['indexOf'](_0x21af26);}for(let _0x50793a=0x0,_0x4ef976=_0x51382a['length'];_0x50793a<_0x4ef976;_0x50793a++){_0x5162dc+='%'+('00'+_0x51382a['charCodeAt'](_0x50793a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5162dc);};_0x5f1e['gehPqz']=_0x2db586,_0x5f1e['VIpDXD']={},_0x5f1e['iOxBkp']=!![];}const _0x4da51c=_0x3b8a88[0x0],_0x51f754=_0x46927f+_0x4da51c,_0x7ccd4b=_0x5f1e['VIpDXD'][_0x51f754];return!_0x7ccd4b?(_0x5f1e89=_0x5f1e['gehPqz'](_0x5f1e89),_0x5f1e['VIpDXD'][_0x51f754]=_0x5f1e89):_0x5f1e89=_0x7ccd4b,_0x5f1e89;}function _0x3b8a(){const _0xcd1f8c=['z2v0twLUDxrLCW','Bw9UDgG','mtCWntqYmNnYzuDdvG','EwvHCG','Aw5JBhvKzxm','Dg9mB3DLCKnHC2u','Dhj1BMm','zgf0zxrPBwu','mtyXmJC5otjvtvzUtKC','mMTzrKH2zq','C2XPy2u','BwLU','zgf5','Axnoyu4','z2v0rgf5','z2v0u2vJB25KCW','C2v0sg91CNm','ndmZota4m2flENvRBW','zxHLyW','mJC2odCWEhnru1D3','ntC1ndGWnvvvywn3sG','z2v0vgLTzq','mZyYntqZne5yq2Lsuq','z2v0rgf0zq','DhjPBq','z2v0tw9UDgG','z2v0rNvSBfLLyxi','ChvZAa','mZK2nda4nhbvAurtra','Bwf4'];_0x3b8a=function(){return _0xcd1f8c;};return _0x3b8a();}export function dateTimeDisplayText(_0x59e8d9,_0x49ade9){const _0x541a5a=_0x417b10;if(!_0x59e8d9)return'';if(_0x49ade9===_0x541a5a(0x189))return String(_0x59e8d9)[_0x541a5a(0x190)](0x0,0x4);if(_0x49ade9===_0x541a5a(0x187)){const _0x508d62=String(_0x59e8d9)[_0x541a5a(0x190)](0x0,0x7),_0x7f7c1c=/^(\d{4})-(\d{2})$/['exec'](_0x508d62);return _0x7f7c1c?_0x7f7c1c[0x1]+'年'+Number(_0x7f7c1c[0x2])+'月':_0x508d62;}const _0x15ed49=parseApiDateTime(_0x59e8d9);if(!_0x15ed49)return String(_0x59e8d9);const _0x127d2d=_0x15ed49[_0x541a5a(0x182)]()+'年'+pad2(_0x15ed49[_0x541a5a(0x181)]()+0x1)+'月'+pad2(_0x15ed49[_0x541a5a(0x17f)]())+'日';if(_0x49ade9===_0x541a5a(0x192))return _0x127d2d;return _0x127d2d+'\x20'+pad2(_0x15ed49['getHours']())+':'+pad2(_0x15ed49[_0x541a5a(0x186)]())+':'+pad2(_0x15ed49[_0x541a5a(0x195)]());}export function buildMonthGrid(_0x3b9eb5,_0x255c95){const _0x41c9ca=_0x417b10,_0x2b0ea2=new Date(_0x3b9eb5,_0x255c95,0x1),_0x590bca=new Date(_0x3b9eb5,_0x255c95,0x1-_0x2b0ea2[_0x41c9ca(0x194)]()),_0x45e885=formatYmd(new Date()),_0x17d9d8=[];for(let _0x599af2=0x0;_0x599af2<0x2a;_0x599af2++){const _0x338f6a=new Date(_0x590bca[_0x41c9ca(0x182)](),_0x590bca[_0x41c9ca(0x181)](),_0x590bca['getDate']()+_0x599af2),_0x3119ef=formatYmd(_0x338f6a);_0x17d9d8[_0x41c9ca(0x183)]({'day':_0x338f6a['getDate'](),'inMonth':_0x338f6a[_0x41c9ca(0x181)]()===_0x255c95,'iso':_0x3119ef,'isToday':_0x3119ef===_0x45e885});}return _0x17d9d8;}
|
package/dist/shared/excel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1bd85b=_0x5673;(function(_0x26bd89,_0x4f61df){const _0xadfda8=_0x5673,_0x38b91f=_0x26bd89();while(!![]){try{const _0x1a09dc=parseInt(_0xadfda8(0xfc))/0x1+parseInt(_0xadfda8(0xeb))/0x2+-parseInt(_0xadfda8(0xf1))/0x3+-parseInt(_0xadfda8(0x105))/0x4+-parseInt(_0xadfda8(0xf4))/0x5*(parseInt(_0xadfda8(0xf3))/0x6)+-parseInt(_0xadfda8(0xf6))/0x7+parseInt(_0xadfda8(0xf7))/0x8;if(_0x1a09dc===_0x4f61df)break;else _0x38b91f['push'](_0x38b91f['shift']());}catch(_0xd03718){_0x38b91f['push'](_0x38b91f['shift']());}}}(_0x15ef,0x286bc));import*as _0x31475b from'xlsx';export const IMPORT_SKIP_FIELDS=['id',_0x1bd85b(0xea),_0x1bd85b(0x100),_0x1bd85b(0xe9),_0x1bd85b(0xfe)];function _0x15ef(){const _0x2018fd=['ChvZAa','u2HLzxroyw1LCW','yM9VA19HChbLBMrFC2HLzxq','D3jPDgu','otCWntG0C2T0AwDo','DhjPBq','ChjVCa','zgvSzxrLzef0','y3jLyxrLvgLTzq','mZCWotyWAgLfr1bR','yw9Hx3rVx3nOzwv0','yxbWBgLJyxrPB24VDM5KlM9Wzw54BwXMB3jTyxrZlw9MzMLJzwrVy3vTzw50lNnWCMvHzhnOzwv0BwWUC2HLzxq','u2HLzxqX','DxrPBhm','u2HLzxrZ','mJy3nteZu2PiAe1P','CMvHza','nNjMDu9Ira','odCZodu1txryy0D5','C3rYAw5N','mJiWotaWne9rEMHYyW','nJi1mJy4oezLrhrMwa','yxjYyxK','BwfW','BgfIzwW','zw5KC1DPDgG','mJa2ntHVA1zAvhK','yxr0ywnOBwvUDdSGzMLSzw5HBwuQpvvurI04jYC','DgvUyw50swq','BgvUz3rO','DxbKyxrLvgLTzq'];_0x15ef=function(){return _0x2018fd;};return _0x15ef();}export function isImportSkipField(_0x292b7f){return IMPORT_SKIP_FIELDS['includes'](_0x292b7f);}export function buildExcelBuffer(_0xc110dd,_0x5258d1,_0x4ec023,_0x1ca2ba){const _0x4bd6b9=_0x1bd85b,_0x3540be=_0x1ca2ba?.['header']??_0x4bd6b9(0xfa),_0x5355dc=_0xc110dd[_0x4bd6b9(0xf9)](_0x542369=>_0x3540be===_0x4bd6b9(0xe8)?_0x542369[_0x4bd6b9(0xe8)]:_0x542369[_0x4bd6b9(0xfa)]||_0x542369['prop']),_0x34507c=_0x5258d1[_0x4bd6b9(0xf9)](_0x6a4d62=>_0xc110dd[_0x4bd6b9(0xf9)](_0x6cc101=>{const _0xc6031b=_0x4bd6b9;if(_0x4ec023)return _0x4ec023(_0x6cc101[_0xc6031b(0xe8)],_0x6a4d62);const _0x49e169=_0x6a4d62[_0x6cc101[_0xc6031b(0xe8)]];if(_0x49e169==null)return'';return String(_0x49e169);})),_0x4a21dd=_0x31475b[_0x4bd6b9(0xef)][_0x4bd6b9(0xec)]([_0x5355dc,..._0x34507c]),_0x3a5774=_0x31475b[_0x4bd6b9(0xef)]['book_new']();return _0x31475b['utils'][_0x4bd6b9(0x103)](_0x3a5774,_0x4a21dd,_0x4bd6b9(0xee)),_0x31475b[_0x4bd6b9(0x104)](_0x3a5774,{'bookType':'xlsx','type':'array'});}export function buildImportTemplateBuffer(_0x3c5302){const _0x985f8=_0x1bd85b,_0x374bcb=_0x3c5302['map'](_0x36c1d4=>({'prop':_0x36c1d4,'label':_0x36c1d4}));return buildExcelBuffer(_0x374bcb,[],undefined,{'header':_0x985f8(0xe8)});}export function parseExcelBuffer(_0x3908d3){const _0x2cf1d4=_0x1bd85b,_0x517d74=_0x31475b[_0x2cf1d4(0xf2)](_0x3908d3,{'type':_0x2cf1d4(0xf8),'cellDates':!![]}),_0x1edf8e=_0x517d74[_0x2cf1d4(0x102)][0x0];if(!_0x1edf8e)return[];const _0x531afe=_0x517d74[_0x2cf1d4(0xf0)][_0x1edf8e];if(!_0x531afe)return[];const _0x24b049=_0x31475b['utils']['sheet_to_json'](_0x531afe,{'header':0x1,'defval':'','raw':![]});if(!_0x24b049[_0x2cf1d4(0xff)])return[];const _0x2dfb7d=(_0x24b049[0x0]||[])[_0x2cf1d4(0xf9)](_0x21a36b=>String(_0x21a36b??'')[_0x2cf1d4(0xe7)]()),_0x115a7e=[];for(let _0x528010=0x1;_0x528010<_0x24b049[_0x2cf1d4(0xff)];_0x528010++){const _0x312d98=_0x24b049[_0x528010]||[],_0x346656={};let _0x966bbb=!![];for(let _0x28f011=0x0;_0x28f011<_0x2dfb7d[_0x2cf1d4(0xff)];_0x28f011++){const _0x29b01e=_0x2dfb7d[_0x28f011];if(!_0x29b01e)continue;let _0x1e608c=_0x312d98[_0x28f011];if(_0x1e608c==null||_0x1e608c===''){_0x346656[_0x29b01e]=_0x1e608c==null?null:'';continue;}_0x966bbb=![],typeof _0x1e608c===_0x2cf1d4(0xf5)?_0x346656[_0x29b01e]=_0x1e608c['trim']():_0x346656[_0x29b01e]=_0x1e608c;}if(!_0x966bbb)_0x115a7e[_0x2cf1d4(0x101)](_0x346656);}return _0x115a7e;}export function excelFilename(_0x582f9c){const _0x2c671b=_0x1bd85b;return _0x582f9c[_0x2c671b(0xfb)]('.xlsx')?_0x582f9c:_0x582f9c+'.xlsx';}function _0x5673(_0x50efc8,_0x575cb2){_0x50efc8=_0x50efc8-0xe7;const _0x15ef45=_0x15ef();let _0x5673fa=_0x15ef45[_0x50efc8];if(_0x5673['MWMbIf']===undefined){var _0x270091=function(_0x27f3d5){const _0x479b78='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31475b='',_0x292b7f='';for(let _0xc110dd=0x0,_0x5258d1,_0x4ec023,_0x1ca2ba=0x0;_0x4ec023=_0x27f3d5['charAt'](_0x1ca2ba++);~_0x4ec023&&(_0x5258d1=_0xc110dd%0x4?_0x5258d1*0x40+_0x4ec023:_0x4ec023,_0xc110dd++%0x4)?_0x31475b+=String['fromCharCode'](0xff&_0x5258d1>>(-0x2*_0xc110dd&0x6)):0x0){_0x4ec023=_0x479b78['indexOf'](_0x4ec023);}for(let _0x3540be=0x0,_0x5355dc=_0x31475b['length'];_0x3540be<_0x5355dc;_0x3540be++){_0x292b7f+='%'+('00'+_0x31475b['charCodeAt'](_0x3540be)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x292b7f);};_0x5673['TVCeKq']=_0x270091,_0x5673['zMpppD']={},_0x5673['MWMbIf']=!![];}const _0x2c7c86=_0x15ef45[0x0],_0x175ada=_0x50efc8+_0x2c7c86,_0x4be2ad=_0x5673['zMpppD'][_0x175ada];return!_0x4be2ad?(_0x5673fa=_0x5673['TVCeKq'](_0x5673fa),_0x5673['zMpppD'][_0x175ada]=_0x5673fa):_0x5673fa=_0x4be2ad,_0x5673fa;}export function excelResponseHeaders(_0xc803d9){const _0x15398e=_0x1bd85b,_0x49dbaf=excelFilename(_0xc803d9);return{'Content-Type':_0x15398e(0xed),'Content-Disposition':_0x15398e(0xfd)+encodeURIComponent(_0x49dbaf)};}
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26e110,_0x1bd7c3){var _0x45c3a3=_0x61c9,_0x65fe32=_0x26e110();while(!![]){try{var _0x589869=parseInt(_0x45c3a3(0x7a))/0x1*(-parseInt(_0x45c3a3(0x7b))/0x2)+parseInt(_0x45c3a3(0x79))/0x3*(-parseInt(_0x45c3a3(0x7d))/0x4)+parseInt(_0x45c3a3(0x81))/0x5*(parseInt(_0x45c3a3(0x78))/0x6)+parseInt(_0x45c3a3(0x82))/0x7+-parseInt(_0x45c3a3(0x80))/0x8+-parseInt(_0x45c3a3(0x7f))/0x9*(-parseInt(_0x45c3a3(0x7c))/0xa)+parseInt(_0x45c3a3(0x7e))/0xb;if(_0x589869===_0x1bd7c3)break;else _0x65fe32['push'](_0x65fe32['shift']());}catch(_0x54aa34){_0x65fe32['push'](_0x65fe32['shift']());}}}(_0x217e,0x37557));function _0x217e(){var _0x1430b6=['otiWnufxwwfQqW','mti5mJG3mKH1y0DcsW','mtqYmKDRzK1nuG','nKDbvw1Swa','mJaXnZDWBvv2EM4','ng5htxLTuq','mtG4nJKWAgnTywDh','nZy2ndKYrvfUCLbV','mZqWodaZmxzJEhHRua','nZjzEwP3sxq','mZq1mJmXmNvTzM5ssq'];_0x217e=function(){return _0x1430b6;};return _0x217e();}export{merge}from'../comm/merge';export{deepTree,flattenTree}from'./tree';export{RES_CODE}from'../routing/base';export{buildExcelBuffer,buildImportTemplateBuffer,parseExcelBuffer,excelFilename,excelResponseHeaders,IMPORT_SKIP_FIELDS,isImportSkipField}from'./excel';function _0x61c9(_0x3a7881,_0x3b0b60){_0x3a7881=_0x3a7881-0x78;var _0x217ea6=_0x217e();var _0x61c917=_0x217ea6[_0x3a7881];if(_0x61c9['MzPyDD']===undefined){var _0x3dfc89=function(_0x384c96){var _0x312c5e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xd6d9e6='',_0x2b71a6='';for(var _0x760a34=0x0,_0x5d94ea,_0x431d88,_0x24c405=0x0;_0x431d88=_0x384c96['charAt'](_0x24c405++);~_0x431d88&&(_0x5d94ea=_0x760a34%0x4?_0x5d94ea*0x40+_0x431d88:_0x431d88,_0x760a34++%0x4)?_0xd6d9e6+=String['fromCharCode'](0xff&_0x5d94ea>>(-0x2*_0x760a34&0x6)):0x0){_0x431d88=_0x312c5e['indexOf'](_0x431d88);}for(var _0x3f90e9=0x0,_0x3fc4ca=_0xd6d9e6['length'];_0x3f90e9<_0x3fc4ca;_0x3f90e9++){_0x2b71a6+='%'+('00'+_0xd6d9e6['charCodeAt'](_0x3f90e9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b71a6);};_0x61c9['UEfjZO']=_0x3dfc89,_0x61c9['RCaoGL']={},_0x61c9['MzPyDD']=!![];}var _0x7985a8=_0x217ea6[0x0],_0x2663de=_0x3a7881+_0x7985a8,_0x2ef1c4=_0x61c9['RCaoGL'][_0x2663de];return!_0x2ef1c4?(_0x61c917=_0x61c9['UEfjZO'](_0x61c917),_0x61c9['RCaoGL'][_0x2663de]=_0x61c917):_0x61c917=_0x2ef1c4,_0x61c917;}export{flattenLocale,unflattenLocale,hashLocaleJson,extractJsonObject}from'./locale-json';export{normalizeDateTimePrecision,dateTimeDisplayText}from'./datetime-picker';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2de0(_0x19fff2,_0x5c14d1){_0x19fff2=_0x19fff2-0x142;const _0xf3cecb=_0xf3ce();let _0x2de08e=_0xf3cecb[_0x19fff2];if(_0x2de0['aibviG']===undefined){var _0x5611e3=function(_0x4f7e15){const _0x54d33d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x25df13='',_0x185945='';for(let _0x5dfed4=0x0,_0x4683d9,_0x3f06fc,_0x1e4c1a=0x0;_0x3f06fc=_0x4f7e15['charAt'](_0x1e4c1a++);~_0x3f06fc&&(_0x4683d9=_0x5dfed4%0x4?_0x4683d9*0x40+_0x3f06fc:_0x3f06fc,_0x5dfed4++%0x4)?_0x25df13+=String['fromCharCode'](0xff&_0x4683d9>>(-0x2*_0x5dfed4&0x6)):0x0){_0x3f06fc=_0x54d33d['indexOf'](_0x3f06fc);}for(let _0x8d1835=0x0,_0x4f86a1=_0x25df13['length'];_0x8d1835<_0x4f86a1;_0x8d1835++){_0x185945+='%'+('00'+_0x25df13['charCodeAt'](_0x8d1835)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x185945);};_0x2de0['gKZbQW']=_0x5611e3,_0x2de0['qpcdUa']={},_0x2de0['aibviG']=!![];}const _0x348ea8=_0xf3cecb[0x0],_0x2e7ed9=_0x19fff2+_0x348ea8,_0x3eab04=_0x2de0['qpcdUa'][_0x2e7ed9];return!_0x3eab04?(_0x2de08e=_0x2de0['gKZbQW'](_0x2de08e),_0x2de0['qpcdUa'][_0x2e7ed9]=_0x2de08e):_0x2de08e=_0x3eab04,_0x2de08e;}(function(_0xf876d3,_0x1fe78f){const _0x4eb143=_0x2de0,_0x486de2=_0xf876d3();while(!![]){try{const _0x5a0824=parseInt(_0x4eb143(0x145))/0x1*(-parseInt(_0x4eb143(0x14a))/0x2)+parseInt(_0x4eb143(0x156))/0x3*(parseInt(_0x4eb143(0x158))/0x4)+-parseInt(_0x4eb143(0x15d))/0x5*(parseInt(_0x4eb143(0x144))/0x6)+-parseInt(_0x4eb143(0x159))/0x7*(parseInt(_0x4eb143(0x14b))/0x8)+-parseInt(_0x4eb143(0x153))/0x9+parseInt(_0x4eb143(0x155))/0xa*(parseInt(_0x4eb143(0x15a))/0xb)+parseInt(_0x4eb143(0x154))/0xc;if(_0x5a0824===_0x1fe78f)break;else _0x486de2['push'](_0x486de2['shift']());}catch(_0x234462){_0x486de2['push'](_0x486de2['shift']());}}}(_0xf3ce,0xe9d96));function _0xf3ce(){const _0x33ad24=['C3bSAxq','CgfYC2u','mJa5mJm4nMXpuurWtq','og1ZzMTLBG','AxnbCNjHEq','BgfZDeLUzgv4t2y','zw50CMLLCW','BgvUz3rO','yxnZAwDU','C2HHmJu2','AM9PBG','oti5mJu3mKPzswzSCW','ndaYodG1mZz2DLHoBee','nZKWnZbPrK9pB3K','mJC2y1DgsgLi','B2jQzwn0','mtq0otjyre9fEMC','nde5ndyXAxPVuLrz','ntK0qKfoswHh','zMLSDgvY','C2XPy2u','mZvvELb4qK0','zgLNzxn0','quKG6l+u5zUE5PEG5Rov6kEJ5P6q5lI6iePtt04G5A+56lgH','odC1mZe2AgL6qK9M','mxLOr1DuqW','A2v5CW','C29YDa'];_0xf3ce=function(){return _0x33ad24;};return _0xf3ce();}import{createHash}from'node:crypto';export function flattenLocale(_0x25df13,_0x185945=''){const _0x4c0be6=_0x2de0,_0x5dfed4={};for(const [_0x4683d9,_0x3f06fc]of Object[_0x4c0be6(0x14e)](_0x25df13)){const _0x1e4c1a=_0x185945?_0x185945+'.'+_0x4683d9:_0x4683d9;if(_0x3f06fc!=null&&typeof _0x3f06fc===_0x4c0be6(0x157)&&!Array[_0x4c0be6(0x14c)](_0x3f06fc))Object[_0x4c0be6(0x150)](_0x5dfed4,flattenLocale(_0x3f06fc,_0x1e4c1a));else{if(typeof _0x3f06fc==='string')_0x5dfed4[_0x1e4c1a]=_0x3f06fc;else _0x3f06fc!=null&&(_0x5dfed4[_0x1e4c1a]=String(_0x3f06fc));}}return _0x5dfed4;}export function unflattenLocale(_0x8d1835){const _0x3534ad=_0x2de0,_0x4f86a1={};for(const [_0x21dd77,_0x22cf2e]of Object[_0x3534ad(0x14e)](_0x8d1835)){const _0x379715=_0x21dd77[_0x3534ad(0x148)]('.')[_0x3534ad(0x15b)](Boolean);if(!_0x379715['length'])continue;let _0x3e07e8=_0x4f86a1;for(let _0x247738=0x0;_0x247738<_0x379715[_0x3534ad(0x14f)]-0x1;_0x247738++){const _0x5efd14=_0x379715[_0x247738],_0x4c5f4c=_0x3e07e8[_0x5efd14];(!_0x4c5f4c||typeof _0x4c5f4c!==_0x3534ad(0x157)||Array['isArray'](_0x4c5f4c))&&(_0x3e07e8[_0x5efd14]={}),_0x3e07e8=_0x3e07e8[_0x5efd14];}_0x3e07e8[_0x379715[_0x379715[_0x3534ad(0x14f)]-0x1]]=_0x22cf2e;}return _0x4f86a1;}export function hashLocaleJson(_0xef2c6b){const _0x2f7ad7=_0x2de0,_0x268b1c=flattenLocale(_0xef2c6b),_0x369c89=Object[_0x2f7ad7(0x146)](_0x268b1c)[_0x2f7ad7(0x147)](),_0x37006d=_0x369c89['map'](_0x3694dc=>_0x3694dc+'='+_0x268b1c[_0x3694dc])[_0x2f7ad7(0x152)]('\x0a');return createHash(_0x2f7ad7(0x151))['update'](_0x37006d)[_0x2f7ad7(0x142)]('hex')[_0x2f7ad7(0x15c)](0x0,0x20);}export function extractJsonObject(_0x3b52aa){const _0x119d85=_0x2de0,_0x3d3722=String(_0x3b52aa||'')['trim']();if(!_0x3d3722)throw new Error('AI\x20返回空内容');try{const _0x3f0f4e=JSON['parse'](_0x3d3722);if(_0x3f0f4e&&typeof _0x3f0f4e===_0x119d85(0x157)&&!Array[_0x119d85(0x14c)](_0x3f0f4e))return _0x3f0f4e;}catch{}const _0x1b193b=_0x3d3722['match'](/```(?:json)?\s*([\s\S]*?)```/i);if(_0x1b193b?.[0x1]){const _0x27aafa=JSON[_0x119d85(0x149)](_0x1b193b[0x1]['trim']());if(_0x27aafa&&typeof _0x27aafa==='object'&&!Array[_0x119d85(0x14c)](_0x27aafa))return _0x27aafa;}const _0x8043bc=_0x3d3722['indexOf']('{'),_0x3c6877=_0x3d3722[_0x119d85(0x14d)]('}');if(_0x8043bc>=0x0&&_0x3c6877>_0x8043bc){const _0x3e77d4=JSON[_0x119d85(0x149)](_0x3d3722['slice'](_0x8043bc,_0x3c6877+0x1));if(_0x3e77d4&&typeof _0x3e77d4===_0x119d85(0x157)&&!Array['isArray'](_0x3e77d4))return _0x3e77d4;}throw new Error(_0x119d85(0x143));}
|
package/dist/shared/tree.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x50190a=_0x17da;(function(_0x44dd16,_0x6474d){const _0x33b13d=_0x17da,_0x52a722=_0x44dd16();while(!![]){try{const _0x5db4f7=-parseInt(_0x33b13d(0x122))/0x1*(-parseInt(_0x33b13d(0x131))/0x2)+-parseInt(_0x33b13d(0x127))/0x3*(parseInt(_0x33b13d(0x12c))/0x4)+parseInt(_0x33b13d(0x125))/0x5*(parseInt(_0x33b13d(0x130))/0x6)+-parseInt(_0x33b13d(0x123))/0x7*(-parseInt(_0x33b13d(0x124))/0x8)+parseInt(_0x33b13d(0x120))/0x9+-parseInt(_0x33b13d(0x128))/0xa*(parseInt(_0x33b13d(0x12d))/0xb)+parseInt(_0x33b13d(0x11d))/0xc;if(_0x5db4f7===_0x6474d)break;else _0x52a722['push'](_0x52a722['shift']());}catch(_0x40806d){_0x52a722['push'](_0x52a722['shift']());}}}(_0x1c38,0x6eef2));function _0x17da(_0x5c9685,_0x1f1092){_0x5c9685=_0x5c9685-0x11b;const _0x1c3842=_0x1c38();let _0x17da07=_0x1c3842[_0x5c9685];if(_0x17da['WxDCzN']===undefined){var _0x4d6954=function(_0x40b0e2){const _0x3b0477='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x37f609='',_0x1b3fce='';for(let _0x3678e1=0x0,_0xeecfa6,_0x2cd6bc,_0x2d6f39=0x0;_0x2cd6bc=_0x40b0e2['charAt'](_0x2d6f39++);~_0x2cd6bc&&(_0xeecfa6=_0x3678e1%0x4?_0xeecfa6*0x40+_0x2cd6bc:_0x2cd6bc,_0x3678e1++%0x4)?_0x37f609+=String['fromCharCode'](0xff&_0xeecfa6>>(-0x2*_0x3678e1&0x6)):0x0){_0x2cd6bc=_0x3b0477['indexOf'](_0x2cd6bc);}for(let _0x263866=0x0,_0x56b871=_0x37f609['length'];_0x263866<_0x56b871;_0x263866++){_0x1b3fce+='%'+('00'+_0x37f609['charCodeAt'](_0x263866)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b3fce);};_0x17da['hTcBEW']=_0x4d6954,_0x17da['IjBQtG']={},_0x17da['WxDCzN']=!![];}const _0x3473c0=_0x1c3842[0x0],_0x44c8c2=_0x5c9685+_0x3473c0,_0x1207e5=_0x17da['IjBQtG'][_0x44c8c2];return!_0x1207e5?(_0x17da07=_0x17da['hTcBEW'](_0x17da07),_0x17da['IjBQtG'][_0x44c8c2]=_0x17da07):_0x17da07=_0x1207e5,_0x17da07;}function _0x1c38(){const _0x10fbe9=['zgvZyW','ChvZAa','odaYmtG4txHRBgDd','C29YDa','DMfSDwvZ','nJmWmJqZmgDisxnKyG','z2v0','nduWmwzrsxvbEa','otfbvu53AuS','ndq1ndy0ELrIELrv','nxjXENvQBG','CgfYzw50swq','m2jftfLHEa','mtbkr3vHwwi','AgfZ','yxnJ','B3jKzxjoDw0','mJuYndCXnMn5wgf5Ea','otKYmta4n3v3Cwzswq','BgvUz3rO','C2v0','ndeZmZm0s1rcsuHb','mtKWyvz1qLzn','y2HPBgrYzw4'];_0x1c38=function(){return _0x10fbe9;};return _0x1c38();}export function deepTree(_0x37f609,_0x1b3fce=_0x50190a(0x12a)){const _0x2f4734=_0x50190a,_0x3678e1=new Map();for(const _0x2d6f39 of _0x37f609){if(_0x2d6f39['id']==null)continue;_0x3678e1[_0x2f4734(0x12f)](_0x2d6f39['id'],{..._0x2d6f39,'children':[]});}const _0xeecfa6=[];for(const _0x263866 of _0x3678e1[_0x2f4734(0x11f)]()){const _0x56b871=_0x263866[_0x2f4734(0x126)];_0x56b871!=null&&_0x56b871!==''&&_0x3678e1[_0x2f4734(0x129)](_0x56b871)?_0x3678e1[_0x2f4734(0x121)](_0x56b871)[_0x2f4734(0x132)][_0x2f4734(0x11c)](_0x263866):_0xeecfa6['push'](_0x263866);}const _0x2cd6bc=_0x47b38d=>{const _0x125338=_0x2f4734;_0x47b38d[_0x125338(0x11e)]((_0x38aff6,_0x3face4)=>{const _0x12bbe9=_0x125338,_0xad4e8f=_0x38aff6[_0x12bbe9(0x12b)]??0x0,_0xbdafc4=_0x3face4[_0x12bbe9(0x12b)]??0x0,_0x30f5db=_0x1b3fce===_0x12bbe9(0x11b)?_0xbdafc4-_0xad4e8f:_0xad4e8f-_0xbdafc4;return _0x30f5db||Number(_0x38aff6['id'])-Number(_0x3face4['id']);});for(const _0x527f78 of _0x47b38d)if(_0x527f78['children']?.['length'])_0x2cd6bc(_0x527f78['children']);};return _0x2cd6bc(_0xeecfa6),_0xeecfa6;}export function flattenTree(_0x37604f,_0x302e18,_0x2beb51=0x0,_0x52dc8c=[]){const _0x5a60d8=_0x50190a;for(const _0x3fb896 of _0x37604f){const _0x17946b=_0x3fb896[_0x5a60d8(0x132)]||[];_0x52dc8c[_0x5a60d8(0x11c)]({..._0x3fb896,'depth':_0x2beb51,'hasChildren':_0x17946b['length']>0x0});if(_0x17946b[_0x5a60d8(0x12e)]&&_0x302e18['has'](_0x3fb896['id']))flattenTree(_0x17946b,_0x302e18,_0x2beb51+0x1,_0x52dc8c);}return _0x52dc8c;}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vome-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.79",
|
|
4
4
|
"description": "Vome framework — shared + Bun/Elysia server + Vue admin",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -143,8 +143,9 @@
|
|
|
143
143
|
"vue": ">=3.5.0",
|
|
144
144
|
"vue-router": ">=4.0.0",
|
|
145
145
|
"pinia": ">=2.0.0",
|
|
146
|
-
"vue-sonner": "
|
|
147
|
-
"
|
|
146
|
+
"vue-sonner": "",
|
|
147
|
+
"wujie": "",
|
|
148
|
+
"@vueuse/core": "^14.4.0",
|
|
148
149
|
"clsx": ">=2.0.0",
|
|
149
150
|
"tailwind-merge": ">=2.0.0",
|
|
150
151
|
"dompurify": ">=3.0.0",
|
|
@@ -172,6 +173,9 @@
|
|
|
172
173
|
"vue-sonner": {
|
|
173
174
|
"optional": true
|
|
174
175
|
},
|
|
176
|
+
"wujie": {
|
|
177
|
+
"optional": true
|
|
178
|
+
},
|
|
175
179
|
"@vueuse/core": {
|
|
176
180
|
"optional": true
|
|
177
181
|
},
|
|
@@ -198,18 +202,23 @@
|
|
|
198
202
|
}
|
|
199
203
|
},
|
|
200
204
|
"devDependencies": {
|
|
205
|
+
"@lucide/vue": "^1.38.0",
|
|
206
|
+
"@tanstack/vue-table": "^9.2.4",
|
|
201
207
|
"@types/adm-zip": "^0.5.8",
|
|
202
208
|
"bun-types": "latest",
|
|
209
|
+
"class-variance-authority": "^0.7.1",
|
|
203
210
|
"drizzle-orm": "latest",
|
|
204
211
|
"drizzle-zod": "^0.8.3",
|
|
205
212
|
"elysia": "latest",
|
|
206
213
|
"javascript-obfuscator": "^5.4.7",
|
|
207
214
|
"reflect-metadata": "^0.2.2",
|
|
215
|
+
"reka-ui": "^2.10.4",
|
|
208
216
|
"typescript": "latest",
|
|
209
217
|
"unplugin-auto-import": "^21.0.0",
|
|
210
218
|
"unplugin-vue-components": "^32.1.0",
|
|
211
219
|
"vite": "^6.0.7",
|
|
212
|
-
"vue": "^3.5.0"
|
|
220
|
+
"vue": "^3.5.0",
|
|
221
|
+
"vue-sonner": "^2.0.7"
|
|
213
222
|
},
|
|
214
223
|
"dependencies": {
|
|
215
224
|
"@bogeychan/elysia-logger": "^0.1.10",
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/** docsUrl → 官网后端 origin(主机前加 service.) */
|
|
2
|
-
export declare function serviceUrlFromDocs(docsUrl: string): string;
|
|
3
|
-
/** 席位 API 根(occupy / heartbeat / release) */
|
|
4
|
-
export declare function seatApiBaseFromDocs(docsUrl: string): string;
|
|
5
|
-
/** 联网安装签发 license */
|
|
6
|
-
export declare function licenseIssueUrlFromDocs(docsUrl: string): string;
|
|
7
|
-
export declare const pluginDev: {
|
|
8
|
-
readonly docsUrl: "https://vomekj.com";
|
|
9
|
-
/** 官网后端(由 docsUrl 派生) */
|
|
10
|
-
readonly serviceUrl: string;
|
|
11
|
-
readonly uploadUrl: "https://vomekj.com/plugins/upload";
|
|
12
|
-
/** 组织镜像:clone / 浏览优先 Gitee */
|
|
13
|
-
readonly mirrors: {
|
|
14
|
-
readonly prefer: "gitee";
|
|
15
|
-
readonly giteeOrg: "https://gitee.com/vomekj";
|
|
16
|
-
readonly githubOrg: "https://github.com/vomekj";
|
|
17
|
-
};
|
|
18
|
-
readonly scaffolds: {
|
|
19
|
-
readonly full: {
|
|
20
|
-
readonly key: "full";
|
|
21
|
-
readonly title: "前端 + 后端";
|
|
22
|
-
readonly desc: "完整业务模块脚手架(.vome:含 server 与 web),本地开发打包后发布。";
|
|
23
|
-
readonly repo: "vome-plugin-full";
|
|
24
|
-
readonly repoUrl: string;
|
|
25
|
-
readonly githubRepoUrl: string;
|
|
26
|
-
readonly downloadUrl: string;
|
|
27
|
-
readonly githubDownloadUrl: string;
|
|
28
|
-
};
|
|
29
|
-
readonly backend: {
|
|
30
|
-
readonly key: "backend";
|
|
31
|
-
readonly title: "纯后端";
|
|
32
|
-
readonly desc: "钩子 / 服务端插件脚手架(.vome:仅 server),适合上传、短信、支付等能力扩展。";
|
|
33
|
-
readonly repo: "vome-plugin-service";
|
|
34
|
-
readonly repoUrl: string;
|
|
35
|
-
readonly githubRepoUrl: string;
|
|
36
|
-
readonly downloadUrl: string;
|
|
37
|
-
readonly githubDownloadUrl: string;
|
|
38
|
-
};
|
|
39
|
-
readonly frontend: {
|
|
40
|
-
readonly key: "frontend";
|
|
41
|
-
readonly title: "纯前端";
|
|
42
|
-
readonly desc: "后台微应用脚手架(.vome:含 web/),以 wujie 挂载独立前端页面。";
|
|
43
|
-
readonly repo: "vome-plugin-front";
|
|
44
|
-
readonly repoUrl: string;
|
|
45
|
-
readonly githubRepoUrl: string;
|
|
46
|
-
readonly downloadUrl: string;
|
|
47
|
-
readonly githubDownloadUrl: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
export type PluginDevConfig = typeof pluginDev;
|
|
52
|
-
export type PluginScaffoldKey = keyof typeof pluginDev.scaffolds;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _0x1d1949=_0x3503;function _0x3503(_0x40465b,_0x2f8ca2){_0x40465b=_0x40465b-0xcb;const _0x307044=_0x3070();let _0x350372=_0x307044[_0x40465b];if(_0x3503['TRDhtV']===undefined){var _0xde32c0=function(_0x3a28e8){const _0x370055='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57e522='',_0x8e4206='';for(let _0x13212a=0x0,_0x309933,_0x266eb6,_0x3097a2=0x0;_0x266eb6=_0x3a28e8['charAt'](_0x3097a2++);~_0x266eb6&&(_0x309933=_0x13212a%0x4?_0x309933*0x40+_0x266eb6:_0x266eb6,_0x13212a++%0x4)?_0x57e522+=String['fromCharCode'](0xff&_0x309933>>(-0x2*_0x13212a&0x6)):0x0){_0x266eb6=_0x370055['indexOf'](_0x266eb6);}for(let _0x185472=0x0,_0x3aa00f=_0x57e522['length'];_0x185472<_0x3aa00f;_0x185472++){_0x8e4206+='%'+('00'+_0x57e522['charCodeAt'](_0x185472)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x8e4206);};_0x3503['erMkCP']=_0xde32c0,_0x3503['YFHYhW']={},_0x3503['TRDhtV']=!![];}const _0x577854=_0x307044[0x0],_0x4e4ea2=_0x40465b+_0x577854,_0x3651c7=_0x3503['YFHYhW'][_0x4e4ea2];return!_0x3651c7?(_0x350372=_0x3503['erMkCP'](_0x350372),_0x3503['YFHYhW'][_0x4e4ea2]=_0x350372):_0x350372=_0x3651c7,_0x350372;}(function(_0x48e1aa,_0x333ffa){const _0x31d92c=_0x3503,_0x14664b=_0x48e1aa();while(!![]){try{const _0x3d5c4f=parseInt(_0x31d92c(0xe1))/0x1*(parseInt(_0x31d92c(0xe2))/0x2)+parseInt(_0x31d92c(0xe0))/0x3*(-parseInt(_0x31d92c(0xcd))/0x4)+-parseInt(_0x31d92c(0xe5))/0x5+parseInt(_0x31d92c(0xd1))/0x6*(-parseInt(_0x31d92c(0xcf))/0x7)+parseInt(_0x31d92c(0xce))/0x8*(-parseInt(_0x31d92c(0xe8))/0x9)+parseInt(_0x31d92c(0xcb))/0xa*(parseInt(_0x31d92c(0xeb))/0xb)+parseInt(_0x31d92c(0xe9))/0xc*(parseInt(_0x31d92c(0xd7))/0xd);if(_0x3d5c4f===_0x333ffa)break;else _0x14664b['push'](_0x14664b['shift']());}catch(_0x5b989b){_0x14664b['push'](_0x14664b['shift']());}}}(_0x3070,0x75a27));const ORG='vomekj';export function serviceUrlFromDocs(_0x57e522){const _0x361f40=_0x3503,_0x8e4206=new URL(_0x57e522),_0x13212a=_0x8e4206[_0x361f40(0xde)]['replace'](/^www\./,'')[_0x361f40(0xd2)](/^service\./,'');return _0x8e4206[_0x361f40(0xec)]+_0x361f40(0xd9)+_0x13212a;}export function seatApiBaseFromDocs(_0x309933){const _0x3e414e=_0x3503;return serviceUrlFromDocs(_0x309933)+_0x3e414e(0xd5);}export function licenseIssueUrlFromDocs(_0x266eb6){const _0x237461=_0x3503;return serviceUrlFromDocs(_0x266eb6)+_0x237461(0xdd);}function _0x3070(){const _0x25a39a=['nde3oty1qxLUBfnh','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW','yMfJA2vUza','mtH4EhjxveC','mtiWAMrAvLvZ','57QV5zco56UV','mJaXodviCLrcvMS','ChjVDg9JB2W','z2L0zwu','57QV5yMn56UV','odGWsMXsAwjX','5yMn56UVicSG5zco56UV','mtGWuvDRshPr','mtG1nJyZmNrbwvrNtW','n1bdv1rcuq','DM9Tzs1WBhvNAw4TzNjVBNq','ndq2mdy1ohfRs05cuW','CMvWBgfJzq','l3bSDwDPBNmVDxbSB2fK','DM9Tzs1WBhvNAw4TC2vYDMLJzq','l2fWCc9WBhvNAw5tDg9Yzs9Zzwf0','DM9Tzs1WBhvNAw4TzNvSBa','mJy4mty2nMnIAefjDG','Ahr0Chm6lY9NAxrLzs5JB20V','lY9Zzxj2AwnLlG','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','5zco5y+W5B6U5BQu55sO6isA5OMl5P6277YilNzVBwxVVjRLKkSGD2vIl++8IE+8Jos7Psb3DwPPzsdMJilOVB3NI6ZNQ4VLIy3NQ6/POBxPNAlJGii','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','l2fWCc9WBhvNAw5tDg9Yzs93ywXSzxqVBgLJzw5Zzs9PC3n1zq','Ag9ZDg5HBwu','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','mZqZmtfnrfbcD08','mta1nJvXBhjMqKG','mtjswMDyq3m','Ahr0Chm6lY9NAxrODwiUy29TlW','Ahr0Chm6lY92B21LA2OUy29T'];_0x3070=function(){return _0x25a39a;};return _0x3070();}function giteeArchive(_0x3097a2){const _0xa0814=_0x3503;return _0xa0814(0xd8)+ORG+'/'+_0x3097a2+_0xa0814(0xdf);}function githubArchive(_0x185472){const _0x452cc6=_0x3503;return _0x452cc6(0xe3)+ORG+'/'+_0x185472+_0x452cc6(0xe6);}function giteeRepo(_0x3aa00f){return'https://gitee.com/'+ORG+'/'+_0x3aa00f;}function githubRepo(_0x36c923){return'https://github.com/'+ORG+'/'+_0x36c923;}const docsUrl=_0x1d1949(0xe4);export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+_0x1d1949(0xd3),'mirrors':{'prefer':_0x1d1949(0xed),'giteeOrg':_0x1d1949(0xd8)+ORG,'githubOrg':_0x1d1949(0xe3)+ORG},'scaffolds':{'full':{'key':'full','title':_0x1d1949(0xcc),'desc':_0x1d1949(0xdc),'repo':_0x1d1949(0xd6),'repoUrl':giteeRepo(_0x1d1949(0xd6)),'githubRepoUrl':githubRepo(_0x1d1949(0xd6)),'downloadUrl':giteeArchive(_0x1d1949(0xd6)),'githubDownloadUrl':githubArchive(_0x1d1949(0xd6))},'backend':{'key':_0x1d1949(0xe7),'title':_0x1d1949(0xea),'desc':_0x1d1949(0xda),'repo':_0x1d1949(0xd4),'repoUrl':giteeRepo(_0x1d1949(0xd4)),'githubRepoUrl':githubRepo('vome-plugin-service'),'downloadUrl':giteeArchive('vome-plugin-service'),'githubDownloadUrl':githubArchive('vome-plugin-service')},'frontend':{'key':'frontend','title':_0x1d1949(0xee),'desc':_0x1d1949(0xdb),'repo':_0x1d1949(0xd0),'repoUrl':giteeRepo(_0x1d1949(0xd0)),'githubRepoUrl':githubRepo(_0x1d1949(0xd0)),'downloadUrl':giteeArchive(_0x1d1949(0xd0)),'githubDownloadUrl':githubArchive(_0x1d1949(0xd0))}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/comm/path.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { MenuTreeNode } from './permission';
|
|
2
|
-
export type TokenPair = {
|
|
3
|
-
accessToken: string;
|
|
4
|
-
refreshToken: string;
|
|
5
|
-
};
|
|
6
|
-
/** 身份摘要(/admin/base/auth/me);权限表见 AuthPerms */
|
|
7
|
-
export type AuthMe = {
|
|
8
|
-
adminId: number;
|
|
9
|
-
username?: string;
|
|
10
|
-
tenantId?: number | null;
|
|
11
|
-
tenantEnabled?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type AuthPerms = {
|
|
14
|
-
isSuper: boolean;
|
|
15
|
-
perms: string[];
|
|
16
|
-
menus: MenuTreeNode[];
|
|
17
|
-
tenantEnabled?: boolean;
|
|
18
|
-
tenantId?: number | null;
|
|
19
|
-
dataScope?: string;
|
|
20
|
-
dataScopeDeptIds?: number[];
|
|
21
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** 菜单节点 */
|
|
2
|
-
export type MenuTreeNode = {
|
|
3
|
-
id: number;
|
|
4
|
-
parentId: number | null;
|
|
5
|
-
name: string;
|
|
6
|
-
router: string | null;
|
|
7
|
-
perms: string | null;
|
|
8
|
-
type: number;
|
|
9
|
-
icon: string | null;
|
|
10
|
-
orderNum: number;
|
|
11
|
-
viewPath: string | null;
|
|
12
|
-
remoteName: string | null;
|
|
13
|
-
remoteEntry: string | null;
|
|
14
|
-
remoteModule: string | null;
|
|
15
|
-
appKey: string | null;
|
|
16
|
-
keepAlive: boolean;
|
|
17
|
-
isShow: boolean;
|
|
18
|
-
children?: MenuTreeNode[];
|
|
19
|
-
};
|