vome-core 0.0.49 → 0.0.52
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/config/plugin-dev.js +1 -54
- package/dist/admin/crud/components/vm-richtext.vue +115 -2
- package/dist/admin/crud/components/vm-upload.vue +1 -1
- package/dist/admin/crud/config.js +1 -33
- package/dist/admin/crud/confirm.js +1 -97
- package/dist/admin/crud/dict.js +1 -48
- package/dist/admin/crud/index.js +1 -74
- package/dist/admin/crud/key.js +1 -20
- package/dist/admin/crud/mitt.js +1 -21
- package/dist/admin/crud/plugins.js +1 -216
- package/dist/admin/crud/span.js +1 -35
- package/dist/admin/crud/style.js +1 -74
- package/dist/admin/crud/validate.js +1 -92
- package/dist/admin/crud/vm-search.vue +12 -4
- package/dist/admin/crud/vm-tabs.vue +94 -0
- package/dist/admin/crud/vm-toolbar.vue +16 -57
- package/dist/admin/directives/perm.js +1 -14
- package/dist/admin/hooks/useUpload.js +1 -63
- package/dist/admin/lib/browser.js +1 -24
- package/dist/admin/lib/cn.js +1 -5
- package/dist/admin/lib/dialog-float.js +1 -13
- package/dist/admin/lib/export-excel.js +1 -64
- package/dist/admin/lib/file-preview.js +1 -74
- package/dist/admin/lib/import-excel.js +1 -61
- package/dist/admin/lib/json.js +1 -42
- package/dist/admin/lib/menu.js +1 -11
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -88
- package/dist/admin/lib/video-frame.js +1 -80
- package/dist/index.js +1 -28021
- package/dist/server/index.js +1 -31407
- package/dist/shared/excel.js +1 -93
- package/dist/shared/index.js +1 -14
- package/dist/shared/tree.js +1 -39
- package/dist/src/orm/join-tables.d.ts +12 -0
- package/dist/src/orm/query-op.d.ts +10 -1
- package/dist/typings/routing/crud.d.ts +18 -4
- package/package.json +1 -1
- package/typings/admin/comm/crud.d.ts +2 -2
- package/typings/admin/comm/crud.ts +1 -1
|
@@ -1,54 +1 @@
|
|
|
1
|
-
const ORG =
|
|
2
|
-
function giteeArchive(repo) {
|
|
3
|
-
return `https://gitee.com/${ORG}/${repo}/repository/archive/master.zip`;
|
|
4
|
-
}
|
|
5
|
-
function githubArchive(repo) {
|
|
6
|
-
return `https://github.com/${ORG}/${repo}/archive/refs/heads/master.zip`;
|
|
7
|
-
}
|
|
8
|
-
function giteeRepo(repo) {
|
|
9
|
-
return `https://gitee.com/${ORG}/${repo}`;
|
|
10
|
-
}
|
|
11
|
-
function githubRepo(repo) {
|
|
12
|
-
return `https://github.com/${ORG}/${repo}`;
|
|
13
|
-
}
|
|
14
|
-
export const pluginDev = {
|
|
15
|
-
docsUrl: "https://vomekj.com",
|
|
16
|
-
uploadUrl: "https://vomekj.com/plugins/upload",
|
|
17
|
-
mirrors: {
|
|
18
|
-
prefer: "gitee",
|
|
19
|
-
giteeOrg: `https://gitee.com/${ORG}`,
|
|
20
|
-
githubOrg: `https://github.com/${ORG}`
|
|
21
|
-
},
|
|
22
|
-
scaffolds: {
|
|
23
|
-
full: {
|
|
24
|
-
key: "full",
|
|
25
|
-
title: "前端 + 后端",
|
|
26
|
-
desc: "完整业务模块脚手架(.vome:含 server 与 web),本地开发打包后发布。",
|
|
27
|
-
repo: "vome-plugin-full",
|
|
28
|
-
repoUrl: giteeRepo("vome-plugin-full"),
|
|
29
|
-
githubRepoUrl: githubRepo("vome-plugin-full"),
|
|
30
|
-
downloadUrl: giteeArchive("vome-plugin-full"),
|
|
31
|
-
githubDownloadUrl: githubArchive("vome-plugin-full")
|
|
32
|
-
},
|
|
33
|
-
backend: {
|
|
34
|
-
key: "backend",
|
|
35
|
-
title: "纯后端",
|
|
36
|
-
desc: "钩子 / 服务端插件脚手架(.vome:仅 server),适合上传、短信、支付等能力扩展。",
|
|
37
|
-
repo: "vome-plugin-service",
|
|
38
|
-
repoUrl: giteeRepo("vome-plugin-service"),
|
|
39
|
-
githubRepoUrl: githubRepo("vome-plugin-service"),
|
|
40
|
-
downloadUrl: giteeArchive("vome-plugin-service"),
|
|
41
|
-
githubDownloadUrl: githubArchive("vome-plugin-service")
|
|
42
|
-
},
|
|
43
|
-
frontend: {
|
|
44
|
-
key: "frontend",
|
|
45
|
-
title: "纯前端",
|
|
46
|
-
desc: "后台微应用脚手架(.vome:含 web/),以 wujie 挂载独立前端页面。",
|
|
47
|
-
repo: "vome-plugin-front",
|
|
48
|
-
repoUrl: giteeRepo("vome-plugin-front"),
|
|
49
|
-
githubRepoUrl: githubRepo("vome-plugin-front"),
|
|
50
|
-
downloadUrl: giteeArchive("vome-plugin-front"),
|
|
51
|
-
githubDownloadUrl: githubArchive("vome-plugin-front")
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
1
|
+
const _0x418eba=_0x4f31;(function(_0x1561e6,_0x4c3343){const _0x47b8d8=_0x4f31,_0x35e1a4=_0x1561e6();while(!![]){try{const _0x179a6a=-parseInt(_0x47b8d8(0xd7))/0x1*(parseInt(_0x47b8d8(0xcf))/0x2)+-parseInt(_0x47b8d8(0xc6))/0x3*(parseInt(_0x47b8d8(0xd5))/0x4)+parseInt(_0x47b8d8(0xc0))/0x5*(-parseInt(_0x47b8d8(0xc2))/0x6)+parseInt(_0x47b8d8(0xc3))/0x7*(parseInt(_0x47b8d8(0xc5))/0x8)+-parseInt(_0x47b8d8(0xd0))/0x9+-parseInt(_0x47b8d8(0xbb))/0xa+parseInt(_0x47b8d8(0xbe))/0xb;if(_0x179a6a===_0x4c3343)break;else _0x35e1a4['push'](_0x35e1a4['shift']());}catch(_0x5529fb){_0x35e1a4['push'](_0x35e1a4['shift']());}}}(_0x12ab,0x8e789));function _0x4f31(_0x2d28cb,_0xd07d1){_0x2d28cb=_0x2d28cb-0xba;const _0x12ab0c=_0x12ab();let _0x4f3159=_0x12ab0c[_0x2d28cb];if(_0x4f31['noEcsE']===undefined){var _0x208415=function(_0x5a04d4){const _0x34748b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x243b9d='',_0x38aec1='';for(let _0x8435c0=0x0,_0x5aa3bf,_0x333e8f,_0x781219=0x0;_0x333e8f=_0x5a04d4['charAt'](_0x781219++);~_0x333e8f&&(_0x5aa3bf=_0x8435c0%0x4?_0x5aa3bf*0x40+_0x333e8f:_0x333e8f,_0x8435c0++%0x4)?_0x243b9d+=String['fromCharCode'](0xff&_0x5aa3bf>>(-0x2*_0x8435c0&0x6)):0x0){_0x333e8f=_0x34748b['indexOf'](_0x333e8f);}for(let _0xdb2cb=0x0,_0x3538b8=_0x243b9d['length'];_0xdb2cb<_0x3538b8;_0xdb2cb++){_0x38aec1+='%'+('00'+_0x243b9d['charCodeAt'](_0xdb2cb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x38aec1);};_0x4f31['HuntdT']=_0x208415,_0x4f31['VWpcZX']={},_0x4f31['noEcsE']=!![];}const _0x20cf09=_0x12ab0c[0x0],_0x3ce35a=_0x2d28cb+_0x20cf09,_0x192a30=_0x4f31['VWpcZX'][_0x3ce35a];return!_0x192a30?(_0x4f3159=_0x4f31['HuntdT'](_0x4f3159),_0x4f31['VWpcZX'][_0x3ce35a]=_0x4f3159):_0x4f3159=_0x192a30,_0x4f3159;}const ORG=_0x418eba(0xc4);function giteeArchive(_0x243b9d){const _0x4efb2c=_0x418eba;return _0x4efb2c(0xd1)+ORG+'/'+_0x243b9d+_0x4efb2c(0xbf);}function githubArchive(_0x38aec1){const _0x3724f6=_0x418eba;return _0x3724f6(0xcd)+ORG+'/'+_0x38aec1+'/archive/refs/heads/master.zip';}function giteeRepo(_0x8435c0){const _0x4d37ea=_0x418eba;return _0x4d37ea(0xd1)+ORG+'/'+_0x8435c0;}function githubRepo(_0x5aa3bf){const _0x34e0f9=_0x418eba;return _0x34e0f9(0xcd)+ORG+'/'+_0x5aa3bf;}function _0x12ab(){const _0x5a1f8f=['otGZnJu3vfHXvhPQ','Ahr0Chm6lY92B21LA2OUy29T','ndu0odi1mfz3qxryAa','zNjVBNrLBMq','Ahr0Chm6lY92B21LA2OUy29Tl3bSDwDPBNmVDxbSB2fK','ndCYmta2mdnNCe5rBhG','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','mte1nurpAhjmzq','yMfJA2vUza','mJGYmdzYqwTpr2q','mJq0nJaXrwv6qNDl','DM9TzwTQ','mtuYDfLyCMjc','mtCXotu5n3D1AuXxsq','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','57QV5yMn56UV','DM9Tzs1WBhvNAw4TC2vYDMLJzq','DM9Tzs1WBhvNAw4TzNjVBNq','DM9Tzs1WBhvNAw4TzNvSBa','z2L0zwu','Ahr0Chm6lY9NAxrODwiUy29TlW','57QV5zco56UV','mLnSAhbMCa','nJmXmJC2mNbSswn3ua','Ahr0Chm6lY9NAxrLzs5JB20V','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','5yMn56UVicSG5zco56UV','5zco5y+W5B6U5BQu55sO6isA5OMl5P6277YilNzVBwxVVjRLKkSGD2vIl++8IE+8Jos7Psb3DwPPzsdMJilOVB3NI6ZNQ4VLIy3NQ6/POBxPNAlJGii','ogzluKDVzW','zNvSBa'];_0x12ab=function(){return _0x5a1f8f;};return _0x12ab();}export const pluginDev={'docsUrl':_0x418eba(0xba),'uploadUrl':_0x418eba(0xbd),'mirrors':{'prefer':_0x418eba(0xcc),'giteeOrg':_0x418eba(0xd1)+ORG,'githubOrg':'https://github.com/'+ORG},'scaffolds':{'full':{'key':_0x418eba(0xd6),'title':_0x418eba(0xd3),'desc':_0x418eba(0xd2),'repo':'vome-plugin-full','repoUrl':giteeRepo('vome-plugin-full'),'githubRepoUrl':githubRepo('vome-plugin-full'),'downloadUrl':giteeArchive(_0x418eba(0xcb)),'githubDownloadUrl':githubArchive(_0x418eba(0xcb))},'backend':{'key':_0x418eba(0xc1),'title':_0x418eba(0xce),'desc':_0x418eba(0xc7),'repo':_0x418eba(0xc9),'repoUrl':giteeRepo(_0x418eba(0xc9)),'githubRepoUrl':githubRepo('vome-plugin-service'),'downloadUrl':giteeArchive('vome-plugin-service'),'githubDownloadUrl':githubArchive(_0x418eba(0xc9))},'frontend':{'key':_0x418eba(0xbc),'title':_0x418eba(0xc8),'desc':_0x418eba(0xd4),'repo':_0x418eba(0xca),'repoUrl':giteeRepo(_0x418eba(0xca)),'githubRepoUrl':githubRepo(_0x418eba(0xca)),'downloadUrl':giteeArchive('vome-plugin-front'),'githubDownloadUrl':githubArchive('vome-plugin-front')}}};
|
|
@@ -16,6 +16,24 @@
|
|
|
16
16
|
>
|
|
17
17
|
<i :class="btn.icon" aria-hidden="true" />
|
|
18
18
|
</button>
|
|
19
|
+
<button
|
|
20
|
+
type="button"
|
|
21
|
+
class="vm-richtext__tool"
|
|
22
|
+
title="插入图片"
|
|
23
|
+
:disabled="disabled || uploading || !uploadImage"
|
|
24
|
+
@mousedown.prevent
|
|
25
|
+
@click="pickImage"
|
|
26
|
+
>
|
|
27
|
+
<i class="ri-image-add-line" aria-hidden="true" />
|
|
28
|
+
</button>
|
|
29
|
+
<input
|
|
30
|
+
ref="fileRef"
|
|
31
|
+
type="file"
|
|
32
|
+
accept="image/*"
|
|
33
|
+
multiple
|
|
34
|
+
class="vm-richtext__file"
|
|
35
|
+
@change="onFileChange"
|
|
36
|
+
/>
|
|
19
37
|
</div>
|
|
20
38
|
|
|
21
39
|
<div
|
|
@@ -65,6 +83,7 @@ const RICH_TAGS = [
|
|
|
65
83
|
'pre',
|
|
66
84
|
'span',
|
|
67
85
|
'div',
|
|
86
|
+
'img',
|
|
68
87
|
]
|
|
69
88
|
|
|
70
89
|
const props = withDefaults(
|
|
@@ -76,6 +95,8 @@ const props = withDefaults(
|
|
|
76
95
|
placeholder?: string
|
|
77
96
|
/** 编辑区高度 */
|
|
78
97
|
height?: number | string
|
|
98
|
+
/** 上传图片,返回可访问 url;未传则无插图按钮且忽略图片粘贴 */
|
|
99
|
+
uploadImage?: (file: File) => Promise<string>
|
|
79
100
|
}>(),
|
|
80
101
|
{
|
|
81
102
|
readonly: false,
|
|
@@ -89,7 +110,9 @@ const emit = defineEmits<{
|
|
|
89
110
|
}>()
|
|
90
111
|
|
|
91
112
|
const editorRef = ref<HTMLElement | null>(null)
|
|
113
|
+
const fileRef = ref<HTMLInputElement | null>(null)
|
|
92
114
|
const innerHtml = ref('')
|
|
115
|
+
const uploading = ref(false)
|
|
93
116
|
|
|
94
117
|
const toolbar = [
|
|
95
118
|
{ cmd: 'bold', icon: 'ri-bold', title: '加粗' },
|
|
@@ -105,7 +128,7 @@ const toolbar = [
|
|
|
105
128
|
function sanitize(html: string) {
|
|
106
129
|
return DOMPurify.sanitize(html, {
|
|
107
130
|
ALLOWED_TAGS: RICH_TAGS,
|
|
108
|
-
ALLOWED_ATTR: ['href', 'target', 'rel', 'class'],
|
|
131
|
+
ALLOWED_ATTR: ['href', 'target', 'rel', 'class', 'src', 'alt', 'title', 'width', 'height'],
|
|
109
132
|
})
|
|
110
133
|
}
|
|
111
134
|
|
|
@@ -135,7 +158,79 @@ function onInput() {
|
|
|
135
158
|
emitHtml(editorRef.value.innerHTML)
|
|
136
159
|
}
|
|
137
160
|
|
|
138
|
-
function
|
|
161
|
+
function insertImageAtCursor(url: string, alt = 'image') {
|
|
162
|
+
const ed = editorRef.value
|
|
163
|
+
if (!ed) return
|
|
164
|
+
ed.focus()
|
|
165
|
+
const img = document.createElement('img')
|
|
166
|
+
img.src = url
|
|
167
|
+
img.alt = alt
|
|
168
|
+
const sel = window.getSelection()
|
|
169
|
+
if (sel?.rangeCount) {
|
|
170
|
+
const range = sel.getRangeAt(0)
|
|
171
|
+
if (ed.contains(range.commonAncestorContainer)) {
|
|
172
|
+
range.deleteContents()
|
|
173
|
+
range.insertNode(img)
|
|
174
|
+
range.setStartAfter(img)
|
|
175
|
+
range.collapse(true)
|
|
176
|
+
sel.removeAllRanges()
|
|
177
|
+
sel.addRange(range)
|
|
178
|
+
} else {
|
|
179
|
+
ed.appendChild(img)
|
|
180
|
+
}
|
|
181
|
+
} else {
|
|
182
|
+
ed.appendChild(img)
|
|
183
|
+
}
|
|
184
|
+
onInput()
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
async function uploadFiles(files: File[]) {
|
|
188
|
+
if (!props.uploadImage || !files.length || props.disabled || uploading.value) return
|
|
189
|
+
uploading.value = true
|
|
190
|
+
try {
|
|
191
|
+
for (const file of files) {
|
|
192
|
+
const url = await props.uploadImage(file)
|
|
193
|
+
const alt =
|
|
194
|
+
(file.name || 'image').replace(/\.[^.]+$/, '').trim() || 'image'
|
|
195
|
+
insertImageAtCursor(url, alt)
|
|
196
|
+
}
|
|
197
|
+
} finally {
|
|
198
|
+
uploading.value = false
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function pickImage() {
|
|
203
|
+
if (props.disabled || uploading.value || !props.uploadImage) return
|
|
204
|
+
fileRef.value?.click()
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
async function onFileChange(e: Event) {
|
|
208
|
+
const input = e.target as HTMLInputElement
|
|
209
|
+
const files = Array.from(input.files || []).filter((f) =>
|
|
210
|
+
f.type.startsWith('image/'),
|
|
211
|
+
)
|
|
212
|
+
input.value = ''
|
|
213
|
+
await uploadFiles(files)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
async function onPaste(e: ClipboardEvent) {
|
|
217
|
+
if (props.uploadImage && !props.disabled && !uploading.value) {
|
|
218
|
+
const items = e.clipboardData?.items
|
|
219
|
+
const files: File[] = []
|
|
220
|
+
if (items?.length) {
|
|
221
|
+
for (const item of Array.from(items)) {
|
|
222
|
+
if (item.kind === 'file' && item.type.startsWith('image/')) {
|
|
223
|
+
const file = item.getAsFile()
|
|
224
|
+
if (file) files.push(file)
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
if (files.length) {
|
|
229
|
+
e.preventDefault()
|
|
230
|
+
await uploadFiles(files)
|
|
231
|
+
return
|
|
232
|
+
}
|
|
233
|
+
}
|
|
139
234
|
e.preventDefault()
|
|
140
235
|
const text = e.clipboardData?.getData('text/plain') || ''
|
|
141
236
|
document.execCommand('insertText', false, text)
|
|
@@ -214,6 +309,10 @@ onMounted(() => {
|
|
|
214
309
|
}
|
|
215
310
|
}
|
|
216
311
|
|
|
312
|
+
.vm-richtext__file {
|
|
313
|
+
display: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
217
316
|
.vm-richtext__editor {
|
|
218
317
|
padding: 12px 14px;
|
|
219
318
|
outline: none;
|
|
@@ -233,6 +332,13 @@ onMounted(() => {
|
|
|
233
332
|
color: var(--brand);
|
|
234
333
|
text-decoration: underline;
|
|
235
334
|
}
|
|
335
|
+
|
|
336
|
+
:deep(img) {
|
|
337
|
+
max-width: 100%;
|
|
338
|
+
height: auto;
|
|
339
|
+
margin: 8px 0;
|
|
340
|
+
border-radius: 8px;
|
|
341
|
+
}
|
|
236
342
|
}
|
|
237
343
|
|
|
238
344
|
.vm-richtext__html {
|
|
@@ -257,6 +363,13 @@ onMounted(() => {
|
|
|
257
363
|
text-decoration: underline;
|
|
258
364
|
}
|
|
259
365
|
|
|
366
|
+
:deep(img) {
|
|
367
|
+
max-width: 100%;
|
|
368
|
+
height: auto;
|
|
369
|
+
margin: 8px 0;
|
|
370
|
+
border-radius: 8px;
|
|
371
|
+
}
|
|
372
|
+
|
|
260
373
|
:deep(h1),
|
|
261
374
|
:deep(h2),
|
|
262
375
|
:deep(h3),
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { CRUD_LABELS, DEFAULT_CRUD_DICT } from "./dict";
|
|
3
|
-
|
|
4
|
-
export { CRUD_LABELS, DEFAULT_CRUD_DICT };
|
|
5
|
-
export const DEFAULT_CRUD_PERMISSION = {
|
|
6
|
-
page: true,
|
|
7
|
-
list: true,
|
|
8
|
-
info: true,
|
|
9
|
-
add: true,
|
|
10
|
-
delete: true,
|
|
11
|
-
update: true
|
|
12
|
-
};
|
|
13
|
-
export function mergeDict(partial) {
|
|
14
|
-
const base = getCrudConfig().dict;
|
|
15
|
-
if (!partial)
|
|
16
|
-
return { ...base, label: { ...base.label } };
|
|
17
|
-
return {
|
|
18
|
-
...base,
|
|
19
|
-
...partial,
|
|
20
|
-
api: { ...base.api, ...partial.api },
|
|
21
|
-
pagination: { ...base.pagination, ...partial.pagination },
|
|
22
|
-
search: { ...base.search, ...partial.search },
|
|
23
|
-
sort: { ...base.sort, ...partial.sort },
|
|
24
|
-
label: { ...base.label, ...partial.label }
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export function mergePermission(partial, fromService) {
|
|
28
|
-
return {
|
|
29
|
-
...DEFAULT_CRUD_PERMISSION,
|
|
30
|
-
...fromService,
|
|
31
|
-
...partial
|
|
32
|
-
};
|
|
33
|
-
}
|
|
1
|
+
(function(_0x574cf2,_0x1b6bd8){const _0x38b339=_0x3dd3,_0x23825b=_0x574cf2();while(!![]){try{const _0x228156=parseInt(_0x38b339(0x100))/0x1+parseInt(_0x38b339(0x101))/0x2*(-parseInt(_0x38b339(0xfc))/0x3)+parseInt(_0x38b339(0xfa))/0x4+-parseInt(_0x38b339(0xfb))/0x5+-parseInt(_0x38b339(0x102))/0x6+-parseInt(_0x38b339(0x103))/0x7+parseInt(_0x38b339(0x104))/0x8;if(_0x228156===_0x1b6bd8)break;else _0x23825b['push'](_0x23825b['shift']());}catch(_0x21f368){_0x23825b['push'](_0x23825b['shift']());}}}(_0xfc65,0xa5971));import{getCrudConfig}from'./style';import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';function _0xfc65(){const _0x3994f5=['odi5ntmXsu5XA3Dt','odi0mZqYD2DKs09l','nZG1mZG2ogfIwLPYzW','mJe3nJiWmNDrALvxDG','mtqYnZiWmdHAvgPUsuW','zgLJDa','BgfIzwW','CgfNAw5HDgLVBG','mtqYnZG4meXcr1jUvG','mtmWmta1mevvDNHMwG','m3rjv1DSEG','C29YDa','yxbP','C2vHCMnO'];_0xfc65=function(){return _0x3994f5;};return _0xfc65();}function _0x3dd3(_0x44d1ab,_0x1ad4d2){_0x44d1ab=_0x44d1ab-0xf7;const _0xfc65ae=_0xfc65();let _0x3dd384=_0xfc65ae[_0x44d1ab];if(_0x3dd3['kiYdMF']===undefined){var _0xe63201=function(_0x1ab41e){const _0x2e5292='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5533e1='',_0x32d240='';for(let _0xa67115=0x0,_0x39b958,_0x3d471b,_0x4cd84d=0x0;_0x3d471b=_0x1ab41e['charAt'](_0x4cd84d++);~_0x3d471b&&(_0x39b958=_0xa67115%0x4?_0x39b958*0x40+_0x3d471b:_0x3d471b,_0xa67115++%0x4)?_0x5533e1+=String['fromCharCode'](0xff&_0x39b958>>(-0x2*_0xa67115&0x6)):0x0){_0x3d471b=_0x2e5292['indexOf'](_0x3d471b);}for(let _0x213391=0x0,_0x3c3c3d=_0x5533e1['length'];_0x213391<_0x3c3c3d;_0x213391++){_0x32d240+='%'+('00'+_0x5533e1['charCodeAt'](_0x213391)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32d240);};_0x3dd3['jJmuYL']=_0xe63201,_0x3dd3['sUcOOE']={},_0x3dd3['kiYdMF']=!![];}const _0x34375c=_0xfc65ae[0x0],_0x58c75d=_0x44d1ab+_0x34375c,_0xb00279=_0x3dd3['sUcOOE'][_0x58c75d];return!_0xb00279?(_0x3dd384=_0x3dd3['jJmuYL'](_0x3dd384),_0x3dd3['sUcOOE'][_0x58c75d]=_0x3dd384):_0x3dd384=_0xb00279,_0x3dd384;}export{CRUD_LABELS,DEFAULT_CRUD_DICT};export const DEFAULT_CRUD_PERMISSION={'page':!![],'list':!![],'info':!![],'add':!![],'delete':!![],'update':!![]};export function mergeDict(_0x5533e1){const _0x32f314=_0x3dd3,_0x32d240=getCrudConfig()[_0x32f314(0xf7)];if(!_0x5533e1)return{..._0x32d240,'label':{..._0x32d240['label']}};return{..._0x32d240,..._0x5533e1,'api':{..._0x32d240[_0x32f314(0xfe)],..._0x5533e1[_0x32f314(0xfe)]},'pagination':{..._0x32d240[_0x32f314(0xf9)],..._0x5533e1[_0x32f314(0xf9)]},'search':{..._0x32d240[_0x32f314(0xff)],..._0x5533e1[_0x32f314(0xff)]},'sort':{..._0x32d240[_0x32f314(0xfd)],..._0x5533e1[_0x32f314(0xfd)]},'label':{..._0x32d240[_0x32f314(0xf8)],..._0x5533e1[_0x32f314(0xf8)]}};}export function mergePermission(_0xa67115,_0x39b958){return{...DEFAULT_CRUD_PERMISSION,..._0x39b958,..._0xa67115};}
|
|
@@ -1,97 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Dialog,
|
|
4
|
-
DialogContent,
|
|
5
|
-
DialogFooter,
|
|
6
|
-
DialogHeader,
|
|
7
|
-
DialogTitle
|
|
8
|
-
} from "#vome-host/components/ui/dialog";
|
|
9
|
-
export function vmConfirm(options) {
|
|
10
|
-
const opts = typeof options === "string" ? { message: options } : options;
|
|
11
|
-
return new Promise((resolve) => {
|
|
12
|
-
const open = ref(true);
|
|
13
|
-
const host = document.createElement("div");
|
|
14
|
-
document.body.appendChild(host);
|
|
15
|
-
const app = createApp({
|
|
16
|
-
setup() {
|
|
17
|
-
function finish(ok) {
|
|
18
|
-
open.value = false;
|
|
19
|
-
resolve(ok);
|
|
20
|
-
setTimeout(() => {
|
|
21
|
-
app.unmount();
|
|
22
|
-
host.remove();
|
|
23
|
-
}, 200);
|
|
24
|
-
}
|
|
25
|
-
return () => h(Dialog, {
|
|
26
|
-
open: open.value,
|
|
27
|
-
"onUpdate:open": (v) => {
|
|
28
|
-
if (!v)
|
|
29
|
-
finish(false);
|
|
30
|
-
}
|
|
31
|
-
}, {
|
|
32
|
-
default: () => h(DialogContent, { class: "vm-confirm", showCloseButton: false }, {
|
|
33
|
-
default: () => [
|
|
34
|
-
h(DialogHeader, { class: "vm-confirm__head" }, () => h(DialogTitle, { class: "vm-confirm__title" }, () => opts.title || "提示")),
|
|
35
|
-
h("div", { class: "vm-confirm__body" }, opts.message),
|
|
36
|
-
h(DialogFooter, { class: "vm-confirm__foot" }, () => [
|
|
37
|
-
h("button", {
|
|
38
|
-
type: "button",
|
|
39
|
-
class: "vm-confirm__btn is-ghost",
|
|
40
|
-
onClick: () => finish(false)
|
|
41
|
-
}, opts.cancelText || "取消"),
|
|
42
|
-
h("button", {
|
|
43
|
-
type: "button",
|
|
44
|
-
class: "vm-confirm__btn is-primary",
|
|
45
|
-
onClick: () => finish(true)
|
|
46
|
-
}, opts.confirmText || "确定")
|
|
47
|
-
])
|
|
48
|
-
]
|
|
49
|
-
})
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
app.mount(host);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
if (typeof document !== "undefined" && !document.getElementById("vm-confirm-style")) {
|
|
57
|
-
const style = document.createElement("style");
|
|
58
|
-
style.id = "vm-confirm-style";
|
|
59
|
-
style.textContent = `
|
|
60
|
-
.vm-confirm[data-slot='dialog-content'] {
|
|
61
|
-
width: min(400px, calc(100vw - 32px)) !important;
|
|
62
|
-
max-width: min(400px, calc(100vw - 32px)) !important;
|
|
63
|
-
gap: 0 !important;
|
|
64
|
-
padding: 0 !important;
|
|
65
|
-
border: none !important;
|
|
66
|
-
border-radius: 24px !important;
|
|
67
|
-
box-shadow: var(--shadow-soft) !important;
|
|
68
|
-
}
|
|
69
|
-
.vm-confirm__head { padding: 18px 22px 0; border-bottom: none; }
|
|
70
|
-
.vm-confirm__title { font-size: 16px; font-weight: 650; }
|
|
71
|
-
.vm-confirm__body {
|
|
72
|
-
padding: 12px 22px 8px;
|
|
73
|
-
color: var(--foreground);
|
|
74
|
-
font-size: 14px;
|
|
75
|
-
line-height: 1.6;
|
|
76
|
-
}
|
|
77
|
-
.vm-confirm__foot {
|
|
78
|
-
display: flex;
|
|
79
|
-
justify-content: flex-end;
|
|
80
|
-
gap: 8px;
|
|
81
|
-
padding: 14px 22px;
|
|
82
|
-
}
|
|
83
|
-
.vm-confirm__btn {
|
|
84
|
-
height: 36px;
|
|
85
|
-
padding: 0 16px;
|
|
86
|
-
border: none;
|
|
87
|
-
border-radius: 12px;
|
|
88
|
-
font-size: 13px;
|
|
89
|
-
font-weight: 600;
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
}
|
|
92
|
-
.vm-confirm__btn.is-primary { background: var(--brand); color: #fff; }
|
|
93
|
-
.vm-confirm__btn.is-primary:hover { background: var(--brand-deep); }
|
|
94
|
-
.vm-confirm__btn.is-ghost { background: var(--muted); color: var(--foreground); }
|
|
95
|
-
`;
|
|
96
|
-
document.head.appendChild(style);
|
|
97
|
-
}
|
|
1
|
+
const _0x1ae480=_0x51db;function _0x1cc9(){const _0x572693=['z2v0rwXLBwvUDej5swq','C3rYAw5N','mtjivM5pALi','m0DuBgfyCa','yNv0Dg9U','Dgv4DenVBNrLBNq','zgL2','oe5crg9mwa','mtaXnZfWz2HuBNy','C3r5Bgu','CMvTB3zL','cI52Bs1JB25MAxjTw2rHDgeTC2XVDd0NzgLHBg9NlwnVBNrLBNqNxsb7cIaGD2LKDgG6ig1PBIG0mdbWEcWGy2fSyYGXmdb2DYaTidmYChGPksaHAw1WB3j0yw50oWOGig1HEc13Awr0AdOGBwLUkdqWmhb4lcbJywXJkdeWmhz3ic0GmZjWEcKPicfPBxbVCNrHBNq7cIaGz2fWoIaWicfPBxbVCNrHBNq7cIaGCgfKzgLUzZOGmcaHAw1WB3j0yw50oWOGigjVCMrLCJOGBM9UzsaHAw1WB3j0yw50oWOGigjVCMrLCI1YywrPDxm6idi0ChGGiwLTCg9YDgfUDdSkicbIB3GTC2HHzg93oIb2yxiOls1ZAgfKB3CTC29MDcKGiwLTCg9YDgfUDdSkFqOUDM0Ty29UzMLYBv9FAgvHzcb7ihbHzgrPBMC6ide4ChGGmJjWEcaWoYbIB3jKzxiTyM90Dg9ToIbUB25LoYb9cI52Bs1JB25MAxjTx190AxrSzsb7igzVBNqTC2L6ztOGmtzWEdSGzM9UDc13zwLNAhq6idy1mdSGFqOUDM0Ty29UzMLYBv9FyM9KEsb7cIaGCgfKzgLUzZOGmtjWEcaYmNb4idHWEdSkicbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7cIaGzM9UDc1ZAxPLoIaXnhb4oWOGigXPBMuTAgvPz2H0oIaXlJy7cN0klNzTlwnVBMzPCM1Fx2zVB3qGEWOGigrPC3bSyxK6igzSzxG7cIaGANvZDgLMEs1JB250zw50oIbMBgv4lwvUzdSkicbNyxa6idHWEdSkicbWywrKAw5NoIaXnhb4idiYChG7cN0klNzTlwnVBMzPCM1Fx2j0BIb7cIaGAgvPz2H0oIaZnNb4oWOGihbHzgrPBMC6idaGmtzWEdSkicbIB3jKzxi6ig5VBMu7cIaGyM9YzgvYlxjHzgL1CZOGmtjWEdSkicbMB250lxnPEMu6ideZChG7cIaGzM9UDc13zwLNAhq6idyWmdSkicbJDxjZB3i6ihbVAw50zxi7cN0klNzTlwnVBMzPCM1Fx2j0BI5PCY1WCMLTyxj5ihSGyMfJA2DYB3vUzdOGDMfYkc0TyNjHBMqPoYbJB2XVCJOGi2zMzJSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlxbYAw1HCNK6Ag92zxiGEYbIywnRz3jVDw5KoIb2yxiOls1ICMfUzc1KzwvWktSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlwDOB3n0ihSGyMfJA2DYB3vUzdOGDMfYkc0TBxv0zwqPoYbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7ih0k','DMfSDwu','nvfSEeTwvq','y2fUy2vSvgv4Da','DM0Ty29UzMLYBv9FAgvHza','Dw5KzwzPBMvK','mJDfBwr1zNi','ndGWmJC0vfvREvnV','Dw5TB3vUDa','DM0Ty29UzMLYBv9FyNrUigLZlxbYAw1HCNK','y3jLyxrLrwXLBwvUDa','mtK2ntyZnhjqA2DVuG','mtC4otiWnK9VAvvfzW','DM0Ty29UzMLYBv9FDgL0Bgu','AgvHza','mtqXnJC4rM9Ny0zr','y29UzMLYBvrLEhq','DM0Ty29UzMLYBs1ZDhLSzq','ody1mtuYA2jsswH4','DM0Ty29UzMLYBv9FyM9KEq','mJq0nJyWtgTdqvDd'];_0x1cc9=function(){return _0x572693;};return _0x1cc9();}(function(_0x10efd9,_0x3cd4ea){const _0x1dbecf=_0x51db,_0x3f93dd=_0x10efd9();while(!![]){try{const _0x5bf90f=-parseInt(_0x1dbecf(0xa1))/0x1+parseInt(_0x1dbecf(0x99))/0x2*(parseInt(_0x1dbecf(0xaa))/0x3)+-parseInt(_0x1dbecf(0xa4))/0x4+-parseInt(_0x1dbecf(0x94))/0x5*(-parseInt(_0x1dbecf(0x9e))/0x6)+parseInt(_0x1dbecf(0x8f))/0x7*(-parseInt(_0x1dbecf(0x8e))/0x8)+-parseInt(_0x1dbecf(0x98))/0x9*(parseInt(_0x1dbecf(0xa6))/0xa)+parseInt(_0x1dbecf(0x9d))/0xb*(parseInt(_0x1dbecf(0xa9))/0xc);if(_0x5bf90f===_0x3cd4ea)break;else _0x3f93dd['push'](_0x3f93dd['shift']());}catch(_0x5a873e){_0x3f93dd['push'](_0x3f93dd['shift']());}}}(_0x1cc9,0x45637));import{createApp,h,ref}from'vue';function _0x51db(_0x3178ad,_0x549bed){_0x3178ad=_0x3178ad-0x8d;const _0x1cc9f0=_0x1cc9();let _0x51dbb7=_0x1cc9f0[_0x3178ad];if(_0x51db['ACSXqD']===undefined){var _0x5194d2=function(_0x1c1ec0){const _0x103d81='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x25ea44='',_0x336882='';for(let _0x28497c=0x0,_0x4e787f,_0xe72d43,_0x2c2143=0x0;_0xe72d43=_0x1c1ec0['charAt'](_0x2c2143++);~_0xe72d43&&(_0x4e787f=_0x28497c%0x4?_0x4e787f*0x40+_0xe72d43:_0xe72d43,_0x28497c++%0x4)?_0x25ea44+=String['fromCharCode'](0xff&_0x4e787f>>(-0x2*_0x28497c&0x6)):0x0){_0xe72d43=_0x103d81['indexOf'](_0xe72d43);}for(let _0x5c1294=0x0,_0x385532=_0x25ea44['length'];_0x5c1294<_0x385532;_0x5c1294++){_0x336882+='%'+('00'+_0x25ea44['charCodeAt'](_0x5c1294)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x336882);};_0x51db['yGqKBn']=_0x5194d2,_0x51db['TMJXtk']={},_0x51db['ACSXqD']=!![];}const _0x369cb5=_0x1cc9f0[0x0],_0x3da526=_0x3178ad+_0x369cb5,_0x213ac7=_0x51db['TMJXtk'][_0x3da526];return!_0x213ac7?(_0x51dbb7=_0x51db['yGqKBn'](_0x51dbb7),_0x51db['TMJXtk'][_0x3da526]=_0x51dbb7):_0x51dbb7=_0x213ac7,_0x51dbb7;}import{Dialog,DialogContent,DialogFooter,DialogHeader,DialogTitle}from'#vome-host/components/ui/dialog';export function vmConfirm(_0x25ea44){const _0x1b6dae=_0x51db,_0x336882=typeof _0x25ea44===_0x1b6dae(0xa8)?{'message':_0x25ea44}:_0x25ea44;return new Promise(_0x28497c=>{const _0x44b540=_0x1b6dae,_0x4e787f=ref(!![]),_0xe72d43=document[_0x44b540(0x9c)](_0x44b540(0x8d));document['body']['appendChild'](_0xe72d43);const _0x2c2143=createApp({'setup'(){const _0x2aa3a5=_0x44b540;function _0x5c1294(_0x385532){_0x4e787f['value']=![],_0x28497c(_0x385532),setTimeout(()=>{const _0xb89c71=_0x51db;_0x2c2143[_0xb89c71(0x9a)](),_0xe72d43[_0xb89c71(0x91)]();},0xc8);}return()=>h(Dialog,{'open':_0x4e787f[_0x2aa3a5(0x93)],'onUpdate:open':_0x2af54f=>{if(!_0x2af54f)_0x5c1294(![]);}},{'default':()=>h(DialogContent,{'class':'vm-confirm','showCloseButton':![]},{'default':()=>[h(DialogHeader,{'class':_0x2aa3a5(0x96)},()=>h(DialogTitle,{'class':_0x2aa3a5(0x9f)},()=>_0x336882['title']||'提示')),h('div',{'class':_0x2aa3a5(0xa5)},_0x336882['message']),h(DialogFooter,{'class':'vm-confirm__foot'},()=>[h('button',{'type':_0x2aa3a5(0xab),'class':'vm-confirm__btn\x20is-ghost','onClick':()=>_0x5c1294(![])},_0x336882[_0x2aa3a5(0x95)]||'取消'),h(_0x2aa3a5(0xab),{'type':_0x2aa3a5(0xab),'class':_0x2aa3a5(0x9b),'onClick':()=>_0x5c1294(!![])},_0x336882[_0x2aa3a5(0xa2)]||'确定')])]})});}});_0x2c2143['mount'](_0xe72d43);});}if(typeof document!==_0x1ae480(0x97)&&!document[_0x1ae480(0xa7)](_0x1ae480(0xa3))){const style=document['createElement'](_0x1ae480(0x90));style['id']=_0x1ae480(0xa3),style[_0x1ae480(0xac)]=_0x1ae480(0x92),document[_0x1ae480(0xa0)]['appendChild'](style);}
|
package/dist/admin/crud/dict.js
CHANGED
|
@@ -1,48 +1 @@
|
|
|
1
|
-
export const CRUD_LABELS = {
|
|
2
|
-
op: "操作",
|
|
3
|
-
add: "新增",
|
|
4
|
-
delete: "删除",
|
|
5
|
-
multiDelete: "删除",
|
|
6
|
-
export: "导出",
|
|
7
|
-
import: "导入",
|
|
8
|
-
update: "编辑",
|
|
9
|
-
refresh: "刷新",
|
|
10
|
-
info: "详情",
|
|
11
|
-
search: "搜索",
|
|
12
|
-
reset: "重置",
|
|
13
|
-
clear: "清空",
|
|
14
|
-
save: "保存",
|
|
15
|
-
close: "取消",
|
|
16
|
-
confirm: "确定",
|
|
17
|
-
advSearch: "高级搜索",
|
|
18
|
-
searchKey: "搜索关键字",
|
|
19
|
-
placeholder: "请输入",
|
|
20
|
-
tips: "提示",
|
|
21
|
-
saveSuccess: "保存成功",
|
|
22
|
-
deleteSuccess: "删除成功",
|
|
23
|
-
deleteConfirm: "此操作将数据标记为已删除,是否继续?",
|
|
24
|
-
forceDeleteConfirm: "此操作将永久删除选中数据,是否继续?",
|
|
25
|
-
empty: "暂无数据",
|
|
26
|
-
desc: "降序",
|
|
27
|
-
asc: "升序",
|
|
28
|
-
select: "选择",
|
|
29
|
-
deselect: "取消选择",
|
|
30
|
-
seeMore: "查看更多",
|
|
31
|
-
hideContent: "隐藏内容",
|
|
32
|
-
nonEmpty: "不能为空"
|
|
33
|
-
};
|
|
34
|
-
export const DEFAULT_CRUD_DICT = {
|
|
35
|
-
primaryId: "id",
|
|
36
|
-
api: {
|
|
37
|
-
list: "list",
|
|
38
|
-
add: "add",
|
|
39
|
-
update: "update",
|
|
40
|
-
delete: "delete",
|
|
41
|
-
info: "info",
|
|
42
|
-
page: "page"
|
|
43
|
-
},
|
|
44
|
-
pagination: { page: "page", size: "size" },
|
|
45
|
-
search: { keyWord: "keyWord", query: "query" },
|
|
46
|
-
sort: { prop: "order", order: "sort" },
|
|
47
|
-
label: CRUD_LABELS
|
|
48
|
-
};
|
|
1
|
+
function _0x514f(_0x5e1c12,_0x25831d){_0x5e1c12=_0x5e1c12-0x199;const _0x195fce=_0x195f();let _0x514f9b=_0x195fce[_0x5e1c12];if(_0x514f['OuOGxf']===undefined){var _0x58bab4=function(_0x4b675b){const _0xd18925='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x26ff09='',_0x10fdae='';for(let _0x174801=0x0,_0x2de8d8,_0x1cb240,_0x85264b=0x0;_0x1cb240=_0x4b675b['charAt'](_0x85264b++);~_0x1cb240&&(_0x2de8d8=_0x174801%0x4?_0x2de8d8*0x40+_0x1cb240:_0x1cb240,_0x174801++%0x4)?_0x26ff09+=String['fromCharCode'](0xff&_0x2de8d8>>(-0x2*_0x174801&0x6)):0x0){_0x1cb240=_0xd18925['indexOf'](_0x1cb240);}for(let _0x462e36=0x0,_0x20842b=_0x26ff09['length'];_0x462e36<_0x20842b;_0x462e36++){_0x10fdae+='%'+('00'+_0x26ff09['charCodeAt'](_0x462e36)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10fdae);};_0x514f['BIAxwO']=_0x58bab4,_0x514f['WKeIrK']={},_0x514f['OuOGxf']=!![];}const _0x3af0cd=_0x195fce[0x0],_0x211528=_0x5e1c12+_0x3af0cd,_0x1840dd=_0x514f['WKeIrK'][_0x211528];return!_0x1840dd?(_0x514f9b=_0x514f['BIAxwO'](_0x514f9b),_0x514f['WKeIrK'][_0x211528]=_0x514f9b):_0x514f9b=_0x1840dd,_0x514f9b;}const _0x1856ae=_0x514f;(function(_0x1b1d37,_0xa38fef){const _0x53a3a0=_0x514f,_0x35a401=_0x1b1d37();while(!![]){try{const _0x17dec5=-parseInt(_0x53a3a0(0x1a0))/0x1+-parseInt(_0x53a3a0(0x19f))/0x2+-parseInt(_0x53a3a0(0x1a6))/0x3+-parseInt(_0x53a3a0(0x1b1))/0x4*(parseInt(_0x53a3a0(0x19e))/0x5)+-parseInt(_0x53a3a0(0x19c))/0x6+parseInt(_0x53a3a0(0x199))/0x7*(parseInt(_0x53a3a0(0x1ac))/0x8)+parseInt(_0x53a3a0(0x1b0))/0x9;if(_0x17dec5===_0xa38fef)break;else _0x35a401['push'](_0x35a401['shift']());}catch(_0x3093e2){_0x35a401['push'](_0x35a401['shift']());}}}(_0x195f,0x723f9));export const CRUD_LABELS={'op':'操作','add':'新增','delete':'删除','multiDelete':'删除','export':'导出','import':'导入','update':'编辑','refresh':'刷新','info':'详情','search':'搜索','reset':'重置','clear':'清空','save':'保存','close':'取消','confirm':'确定','advSearch':_0x1856ae(0x1a1),'searchKey':'搜索关键字','placeholder':'请输入','tips':'提示','saveSuccess':_0x1856ae(0x1a2),'deleteSuccess':'删除成功','deleteConfirm':'此操作将数据标记为已删除,是否继续?','forceDeleteConfirm':_0x1856ae(0x1ad),'empty':'暂无数据','desc':'降序','asc':'升序','select':'选择','deselect':_0x1856ae(0x1a8),'seeMore':'查看更多','hideContent':_0x1856ae(0x1ab),'nonEmpty':_0x1856ae(0x1b2)};function _0x195f(){const _0xf9649=['ndyZnJuYnfPgsuLAyW','CgfNzq','nZiYnuPjyK5Nua','otu4mJeYrfrMu2LH','nJaYntGZvu5QrNbK','6AUy57QN5PcC57sI','5l+D5A2y5OIq5yQF','C2L6zq','DxbKyxrL','ywrK','mta0nZyWDe5oCNjc','B3jKzxi','5y+w5RAi6ycj5OUP','zgvSzxrL','CxvLCNK','6zQq6jEp5yAf5A65','mtGZmNzyt0PjDW','5Q2K5Pon5l2C5Bcg5Rc45lMf5yIG6zMK6ycj5lIT5PwW5O2U77Ym5PIV5zcM57UN57UT77YF','BgLZDa','A2v5v29Yza','mJa1otC1otHQyMvHDMm','mtaZmLfJy09lAq','5lIn6io95lI656M6','mtm0otz6ELnNBKy','Aw5MBW','C29YDa'];_0x195f=function(){return _0xf9649;};return _0x195f();}export const DEFAULT_CRUD_DICT={'primaryId':'id','api':{'list':_0x1856ae(0x1ae),'add':_0x1856ae(0x1a5),'update':_0x1856ae(0x1a4),'delete':_0x1856ae(0x1a9),'info':_0x1856ae(0x19a),'page':_0x1856ae(0x19d)},'pagination':{'page':_0x1856ae(0x19d),'size':_0x1856ae(0x1a3)},'search':{'keyWord':_0x1856ae(0x1af),'query':_0x1856ae(0x1aa)},'sort':{'prop':_0x1856ae(0x1a7),'order':_0x1856ae(0x19b)},'label':CRUD_LABELS};
|
package/dist/admin/crud/index.js
CHANGED
|
@@ -1,74 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as VmSearch } from "./vm-search.vue";
|
|
3
|
-
export { default as VmSearchKey } from "./vm-search-key.vue";
|
|
4
|
-
export { default as VmTable } from "./vm-table.vue";
|
|
5
|
-
export { default as VmPagination } from "./vm-pagination.vue";
|
|
6
|
-
export { default as VmUpsert } from "./vm-upsert.vue";
|
|
7
|
-
export { default as VmToolbar } from "./vm-toolbar.vue";
|
|
8
|
-
export { default as VmRow } from "./vm-row.vue";
|
|
9
|
-
export { default as VmFlex } from "./vm-flex.vue";
|
|
10
|
-
export { default as VmAddBtn } from "./vm-add-btn.vue";
|
|
11
|
-
export { default as VmRefreshBtn } from "./vm-refresh-btn.vue";
|
|
12
|
-
export { default as VmMultiDeleteBtn } from "./vm-multi-delete-btn.vue";
|
|
13
|
-
export { default as VmExportBtn } from "./vm-export-btn.vue";
|
|
14
|
-
export { default as VmImportBtn } from "./vm-import-btn.vue";
|
|
15
|
-
export { default as VmForm } from "./vm-form.vue";
|
|
16
|
-
export { default as VmAdvSearch } from "./vm-adv-search.vue";
|
|
17
|
-
export { default as VmSwitch } from "./components/vm-switch.vue";
|
|
18
|
-
export { default as VmColorPicker } from "./components/vm-color-picker.vue";
|
|
19
|
-
export { default as VmSelect } from "./components/vm-select.vue";
|
|
20
|
-
export { default as VmTreeSelect } from "./components/vm-tree-select.vue";
|
|
21
|
-
export { default as VmRadio } from "./components/vm-radio.vue";
|
|
22
|
-
export { default as VmDateText } from "./components/vm-date-text.vue";
|
|
23
|
-
export { default as VmDatePicker } from "./components/vm-date-picker.vue";
|
|
24
|
-
export { default as VmDateRange } from "./components/vm-date-range.vue";
|
|
25
|
-
export { default as VmNumberRange } from "./components/vm-number-range.vue";
|
|
26
|
-
export { default as VmMultiSelect } from "./components/vm-multi-select.vue";
|
|
27
|
-
export { default as VmDictTag } from "./components/vm-dict-tag.vue";
|
|
28
|
-
export { default as VmUserSelect } from "./components/vm-user-select.vue";
|
|
29
|
-
export { default as VmColumnCustom } from "./components/vm-column-custom.vue";
|
|
30
|
-
export { default as VmContextMenu } from "./components/vm-context-menu.vue";
|
|
31
|
-
export { default as VmUpload } from "./components/vm-upload.vue";
|
|
32
|
-
export { default as VmUploadItem } from "./components/vm-upload-item.vue";
|
|
33
|
-
export { default as VmPreviewViewer } from "./components/vm-preview-viewer.vue";
|
|
34
|
-
export { default as VmRichtext } from "./components/vm-richtext.vue";
|
|
35
|
-
export { default as VmJsonCode } from "./components/vm-json-code.vue";
|
|
36
|
-
export { default as VmJsonEditor } from "./components/vm-json-editor.vue";
|
|
37
|
-
export { default as VmStatusTag } from "./components/vm-status-tag.vue";
|
|
38
|
-
export { default as VmTagList } from "./components/vm-tag-list.vue";
|
|
39
|
-
export { default as VmAvatar } from "./components/vm-avatar.vue";
|
|
40
|
-
export { default as VmTextLink } from "./components/vm-text-link.vue";
|
|
41
|
-
export { default as VmCopyBtn } from "./components/vm-copy-btn.vue";
|
|
42
|
-
export { default as VmFormHint } from "./components/vm-form-hint.vue";
|
|
43
|
-
export { default as VmDatetimePicker } from "./components/vm-datetime-picker.vue";
|
|
44
|
-
export { default as VmEllipsisText } from "./components/vm-ellipsis-text.vue";
|
|
45
|
-
export { default as VmKvRow } from "./components/vm-kv-row.vue";
|
|
46
|
-
export { default as VmToggleSwitch } from "./components/vm-toggle-switch.vue";
|
|
47
|
-
export { vmConfirm } from "./confirm";
|
|
48
|
-
export {
|
|
49
|
-
useCrud,
|
|
50
|
-
useTable,
|
|
51
|
-
useUpsert,
|
|
52
|
-
useSearch,
|
|
53
|
-
useCore,
|
|
54
|
-
CRUD_KEY
|
|
55
|
-
} from "./useCrud";
|
|
56
|
-
export { Plugins, toTree, setFocus, setRules, setAuto, buildAutoSearchItems } from "./plugins";
|
|
57
|
-
export { deepTree, flattenTree } from "../lib/tree";
|
|
58
|
-
export { resolveCrudComponent, registerCrudComponent } from "./registry";
|
|
59
|
-
export {
|
|
60
|
-
setCrudConfig,
|
|
61
|
-
getCrudConfig,
|
|
62
|
-
getCrudStyle,
|
|
63
|
-
DEFAULT_CRUD_STYLE
|
|
64
|
-
} from "./style";
|
|
65
|
-
export {
|
|
66
|
-
FORM_COLS_DESKTOP,
|
|
67
|
-
FORM_COLS_MOBILE,
|
|
68
|
-
FORM_SPAN_FULL,
|
|
69
|
-
FORM_MQ_MOBILE,
|
|
70
|
-
getFormCols,
|
|
71
|
-
resolveFormSpan,
|
|
72
|
-
useFormCols
|
|
73
|
-
} from "./span";
|
|
74
|
-
export { mergeDict, mergePermission, DEFAULT_CRUD_DICT, CRUD_LABELS } from "./config";
|
|
1
|
+
(function(_0x228954,_0x2684e1){var _0x23d57e=_0x4828,_0x5573cb=_0x228954();while(!![]){try{var _0x3c7d14=-parseInt(_0x23d57e(0x135))/0x1*(parseInt(_0x23d57e(0x138))/0x2)+parseInt(_0x23d57e(0x133))/0x3+parseInt(_0x23d57e(0x136))/0x4*(parseInt(_0x23d57e(0x137))/0x5)+-parseInt(_0x23d57e(0x13a))/0x6+-parseInt(_0x23d57e(0x132))/0x7+parseInt(_0x23d57e(0x13b))/0x8+-parseInt(_0x23d57e(0x139))/0x9*(-parseInt(_0x23d57e(0x134))/0xa);if(_0x3c7d14===_0x2684e1)break;else _0x5573cb['push'](_0x5573cb['shift']());}catch(_0x472940){_0x5573cb['push'](_0x5573cb['shift']());}}}(_0x2eab,0x82a79));export{default as VmCrud}from'./vm-crud.vue';export{default as VmSearch}from'./vm-search.vue';export{default as VmSearchKey}from'./vm-search-key.vue';export{default as VmTable}from'./vm-table.vue';export{default as VmPagination}from'./vm-pagination.vue';export{default as VmUpsert}from'./vm-upsert.vue';export{default as VmToolbar}from'./vm-toolbar.vue';export{default as VmRow}from'./vm-row.vue';export{default as VmFlex}from'./vm-flex.vue';export{default as VmAddBtn}from'./vm-add-btn.vue';export{default as VmRefreshBtn}from'./vm-refresh-btn.vue';export{default as VmMultiDeleteBtn}from'./vm-multi-delete-btn.vue';export{default as VmExportBtn}from'./vm-export-btn.vue';export{default as VmImportBtn}from'./vm-import-btn.vue';export{default as VmForm}from'./vm-form.vue';export{default as VmAdvSearch}from'./vm-adv-search.vue';function _0x2eab(){var _0x57fd6a=['mtaYotmWChzTC3Dy','mZC1otnqDMTgrhm','mJm4mJiXmhz0zujxsq','nZC2odqZmKXkuw5Uwa','mJKYmJaYnhDrze91Dq','mJKXndu2rKXiu1Px','mtm5mePArMLIEa','mtb5sLPSuvO','mZzqvvzwy3K','mte5nZa1q1vuqLPw'];_0x2eab=function(){return _0x57fd6a;};return _0x2eab();}export{default as VmSwitch}from'./components/vm-switch.vue';export{default as VmColorPicker}from'./components/vm-color-picker.vue';export{default as VmSelect}from'./components/vm-select.vue';export{default as VmTreeSelect}from'./components/vm-tree-select.vue';export{default as VmRadio}from'./components/vm-radio.vue';export{default as VmDateText}from'./components/vm-date-text.vue';export{default as VmDatePicker}from'./components/vm-date-picker.vue';export{default as VmDateRange}from'./components/vm-date-range.vue';export{default as VmNumberRange}from'./components/vm-number-range.vue';export{default as VmMultiSelect}from'./components/vm-multi-select.vue';export{default as VmDictTag}from'./components/vm-dict-tag.vue';export{default as VmUserSelect}from'./components/vm-user-select.vue';export{default as VmColumnCustom}from'./components/vm-column-custom.vue';export{default as VmContextMenu}from'./components/vm-context-menu.vue';export{default as VmUpload}from'./components/vm-upload.vue';export{default as VmUploadItem}from'./components/vm-upload-item.vue';export{default as VmPreviewViewer}from'./components/vm-preview-viewer.vue';export{default as VmRichtext}from'./components/vm-richtext.vue';function _0x4828(_0x21dcfc,_0x160a49){_0x21dcfc=_0x21dcfc-0x132;var _0x2eabd7=_0x2eab();var _0x482813=_0x2eabd7[_0x21dcfc];if(_0x4828['MURiuz']===undefined){var _0x3c82ca=function(_0xa4dc14){var _0x329221='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2e1dc3='',_0x18c33f='';for(var _0x340428=0x0,_0x39496d,_0x1e0085,_0x1d17ea=0x0;_0x1e0085=_0xa4dc14['charAt'](_0x1d17ea++);~_0x1e0085&&(_0x39496d=_0x340428%0x4?_0x39496d*0x40+_0x1e0085:_0x1e0085,_0x340428++%0x4)?_0x2e1dc3+=String['fromCharCode'](0xff&_0x39496d>>(-0x2*_0x340428&0x6)):0x0){_0x1e0085=_0x329221['indexOf'](_0x1e0085);}for(var _0x5af205=0x0,_0x331e3a=_0x2e1dc3['length'];_0x5af205<_0x331e3a;_0x5af205++){_0x18c33f+='%'+('00'+_0x2e1dc3['charCodeAt'](_0x5af205)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x18c33f);};_0x4828['eJLWAR']=_0x3c82ca,_0x4828['oOfdYI']={},_0x4828['MURiuz']=!![];}var _0x58db83=_0x2eabd7[0x0],_0x55cfbf=_0x21dcfc+_0x58db83,_0xe75aca=_0x4828['oOfdYI'][_0x55cfbf];return!_0xe75aca?(_0x482813=_0x4828['eJLWAR'](_0x482813),_0x4828['oOfdYI'][_0x55cfbf]=_0x482813):_0x482813=_0xe75aca,_0x482813;}export{default as VmJsonCode}from'./components/vm-json-code.vue';export{default as VmJsonEditor}from'./components/vm-json-editor.vue';export{default as VmStatusTag}from'./components/vm-status-tag.vue';export{default as VmTagList}from'./components/vm-tag-list.vue';export{default as VmAvatar}from'./components/vm-avatar.vue';export{default as VmTextLink}from'./components/vm-text-link.vue';export{default as VmCopyBtn}from'./components/vm-copy-btn.vue';export{default as VmFormHint}from'./components/vm-form-hint.vue';export{default as VmDatetimePicker}from'./components/vm-datetime-picker.vue';export{default as VmEllipsisText}from'./components/vm-ellipsis-text.vue';export{default as VmKvRow}from'./components/vm-kv-row.vue';export{default as VmToggleSwitch}from'./components/vm-toggle-switch.vue';export{vmConfirm}from'./confirm';export{useCrud,useTable,useUpsert,useSearch,useCore,CRUD_KEY}from'./useCrud';export{Plugins,toTree,setFocus,setRules,setAuto,buildAutoSearchItems}from'./plugins';export{deepTree,flattenTree}from'../lib/tree';export{resolveCrudComponent,registerCrudComponent}from'./registry';export{setCrudConfig,getCrudConfig,getCrudStyle,DEFAULT_CRUD_STYLE}from'./style';export{FORM_COLS_DESKTOP,FORM_COLS_MOBILE,FORM_SPAN_FULL,FORM_MQ_MOBILE,getFormCols,resolveFormSpan,useFormCols}from'./span';export{mergeDict,mergePermission,DEFAULT_CRUD_DICT,CRUD_LABELS}from'./config';
|
package/dist/admin/crud/key.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
import { inject }
|
|
2
|
-
export const CRUD_KEY = Symbol("vm-crud");
|
|
3
|
-
export const CRUD_MITT_KEY = Symbol("vm-crud-mitt");
|
|
4
|
-
export const CRUD_OPTIONS_KEY = Symbol("useCrud__options");
|
|
5
|
-
export const TABLE_OPTIONS_KEY = Symbol("useTable__options");
|
|
6
|
-
export const UPSERT_OPTIONS_KEY = Symbol("useUpsert__options");
|
|
7
|
-
export const SEARCH_OPTIONS_KEY = Symbol("useSearch__options");
|
|
8
|
-
export const TABLE_API_KEY = Symbol("vm-table-api");
|
|
9
|
-
export function injectCrudOptions() {
|
|
10
|
-
return inject(CRUD_OPTIONS_KEY, undefined);
|
|
11
|
-
}
|
|
12
|
-
export function injectTableOptions() {
|
|
13
|
-
return inject(TABLE_OPTIONS_KEY, undefined);
|
|
14
|
-
}
|
|
15
|
-
export function injectUpsertOptions() {
|
|
16
|
-
return inject(UPSERT_OPTIONS_KEY, undefined);
|
|
17
|
-
}
|
|
18
|
-
export function injectSearchOptions() {
|
|
19
|
-
return inject(SEARCH_OPTIONS_KEY, undefined);
|
|
20
|
-
}
|
|
1
|
+
const _0xb92dee=_0x3ee7;(function(_0x4c07f1,_0x52396d){const _0x289883=_0x3ee7,_0x50c947=_0x4c07f1();while(!![]){try{const _0x5c2fb0=parseInt(_0x289883(0x1b3))/0x1*(parseInt(_0x289883(0x1ae))/0x2)+-parseInt(_0x289883(0x1b5))/0x3+parseInt(_0x289883(0x1b4))/0x4+-parseInt(_0x289883(0x1ac))/0x5+-parseInt(_0x289883(0x1b0))/0x6*(parseInt(_0x289883(0x1b9))/0x7)+parseInt(_0x289883(0x1ba))/0x8*(-parseInt(_0x289883(0x1b2))/0x9)+parseInt(_0x289883(0x1b6))/0xa;if(_0x5c2fb0===_0x52396d)break;else _0x50c947['push'](_0x50c947['shift']());}catch(_0x41040e){_0x50c947['push'](_0x50c947['shift']());}}}(_0x177a,0x47b4f));import{inject}from'vue';export const CRUD_KEY=Symbol(_0xb92dee(0x1af));export const CRUD_MITT_KEY=Symbol(_0xb92dee(0x1bb));export const CRUD_OPTIONS_KEY=Symbol('useCrud__options');export const TABLE_OPTIONS_KEY=Symbol(_0xb92dee(0x1b7));export const UPSERT_OPTIONS_KEY=Symbol(_0xb92dee(0x1b1));export const SEARCH_OPTIONS_KEY=Symbol(_0xb92dee(0x1ad));export const TABLE_API_KEY=Symbol(_0xb92dee(0x1b8));export function injectCrudOptions(){return inject(CRUD_OPTIONS_KEY,undefined);}function _0x177a(){const _0x46ee4f=['DxnLu2vHCMnOx19VChrPB25Z','nJjTEhPkteq','DM0Ty3j1za','nteWmtHdwxbyufO','DxnLvxbZzxj0x19VChrPB25Z','mtm4mtv3v2jbvuS','mtqXodfuCejnBhC','ntG3nZG0vwTSuMHn','mtmXmJi2m1zKDwTvDq','nta5otqWmen0C3rlrG','DxnLvgfIBgvFx29WDgLVBNm','DM0TDgfIBguTyxbP','odrSqvr1Bvu','ndCYueflqMPN','DM0Ty3j1zc1TAxr0','odyZodiWwvHqtxnR'];_0x177a=function(){return _0x46ee4f;};return _0x177a();}export function injectTableOptions(){return inject(TABLE_OPTIONS_KEY,undefined);}export function injectUpsertOptions(){return inject(UPSERT_OPTIONS_KEY,undefined);}function _0x3ee7(_0x1774ab,_0x2dd0e6){_0x1774ab=_0x1774ab-0x1ac;const _0x177a90=_0x177a();let _0x3ee7b3=_0x177a90[_0x1774ab];if(_0x3ee7['yeuNEM']===undefined){var _0x5ed68d=function(_0x309f3f){const _0x35a760='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1488aa='',_0x535ec0='';for(let _0xc2f43a=0x0,_0x3b9d93,_0x21aa78,_0x276817=0x0;_0x21aa78=_0x309f3f['charAt'](_0x276817++);~_0x21aa78&&(_0x3b9d93=_0xc2f43a%0x4?_0x3b9d93*0x40+_0x21aa78:_0x21aa78,_0xc2f43a++%0x4)?_0x1488aa+=String['fromCharCode'](0xff&_0x3b9d93>>(-0x2*_0xc2f43a&0x6)):0x0){_0x21aa78=_0x35a760['indexOf'](_0x21aa78);}for(let _0x28566d=0x0,_0x56ad3b=_0x1488aa['length'];_0x28566d<_0x56ad3b;_0x28566d++){_0x535ec0+='%'+('00'+_0x1488aa['charCodeAt'](_0x28566d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x535ec0);};_0x3ee7['FzqmhA']=_0x5ed68d,_0x3ee7['rahSwd']={},_0x3ee7['yeuNEM']=!![];}const _0x42d40c=_0x177a90[0x0],_0x14382a=_0x1774ab+_0x42d40c,_0x3d15c4=_0x3ee7['rahSwd'][_0x14382a];return!_0x3d15c4?(_0x3ee7b3=_0x3ee7['FzqmhA'](_0x3ee7b3),_0x3ee7['rahSwd'][_0x14382a]=_0x3ee7b3):_0x3ee7b3=_0x3d15c4,_0x3ee7b3;}export function injectSearchOptions(){return inject(SEARCH_OPTIONS_KEY,undefined);}
|
package/dist/admin/crud/mitt.js
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
export class Mitt {
|
|
2
|
-
map = new Map;
|
|
3
|
-
on(type, handler) {
|
|
4
|
-
if (!this.map.has(type))
|
|
5
|
-
this.map.set(type, new Set);
|
|
6
|
-
this.map.get(type).add(handler);
|
|
7
|
-
}
|
|
8
|
-
off(type, handler) {
|
|
9
|
-
if (!handler) {
|
|
10
|
-
this.map.delete(type);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
this.map.get(type)?.delete(handler);
|
|
14
|
-
}
|
|
15
|
-
emit(type, ...args) {
|
|
16
|
-
this.map.get(type)?.forEach((fn) => fn(...args));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export function createMitt() {
|
|
20
|
-
return new Mitt;
|
|
21
|
-
}
|
|
1
|
+
var _0x571eb8=_0x51e1;(function(_0x4e8b25,_0x1ba16d){var _0x5550fa=_0x51e1,_0x4a608f=_0x4e8b25();while(!![]){try{var _0x232b29=-parseInt(_0x5550fa(0x1c9))/0x1*(-parseInt(_0x5550fa(0x1bd))/0x2)+parseInt(_0x5550fa(0x1c0))/0x3+parseInt(_0x5550fa(0x1c1))/0x4+-parseInt(_0x5550fa(0x1c7))/0x5+parseInt(_0x5550fa(0x1c8))/0x6*(parseInt(_0x5550fa(0x1be))/0x7)+parseInt(_0x5550fa(0x1bf))/0x8*(-parseInt(_0x5550fa(0x1c2))/0x9)+-parseInt(_0x5550fa(0x1cc))/0xa*(parseInt(_0x5550fa(0x1cb))/0xb);if(_0x232b29===_0x1ba16d)break;else _0x4a608f['push'](_0x4a608f['shift']());}catch(_0x531ce6){_0x4a608f['push'](_0x4a608f['shift']());}}}(_0x3fc3,0x6f0da));function _0x3fc3(){var _0x5e24c8=['zgvSzxrL','mtG2DuTIywzJ','nda2qvLuzNPc','mtyWz0vqwvzj','mtq1otK3nfftwK9sua','mtuZotCWneLWshnpqq','nZqWnZL5r3nbvhK','BwfW','zM9YrwfJAa','zw1PDa','B2zM','mtKZmJK2mgLqCwfovq','nJK5nZHfvuLfANK','ndi0ofPxEM5ksW','ywrK','nte1mZu4ogLnv3HIBa','mJbHueTvBuq'];_0x3fc3=function(){return _0x5e24c8;};return _0x3fc3();}export class Mitt{[_0x571eb8(0x1c3)]=new Map();['on'](_0x1663eb,_0x15ea1d){var _0x255c4c=_0x571eb8;if(!this[_0x255c4c(0x1c3)]['has'](_0x1663eb))this['map']['set'](_0x1663eb,new Set());this[_0x255c4c(0x1c3)]['get'](_0x1663eb)[_0x255c4c(0x1ca)](_0x15ea1d);}[_0x571eb8(0x1c6)](_0x2fbae1,_0x322168){var _0x292c9b=_0x571eb8;if(!_0x322168){this['map'][_0x292c9b(0x1cd)](_0x2fbae1);return;}this['map']['get'](_0x2fbae1)?.[_0x292c9b(0x1cd)](_0x322168);}[_0x571eb8(0x1c5)](_0x69c5dd,..._0xc65616){var _0x22d244=_0x571eb8;this[_0x22d244(0x1c3)]['get'](_0x69c5dd)?.[_0x22d244(0x1c4)](_0x49afb9=>_0x49afb9(..._0xc65616));}}function _0x51e1(_0x24a965,_0x20ebbc){_0x24a965=_0x24a965-0x1bd;var _0x3fc350=_0x3fc3();var _0x51e136=_0x3fc350[_0x24a965];if(_0x51e1['NWTABM']===undefined){var _0x42e32b=function(_0x55fd6a){var _0x595239='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1663eb='',_0x15ea1d='';for(var _0x2fbae1=0x0,_0x322168,_0x69c5dd,_0xc65616=0x0;_0x69c5dd=_0x55fd6a['charAt'](_0xc65616++);~_0x69c5dd&&(_0x322168=_0x2fbae1%0x4?_0x322168*0x40+_0x69c5dd:_0x69c5dd,_0x2fbae1++%0x4)?_0x1663eb+=String['fromCharCode'](0xff&_0x322168>>(-0x2*_0x2fbae1&0x6)):0x0){_0x69c5dd=_0x595239['indexOf'](_0x69c5dd);}for(var _0x49afb9=0x0,_0x259c0b=_0x1663eb['length'];_0x49afb9<_0x259c0b;_0x49afb9++){_0x15ea1d+='%'+('00'+_0x1663eb['charCodeAt'](_0x49afb9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15ea1d);};_0x51e1['QmmYME']=_0x42e32b,_0x51e1['nsHRhY']={},_0x51e1['NWTABM']=!![];}var _0x52ba24=_0x3fc350[0x0],_0x1eaaa3=_0x24a965+_0x52ba24,_0x3977be=_0x51e1['nsHRhY'][_0x1eaaa3];return!_0x3977be?(_0x51e136=_0x51e1['QmmYME'](_0x51e136),_0x51e1['nsHRhY'][_0x1eaaa3]=_0x51e136):_0x51e136=_0x3977be,_0x51e136;}export function createMitt(){return new Mitt();}
|