@vtj/pro 0.13.31 → 0.13.33
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/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +5 -9
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +24 -24
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +8 -5
- package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
- package/dist/@vtj/materials/deps/uni-ui/style.css +1 -1
- package/dist/__devtools__/assets/IconTitle.vue_vue_type_script_setup_true_lang-Enp_Ksfn.js +1 -0
- package/dist/__devtools__/assets/SectionBlock-BTPkVZM2.js +1 -0
- package/dist/__devtools__/assets/assets-D3XLNB-6.js +12 -0
- package/dist/__devtools__/assets/components-Dza6_XRl.js +1 -0
- package/dist/__devtools__/assets/custom-inspector-tab-view-_L81oF56.js +1 -0
- package/dist/__devtools__/assets/{custom-tab-view-BGjRlmIC.js → custom-tab-view-CmLn18C4.js} +1 -1
- package/dist/__devtools__/assets/graph-fTuEulvH.js +1020 -0
- package/dist/__devtools__/assets/{index-CtdYRAx7.js → index-DH8HZ7DP.js} +213 -209
- package/dist/__devtools__/assets/{index-DkeGUpKU.css → index-DVOrYgP_.css} +1 -1
- package/dist/__devtools__/assets/index-lUvZHcVj.css +1 -0
- package/dist/__devtools__/assets/overview-DFLns6CN.js +1 -0
- package/dist/__devtools__/assets/pages-yIVwEfZL.js +1 -0
- package/dist/__devtools__/assets/pinia-Cq2YPuZV.js +1 -0
- package/dist/__devtools__/assets/{router-BZru8YYb.js → router-Drkf543k.js} +1 -1
- package/dist/__devtools__/assets/settings-DyJW_A0F.js +1 -0
- package/dist/__devtools__/assets/timeline-R3j-Lp7H.js +1 -0
- package/dist/__devtools__/index.html +2 -2
- package/dist/assets/{@element-plus-icons-vue-Wht5hDuw.js → @element-plus-icons-vue-D-fUosFJ.js} +1 -1
- package/dist/assets/{@vueuse--GEK18_Y.js → @vueuse-Cj30_OSx.js} +1 -1
- package/dist/assets/Editor-CAfYjzC4-B6h0yUhJ.js +323 -0
- package/dist/assets/Editor-CAfYjzC4-CIjQSqmy.css +1 -0
- package/dist/assets/auth-e0Ziwu14.js +1 -0
- package/dist/assets/element-plus-6YRlyoMW.css +1 -0
- package/dist/assets/element-plus-wCU_mIQS.js +12 -0
- package/dist/assets/{index-BSW8xxDf.js → index-CUoc_DED.js} +2 -2
- package/dist/assets/index-DQ6hpoP7.js +1 -0
- package/dist/assets/{lodash-es-BOeLjWVX.js → lodash-es-DyZ5XK_i.js} +1 -1
- package/dist/assets/{mockjs-DKzs-0ke.js → mockjs-D1CwEUpV.js} +1 -1
- package/dist/assets/page-BpXBFM49.js +2 -0
- package/dist/assets/preview-B1rKFfnr.js +2 -0
- package/dist/assets/{uni-page-DwR0saAW.js → uni-page-CWoUvEyl.js} +1 -1
- package/dist/assets/utils-CSKCwugF.js +1 -0
- package/dist/assets/{vue-BCeUdUZW.js → vue-BW8u1lDT.js} +1 -1
- package/dist/assets/{vue-router-DhSsrCnR.js → vue-router-CRt375PS.js} +1 -1
- package/dist/assets/{vxe-B6nyV_6w.js → vxe-BUp_tBCm.js} +1 -1
- package/dist/index.html +10 -10
- package/dist/uni/assets/{index-DBMA9r6K.js → index-BScYRv15.js} +19 -19
- package/dist/uni/index.html +1 -1
- package/package.json +12 -12
- package/src/.vtj/files/1bxaubr9.json +109 -0
- package/src/.vtj/materials/@vtj/pro.json +8246 -0
- package/src/.vtj/projects/@vtj/pro.json +226 -0
- package/dist/__devtools__/assets/IconTitle.vue_vue_type_script_setup_true_lang-B9Nj8PlY.js +0 -1
- package/dist/__devtools__/assets/SectionBlock-BrHcKx8P.js +0 -1
- package/dist/__devtools__/assets/assets-tWZ16yre.js +0 -12
- package/dist/__devtools__/assets/components-EaHI7FxW.js +0 -1
- package/dist/__devtools__/assets/custom-inspector-tab-view-CZIfhGNk.js +0 -1
- package/dist/__devtools__/assets/graph-Dvz7NSzX.js +0 -1068
- package/dist/__devtools__/assets/index-ENvNlo7R.css +0 -1
- package/dist/__devtools__/assets/overview-CXo9qbzV.js +0 -1
- package/dist/__devtools__/assets/pages-BLZMWMb9.js +0 -1
- package/dist/__devtools__/assets/pinia-CsnX6hr4.js +0 -1
- package/dist/__devtools__/assets/settings-C2YlJymx.js +0 -1
- package/dist/__devtools__/assets/timeline-B5ZeLLK0.js +0 -1
- package/dist/assets/Editor-Dn4FMjGq-C9G9E29K.js +0 -317
- package/dist/assets/Editor-Dn4FMjGq-Cid80NMR.css +0 -1
- package/dist/assets/auth-rEQmZyfC.js +0 -1
- package/dist/assets/element-plus-C9YFPEFQ.js +0 -12
- package/dist/assets/element-plus-DMFnlJpX.css +0 -1
- package/dist/assets/index-DubQvA8e.js +0 -1
- package/dist/assets/page-xwzzZWbA.js +0 -2
- package/dist/assets/preview-BOMPweD5.js +0 -2
- package/dist/assets/utils-B60wHOJV.js +0 -1
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"__VTJ_PROJECT__": true,
|
|
3
|
+
"id": "@vtj/pro",
|
|
4
|
+
"locked": "",
|
|
5
|
+
"platform": "uniapp",
|
|
6
|
+
"name": "VTJ.PRO",
|
|
7
|
+
"homepage": "1bxaubr9",
|
|
8
|
+
"description": "VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。",
|
|
9
|
+
"dependencies": [
|
|
10
|
+
{
|
|
11
|
+
"package": "vue",
|
|
12
|
+
"version": "latest",
|
|
13
|
+
"library": "Vue",
|
|
14
|
+
"urls": [
|
|
15
|
+
"@vtj/materials/deps/uni-h5-vue/uni-h5-vue.prod.js"
|
|
16
|
+
],
|
|
17
|
+
"assetsLibrary": "VueMaterial",
|
|
18
|
+
"required": true,
|
|
19
|
+
"official": true,
|
|
20
|
+
"enabled": true,
|
|
21
|
+
"platform": "uniapp"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"package": "vue-router",
|
|
25
|
+
"version": "latest",
|
|
26
|
+
"library": "VueRouter",
|
|
27
|
+
"urls": [
|
|
28
|
+
"@vtj/materials/deps/vue-router/vue-router.global.prod.js"
|
|
29
|
+
],
|
|
30
|
+
"assetsLibrary": "VueRouterMaterial",
|
|
31
|
+
"required": true,
|
|
32
|
+
"official": true,
|
|
33
|
+
"enabled": true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"package": "vue-i18n",
|
|
37
|
+
"version": "latest",
|
|
38
|
+
"library": "VueI18n",
|
|
39
|
+
"urls": [
|
|
40
|
+
"@vtj/materials/deps/vue-i18n/vue-i18n.global.prod.js"
|
|
41
|
+
],
|
|
42
|
+
"required": true,
|
|
43
|
+
"official": true,
|
|
44
|
+
"enabled": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"package": "uni-app",
|
|
48
|
+
"version": "latest",
|
|
49
|
+
"library": "UniApp",
|
|
50
|
+
"urls": [
|
|
51
|
+
"@vtj/materials/deps/uni-app/index.umd.js"
|
|
52
|
+
],
|
|
53
|
+
"required": true,
|
|
54
|
+
"official": true,
|
|
55
|
+
"enabled": true,
|
|
56
|
+
"platform": "uniapp"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"package": "uni-h5",
|
|
60
|
+
"version": "latest",
|
|
61
|
+
"library": "UniH5",
|
|
62
|
+
"urls": [
|
|
63
|
+
"@vtj/materials/deps/uni-h5/style.css",
|
|
64
|
+
"@vtj/materials/deps/uni-h5/index.umd.js"
|
|
65
|
+
],
|
|
66
|
+
"required": true,
|
|
67
|
+
"official": true,
|
|
68
|
+
"enabled": true,
|
|
69
|
+
"assetsUrl": "@vtj/materials/assets/uni-h5/index.umd.js",
|
|
70
|
+
"assetsLibrary": "UniH5Material",
|
|
71
|
+
"platform": "uniapp"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"package": "uni-ui",
|
|
75
|
+
"version": "latest",
|
|
76
|
+
"library": "UniUI",
|
|
77
|
+
"urls": [
|
|
78
|
+
"@vtj/materials/deps/uni-ui/style.css",
|
|
79
|
+
"@vtj/materials/deps/uni-ui/index.umd.js"
|
|
80
|
+
],
|
|
81
|
+
"required": true,
|
|
82
|
+
"official": true,
|
|
83
|
+
"enabled": true,
|
|
84
|
+
"assetsUrl": "@vtj/materials/assets/uni-ui/index.umd.js",
|
|
85
|
+
"assetsLibrary": "UniUIMaterial",
|
|
86
|
+
"platform": "uniapp"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"package": "@vtj/utils",
|
|
90
|
+
"version": "latest",
|
|
91
|
+
"library": "VtjUtils",
|
|
92
|
+
"urls": [
|
|
93
|
+
"@vtj/materials/deps/@vtj/utils/index.umd.js"
|
|
94
|
+
],
|
|
95
|
+
"required": false,
|
|
96
|
+
"official": true,
|
|
97
|
+
"enabled": true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"package": "mockjs",
|
|
101
|
+
"version": "latest",
|
|
102
|
+
"library": "Mock",
|
|
103
|
+
"urls": [
|
|
104
|
+
"@vtj/materials/deps/mockjs/mock-min.js"
|
|
105
|
+
],
|
|
106
|
+
"required": false,
|
|
107
|
+
"official": true,
|
|
108
|
+
"enabled": true
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"pages": [
|
|
112
|
+
{
|
|
113
|
+
"id": "1bxaubr9",
|
|
114
|
+
"dir": false,
|
|
115
|
+
"layout": false,
|
|
116
|
+
"name": "LaunchPage",
|
|
117
|
+
"title": "启动页",
|
|
118
|
+
"icon": "",
|
|
119
|
+
"mask": false,
|
|
120
|
+
"hidden": false,
|
|
121
|
+
"raw": false,
|
|
122
|
+
"pure": true,
|
|
123
|
+
"cache": false,
|
|
124
|
+
"needLogin": false,
|
|
125
|
+
"style": {
|
|
126
|
+
"navigationStyle": "custom"
|
|
127
|
+
},
|
|
128
|
+
"type": "page"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"blocks": [],
|
|
132
|
+
"apis": [],
|
|
133
|
+
"meta": [],
|
|
134
|
+
"config": {},
|
|
135
|
+
"uniConfig": {
|
|
136
|
+
"manifestJson": {
|
|
137
|
+
"name": "VTJ.PRO",
|
|
138
|
+
"appid": "__UNI__VTJPRO",
|
|
139
|
+
"description": "VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。",
|
|
140
|
+
"versionName": "1.0.0",
|
|
141
|
+
"versionCode": "100",
|
|
142
|
+
"transformPx": false,
|
|
143
|
+
"app-plus": {
|
|
144
|
+
"usingComponents": true,
|
|
145
|
+
"nvueStyleCompiler": "uni-app",
|
|
146
|
+
"compilerVersion": 3,
|
|
147
|
+
"splashscreen": {
|
|
148
|
+
"alwaysShowBeforeRender": true,
|
|
149
|
+
"waiting": true,
|
|
150
|
+
"autoclose": true,
|
|
151
|
+
"delay": 0
|
|
152
|
+
},
|
|
153
|
+
"modules": {},
|
|
154
|
+
"distribute": {
|
|
155
|
+
"android": {
|
|
156
|
+
"permissions": [
|
|
157
|
+
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
|
158
|
+
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
|
159
|
+
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
|
160
|
+
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
|
161
|
+
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
|
162
|
+
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
|
163
|
+
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
|
164
|
+
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
|
165
|
+
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
|
166
|
+
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
|
167
|
+
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
|
168
|
+
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
|
169
|
+
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
|
170
|
+
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
|
171
|
+
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"ios": {},
|
|
175
|
+
"sdkConfigs": {},
|
|
176
|
+
"icons": {
|
|
177
|
+
"android": {
|
|
178
|
+
"hdpi": "src/static/logo.png",
|
|
179
|
+
"xhdpi": "src/static/logo.png",
|
|
180
|
+
"xxhdpi": "src/static/logo.png",
|
|
181
|
+
"xxxhdpi": "src/static/logo.png"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"quickapp": {},
|
|
187
|
+
"mp-weixin": {
|
|
188
|
+
"appid": "",
|
|
189
|
+
"setting": {
|
|
190
|
+
"urlCheck": false
|
|
191
|
+
},
|
|
192
|
+
"usingComponents": true
|
|
193
|
+
},
|
|
194
|
+
"mp-alipay": {
|
|
195
|
+
"usingComponents": true
|
|
196
|
+
},
|
|
197
|
+
"mp-baidu": {
|
|
198
|
+
"usingComponents": true
|
|
199
|
+
},
|
|
200
|
+
"mp-toutiao": {
|
|
201
|
+
"usingComponents": true
|
|
202
|
+
},
|
|
203
|
+
"uniStatistics": {
|
|
204
|
+
"enable": false
|
|
205
|
+
},
|
|
206
|
+
"vueVersion": "3"
|
|
207
|
+
},
|
|
208
|
+
"pagesJson": {
|
|
209
|
+
"pages": [],
|
|
210
|
+
"globalStyle": {
|
|
211
|
+
"navigationBarTextStyle": "black",
|
|
212
|
+
"navigationBarTitleText": "uni-app",
|
|
213
|
+
"navigationBarBackgroundColor": "#F8F8F8",
|
|
214
|
+
"backgroundColor": "#F8F8F8"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"globals": {},
|
|
219
|
+
"i18n": {
|
|
220
|
+
"locale": "zh-CN",
|
|
221
|
+
"fallbackLocale": "zh-CN",
|
|
222
|
+
"messages": []
|
|
223
|
+
},
|
|
224
|
+
"__BASE_PATH__": "/",
|
|
225
|
+
"__UID__": "4e62f688-3e8c-41d3-9f41-dd0595d280c0"
|
|
226
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as t,c as o,o as s,a,r as n,n as r,b as l,t as i}from"./index-CtdYRAx7.js";const c={flex:"~ gap-3","items-center":""},u=t({__name:"IconTitle",props:{icon:{},text:{}},setup(p){return(e,d)=>(s(),o("div",c,[e.icon?(s(),o("div",{key:0,class:r(e.icon)},null,2)):a("",!0),n(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as g}from"./IconTitle.vue_vue_type_script_setup_true_lang-B9Nj8PlY.js";import{d as y,c as l,o as a,F as B,b as o,u as i,S as _,T as $,n as r,q as h,w as b,r as s,e as k,a as p,U as w,V as C,y as d,t as c,W as V}from"./index-CtdYRAx7.js";const S=["open"],x={"text-base":""},N={key:0,"text-sm":"",op50:""},T=y({__name:"SectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(u){const t=_(u,"open",void 0,{passive:!0});function v(e){t.value=e.target.open}return(e,n)=>{const f=g,m=C("lazy-show");return a(),l(B,null,[o("details",{open:i(t),onToggle:v},[o("summary",{class:r(["cursor-pointer select-none p4 hover:bg-active",e.collapse?"":"pointer-events-none"])},[h(f,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:r(i(t)?"op100":"op60")},{default:b(()=>[o("div",null,[o("div",x,[s(e.$slots,"text",{},()=>[d(c(e.text),1)],!0)]),e.description||e.$slots.description?(a(),l("div",N,[s(e.$slots,"description",{},()=>[d(c(e.description),1)],!0)])):p("",!0)]),n[0]||(n[0]=o("div",{class:"flex-auto"},null,-1)),s(e.$slots,"actions",{},void 0,!0),e.collapse?(a(),k(i(w),{key:0,icon:"i-carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):p("",!0)]),_:3},8,["icon","text","class"])],2),$((a(),l("div",{class:r(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[s(e.$slots,"details",{},void 0,!0),o("div",{class:r([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2)),[[m,i(t)]])],40,S),n[1]||(n[1]=o("div",{class:"x-divider"},null,-1))],64)}}}),I=V(T,[["__scopeId","data-v-d1d325e5"]]);export{I as _};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{d as T,aq as re,ay as Z,i as _,a7 as le,c as p,a as P,o as a,b as r,F as z,s as F,n as M,u as s,t as x,q as A,a6 as ae,e as S,w as C,y as X,r as L,M as Q,T as E,ak as Y,az as ue,av as se,Y as de,aA as H,aa as ce,p as D,S as ne,f as ee,U as q,a3 as oe,aB as pe,ax as K,A as G,aj as te,a8 as he,aC as fe,aD as me,aw as ve,a1 as ye,z as ge,B as be,at as we,V as _e}from"./index-CtdYRAx7.js";import{_ as $e}from"./SectionBlock-BrHcKx8P.js";import{_ as xe}from"./IconTitle.vue_vue_type_script_setup_true_lang-B9Nj8PlY.js";const ke={key:0,relative:"","code-block":""},Be={flex:"~ wrap","w-full":""},Ae=["onClick"],Ce={flex:"~ gap-2",px3:"",pb3:""},Pe=T({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(f){const n=f,e=re(n.codeSnippets[0]),{copy:t}=Z(),i=_(()=>e.value?.lang||"text");return le(()=>{n.codeSnippets.includes(e.value)||(e.value=n.codeSnippets[0])}),(o,l)=>o.codeSnippets.length?(a(),p("div",ke,[r("div",Be,[(a(!0),p(z,null,F(o.codeSnippets,(d,m)=>(a(),p("button",{key:m,px4:"",py2:"",border:"r base",hover:"bg-active",class:M(d===s(e)?"":"border-b"),onClick:v=>e.value=d},[r("div",{class:M(d===s(e)?"":"op30"),"font-mono":""},x(d.name),3)],10,Ae))),128)),l[1]||(l[1]=r("div",{border:"b base","flex-auto":""},null,-1))]),s(e)?(a(),p(z,{key:0},[A(s(ae),{code:s(e).code,lang:s(i),lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),r("div",Ce,[A(s(Q),{onClick:l[0]||(l[0]=d=>s(t)(s(e).code,{silent:!1,type:o.eventType||`code-snippet-${s(e).name}`}))},{icon:C(()=>[L(o.$slots,"i-carbon-copy")]),default:C(()=>[l[2]||(l[2]=X(" Copy ",-1))]),_:3}),s(e)?.docs?(a(),S(s(Q),{key:0,to:s(e).docs,target:"_blank"},{icon:C(()=>[L(o.$slots,"i-carbon-catalog")]),default:C(()=>[l[3]||(l[3]=X(" Docs ",-1))]),_:3},8,["to"])):P("",!0)])],64)):P("",!0)])):P("",!0)}}),Se=["title"],ze=T({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean}},setup(f){const n=f,e=_(()=>({path:n.filepath})),{copy:t}=Z();return(i,o)=>E((a(),p("button",{"font-mono":"","hover:underline":"",class:M(i.lineBreak?"":"ws-nowrap of-hidden truncate"),title:i.filepath,onClick:o[0]||(o[0]=l=>s(t)(i.filepath))},[X(x(s(e).path),1)],10,Se)),[[s(Y),"Copy file path"]])}});function je(f){return typeof f=="string"?`'${f}'`:new Ve().serialize(f)}const Ve=(function(){class f{#e=new Map;compare(e,t){const i=typeof e,o=typeof t;return i==="string"&&o==="string"?e.localeCompare(t):i==="number"&&o==="number"?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return"null";switch(typeof e){case"string":return t?e:`'${e}'`;case"bigint":return`${e}n`;case"object":return this.$object(e);case"function":return this.$function(e)}return String(e)}serializeObject(e){const t=Object.prototype.toString.call(e);if(t!=="[object Object]")return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);const i=e.constructor,o=i===Object||i===void 0?"":i.name;if(o!==""&&globalThis[o]===i)return this.serializeBuiltInType(o,e);if(typeof e.toJSON=="function"){const l=e.toJSON();return o+(l!==null&&typeof l=="object"?this.$object(l):`(${this.serialize(l)})`)}return this.serializeObjectEntries(o,Object.entries(e))}serializeBuiltInType(e,t){const i=this["$"+e];if(i)return i.call(this,t);if(typeof t?.entries=="function")return this.serializeObjectEntries(e,t.entries());throw new Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){const i=Array.from(t).sort((l,d)=>this.compare(l[0],d[0]));let o=`${e}{`;for(let l=0;l<i.length;l++){const[d,m]=i[l];o+=`${this.serialize(d,!0)}:${this.serialize(m)}`,l<i.length-1&&(o+=",")}return o+"}"}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){const t=Function.prototype.toString.call(e);return t.slice(-15)==="[native code] }"?`${e.name||""}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,"")}`}$Array(e){let t="[";for(let i=0;i<e.length;i++)t+=this.serialize(e[i]),i<e.length-1&&(t+=",");return t+"]"}$Date(e){try{return`Date(${e.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(",")}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((t,i)=>this.compare(t,i)))}`}$Map(e){return this.serializeObjectEntries("Map",e.entries())}}for(const n of["Error","RegExp","URL"])f.prototype["$"+n]=function(e){return`${n}(${e})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])f.prototype["$"+n]=function(e){return`${n}[${e.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])f.prototype["$"+n]=function(e){return`${n}[${e.join("n,")}${e.length>0?"n":""}]`};return f})(),Ie=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],De=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",O=[];class Ue{_data=new J;_hash=new J([...Ie]);_nDataBytes=0;_minBufferSize=0;finalize(n){n&&this._append(n);const e=this._nDataBytes*8,t=this._data.sigBytes*8;return this._data.words[t>>>5]|=128<<24-t%32,this._data.words[(t+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(t+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(n,e){const t=this._hash.words;let i=t[0],o=t[1],l=t[2],d=t[3],m=t[4],v=t[5],j=t[6],V=t[7];for(let w=0;w<64;w++){if(w<16)O[w]=n[e+w]|0;else{const c=O[w-15],u=(c<<25|c>>>7)^(c<<14|c>>>18)^c>>>3,$=O[w-2],k=($<<15|$>>>17)^($<<13|$>>>19)^$>>>10;O[w]=u+O[w-7]+k+O[w-16]}const U=m&v^~m&j,W=i&o^i&l^o&l,g=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),h=(m<<26|m>>>6)^(m<<21|m>>>11)^(m<<7|m>>>25),y=V+h+U+De[w]+O[w],I=g+W;V=j,j=v,v=m,m=d+y|0,d=l,l=o,o=i,i=y+I|0}t[0]=t[0]+i|0,t[1]=t[1]+o|0,t[2]=t[2]+l|0,t[3]=t[3]+d|0,t[4]=t[4]+m|0,t[5]=t[5]+v|0,t[6]=t[6]+j|0,t[7]=t[7]+V|0}_append(n){typeof n=="string"&&(n=J.fromUtf8(n)),this._data.concat(n),this._nDataBytes+=n.sigBytes}_process(n){let e,t=this._data.sigBytes/64;n?t=Math.ceil(t):t=Math.max((t|0)-this._minBufferSize,0);const i=t*16,o=Math.min(i*4,this._data.sigBytes);if(i){for(let l=0;l<i;l+=16)this._doProcessBlock(this._data.words,l);e=this._data.words.splice(0,i),this._data.sigBytes-=o}return new J(e,o)}}class J{words;sigBytes;constructor(n,e){n=this.words=n||[],this.sigBytes=e===void 0?n.length*4:e}static fromUtf8(n){const e=unescape(encodeURIComponent(n)),t=e.length,i=[];for(let o=0;o<t;o++)i[o>>>2]|=(e.charCodeAt(o)&255)<<24-o%4*8;return new J(i,t)}toBase64(){const n=[];for(let e=0;e<this.sigBytes;e+=3){const t=this.words[e>>>2]>>>24-e%4*8&255,i=this.words[e+1>>>2]>>>24-(e+1)%4*8&255,o=this.words[e+2>>>2]>>>24-(e+2)%4*8&255,l=t<<16|i<<8|o;for(let d=0;d<4&&e*8+d*6<this.sigBytes*8;d++)n.push(Te.charAt(l>>>6*(3-d)&63))}return n.join("")}concat(n){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let e=0;e<n.sigBytes;e++){const t=n.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=t<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<n.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=n.words[e>>>2];this.sigBytes+=n.sigBytes}}function Oe(f){return new Ue().finalize(f).toBase64()}function Fe(f){return Oe(je(f))}const Ee=T({__name:"AssetFontPreview",props:{asset:{}},setup(f){const n=f,e=_(()=>`devtools-assets-${Fe(n.asset)}`);return ue(_(()=>`
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: '${e.value}';
|
|
4
|
-
src: url('${n.asset.publicPath}');
|
|
5
|
-
}
|
|
6
|
-
`)),(t,i)=>(a(),p("div",{"of-hidden":"",style:se({fontFamily:`'${s(e)}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),Me={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},Le=["src"],Re={key:2,"i-carbon-document":"","text-3xl":"",op20:""},Ne={key:3,"w-full":"","self-start":"",p4:""},qe=["textContent"],Ge={key:4},Je=["src","autoplay","controls"],Xe={key:5},Ke={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},We=["src"],Ye={key:6,"i-vscode-icons-file-type-wasm":"","text-3xl":""},He={key:7,"i-carbon-help":"","text-3xl":"",op20:""},ie=T({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(f){return(n,e)=>{const t=Ee;return a(),p("div",Me,[n.asset.type==="image"?(a(),p("img",{key:0,src:n.asset.publicPath},null,8,Le)):n.asset.type==="font"?(a(),S(t,{key:n.asset.publicPath,asset:n.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):n.asset.type==="text"&&!n.textContent?(a(),p("div",Re)):n.asset.type==="text"&&n.textContent?(a(),p("div",Ne,[r("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:x(n.textContent)},null,8,qe)])):n.asset.type==="video"?(a(),p("div",Ge,[r("video",{src:n.asset.publicPath,autoplay:n.detail,controls:n.detail},null,8,Je)])):n.asset.type==="audio"?(a(),p("div",Xe,[n.detail?(a(),p("audio",{key:1,src:n.asset.publicPath,controls:""},null,8,We)):(a(),p("div",Ke))])):n.asset.type==="wasm"?(a(),p("div",Ye)):(a(),p("div",He))])}}}),Qe={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},Ze={flex:"~","items-center":"","justify-center":""},et={"max-w-full":"","w-full":"","table-fixed":""},tt={flex:"~ gap-1","w-full":"","items-center":""},st={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},nt={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},ot={capitalize:""},it={key:0},rt={op70:""},lt={flex:"~ gap2 wrap"},at=T({__name:"AssetDetails",props:{modelValue:{}},setup(f,{emit:n}){const e=f,t=n,i=de(),o=ne(e,"modelValue",t,{passive:!0}),l=_(()=>i.vitePluginDetected.value),d=H(()=>K.value.getAssetImporters(o.value.publicPath).then(c=>c),[]),m=_(()=>ce.value),v=H(()=>{if(o.value.type==="image")return K.value.getImageMeta(o.value.filePath).then(c=>c)}),j=D(),V=D(0),w=H(async()=>{if(o.value.type!=="text")return;V.value;const c=await K.value.getTextAssetContent(o.value.filePath).then(u=>u);return j.value=c,c}),U=_(()=>{const c=[];if(o.value.type==="image"){const u=v.value?.width?`
|
|
7
|
-
width="${v.value.width}"
|
|
8
|
-
height="${v.value.height}" `:" ";return c.push({lang:"vue-html",code:`<img${u}
|
|
9
|
-
src="${o.value.publicPath}"
|
|
10
|
-
/>`,name:"Plain Image"}),c}return c.push({lang:"html",code:`<a download href="${o.value.publicPath}">
|
|
11
|
-
Download ${o.value.path.split("/").slice(-1)[0]}
|
|
12
|
-
</a>`,name:"Download link"}),c}),{copy:W}=Z(),g=pe(()=>o.value.mtime),h=_(()=>{const c=o.value.size;return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(2)} KB`:`${(c/1024/1024).toFixed(2)} MB`}),y=_(()=>{if(!v.value?.width||!v.value?.height)return"";const c=($,k)=>k?c(k,$%k):$,u=c(v.value.width,v.value.height);return u>3?`${v.value.width/u}:${v.value.height/u}`:""}),I=_(()=>["image","text","video","audio","font"].includes(o.value.type));return(c,u)=>{const $=ie,k=ze,R=oe("RouterLink"),b=Pe;return a(),p("div",Qe,[s(I)?(a(),p(z,{key:0},[u[2]||(u[2]=r("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[r("div",{"x-divider":""}),r("div",{"flex-none":""}," Preview "),r("div",{"x-divider":""})],-1)),r("div",Ze,[A($,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:s(o),"text-content":s(w)},null,8,["asset","text-content"])])],64)):P("",!0),u[12]||(u[12]=r("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[r("div",{"x-divider":""}),r("div",{"flex-none":""}," Details "),r("div",{"x-divider":""})],-1)),r("table",et,[r("tbody",null,[r("tr",null,[u[3]||(u[3]=r("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1)),r("td",null,[r("div",tt,[A(k,{filepath:s(o).filePath,"text-left":""},null,8,["filepath"]),s(l)&&s(m)?E((a(),S(s(q),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:u[0]||(u[0]=B=>s(ee)(s(o).filePath))},null,512)),[[s(Y),"Open in Editor"]]):P("",!0)])])]),r("tr",null,[u[4]||(u[4]=r("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1)),r("td",null,[r("div",st,[r("div",nt,x(s(o).publicPath),1),E(A(s(q),{title:"Copy public path",icon:"i-carbon-copy",action:"",mr1:"","mt--2px":"","flex-none":"",border:!1,onClick:u[1]||(u[1]=B=>s(W)(s(o).publicPath,{type:"assets-public-path"}))},null,512),[[s(Y),"Copy public path"]]),A(R,{to:s(o).publicPath,target:"_blank"},{default:C(()=>[E(A(s(q),{icon:"i-carbon-launch",action:"","flex-none":"",border:!1,title:"Open in Browser"},null,512),[[s(Y),"Open in Browser"]])]),_:1},8,["to"])])])]),r("tr",null,[u[5]||(u[5]=r("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1)),r("td",ot,x(s(o).type),1)]),s(v)?.width?(a(),p(z,{key:0},[r("tr",null,[u[6]||(u[6]=r("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1)),r("td",null,x(s(v).width)+" x "+x(s(v).height),1)]),s(y)?(a(),p("tr",it,[u[7]||(u[7]=r("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1)),r("td",null,x(s(y)),1)])):P("",!0)],64)):P("",!0),r("tr",null,[u[8]||(u[8]=r("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1)),r("td",null,x(s(h)),1)]),r("tr",null,[u[9]||(u[9]=r("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1)),r("td",null,[X(x(new Date(s(o).mtime).toLocaleString())+" ",1),r("span",rt,"("+x(s(g))+")",1)])]),r("tr",null,[u[10]||(u[10]=r("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"","align-top":"",op50:""}," Importers ",-1)),r("td",null,[s(d).length>0?(a(!0),p(z,{key:0},F(s(d),B=>(a(),p("div",{key:B.url,flex:"~ gap-1","w-full":"","items-center":""},[A(k,{filepath:B.id||B.url,"text-left":""},null,8,["filepath"]),s(i).vitePluginDetected.value&&s(m)&&B.id?E((a(),S(s(q),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:N=>s(ee)(B.id)},null,8,["onClick"])),[[s(Y),"Open in Editor"]]):P("",!0)]))),128)):(a(),p(z,{key:1},[X(" None ")],64))])])])]),u[13]||(u[13]=r("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[r("div",{"x-divider":""}),r("div",{"flex-none":""}," Actions "),r("div",{"x-divider":""})],-1)),r("div",lt,[A(s(Q),{to:s(o).publicPath,download:"",target:"_blank"},{icon:C(()=>[L(c.$slots,"i-carbon-download")]),default:C(()=>[u[11]||(u[11]=X(" Download ",-1))]),_:3},8,["to"])]),u[14]||(u[14]=r("div",{"flex-auto":""},null,-1)),s(U).length?(a(),S(b,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":s(U)},null,8,["code-snippets"])):P("",!0)])}}}),ut=T({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(f,{emit:n}){const e=f,i=ne(e,"modelValue",n,{passive:!0}),o=_(()=>e.item?.children?.length),l=D(!0),d=_(()=>o.value?"i-carbon-folder":e.item.type==="image"?"i-carbon-image":e.item.type==="video"?"i-carbon-video":e.item.type==="audio"?"i-carbon-volume-up":e.item.type==="font"?"i-carbon-text-small-caps":e.item.type==="text"?"i-carbon-document":e.item.type==="json"?"i-carbon-json":e.item.type==="wasm"?"i-vscode-icons-file-type-wasm":"i-carbon-document-blank");return(m,v)=>{const j=oe("AssetListItem",!0);return a(),p("div",null,[r("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:se({paddingLeft:`calc(1rem + ${m.index*1.5}em)`}),class:M({"bg-active":!s(o)&&s(i)?.filePath===m.item?.filePath}),border:"b base",onClick:v[0]||(v[0]=V=>s(o)?l.value=!s(l):i.value=m.item)},[r("div",{class:M(s(d))},null,2),r("span",{class:M({"flex items-center":s(o)}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},x(m.item.path),3),s(o)?(a(),S(s(q),{key:0,icon:"carbon:chevron-right","transform-rotate":s(l)?90:0,transition:""},null,8,["transform-rotate"])):P("",!0)],6),s(l)?L(m.$slots,"default",{key:0},()=>[(a(!0),p(z,null,F(m.item?.children,V=>(a(),S(j,{key:V.filepath,modelValue:s(i),"onUpdate:modelValue":v[1]||(v[1]=w=>G(i)?i.value=w:null),item:V,index:m.index+1},null,8,["modelValue","item","index"]))),128))]):P("",!0)])}}}),dt={flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},ct={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},pt=T({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(f){const n=f,e=_(()=>n.folder&&n.asset.path.startsWith(n.folder)?n.asset.path.slice(n.folder.length):n.asset.path);return(t,i)=>{const o=ie;return a(),p("button",dt,[A(o,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:t.asset},null,8,["asset"]),r("div",ct,x(s(e)),1)])}}}),ht={flex:"~ col gap2",border:"b base","navbar-glass":"","flex-1":"",p4:""},ft={flex:"~ gap4","items-center":""},mt=T({__name:"Navbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(f,{emit:n}){const e=f,t=n,i=D(e.search);return te(()=>e.search,o=>{i.value=o}),te(i,()=>{t("update:search",i.value)}),(o,l)=>(a(),p("div",ht,[r("div",ft,[L(o.$slots,"search",{},()=>[o.search!==void 0?(a(),S(s(he),{key:0,modelValue:s(i),"onUpdate:modelValue":l[0]||(l[0]=d=>G(i)?i.value=d:null),placeholder:"Search...","left-icon":"i-carbon-search",class:M(["flex-auto",{"px-5 py-2":!o.noPadding}])},null,8,["modelValue","class"])):P("",!0)]),L(o.$slots,"actions")]),L(o.$slots,"default")]))}}),vt={block:"","h-full":"","of-hidden":"",class:"drawer-container relative"},yt={"h-full":"","w-full":"","of-auto":""},gt={"flex-none":"",flex:"~ gap2 items-center","text-lg":""},bt={flex:"~ items-center justify-center",absolute:"","bottom-0":"","right-2px":"","h-4":"","w-4":"","rounded-full":"","bg-primary-800":"","text-8px":"","text-white":""},wt={"w-full":"",flex:"~ gap-2 items-center",rounded:"",px2:"",py2:""},_t={"text-xs":"",op75:""},$t={op50:""},xt={key:0},kt={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Bt={key:1,p2:"",grid:"~ cols-minmax-8rem"},At={key:1},Ct=50,Vt=T({__name:"assets",setup(f){const n=D(""),e=D(),t=D("grid"),i=D([]),o=_(()=>{const g=[];for(const h of i.value||[]){const y=h.path.split(".").pop();y&&!g.find(I=>I.value===y)&&g.push({label:y,value:y})}return g}),l=D([]);fe(()=>o.value,g=>{l.value=g.map(h=>h.value)});const d=D(),m=_(()=>new me(i.value||[],{keys:["path"]})),v=_(()=>(n.value?m.value.search(n.value).map(h=>h.item):i.value||[]).filter(h=>{const y=h.path.split(".").pop();return!y||l.value.includes(y)})),j=_(()=>{const g={};for(const h of v.value){const y=`${h.relativePath.split("/").slice(0,-1).join("/")}/`;g[y]||(g[y]=[]),g[y].push(h)}return Object.entries(g).sort(([h],[y])=>h.localeCompare(y))}),V=_(()=>{const g={children:[]},h=(y,I,c)=>{const[u,...$]=I;let k=y.children.find(R=>R.path===u);k||(k={...c,path:u,children:[]},y.children.push(k)),$.length>1?h(k,$,c):$.length===1&&k.children.push({...c,path:$[0]})};return v.value.forEach(y=>{const I=y.relativePath.split("/").filter(c=>c!=="");h(g,I,y)}),g.children});function w(){K.value.getStaticAssets().then(g=>{i.value=g})}function U(){w()}ve(()=>{w(),K.functions.on("assetsUpdated",U)});function W(){t.value=t.value==="list"?"grid":"list"}return ye(()=>{K.functions.off("assetsUpdated",U)}),(g,h)=>{const y=xe,I=mt,c=pt,u=$e,$=ut,k=at,R=_e("tooltip");return a(),p("div",vt,[r("div",yt,[A(I,{ref_key:"navbar",ref:e,search:s(n),"onUpdate:search":h[1]||(h[1]=b=>G(n)?n.value=b:null),pb2:"","no-padding":!0},{actions:C(()=>[r("div",gt,[A(s(ge),{modelValue:s(l),"onUpdate:modelValue":h[0]||(h[0]=b=>G(l)?l.value=b:null),multiple:!0,options:s(o)},{button:C(()=>[E((a(),S(y,{icon:"i-carbon-filter hover:op50",border:!1,title:"Filter",relative:"","cursor-pointer":"",p2:"","text-lg":"",onClick:()=>{}},{default:C(()=>[r("span",bt,x(s(l).length),1)]),_:1})),[[R,"Filter",void 0,{"bottom-end":!0}]])]),item:C(({item:b,active:B})=>[r("div",wt,[A(s(be),{"model-value":B},null,8,["model-value"]),r("span",_t,x(b.label),1)])]),_:1},8,["modelValue","options"]),E(A(s(q),{border:!1,icon:s(t)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",action:"","cursor-pointer":"","text-lg":"",onClick:W},null,8,["icon"]),[[R,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:C(()=>[r("div",$t,[s(n)?(a(),p("span",xt,x(s(v).length)+" matched · ",1)):P("",!0),r("span",null,x(s(i)?.length)+" assets in total",1)])]),_:1},8,["search"]),s(t)==="grid"?(a(),p(z,{key:0},[s(j).length>1?(a(!0),p(z,{key:0},F(s(j),([b,B])=>(a(),S(u,{key:b,text:b,description:`${B.length} items`,open:B.length<=Ct,padding:!1},{default:C(()=>[r("div",kt,[(a(!0),p(z,null,F(B,N=>(a(),S(c,{key:N.path,asset:N,folder:b,onClick:Pt=>d.value=N},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(a(),p("div",Bt,[(a(!0),p(z,null,F(s(v),b=>(a(),S(c,{key:b.path,asset:b,onClick:B=>d.value=b},null,8,["asset","onClick"]))),128))]))],64)):(a(),p("div",At,[(a(!0),p(z,null,F(s(V),(b,B)=>(a(),S($,{key:B,modelValue:s(d),"onUpdate:modelValue":h[2]||(h[2]=N=>G(d)?d.value=N:null),item:b},null,8,["modelValue","item"]))),128))]))]),A(s(we),{"model-value":!!s(d),top:s(e),permanent:"","mount-to":".drawer-container",position:"absolute","content-class":"w120 text-sm","onUpdate:modelValue":h[4]||(h[4]=b=>{b||(d.value=void 0)})},{default:C(()=>[s(d)?(a(),S(k,{key:0,modelValue:s(d),"onUpdate:modelValue":h[3]||(h[3]=b=>G(d)?d.value=b:null)},null,8,["modelValue"])):P("",!0)]),_:1},8,["model-value","top"])])}}});export{Vt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as p,e as a,o as r,u as n,f as s,C as c,g as e}from"./index-CtdYRAx7.js";/* empty css */const d=p({__name:"components",setup(m){function o(){e.value.emit("toggle-panel",!1)}function t(){e.value.emit("toggle-panel",!0)}return(l,u)=>(r(),a(n(c),{onOpenInEditor:n(s),onOnInspectComponentStart:o,onOnInspectComponentEnd:t},null,8,["onOpenInEditor"]))}});export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as m,p,Q as d,i as f,L as x,c as v,e as _,a as g,u as e,o as i,b as o,y as b,t as y,R as k,O as T}from"./index-CtdYRAx7.js";/* empty css */const B={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},I={flex:"~ col gap2",mxa:"","items-center":""},R={"text-xl":""},w={"text-rose":""},V=m({__name:"custom-inspector-tab-view",setup(C){const a=x(),u=T(),n=p(!1),c=d(),r=f(()=>c.value.find(s=>s.name===a.params.name)?.pluginId);function l(){n.value=!0;const s=setTimeout(()=>{clearTimeout(s),u.replace("/overview")},2e3)}return(s,t)=>e(n)?(i(),v("div",B,[o("div",I,[t[1]||(t[1]=o("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),o("p",R,[o("code",w,y(e(a).params.name),1),t[0]||(t[0]=b(" not found ",-1))]),t[2]||(t[2]=o("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])])):!e(n)&&e(r)?(i(),_(e(k),{key:1,id:e(a).params.name,"plugin-id":e(r),onLoadError:l},null,8,["id","plugin-id"])):g("",!0)}});export{V as default};
|