vome-core 0.1.76 → 0.1.78
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/table/utils.d.ts +3 -0
- package/dist/admin/components/ui/table/utils.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/crud/vm-data-i18n-btn.vue +0 -7
- 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 -4
- package/dist/admin/index.js +16 -7
- 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 +6 -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 +7 -0
- 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/typings/admin/host.d.ts +0 -66
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x46ed38=_0x4db6;function _0x4db6(_0x433321,_0x6036ce){_0x433321=_0x433321-0x1c0;const _0x5f3d1e=_0x5f3d();let _0x4db697=_0x5f3d1e[_0x433321];if(_0x4db6['ocZkKj']===undefined){var _0xb01789=function(_0x9efba8){const _0x179376='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2e7ec7='',_0x116de4='';for(let _0x590d07=0x0,_0x53f821,_0x15930c,_0x1ca50f=0x0;_0x15930c=_0x9efba8['charAt'](_0x1ca50f++);~_0x15930c&&(_0x53f821=_0x590d07%0x4?_0x53f821*0x40+_0x15930c:_0x15930c,_0x590d07++%0x4)?_0x2e7ec7+=String['fromCharCode'](0xff&_0x53f821>>(-0x2*_0x590d07&0x6)):0x0){_0x15930c=_0x179376['indexOf'](_0x15930c);}for(let _0x5c4594=0x0,_0x5ac55e=_0x2e7ec7['length'];_0x5c4594<_0x5ac55e;_0x5c4594++){_0x116de4+='%'+('00'+_0x2e7ec7['charCodeAt'](_0x5c4594)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x116de4);};_0x4db6['ELTxUa']=_0xb01789,_0x4db6['UabXrk']={},_0x4db6['ocZkKj']=!![];}const _0x41533a=_0x5f3d1e[0x0],_0x505258=_0x433321+_0x41533a,_0x3b791e=_0x4db6['UabXrk'][_0x505258];return!_0x3b791e?(_0x4db697=_0x4db6['ELTxUa'](_0x4db697),_0x4db6['UabXrk'][_0x505258]=_0x4db697):_0x4db697=_0x3b791e,_0x4db697;}(function(_0x15527f,_0x44875c){const _0x12b49c=_0x4db6,_0x38ffda=_0x15527f();while(!![]){try{const _0x2b6ff5=-parseInt(_0x12b49c(0x1dc))/0x1+parseInt(_0x12b49c(0x1c6))/0x2+-parseInt(_0x12b49c(0x1d4))/0x3+-parseInt(_0x12b49c(0x1d7))/0x4+parseInt(_0x12b49c(0x1cb))/0x5+-parseInt(_0x12b49c(0x1c9))/0x6*(parseInt(_0x12b49c(0x1c8))/0x7)+parseInt(_0x12b49c(0x1d1))/0x8;if(_0x2b6ff5===_0x44875c)break;else _0x38ffda['push'](_0x38ffda['shift']());}catch(_0x527bef){_0x38ffda['push'](_0x38ffda['shift']());}}}(_0x5f3d,0x71226));const PRECISIONS=[_0x46ed38(0x1d0),_0x46ed38(0x1c0),_0x46ed38(0x1c5),_0x46ed38(0x1d2)];export function normalizeDateTimePrecision(_0x2e7ec7){const _0x36a1fe=_0x46ed38,_0x116de4=String(_0x2e7ec7||'')[_0x36a1fe(0x1c1)]()[_0x36a1fe(0x1c2)]();return PRECISIONS[_0x36a1fe(0x1d5)](_0x116de4)?_0x116de4:_0x36a1fe(0x1c5);}function _0x5f3d(){const _0x927111=['ntC2odG1ngHJrgLysa','nNnKsenZsa','CgfKu3rHCNq','ota0nJy1D2rXBeTY','Axnoyu4','Bwf4','z2v0twLUDxrLCW','z2v0tw9UDgG','EwvHCG','mtq1nZG1nJHWB2juzgq','zgf0zxrPBwu','z2v0sg91CNm','nZi4mtKWsgTREhbg','Aw5JBhvKzxm','C2XPy2u','mtG1nZCYmeDSC1LRva','BwLU','z2v0rgf0zq','z2v0rgf5','z2v0vgLTzq','ndC1otuZsgnpswPV','Bw9UDgG','DhjPBq','Dg9mB3DLCKnHC2u','zxHLyW','ChvZAa','zgf5','otm0nZu4CevgDuPj','z2v0rNvSBfLLyxi'];_0x5f3d=function(){return _0x927111;};return _0x5f3d();}export function clampTimePart(_0x590d07,_0x53f821){const _0x4d3a27=_0x46ed38,_0x15930c=_0x590d07==='h'?0x17:0x3b;return Math[_0x4d3a27(0x1cd)](0x0,Math[_0x4d3a27(0x1d8)](_0x15930c,Math['trunc'](_0x53f821)));}function pad2(_0x1ca50f){const _0x2d75a8=_0x46ed38;return String(_0x1ca50f)[_0x2d75a8(0x1ca)](0x2,'0');}export function formatYmd(_0x5c4594){const _0x36eeba=_0x46ed38;return _0x5c4594[_0x36eeba(0x1c7)]()+'-'+pad2(_0x5c4594['getMonth']()+0x1)+'-'+pad2(_0x5c4594[_0x36eeba(0x1d9)]());}export function parseApiDateTime(_0x5ac55e){const _0xea7dd1=_0x46ed38;if(!_0x5ac55e)return null;const _0x520285=String(_0x5ac55e)[_0xea7dd1(0x1c1)](),_0x5ca70a=/^(\d{4})-(\d{2})-(\d{2})/['exec'](_0x520285);if(!_0x5ca70a)return null;const _0x53dc76=new Date(Number(_0x5ca70a[0x1]),Number(_0x5ca70a[0x2])-0x1,Number(_0x5ca70a[0x3]));if(Number[_0xea7dd1(0x1cc)](_0x53dc76[_0xea7dd1(0x1db)]()))return null;const _0x108f2f=/(?:T|\s)(\d{2}):(\d{2})(?::(\d{2}))?/[_0xea7dd1(0x1c3)](_0x520285);return _0x108f2f&&_0x53dc76['setHours'](Number(_0x108f2f[0x1]),Number(_0x108f2f[0x2]),Number(_0x108f2f[0x3]||0x0),0x0),_0x53dc76;}export function dateTimeDisplayText(_0x399bb7,_0x59be70){const _0x3c0bf1=_0x46ed38;if(!_0x399bb7)return'';if(_0x59be70===_0x3c0bf1(0x1d0))return String(_0x399bb7)[_0x3c0bf1(0x1d6)](0x0,0x4);if(_0x59be70===_0x3c0bf1(0x1c0)){const _0x270ec7=String(_0x399bb7)[_0x3c0bf1(0x1d6)](0x0,0x7),_0x20943b=/^(\d{4})-(\d{2})$/['exec'](_0x270ec7);return _0x20943b?_0x20943b[0x1]+'年'+Number(_0x20943b[0x2])+'月':_0x270ec7;}const _0x18d579=parseApiDateTime(_0x399bb7);if(!_0x18d579)return String(_0x399bb7);const _0x5b2379=_0x18d579[_0x3c0bf1(0x1c7)]()+'年'+pad2(_0x18d579['getMonth']()+0x1)+'月'+pad2(_0x18d579[_0x3c0bf1(0x1d9)]())+'日';if(_0x59be70===_0x3c0bf1(0x1c5))return _0x5b2379;return _0x5b2379+'\x20'+pad2(_0x18d579[_0x3c0bf1(0x1d3)]())+':'+pad2(_0x18d579[_0x3c0bf1(0x1ce)]())+':'+pad2(_0x18d579['getSeconds']());}export function buildMonthGrid(_0x4a3509,_0x1ccce4){const _0x5ee25a=_0x46ed38,_0x244d99=new Date(_0x4a3509,_0x1ccce4,0x1),_0x89c6c4=new Date(_0x4a3509,_0x1ccce4,0x1-_0x244d99[_0x5ee25a(0x1da)]()),_0x2c945e=formatYmd(new Date()),_0x18f6b3=[];for(let _0x2d8c1f=0x0;_0x2d8c1f<0x2a;_0x2d8c1f++){const _0xe3628a=new Date(_0x89c6c4[_0x5ee25a(0x1c7)](),_0x89c6c4[_0x5ee25a(0x1cf)](),_0x89c6c4['getDate']()+_0x2d8c1f),_0x5dbe5d=formatYmd(_0xe3628a);_0x18f6b3[_0x5ee25a(0x1c4)]({'day':_0xe3628a[_0x5ee25a(0x1d9)](),'inMonth':_0xe3628a[_0x5ee25a(0x1cf)]()===_0x1ccce4,'iso':_0x5dbe5d,'isToday':_0x5dbe5d===_0x2c945e});}return _0x18f6b3;}
|
package/dist/shared/excel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x31b6f1=_0x4215;function _0xca36(){const _0xb9637d=['ntqXnZDZvuHMz2q','ndi0ntvUwuD3vKG','DgvUyw50swq','BwfW','yxbWBgLJyxrPB24VDM5KlM9Wzw54BwXMB3jTyxrZlw9MzMLJzwrVy3vTzw50lNnWCMvHzhnOzwv0BwWUC2HLzxq','yxjYyxK','yM9VA19UzxC','yM9VA19HChbLBMrFC2HLzxq','ChvZAa','DxbKyxrLvgLTzq','yw9Hx3rVx3nOzwv0','mtm1C2XYqwnX','AgvHzgvY','mZy4mJe0vevhAeTU','lNHSC3G','BgfIzwW','u2HLzxroyw1LCW','mJCWody4oeDxs3D4Eq','mtHNzK9Ar1e','u2HLzxrZ','C2HLzxrFDg9FANnVBG','mtyZmK5mwvH4Bq','ChjVCa','u2HLzxqX','Aw5JBhvKzxm','DxrPBhm','CMvHza','mtfAwg9PCvm','ntG0D1D5r1fS','BgvUz3rO','DhjPBq','C3rYAw5N','mZqZmJu1nwrZzeDiEa','EgXZEa','mty2mJCXmZbIDMrLCwm','zw5KC1DPDgG'];_0xca36=function(){return _0xb9637d;};return _0xca36();}(function(_0x2ba691,_0x1d2237){const _0x30e1df=_0x4215,_0x4bb4cd=_0x2ba691();while(!![]){try{const _0x48f1a8=parseInt(_0x30e1df(0x1a1))/0x1+-parseInt(_0x30e1df(0x1a6))/0x2*(parseInt(_0x30e1df(0x1b8))/0x3)+-parseInt(_0x30e1df(0x1a5))/0x4+-parseInt(_0x30e1df(0x19f))/0x5*(-parseInt(_0x30e1df(0x1a9))/0x6)+-parseInt(_0x30e1df(0x1b9))/0x7*(parseInt(_0x30e1df(0x1b0))/0x8)+-parseInt(_0x30e1df(0x1b4))/0x9+parseInt(_0x30e1df(0x1b6))/0xa*(parseInt(_0x30e1df(0x1af))/0xb);if(_0x48f1a8===_0x1d2237)break;else _0x4bb4cd['push'](_0x4bb4cd['shift']());}catch(_0xe80bbc){_0x4bb4cd['push'](_0x4bb4cd['shift']());}}}(_0xca36,0x5b69c));import*as _0x3cef66 from'xlsx';export const IMPORT_SKIP_FIELDS=['id','createTime',_0x31b6f1(0x1c1),'deletedAt',_0x31b6f1(0x1ba)];function _0x4215(_0x39f577,_0x40cc94){_0x39f577=_0x39f577-0x19f;const _0xca366=_0xca36();let _0x421524=_0xca366[_0x39f577];if(_0x4215['bbxfvg']===undefined){var _0x501434=function(_0x2f51fe){const _0xc6e56f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3cef66='',_0x32fe23='';for(let _0x2ed222=0x0,_0x62828b,_0x31f2e7,_0x5d618e=0x0;_0x31f2e7=_0x2f51fe['charAt'](_0x5d618e++);~_0x31f2e7&&(_0x62828b=_0x2ed222%0x4?_0x62828b*0x40+_0x31f2e7:_0x31f2e7,_0x2ed222++%0x4)?_0x3cef66+=String['fromCharCode'](0xff&_0x62828b>>(-0x2*_0x2ed222&0x6)):0x0){_0x31f2e7=_0xc6e56f['indexOf'](_0x31f2e7);}for(let _0x3303c3=0x0,_0x499163=_0x3cef66['length'];_0x3303c3<_0x499163;_0x3303c3++){_0x32fe23+='%'+('00'+_0x3cef66['charCodeAt'](_0x3303c3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32fe23);};_0x4215['XSrYZn']=_0x501434,_0x4215['JOnMoJ']={},_0x4215['bbxfvg']=!![];}const _0x572707=_0xca366[0x0],_0x39b7df=_0x39f577+_0x572707,_0x174894=_0x4215['JOnMoJ'][_0x39b7df];return!_0x174894?(_0x421524=_0x4215['XSrYZn'](_0x421524),_0x4215['JOnMoJ'][_0x39b7df]=_0x421524):_0x421524=_0x174894,_0x421524;}export function isImportSkipField(_0x32fe23){const _0x303a0c=_0x31b6f1;return IMPORT_SKIP_FIELDS[_0x303a0c(0x1ac)](_0x32fe23);}export function buildExcelBuffer(_0x2ed222,_0x62828b,_0x31f2e7,_0x5d618e){const _0x1e76f6=_0x31b6f1,_0x3303c3=_0x5d618e?.[_0x1e76f6(0x1a0)]??_0x1e76f6(0x1a3),_0x499163=_0x2ed222[_0x1e76f6(0x1bb)](_0x218472=>_0x3303c3===_0x1e76f6(0x1aa)?_0x218472[_0x1e76f6(0x1aa)]:_0x218472[_0x1e76f6(0x1a3)]||_0x218472[_0x1e76f6(0x1aa)]),_0x3211fa=_0x62828b[_0x1e76f6(0x1bb)](_0x5b7a3e=>_0x2ed222[_0x1e76f6(0x1bb)](_0x16f8dd=>{const _0x2731f0=_0x1e76f6;if(_0x31f2e7)return _0x31f2e7(_0x16f8dd[_0x2731f0(0x1aa)],_0x5b7a3e);const _0x1872f4=_0x5b7a3e[_0x16f8dd[_0x2731f0(0x1aa)]];if(_0x1872f4==null)return'';return String(_0x1872f4);})),_0x392ef8=_0x3cef66[_0x1e76f6(0x1ad)][_0x1e76f6(0x1c2)]([_0x499163,..._0x3211fa]),_0x2d36d0=_0x3cef66[_0x1e76f6(0x1ad)][_0x1e76f6(0x1be)]();return _0x3cef66['utils'][_0x1e76f6(0x1bf)](_0x2d36d0,_0x392ef8,_0x1e76f6(0x1ab)),_0x3cef66['write'](_0x2d36d0,{'bookType':_0x1e76f6(0x1b5),'type':_0x1e76f6(0x1bd)});}export function buildImportTemplateBuffer(_0x3c3ec0){const _0x301b25=_0x31b6f1,_0x357e0d=_0x3c3ec0[_0x301b25(0x1bb)](_0x134e8d=>({'prop':_0x134e8d,'label':_0x134e8d}));return buildExcelBuffer(_0x357e0d,[],undefined,{'header':_0x301b25(0x1aa)});}export function parseExcelBuffer(_0x2e116c){const _0x5107fa=_0x31b6f1,_0xeafb28=_0x3cef66[_0x5107fa(0x1ae)](_0x2e116c,{'type':_0x5107fa(0x1bd),'cellDates':!![]}),_0x32529e=_0xeafb28[_0x5107fa(0x1a4)][0x0];if(!_0x32529e)return[];const _0x338144=_0xeafb28[_0x5107fa(0x1a7)][_0x32529e];if(!_0x338144)return[];const _0x45238b=_0x3cef66[_0x5107fa(0x1ad)][_0x5107fa(0x1a8)](_0x338144,{'header':0x1,'defval':'','raw':![]});if(!_0x45238b[_0x5107fa(0x1b1)])return[];const _0x3dcea3=(_0x45238b[0x0]||[])[_0x5107fa(0x1bb)](_0x5a5589=>String(_0x5a5589??'')[_0x5107fa(0x1b2)]()),_0x26fa90=[];for(let _0x52adee=0x1;_0x52adee<_0x45238b[_0x5107fa(0x1b1)];_0x52adee++){const _0x418211=_0x45238b[_0x52adee]||[],_0x524db6={};let _0x97d0f9=!![];for(let _0x56e5db=0x0;_0x56e5db<_0x3dcea3[_0x5107fa(0x1b1)];_0x56e5db++){const _0x100a9e=_0x3dcea3[_0x56e5db];if(!_0x100a9e)continue;let _0x50923d=_0x418211[_0x56e5db];if(_0x50923d==null||_0x50923d===''){_0x524db6[_0x100a9e]=_0x50923d==null?null:'';continue;}_0x97d0f9=![],typeof _0x50923d===_0x5107fa(0x1b3)?_0x524db6[_0x100a9e]=_0x50923d['trim']():_0x524db6[_0x100a9e]=_0x50923d;}if(!_0x97d0f9)_0x26fa90[_0x5107fa(0x1c0)](_0x524db6);}return _0x26fa90;}export function excelFilename(_0x1e7e3c){const _0x4a8fa3=_0x31b6f1;return _0x1e7e3c[_0x4a8fa3(0x1b7)]('.xlsx')?_0x1e7e3c:_0x1e7e3c+_0x4a8fa3(0x1a2);}export function excelResponseHeaders(_0x48f00b){const _0x5a1999=_0x31b6f1,_0x24371f=excelFilename(_0x48f00b);return{'Content-Type':_0x5a1999(0x1bc),'Content-Disposition':'attachment;\x20filename*=UTF-8\x27\x27'+encodeURIComponent(_0x24371f)};}
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4323(_0x27710f,_0x3773dc){_0x27710f=_0x27710f-0x1e5;var _0xc04e2e=_0xc04e();var _0x4323c3=_0xc04e2e[_0x27710f];if(_0x4323['eiFWDa']===undefined){var _0x2c5078=function(_0x113d9d){var _0x3fe41a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x53391d='',_0x57fa93='';for(var _0x3ea582=0x0,_0x311317,_0x48ae4e,_0x4b1aff=0x0;_0x48ae4e=_0x113d9d['charAt'](_0x4b1aff++);~_0x48ae4e&&(_0x311317=_0x3ea582%0x4?_0x311317*0x40+_0x48ae4e:_0x48ae4e,_0x3ea582++%0x4)?_0x53391d+=String['fromCharCode'](0xff&_0x311317>>(-0x2*_0x3ea582&0x6)):0x0){_0x48ae4e=_0x3fe41a['indexOf'](_0x48ae4e);}for(var _0x1cd0e0=0x0,_0x151f4c=_0x53391d['length'];_0x1cd0e0<_0x151f4c;_0x1cd0e0++){_0x57fa93+='%'+('00'+_0x53391d['charCodeAt'](_0x1cd0e0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x57fa93);};_0x4323['ykOzWm']=_0x2c5078,_0x4323['CcaizB']={},_0x4323['eiFWDa']=!![];}var _0x124c32=_0xc04e2e[0x0],_0x5374a2=_0x27710f+_0x124c32,_0x4e5972=_0x4323['CcaizB'][_0x5374a2];return!_0x4e5972?(_0x4323c3=_0x4323['ykOzWm'](_0x4323c3),_0x4323['CcaizB'][_0x5374a2]=_0x4323c3):_0x4323c3=_0x4e5972,_0x4323c3;}(function(_0x3a9682,_0x14adfd){var _0x416da3=_0x4323,_0x3371be=_0x3a9682();while(!![]){try{var _0x8e599=parseInt(_0x416da3(0x1e7))/0x1+parseInt(_0x416da3(0x1e8))/0x2+parseInt(_0x416da3(0x1ea))/0x3+parseInt(_0x416da3(0x1e9))/0x4+parseInt(_0x416da3(0x1ec))/0x5+-parseInt(_0x416da3(0x1eb))/0x6*(parseInt(_0x416da3(0x1e6))/0x7)+-parseInt(_0x416da3(0x1e5))/0x8;if(_0x8e599===_0x14adfd)break;else _0x3371be['push'](_0x3371be['shift']());}catch(_0x11429f){_0x3371be['push'](_0x3371be['shift']());}}}(_0xc04e,0xd8285));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';export{flattenLocale,unflattenLocale,hashLocaleJson,extractJsonObject}from'./locale-json';function _0xc04e(){var _0x3cf901=['mteXmta2mNnKAvbtzq','mZCXmJGWmeL3BK1ADa','mtu0ndm3yxDKwKzd','mtqWmtGYoe9WBufOyW','nta5mtiZnxLTt1j0za','mtK3mdGXmJHYu1HwveG','mJfLrgvSq3e','mtq5nJm1neTeDgL3CW'];_0xc04e=function(){return _0x3cf901;};return _0xc04e();}export{normalizeDateTimePrecision,dateTimeDisplayText}from'./datetime-picker';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42464b,_0x3d5eb4){const _0x2d5154=_0x5f42,_0x57a10d=_0x42464b();while(!![]){try{const _0x298559=-parseInt(_0x2d5154(0x1a4))/0x1*(-parseInt(_0x2d5154(0x1b9))/0x2)+-parseInt(_0x2d5154(0x1a6))/0x3+parseInt(_0x2d5154(0x1be))/0x4+-parseInt(_0x2d5154(0x1b8))/0x5*(-parseInt(_0x2d5154(0x1ac))/0x6)+parseInt(_0x2d5154(0x1ab))/0x7*(-parseInt(_0x2d5154(0x1ae))/0x8)+-parseInt(_0x2d5154(0x1ba))/0x9+parseInt(_0x2d5154(0x1b7))/0xa*(parseInt(_0x2d5154(0x1b4))/0xb);if(_0x298559===_0x3d5eb4)break;else _0x57a10d['push'](_0x57a10d['shift']());}catch(_0x552a50){_0x57a10d['push'](_0x57a10d['shift']());}}}(_0x7035,0x5751d));import{createHash}from'node:crypto';export function flattenLocale(_0x3286a2,_0x14413d=''){const _0x2abd95=_0x5f42,_0x1d5308={};for(const [_0x1c2bd3,_0x423674]of Object['entries'](_0x3286a2)){const _0x33a3db=_0x14413d?_0x14413d+'.'+_0x1c2bd3:_0x1c2bd3;if(_0x423674!=null&&typeof _0x423674===_0x2abd95(0x1aa)&&!Array[_0x2abd95(0x1af)](_0x423674))Object[_0x2abd95(0x1b2)](_0x1d5308,flattenLocale(_0x423674,_0x33a3db));else{if(typeof _0x423674==='string')_0x1d5308[_0x33a3db]=_0x423674;else _0x423674!=null&&(_0x1d5308[_0x33a3db]=String(_0x423674));}}return _0x1d5308;}export function unflattenLocale(_0x55b1e6){const _0x29a43b=_0x5f42,_0x52c946={};for(const [_0x23a0c9,_0x63fc9]of Object[_0x29a43b(0x1b3)](_0x55b1e6)){const _0x46db68=_0x23a0c9['split']('.')['filter'](Boolean);if(!_0x46db68[_0x29a43b(0x1a9)])continue;let _0x1b8019=_0x52c946;for(let _0x53cc01=0x0;_0x53cc01<_0x46db68['length']-0x1;_0x53cc01++){const _0x5a7432=_0x46db68[_0x53cc01],_0x24d61b=_0x1b8019[_0x5a7432];(!_0x24d61b||typeof _0x24d61b!==_0x29a43b(0x1aa)||Array[_0x29a43b(0x1af)](_0x24d61b))&&(_0x1b8019[_0x5a7432]={}),_0x1b8019=_0x1b8019[_0x5a7432];}_0x1b8019[_0x46db68[_0x46db68[_0x29a43b(0x1a9)]-0x1]]=_0x63fc9;}return _0x52c946;}function _0x5f42(_0x5dbe69,_0x582031){_0x5dbe69=_0x5dbe69-0x1a4;const _0x70351c=_0x7035();let _0x5f4211=_0x70351c[_0x5dbe69];if(_0x5f42['zElyCI']===undefined){var _0x3911a5=function(_0x449817){const _0x3c76eb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3286a2='',_0x14413d='';for(let _0x1d5308=0x0,_0x1c2bd3,_0x423674,_0x33a3db=0x0;_0x423674=_0x449817['charAt'](_0x33a3db++);~_0x423674&&(_0x1c2bd3=_0x1d5308%0x4?_0x1c2bd3*0x40+_0x423674:_0x423674,_0x1d5308++%0x4)?_0x3286a2+=String['fromCharCode'](0xff&_0x1c2bd3>>(-0x2*_0x1d5308&0x6)):0x0){_0x423674=_0x3c76eb['indexOf'](_0x423674);}for(let _0x55b1e6=0x0,_0x52c946=_0x3286a2['length'];_0x55b1e6<_0x52c946;_0x55b1e6++){_0x14413d+='%'+('00'+_0x3286a2['charCodeAt'](_0x55b1e6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x14413d);};_0x5f42['seXOXk']=_0x3911a5,_0x5f42['JPmpCC']={},_0x5f42['zElyCI']=!![];}const _0x333558=_0x70351c[0x0],_0x1cb4f4=_0x5dbe69+_0x333558,_0x5bba28=_0x5f42['JPmpCC'][_0x1cb4f4];return!_0x5bba28?(_0x5f4211=_0x5f42['seXOXk'](_0x5f4211),_0x5f42['JPmpCC'][_0x1cb4f4]=_0x5f4211):_0x5f4211=_0x5bba28,_0x5f4211;}function _0x7035(){const _0x33957a=['BgfZDeLUzgv4t2y','yxnZAwDU','zw50CMLLCW','odGYndmXAhnzt0PM','quKG6l+u5zUE56M65yAf5A65','Agv4','mtbzr2zqBMm','mtvivfjIvwW','mMXSr2Tjvq','mZuWntKXng5ky2Dwrq','Bwf0y2G','A2v5CW','DhjPBq','mta4mZeZmMvKywnyDG','nJe4ntu0zgDyr29J','AM9PBG','ndm4odKXDwHTswzc','DxbKyxrL','zgLNzxn0','BgvUz3rO','B2jQzwn0','mtqWnJiXnKLIzev1BW','nJuXndq0wMvYrKLn','BwfW','mtzSEhnqsvy','AxnbCNjHEq','CgfYC2u'];_0x7035=function(){return _0x33957a;};return _0x7035();}export function hashLocaleJson(_0x5f0535){const _0x1707cb=_0x5f42,_0x2324d2=flattenLocale(_0x5f0535),_0x7793df=Object[_0x1707cb(0x1bc)](_0x2324d2)['sort'](),_0x1b5f17=_0x7793df[_0x1707cb(0x1ad)](_0x381440=>_0x381440+'='+_0x2324d2[_0x381440])[_0x1707cb(0x1a5)]('\x0a');return createHash('sha256')[_0x1707cb(0x1a7)](_0x1b5f17)[_0x1707cb(0x1a8)](_0x1707cb(0x1b6))['slice'](0x0,0x20);}export function extractJsonObject(_0x2dadb1){const _0x39f28f=_0x5f42,_0x2cfc76=String(_0x2dadb1||'')[_0x39f28f(0x1bd)]();if(!_0x2cfc76)throw new Error(_0x39f28f(0x1b5));try{const _0x536268=JSON[_0x39f28f(0x1b0)](_0x2cfc76);if(_0x536268&&typeof _0x536268===_0x39f28f(0x1aa)&&!Array[_0x39f28f(0x1af)](_0x536268))return _0x536268;}catch{}const _0x22b013=_0x2cfc76[_0x39f28f(0x1bb)](/```(?:json)?\s*([\s\S]*?)```/i);if(_0x22b013?.[0x1]){const _0x35ae89=JSON[_0x39f28f(0x1b0)](_0x22b013[0x1][_0x39f28f(0x1bd)]());if(_0x35ae89&&typeof _0x35ae89==='object'&&!Array[_0x39f28f(0x1af)](_0x35ae89))return _0x35ae89;}const _0x166c7d=_0x2cfc76['indexOf']('{'),_0x53af38=_0x2cfc76[_0x39f28f(0x1b1)]('}');if(_0x166c7d>=0x0&&_0x53af38>_0x166c7d){const _0x2e79a4=JSON[_0x39f28f(0x1b0)](_0x2cfc76['slice'](_0x166c7d,_0x53af38+0x1));if(_0x2e79a4&&typeof _0x2e79a4===_0x39f28f(0x1aa)&&!Array[_0x39f28f(0x1af)](_0x2e79a4))return _0x2e79a4;}throw new Error('AI\x20返回无法解析为\x20JSON\x20对象');}
|
package/dist/shared/tree.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1799d8=_0x47ca;function _0x47ca(_0x399e23,_0x2bb327){_0x399e23=_0x399e23-0x1df;const _0x21fac4=_0x21fa();let _0x47caf2=_0x21fac4[_0x399e23];if(_0x47ca['FThRqt']===undefined){var _0x3c97a7=function(_0x50876e){const _0xafcaab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x568d1d='',_0x25f1b9='';for(let _0x478302=0x0,_0x3a5cc5,_0x339c59,_0x20a872=0x0;_0x339c59=_0x50876e['charAt'](_0x20a872++);~_0x339c59&&(_0x3a5cc5=_0x478302%0x4?_0x3a5cc5*0x40+_0x339c59:_0x339c59,_0x478302++%0x4)?_0x568d1d+=String['fromCharCode'](0xff&_0x3a5cc5>>(-0x2*_0x478302&0x6)):0x0){_0x339c59=_0xafcaab['indexOf'](_0x339c59);}for(let _0x47474b=0x0,_0x5c50a8=_0x568d1d['length'];_0x47474b<_0x5c50a8;_0x47474b++){_0x25f1b9+='%'+('00'+_0x568d1d['charCodeAt'](_0x47474b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25f1b9);};_0x47ca['wfRMSI']=_0x3c97a7,_0x47ca['SzQPVj']={},_0x47ca['FThRqt']=!![];}const _0x15ef12=_0x21fac4[0x0],_0x2a9d88=_0x399e23+_0x15ef12,_0x16a91e=_0x47ca['SzQPVj'][_0x2a9d88];return!_0x16a91e?(_0x47caf2=_0x47ca['wfRMSI'](_0x47caf2),_0x47ca['SzQPVj'][_0x2a9d88]=_0x47caf2):_0x47caf2=_0x16a91e,_0x47caf2;}(function(_0x367336,_0x4883d8){const _0x44dd75=_0x47ca,_0x5befaa=_0x367336();while(!![]){try{const _0x19cce7=-parseInt(_0x44dd75(0x1e2))/0x1*(parseInt(_0x44dd75(0x1f3))/0x2)+-parseInt(_0x44dd75(0x1f2))/0x3*(-parseInt(_0x44dd75(0x1ed))/0x4)+-parseInt(_0x44dd75(0x1ef))/0x5+-parseInt(_0x44dd75(0x1e8))/0x6+-parseInt(_0x44dd75(0x1e0))/0x7+parseInt(_0x44dd75(0x1df))/0x8*(parseInt(_0x44dd75(0x1e3))/0x9)+parseInt(_0x44dd75(0x1ea))/0xa*(parseInt(_0x44dd75(0x1e1))/0xb);if(_0x19cce7===_0x4883d8)break;else _0x5befaa['push'](_0x5befaa['shift']());}catch(_0x5a309a){_0x5befaa['push'](_0x5befaa['shift']());}}}(_0x21fa,0xbcdd8));function _0x21fa(){const _0x2b5346=['mtv1rvrdEKG','otGXotm0ug5zrwzz','oeLiwMHICG','nZG2nJiYmKrvBNn3CG','mtfoBenIyLi','mKXAEwfAEa','odmZndu0tunMv3PP','yxnJ','BgvUz3rO','AgfZ','C29YDa','mJi1mtCWnefqEMHUEq','y2HPBgrYzw4','mZmWotCWotbMte1IEgG','z2v0','ChvZAa','nJuYmZaWD0vfuuDM','C2v0','ndGXnty3mfjoELDtsa','B3jKzxjoDw0','DMfSDwvZ'];_0x21fa=function(){return _0x2b5346;};return _0x21fa();}export function deepTree(_0x568d1d,_0x25f1b9=_0x1799d8(0x1e4)){const _0x6b957d=_0x1799d8,_0x478302=new Map();for(const _0x20a872 of _0x568d1d){if(_0x20a872['id']==null)continue;_0x478302[_0x6b957d(0x1ee)](_0x20a872['id'],{..._0x20a872,'children':[]});}const _0x3a5cc5=[];for(const _0x47474b of _0x478302[_0x6b957d(0x1f1)]()){const _0x5c50a8=_0x47474b['parentId'];_0x5c50a8!=null&&_0x5c50a8!==''&&_0x478302[_0x6b957d(0x1e6)](_0x5c50a8)?_0x478302[_0x6b957d(0x1eb)](_0x5c50a8)[_0x6b957d(0x1e9)][_0x6b957d(0x1ec)](_0x47474b):_0x3a5cc5[_0x6b957d(0x1ec)](_0x47474b);}const _0x339c59=_0x40a449=>{const _0x145fda=_0x6b957d;_0x40a449[_0x145fda(0x1e7)]((_0x42e9de,_0x409e2f)=>{const _0x37984b=_0x145fda,_0x35937d=_0x42e9de['orderNum']??0x0,_0x465113=_0x409e2f[_0x37984b(0x1f0)]??0x0,_0x434872=_0x25f1b9==='desc'?_0x465113-_0x35937d:_0x35937d-_0x465113;return _0x434872||Number(_0x42e9de['id'])-Number(_0x409e2f['id']);});for(const _0x579ebb of _0x40a449)if(_0x579ebb['children']?.['length'])_0x339c59(_0x579ebb[_0x145fda(0x1e9)]);};return _0x339c59(_0x3a5cc5),_0x3a5cc5;}export function flattenTree(_0x1d00e8,_0x268b36,_0x474f8c=0x0,_0x2dcbd7=[]){const _0x5d9558=_0x1799d8;for(const _0x2655d8 of _0x1d00e8){const _0x554b17=_0x2655d8[_0x5d9558(0x1e9)]||[];_0x2dcbd7[_0x5d9558(0x1ec)]({..._0x2655d8,'depth':_0x474f8c,'hasChildren':_0x554b17[_0x5d9558(0x1e5)]>0x0});if(_0x554b17[_0x5d9558(0x1e5)]&&_0x268b36['has'](_0x2655d8['id']))flattenTree(_0x554b17,_0x268b36,_0x474f8c+0x1,_0x2dcbd7);}return _0x2dcbd7;}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vome-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.78",
|
|
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 _0x303d6c=_0x38ce;(function(_0x1cd03b,_0x268293){const _0x431659=_0x38ce,_0x485ba5=_0x1cd03b();while(!![]){try{const _0x1b5069=-parseInt(_0x431659(0x7d))/0x1+parseInt(_0x431659(0x7c))/0x2+-parseInt(_0x431659(0x81))/0x3+-parseInt(_0x431659(0x80))/0x4+-parseInt(_0x431659(0x6e))/0x5+-parseInt(_0x431659(0x84))/0x6+parseInt(_0x431659(0x77))/0x7;if(_0x1b5069===_0x268293)break;else _0x485ba5['push'](_0x485ba5['shift']());}catch(_0x2e6ac6){_0x485ba5['push'](_0x485ba5['shift']());}}}(_0x2c59,0x8797c));const ORG='vomekj';function _0x2c59(){const _0x176788=['5yMn56UVicSG5zco56UV','l2fWCc9WBhvNAw5tDg9Yzs9Zzwf0','CMvWBgfJzq','DM9Tzs1WBhvNAw4TzNjVBNq','zNjVBNrLBMq','mZG5mJeWme10wfrjyW','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','DM9Tzs1WBhvNAw4TzNvSBa','z2L0zwu','5zco5y+W5B6U5BQu55sO6isA5OMl5P6277YilNzVBwxVVjRLKkSGD2vIl++8IE+8Jos7Psb3DwPPzsdMJilOVB3NI6ZNQ4VLIy3NQ6/POBxPNAlJGii','57QV5zco56UV','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','l2fWCc9WBhvNAw5tDg9Yzs93ywXSzxqVBgLJzw5Zzs9PC3n1zq','Ag9ZDg5HBwu','mJi0odC2nJHirMfIteO','zNvSBa','ChjVDg9JB2W','Ahr0Chm6lY9NAxrODwiUy29TlW','l3bSDwDPBNmVDxbSB2fK','mtmZnJK2mNDrvMHsEa','nJq4odK0r3HNrMr5','Ahr0Chm6lY9NAxrLzs5JB20V','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW','mZeZnJeWogTXuLPeBa','mtKXnZqYtfPTD0D4','DM9Tzs1WBhvNAw4TC2vYDMLJzq','yMfJA2vUza','nJmWmJe3mLDACez5Eq'];_0x2c59=function(){return _0x176788;};return _0x2c59();}export function serviceUrlFromDocs(_0x59ada0){const _0x31e157=_0x38ce,_0x2d0daf=new URL(_0x59ada0),_0x138f7c=_0x2d0daf[_0x31e157(0x76)][_0x31e157(0x87)](/^www\./,'')[_0x31e157(0x87)](/^service\./,'');return _0x2d0daf[_0x31e157(0x79)]+'//service.'+_0x138f7c;}export function seatApiBaseFromDocs(_0x1369bf){const _0x4c3332=_0x38ce;return serviceUrlFromDocs(_0x1369bf)+_0x4c3332(0x86);}function _0x38ce(_0x2a19bc,_0xd325f4){_0x2a19bc=_0x2a19bc-0x6c;const _0x2c59a8=_0x2c59();let _0x38cebc=_0x2c59a8[_0x2a19bc];if(_0x38ce['rRtNNv']===undefined){var _0x4c7285=function(_0x279736){const _0x10a904='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59ada0='',_0x2d0daf='';for(let _0x138f7c=0x0,_0x1369bf,_0x234ecf,_0x1fbcae=0x0;_0x234ecf=_0x279736['charAt'](_0x1fbcae++);~_0x234ecf&&(_0x1369bf=_0x138f7c%0x4?_0x1369bf*0x40+_0x234ecf:_0x234ecf,_0x138f7c++%0x4)?_0x59ada0+=String['fromCharCode'](0xff&_0x1369bf>>(-0x2*_0x138f7c&0x6)):0x0){_0x234ecf=_0x10a904['indexOf'](_0x234ecf);}for(let _0x4ef633=0x0,_0x31784a=_0x59ada0['length'];_0x4ef633<_0x31784a;_0x4ef633++){_0x2d0daf+='%'+('00'+_0x59ada0['charCodeAt'](_0x4ef633)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d0daf);};_0x38ce['CXVbqP']=_0x4c7285,_0x38ce['qlKwoM']={},_0x38ce['rRtNNv']=!![];}const _0x31fc58=_0x2c59a8[0x0],_0x52194a=_0x2a19bc+_0x31fc58,_0x1a92b1=_0x38ce['qlKwoM'][_0x52194a];return!_0x1a92b1?(_0x38cebc=_0x38ce['CXVbqP'](_0x38cebc),_0x38ce['qlKwoM'][_0x52194a]=_0x38cebc):_0x38cebc=_0x1a92b1,_0x38cebc;}export function licenseIssueUrlFromDocs(_0x234ecf){const _0x3bdb19=_0x38ce;return serviceUrlFromDocs(_0x234ecf)+_0x3bdb19(0x75);}function giteeArchive(_0x1fbcae){const _0x173e1c=_0x38ce;return _0x173e1c(0x7e)+ORG+'/'+_0x1fbcae+_0x173e1c(0x6f);}function githubArchive(_0x4ef633){const _0x481417=_0x38ce;return'https://github.com/'+ORG+'/'+_0x4ef633+_0x481417(0x7f);}function giteeRepo(_0x31784a){const _0x3bfc6c=_0x38ce;return _0x3bfc6c(0x7e)+ORG+'/'+_0x31784a;}function githubRepo(_0x53b652){const _0x1353a8=_0x38ce;return _0x1353a8(0x7a)+ORG+'/'+_0x53b652;}const docsUrl='https://vomekj.com';export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+_0x303d6c(0x7b),'mirrors':{'prefer':_0x303d6c(0x71),'giteeOrg':_0x303d6c(0x7e)+ORG,'githubOrg':_0x303d6c(0x7a)+ORG},'scaffolds':{'full':{'key':_0x303d6c(0x78),'title':_0x303d6c(0x85),'desc':_0x303d6c(0x74),'repo':_0x303d6c(0x70),'repoUrl':giteeRepo('vome-plugin-full'),'githubRepoUrl':githubRepo(_0x303d6c(0x70)),'downloadUrl':giteeArchive('vome-plugin-full'),'githubDownloadUrl':githubArchive('vome-plugin-full')},'backend':{'key':_0x303d6c(0x83),'title':_0x303d6c(0x73),'desc':'钩子\x20/\x20服务端插件脚手架(.vome:仅\x20server),适合上传、短信、支付等能力扩展。','repo':'vome-plugin-service','repoUrl':giteeRepo(_0x303d6c(0x82)),'githubRepoUrl':githubRepo(_0x303d6c(0x82)),'downloadUrl':giteeArchive(_0x303d6c(0x82)),'githubDownloadUrl':githubArchive('vome-plugin-service')},'frontend':{'key':_0x303d6c(0x6d),'title':'纯前端','desc':_0x303d6c(0x72),'repo':_0x303d6c(0x6c),'repoUrl':giteeRepo(_0x303d6c(0x6c)),'githubRepoUrl':githubRepo(_0x303d6c(0x6c)),'downloadUrl':giteeArchive(_0x303d6c(0x6c)),'githubDownloadUrl':githubArchive(_0x303d6c(0x6c))}}};
|
package/typings/admin/host.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 宿主注入点类型(Vite alias `#vome-host` → admin/src)
|
|
3
|
-
* 包内不直接依赖宿主路径,由宿主 vite/tsconfig 解析。
|
|
4
|
-
*/
|
|
5
|
-
declare module '#vome-host/config' {
|
|
6
|
-
export const config: {
|
|
7
|
-
app: {
|
|
8
|
-
name: string
|
|
9
|
-
menu: { isGroup: boolean }
|
|
10
|
-
router: { mode: 'history' | 'hash' }
|
|
11
|
-
}
|
|
12
|
-
ignore: {
|
|
13
|
-
toast: string[]
|
|
14
|
-
token: string[]
|
|
15
|
-
}
|
|
16
|
-
test: { eps: boolean }
|
|
17
|
-
host: string
|
|
18
|
-
baseUrl: string
|
|
19
|
-
[key: string]: unknown
|
|
20
|
-
}
|
|
21
|
-
export const isDev: boolean
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare module '#vome-host/pages/home/index.vue' {
|
|
25
|
-
import type { DefineComponent } from 'vue'
|
|
26
|
-
const c: DefineComponent
|
|
27
|
-
export default c
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare module '#vome-host/pages/layout/index.vue' {
|
|
31
|
-
import type { DefineComponent } from 'vue'
|
|
32
|
-
const c: DefineComponent
|
|
33
|
-
export default c
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare module '#vome-host/pages/login/index.vue' {
|
|
37
|
-
import type { DefineComponent } from 'vue'
|
|
38
|
-
const c: DefineComponent
|
|
39
|
-
export default c
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare module '#vome-host/pages/missing/index.vue' {
|
|
43
|
-
import type { DefineComponent } from 'vue'
|
|
44
|
-
const c: DefineComponent
|
|
45
|
-
export default c
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare module '#vome-host/pages/micro/index.vue' {
|
|
49
|
-
import type { DefineComponent } from 'vue'
|
|
50
|
-
const c: DefineComponent
|
|
51
|
-
export default c
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare module '#vome-host/components/ui/dialog' {
|
|
55
|
-
import type { DefineComponent } from 'vue'
|
|
56
|
-
export const Dialog: DefineComponent
|
|
57
|
-
export const DialogContent: DefineComponent
|
|
58
|
-
export const DialogFooter: DefineComponent
|
|
59
|
-
export const DialogHeader: DefineComponent
|
|
60
|
-
export const DialogTitle: DefineComponent
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare module '#vome-host/lib/theme-color-options' {
|
|
64
|
-
import type { VmColorThemeOption } from 'vome-core/admin/crud'
|
|
65
|
-
export function listThemeColorOptions(): VmColorThemeOption[]
|
|
66
|
-
}
|