@opentiny/tiny-engine-workspace-application-center 2.9.0-alpha.10

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 - present TinyEngine Authors.
4
+ Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/dist/index.js ADDED
@@ -0,0 +1,710 @@
1
+ import "./style.css";
2
+ import { ref as E, reactive as j, onMounted as N, resolveComponent as c, createBlock as R, openBlock as d, withCtx as r, createVNode as o, createElementVNode as p, createElementBlock as _, createCommentVNode as w, Transition as W, Fragment as D, renderList as G, createTextVNode as P, normalizeClass as X, toDisplayString as z } from "vue";
3
+ import { Select as K, FormItem as Y, Form as Z, DialogBox as $, Button as M, Input as ee, Notify as O, Search as te, Popover as ne, GridColumn as oe, Grid as ae, Pager as ie, Modal as le } from "@opentiny/vue";
4
+ import { iconSearch as se } from "@opentiny/vue-icon";
5
+ import { SearchEmpty as re } from "@opentiny/tiny-engine-common";
6
+ import { callEntry as U, getMetaApi as f, META_SERVICE as h } from "@opentiny/tiny-engine-meta-register";
7
+ const pe = {
8
+ id: "engine.workspace.application-center",
9
+ title: "应用中心",
10
+ type: "workspace",
11
+ icon: "workspace-icon-application-center"
12
+ }, L = U(() => f(h.Http).get("/material-center/api/business-category/list"), {
13
+ metaData: {
14
+ id: "engine.plugins.blockmanage.js-http.fetchBusinessCategory"
15
+ },
16
+ ctx: () => ({
17
+ getMetaApi: f,
18
+ META_SERVICE: h,
19
+ fetchBusinessCategory: L,
20
+ fetchBusinessCategoryByGroup: V,
21
+ fetchApplicationList: x,
22
+ createApplication: B,
23
+ updateApplication: A,
24
+ deleteApplication: T
25
+ })
26
+ }), V = U((l) => f(h.Http).get(`/material-center/api/business-category/find?group=${l}`), {
27
+ metaData: {
28
+ id: "engine.plugins.blockmanage.js-http.fetchBusinessCategoryByGroup"
29
+ },
30
+ ctx: () => ({
31
+ getMetaApi: f,
32
+ META_SERVICE: h,
33
+ fetchBusinessCategory: L,
34
+ fetchBusinessCategoryByGroup: V,
35
+ fetchApplicationList: x,
36
+ createApplication: B,
37
+ updateApplication: A,
38
+ deleteApplication: T
39
+ })
40
+ }), x = U((l) => f(h.Http).get("app-center/api/apps/page", {
41
+ params: l
42
+ }), {
43
+ metaData: {
44
+ id: "engine.plugins.blockmanage.js-http.fetchApplicationList"
45
+ },
46
+ ctx: () => ({
47
+ getMetaApi: f,
48
+ META_SERVICE: h,
49
+ fetchBusinessCategory: L,
50
+ fetchBusinessCategoryByGroup: V,
51
+ fetchApplicationList: x,
52
+ createApplication: B,
53
+ updateApplication: A,
54
+ deleteApplication: T
55
+ })
56
+ }), B = U((l) => f(h.Http).post("/app-center/api/apps/create", l), {
57
+ metaData: {
58
+ id: "engine.plugins.blockmanage.js-http.createApplication"
59
+ },
60
+ ctx: () => ({
61
+ getMetaApi: f,
62
+ META_SERVICE: h,
63
+ fetchBusinessCategory: L,
64
+ fetchBusinessCategoryByGroup: V,
65
+ fetchApplicationList: x,
66
+ createApplication: B,
67
+ updateApplication: A,
68
+ deleteApplication: T
69
+ })
70
+ }), A = U((l, n) => f(h.Http).post(`/app-center/api/apps/update/${l}`, n), {
71
+ metaData: {
72
+ id: "engine.plugins.blockmanage.js-http.updateApplication"
73
+ },
74
+ ctx: () => ({
75
+ getMetaApi: f,
76
+ META_SERVICE: h,
77
+ fetchBusinessCategory: L,
78
+ fetchBusinessCategoryByGroup: V,
79
+ fetchApplicationList: x,
80
+ createApplication: B,
81
+ updateApplication: A,
82
+ deleteApplication: T
83
+ })
84
+ }), T = U((l) => f(h.Http).get(`/app-center/api/apps/delete/${l}`), {
85
+ metaData: {
86
+ id: "engine.plugins.blockmanage.js-http.deleteApplication"
87
+ },
88
+ ctx: () => ({
89
+ getMetaApi: f,
90
+ META_SERVICE: h,
91
+ fetchBusinessCategory: L,
92
+ fetchBusinessCategoryByGroup: V,
93
+ fetchApplicationList: x,
94
+ createApplication: B,
95
+ updateApplication: A,
96
+ deleteApplication: T
97
+ })
98
+ }), ce = {
99
+ components: {
100
+ TinyInput: ee,
101
+ TinyButton: M,
102
+ TinyDialogBox: $,
103
+ TinyForm: Z,
104
+ TinyFormItem: Y,
105
+ TinySelect: K
106
+ },
107
+ props: {
108
+ visible: {
109
+ type: Boolean,
110
+ default: !1
111
+ },
112
+ template: {
113
+ type: Object,
114
+ default: () => ({})
115
+ },
116
+ openByTemplate: {
117
+ type: Boolean,
118
+ default: !1
119
+ }
120
+ },
121
+ emits: ["confirm"],
122
+ setup(l, { emit: n }) {
123
+ const u = E(), e = j({
124
+ name: l.template.name || "",
125
+ description: l.template.description || "",
126
+ sceneId: l.template.sceneId || null,
127
+ industryId: l.template.industryId || null,
128
+ assetsUrl: l.template.assetsUrl || "template-cover-1"
129
+ }), s = E(!1), g = j({
130
+ scene: [],
131
+ industry: []
132
+ }), y = {
133
+ name: [
134
+ { required: !0, message: "应用名称必填", trigger: "blur" },
135
+ { max: 50, message: "长度不大于50", trigger: "change" },
136
+ {
137
+ trigger: "blur",
138
+ validator: (t, i, b) => {
139
+ /^[\w\-_]+$/.test(i) ? b() : b(new Error("应用名称只能包括英文、数字、中划线和下划线"));
140
+ }
141
+ }
142
+ ],
143
+ description: [
144
+ { max: 200, message: "长度不大于200", trigger: "change" },
145
+ {
146
+ trigger: "blur",
147
+ validator: (t, i, b) => {
148
+ /^[\w\-_\u4e00-\u9fa5]*$/.test(i) ? b() : b(new Error("描述只能包括中文、英文、数字、中划线和下划线"));
149
+ }
150
+ }
151
+ ],
152
+ sceneId: [{ required: !0, message: "场景必选", trigger: "change" }],
153
+ industryId: [{ required: !0, message: "行业必选", trigger: "change" }]
154
+ }, m = (t) => n("update:visible", t), C = async () => {
155
+ Promise.all([V("场景"), V("行业")]).then((t) => {
156
+ g.scene = t[0] || [], g.industry = t[1] || [];
157
+ }).catch((t) => {
158
+ O({
159
+ type: "error",
160
+ message: t,
161
+ position: "top-right",
162
+ duration: 5e3
163
+ });
164
+ });
165
+ }, S = () => {
166
+ s.value = !0;
167
+ }, I = (t) => {
168
+ e.assetsUrl = t, s.value = !1;
169
+ }, k = () => {
170
+ s.value = !1, m(!1);
171
+ }, v = () => {
172
+ u.value.validate((t) => {
173
+ var i;
174
+ t && (n(
175
+ "confirm",
176
+ (i = l.template) != null && i.id ? {
177
+ id: l.template.id,
178
+ ...e
179
+ } : e
180
+ ), k());
181
+ });
182
+ };
183
+ return N(() => {
184
+ C();
185
+ }), {
186
+ isOpen: s,
187
+ editAppInfoRef: u,
188
+ formState: e,
189
+ validRules: y,
190
+ tagsList: g,
191
+ setVisible: m,
192
+ handleOpen: S,
193
+ handleSelectIcon: I,
194
+ confirm: v,
195
+ cancle: k
196
+ };
197
+ }
198
+ }, q = (l, n) => {
199
+ const u = l.__vccOpts || l;
200
+ for (const [e, s] of n)
201
+ u[e] = s;
202
+ return u;
203
+ }, de = { class: "form-item-icon-wrapper" }, me = {
204
+ key: 0,
205
+ class: "form-item-icon-mask"
206
+ }, ge = {
207
+ key: 0,
208
+ class: "dropdown-menu"
209
+ }, ue = { class: "icon-list" };
210
+ function ye(l, n, u, e, s, g) {
211
+ const y = c("tiny-input"), m = c("tiny-form-item"), C = c("tiny-select"), S = c("svg-icon"), I = c("tiny-form"), k = c("tiny-button"), v = c("tiny-dialog-box");
212
+ return d(), R(v, {
213
+ visible: u.visible,
214
+ title: "新建应用",
215
+ width: "400px",
216
+ "append-to-body": "",
217
+ "destroy-on-close": "",
218
+ onClose: e.cancle
219
+ }, {
220
+ footer: r(() => [
221
+ o(k, {
222
+ type: "primary",
223
+ onClick: e.confirm
224
+ }, {
225
+ default: r(() => [...n[4] || (n[4] = [
226
+ P(" 确定 ", -1)
227
+ ])]),
228
+ _: 1
229
+ }, 8, ["onClick"]),
230
+ o(k, { onClick: e.cancle }, {
231
+ default: r(() => [...n[5] || (n[5] = [
232
+ P("取消", -1)
233
+ ])]),
234
+ _: 1
235
+ }, 8, ["onClick"])
236
+ ]),
237
+ default: r(() => [
238
+ o(I, {
239
+ ref: "editAppInfoRef",
240
+ "label-position": "left",
241
+ "label-width": "84px",
242
+ "label-align": "",
243
+ model: e.formState,
244
+ rules: e.validRules,
245
+ "validate-type": "text"
246
+ }, {
247
+ default: r(() => [
248
+ o(m, {
249
+ label: "应用名称",
250
+ prop: "name"
251
+ }, {
252
+ default: r(() => [
253
+ o(y, {
254
+ modelValue: e.formState.name,
255
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => e.formState.name = t),
256
+ placeholder: "请输入"
257
+ }, null, 8, ["modelValue"])
258
+ ]),
259
+ _: 1
260
+ }),
261
+ o(m, {
262
+ label: "应用描述",
263
+ prop: "description"
264
+ }, {
265
+ default: r(() => [
266
+ o(y, {
267
+ modelValue: e.formState.description,
268
+ "onUpdate:modelValue": n[1] || (n[1] = (t) => e.formState.description = t),
269
+ type: "textarea",
270
+ placeholder: "请输入此次发布的修改点"
271
+ }, null, 8, ["modelValue"])
272
+ ]),
273
+ _: 1
274
+ }),
275
+ o(m, {
276
+ label: "场景",
277
+ prop: "sceneId"
278
+ }, {
279
+ default: r(() => {
280
+ var t;
281
+ return [
282
+ o(C, {
283
+ modelValue: e.formState.sceneId,
284
+ "onUpdate:modelValue": n[2] || (n[2] = (i) => e.formState.sceneId = i),
285
+ placeholder: "请选择",
286
+ options: e.tagsList.scene,
287
+ disabled: (t = u.template) == null ? void 0 : t.sceneId,
288
+ "value-field": "id",
289
+ "text-field": "name"
290
+ }, null, 8, ["modelValue", "options", "disabled"])
291
+ ];
292
+ }),
293
+ _: 1
294
+ }),
295
+ o(m, {
296
+ label: "行业",
297
+ prop: "industryId"
298
+ }, {
299
+ default: r(() => {
300
+ var t;
301
+ return [
302
+ o(C, {
303
+ modelValue: e.formState.industryId,
304
+ "onUpdate:modelValue": n[3] || (n[3] = (i) => e.formState.industryId = i),
305
+ placeholder: "请选择",
306
+ options: e.tagsList.industry,
307
+ disabled: (t = u.template) == null ? void 0 : t.industryId,
308
+ "value-field": "id",
309
+ "text-field": "name"
310
+ }, null, 8, ["modelValue", "options", "disabled"])
311
+ ];
312
+ }),
313
+ _: 1
314
+ }),
315
+ o(m, { label: "缩略图" }, {
316
+ default: r(() => [
317
+ p("div", de, [
318
+ e.isOpen ? (d(), _("div", me)) : w("", !0),
319
+ o(S, {
320
+ name: e.formState.assetsUrl,
321
+ class: "form-item-icon",
322
+ onClick: e.handleOpen
323
+ }, null, 8, ["name", "onClick"]),
324
+ o(W, { name: "dropdown" }, {
325
+ default: r(() => [
326
+ e.isOpen ? (d(), _("div", ge, [
327
+ p("div", ue, [
328
+ (d(), _(D, null, G(15, (t) => o(S, {
329
+ key: t,
330
+ name: "template-cover-" + t,
331
+ class: "icon",
332
+ onClick: (i) => e.handleSelectIcon("template-cover-" + t)
333
+ }, null, 8, ["name", "onClick"])), 64))
334
+ ])
335
+ ])) : w("", !0)
336
+ ]),
337
+ _: 1
338
+ })
339
+ ])
340
+ ]),
341
+ _: 1
342
+ })
343
+ ]),
344
+ _: 1
345
+ }, 8, ["model", "rules"])
346
+ ]),
347
+ _: 1
348
+ }, 8, ["visible", "onClose"]);
349
+ }
350
+ const _e = /* @__PURE__ */ q(ce, [["render", ye], ["__scopeId", "data-v-2dd22eb8"]]), fe = {
351
+ components: {
352
+ TinyButton: M,
353
+ TinySelect: K,
354
+ TinyPager: ie,
355
+ TinyGrid: ae,
356
+ TinyGridColumn: oe,
357
+ TinyPopover: ne,
358
+ TinySearch: te,
359
+ SearchEmpty: re,
360
+ TinyIconSearch: se(),
361
+ AppDialog: _e
362
+ },
363
+ setup() {
364
+ const l = E([]), n = [
365
+ {
366
+ label: "全部应用",
367
+ value: "all"
368
+ },
369
+ {
370
+ label: "我的应用",
371
+ value: "my"
372
+ }
373
+ ], u = [
374
+ {
375
+ label: "按创建时间排序",
376
+ value: "created_time"
377
+ },
378
+ {
379
+ label: "按最近更新时间排序",
380
+ value: "last_updated_time"
381
+ }
382
+ ], e = [
383
+ {
384
+ id: "default",
385
+ name: "栅格",
386
+ assetsUrl: "workspace-icon-application-center"
387
+ },
388
+ {
389
+ id: "table",
390
+ name: "列表",
391
+ assetsUrl: "small-list"
392
+ }
393
+ ], s = j({
394
+ appFilter: "all",
395
+ orderBy: "created_time",
396
+ appSearchKey: "",
397
+ type: "default",
398
+ total: 0,
399
+ pageSize: 10,
400
+ currentPage: 1,
401
+ pageSizes: [10, 20, 30, 40],
402
+ appVisible: !1
403
+ }), g = () => {
404
+ const t = {
405
+ currentPage: s.currentPage,
406
+ pageSize: s.pageSize,
407
+ name: s.appSearchKey,
408
+ createdBy: s.appFilter === "all" ? "" : "1"
409
+ };
410
+ s.orderBy === "last_updated_time" && (t.orderBy = s.orderBy), x(Object.fromEntries(Object.entries(t).filter(([, i]) => !!i))).then((i) => {
411
+ l.value = i.apps || [], s.total = i.total;
412
+ });
413
+ }, y = () => {
414
+ s.appVisible = !0;
415
+ }, m = (t) => {
416
+ le.confirm({
417
+ message: "即将删除应用,删除后不可恢复,请谨慎操作。",
418
+ title: "删除应用"
419
+ }).then((i) => {
420
+ i === "confirm" && T(t.id).then(() => {
421
+ g();
422
+ }).catch((b) => {
423
+ O({
424
+ type: "error",
425
+ message: b,
426
+ position: "top-right",
427
+ duration: 5e3
428
+ });
429
+ });
430
+ });
431
+ }, C = (t) => {
432
+ const i = window.location.href.split("?")[0] || "./";
433
+ window.open(`${i}?type=app&id=${t.id}&tenant=${t.tenantId}`);
434
+ }, S = (t) => {
435
+ s.type = t;
436
+ }, I = (t) => {
437
+ s.pageSize = t, s.currentPage = 1, g();
438
+ }, k = (t) => {
439
+ s.currentPage = t, g();
440
+ }, v = (t) => {
441
+ if (t != null && t.id) {
442
+ const i = t.id;
443
+ delete t.id, A(i, t).then(() => {
444
+ O({
445
+ type: "success",
446
+ message: "应用更新成功",
447
+ position: "top-right",
448
+ duration: 5e3
449
+ }), g();
450
+ }).catch((b) => {
451
+ O({
452
+ type: "error",
453
+ message: b,
454
+ position: "top-right",
455
+ duration: 5e3
456
+ });
457
+ });
458
+ } else
459
+ B(t).then(() => {
460
+ O({
461
+ type: "success",
462
+ message: "应用创建成功",
463
+ position: "top-right",
464
+ duration: 5e3
465
+ }), g();
466
+ }).catch((i) => {
467
+ O({
468
+ type: "error",
469
+ message: i,
470
+ position: "top-right",
471
+ duration: 5e3
472
+ });
473
+ });
474
+ };
475
+ return N(() => {
476
+ g();
477
+ }), {
478
+ state: s,
479
+ appList: l,
480
+ appFilterOptions: n,
481
+ appOrderByOptions: u,
482
+ arrangeOptions: e,
483
+ creatApp: y,
484
+ getApplicationList: g,
485
+ typeClick: S,
486
+ handleDelete: m,
487
+ openApplication: C,
488
+ confirmApp: v,
489
+ pageSizeChange: I,
490
+ currentChange: k
491
+ };
492
+ }
493
+ }, he = { class: "app-center" }, ve = { class: "app-center-operation" }, be = { class: "app-center-filter" }, Ce = { class: "type-toolbar" }, ke = ["onClick"], Se = { class: "app-center-list" }, we = { class: "list-wrap" }, Ve = {
494
+ key: 0,
495
+ class: "list"
496
+ }, Ie = { class: "app-name" }, xe = { class: "app-name-text" }, Be = { class: "app-tag" }, Ae = {
497
+ key: 0,
498
+ class: "tag"
499
+ }, Te = {
500
+ key: 1,
501
+ class: "tag"
502
+ }, ze = {
503
+ key: 2,
504
+ class: "tag"
505
+ }, Oe = { class: "app-desc" }, Ue = { class: "app-operation" }, Le = { class: "options" }, Fe = ["onClick"], Pe = ["onClick"], Ee = { class: "app-name" };
506
+ function je(l, n, u, e, s, g) {
507
+ const y = c("svg-icon"), m = c("tiny-button"), C = c("tiny-select"), S = c("tiny-icon-search"), I = c("tiny-search"), k = c("tiny-popover"), v = c("tiny-grid-column"), t = c("tiny-grid"), i = c("search-empty"), b = c("tiny-pager"), J = c("app-dialog");
508
+ return d(), _("div", he, [
509
+ n[8] || (n[8] = p("div", { class: "app-center-title" }, "应用中心", -1)),
510
+ p("div", ve, [
511
+ o(m, {
512
+ class: "add-app",
513
+ onClick: n[0] || (n[0] = (a) => e.creatApp())
514
+ }, {
515
+ default: r(() => [
516
+ o(y, { name: "add" }),
517
+ n[5] || (n[5] = P("创建应用 ", -1))
518
+ ]),
519
+ _: 1
520
+ }),
521
+ p("div", be, [
522
+ o(C, {
523
+ modelValue: e.state.appFilter,
524
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => e.state.appFilter = a),
525
+ options: e.appFilterOptions,
526
+ onChange: e.getApplicationList
527
+ }, null, 8, ["modelValue", "options", "onChange"]),
528
+ o(C, {
529
+ modelValue: e.state.orderBy,
530
+ "onUpdate:modelValue": n[2] || (n[2] = (a) => e.state.orderBy = a),
531
+ options: e.appOrderByOptions,
532
+ onChange: e.getApplicationList
533
+ }, null, 8, ["modelValue", "options", "onChange"]),
534
+ o(I, {
535
+ class: "app-center-search",
536
+ modelValue: e.state.appSearchKey,
537
+ "onUpdate:modelValue": n[3] || (n[3] = (a) => e.state.appSearchKey = a),
538
+ clearable: "",
539
+ placeholder: "输入关键字搜索、过滤",
540
+ onSearch: e.getApplicationList,
541
+ "is-enter-search": ""
542
+ }, {
543
+ prefix: r(() => [
544
+ o(S)
545
+ ]),
546
+ _: 1
547
+ }, 8, ["modelValue", "onSearch"]),
548
+ p("div", Ce, [
549
+ (d(!0), _(D, null, G(e.arrangeOptions, (a) => (d(), _("span", {
550
+ key: a.id,
551
+ class: X(["icon-wrap", { active: e.state.type === a.id }]),
552
+ onClick: (F) => e.typeClick(a.id)
553
+ }, [
554
+ o(y, {
555
+ name: a.assetsUrl
556
+ }, null, 8, ["name"])
557
+ ], 10, ke))), 128))
558
+ ])
559
+ ])
560
+ ]),
561
+ p("div", Se, [
562
+ p("div", we, [
563
+ e.state.type === "default" ? (d(), _("div", Ve, [
564
+ (d(!0), _(D, null, G(e.appList, (a) => {
565
+ var F, H;
566
+ return d(), _("div", {
567
+ key: a.id,
568
+ class: "item"
569
+ }, [
570
+ p("div", Ie, [
571
+ o(y, {
572
+ name: a.assetsUrl || "template-cover-1",
573
+ class: "app-img"
574
+ }, null, 8, ["name"]),
575
+ p("span", xe, z(a.name), 1)
576
+ ]),
577
+ p("div", Be, [
578
+ a.sceneId ? (d(), _("div", Ae, z((F = a.scene[0]) == null ? void 0 : F.name), 1)) : w("", !0),
579
+ a.industryId ? (d(), _("div", Te, z((H = a.industry[0]) == null ? void 0 : H.name), 1)) : w("", !0),
580
+ a.framework ? (d(), _("div", ze, z(a.framework), 1)) : w("", !0)
581
+ ]),
582
+ p("div", Oe, z(a.description), 1),
583
+ o(k, {
584
+ "visible-arrow": !1,
585
+ trigger: "hover",
586
+ placement: "bottom-start",
587
+ "popper-class": "operation-popover",
588
+ ref_for: !0,
589
+ ref: "popoverRef"
590
+ }, {
591
+ reference: r(() => [
592
+ p("div", Ue, [
593
+ o(y, { name: "ellipsis" })
594
+ ])
595
+ ]),
596
+ default: r(() => [
597
+ p("div", Le, [
598
+ p("div", {
599
+ class: "option",
600
+ onClick: (Q) => e.openApplication(a)
601
+ }, "开发应用", 8, Fe),
602
+ p("div", {
603
+ class: "option",
604
+ onClick: (Q) => e.handleDelete(a)
605
+ }, "删除应用", 8, Pe)
606
+ ])
607
+ ]),
608
+ _: 2
609
+ }, 1536)
610
+ ]);
611
+ }), 128))
612
+ ])) : w("", !0),
613
+ e.state.type === "table" && e.appList.length ? (d(), R(t, {
614
+ key: 1,
615
+ ref: "gridRef",
616
+ class: "table",
617
+ data: e.appList
618
+ }, {
619
+ default: r(() => [
620
+ o(v, {
621
+ field: "name",
622
+ title: "应用名称",
623
+ "show-overflow": ""
624
+ }, {
625
+ default: r((a) => [
626
+ p("div", Ee, [
627
+ o(y, {
628
+ name: a.row.assetsUrl || "template-cover-1",
629
+ class: "app-img"
630
+ }, null, 8, ["name"]),
631
+ p("span", null, z(a.row.name), 1)
632
+ ])
633
+ ]),
634
+ _: 1
635
+ }),
636
+ o(v, {
637
+ field: "created_at",
638
+ title: "创建时间",
639
+ "show-overflow": ""
640
+ }),
641
+ o(v, {
642
+ field: "createdBy",
643
+ title: "创建人",
644
+ "show-overflow": ""
645
+ }),
646
+ o(v, {
647
+ field: "description",
648
+ title: "应用描述",
649
+ "show-overflow": ""
650
+ }),
651
+ o(v, {
652
+ width: "180",
653
+ field: "operation",
654
+ title: "操作"
655
+ }, {
656
+ default: r((a) => [
657
+ o(m, {
658
+ type: "text",
659
+ onClick: (F) => e.openApplication(a.row)
660
+ }, {
661
+ default: r(() => [...n[6] || (n[6] = [
662
+ P(" 开发应用 ", -1)
663
+ ])]),
664
+ _: 1
665
+ }, 8, ["onClick"]),
666
+ o(m, {
667
+ type: "text",
668
+ onClick: (F) => e.handleDelete(a.row)
669
+ }, {
670
+ default: r(() => [...n[7] || (n[7] = [
671
+ P(" 删除应用 ", -1)
672
+ ])]),
673
+ _: 1
674
+ }, 8, ["onClick"])
675
+ ]),
676
+ _: 1
677
+ })
678
+ ]),
679
+ _: 1
680
+ }, 8, ["data"])) : w("", !0),
681
+ o(i, {
682
+ isShow: !e.appList.length
683
+ }, null, 8, ["isShow"])
684
+ ]),
685
+ e.state.total > e.state.pageSize ? (d(), R(b, {
686
+ key: 0,
687
+ mode: "number",
688
+ "current-page": e.state.currentPage,
689
+ "page-size": e.state.pageSize,
690
+ "page-sizes": e.state.pageSizes,
691
+ total: e.state.total,
692
+ onSizeChange: e.pageSizeChange,
693
+ onCurrentChange: e.currentChange
694
+ }, null, 8, ["current-page", "page-size", "page-sizes", "total", "onSizeChange", "onCurrentChange"])) : w("", !0)
695
+ ]),
696
+ o(J, {
697
+ visible: e.state.appVisible,
698
+ "onUpdate:visible": n[4] || (n[4] = (a) => e.state.appVisible = a),
699
+ onConfirm: e.confirmApp
700
+ }, null, 8, ["visible", "onConfirm"])
701
+ ]);
702
+ }
703
+ const Re = /* @__PURE__ */ q(fe, [["render", je], ["__scopeId", "data-v-2d6a9530"]]), qe = {
704
+ ...pe,
705
+ entry: Re
706
+ };
707
+ export {
708
+ qe as default
709
+ };
710
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../meta.js","../src/AppDialog.vue","../src/Main.vue","../index.ts"],"sourcesContent":["export default {\n id: 'engine.workspace.application-center',\n title: '应用中心',\n type: 'workspace',\n icon: 'workspace-icon-application-center'\n}\n","<template>\n <tiny-dialog-box :visible=\"visible\" title=\"新建应用\" width=\"400px\" append-to-body destroy-on-close @close=\"cancle\">\n <tiny-form\n ref=\"editAppInfoRef\"\n label-position=\"left\"\n label-width=\"84px\"\n label-align\n :model=\"formState\"\n :rules=\"validRules\"\n validate-type=\"text\"\n >\n <tiny-form-item label=\"应用名称\" prop=\"name\">\n <tiny-input v-model=\"formState.name\" placeholder=\"请输入\"></tiny-input>\n </tiny-form-item>\n <tiny-form-item label=\"应用描述\" prop=\"description\">\n <tiny-input v-model=\"formState.description\" type=\"textarea\" placeholder=\"请输入此次发布的修改点\"></tiny-input>\n </tiny-form-item>\n <tiny-form-item label=\"场景\" prop=\"sceneId\">\n <tiny-select\n v-model=\"formState.sceneId\"\n placeholder=\"请选择\"\n :options=\"tagsList.scene\"\n :disabled=\"template?.sceneId\"\n value-field=\"id\"\n text-field=\"name\"\n ></tiny-select>\n </tiny-form-item>\n <tiny-form-item label=\"行业\" prop=\"industryId\">\n <tiny-select\n v-model=\"formState.industryId\"\n placeholder=\"请选择\"\n :options=\"tagsList.industry\"\n :disabled=\"template?.industryId\"\n value-field=\"id\"\n text-field=\"name\"\n ></tiny-select>\n </tiny-form-item>\n <tiny-form-item label=\"缩略图\">\n <div class=\"form-item-icon-wrapper\">\n <div class=\"form-item-icon-mask\" v-if=\"isOpen\"></div>\n <svg-icon :name=\"formState.assetsUrl\" class=\"form-item-icon\" @click=\"handleOpen\"></svg-icon>\n <transition name=\"dropdown\">\n <div v-if=\"isOpen\" class=\"dropdown-menu\">\n <!-- 菜单项 -->\n <div class=\"icon-list\">\n <template v-for=\"iconIndex in 15\" :key=\"iconIndex\">\n <svg-icon\n :name=\"'template-cover-' + iconIndex\"\n class=\"icon\"\n @click=\"handleSelectIcon('template-cover-' + iconIndex)\"\n ></svg-icon>\n </template>\n </div>\n </div>\n </transition>\n </div>\n </tiny-form-item>\n </tiny-form>\n <template #footer>\n <tiny-button type=\"primary\" @click=\"confirm\"> 确定 </tiny-button>\n <tiny-button @click=\"cancle\">取消</tiny-button>\n </template>\n </tiny-dialog-box>\n</template>\n\n<script lang=\"ts\">\nimport { ref, reactive, onMounted } from 'vue'\nimport {\n Input as TinyInput,\n Button as TinyButton,\n DialogBox as TinyDialogBox,\n Form as TinyForm,\n FormItem as TinyFormItem,\n Select as TinySelect,\n Notify\n} from '@opentiny/vue'\nimport { fetchBusinessCategoryByGroup } from './js/http'\n\nexport default {\n components: {\n TinyInput,\n TinyButton,\n TinyDialogBox,\n TinyForm,\n TinyFormItem,\n TinySelect\n },\n props: {\n visible: {\n type: Boolean,\n default: false\n },\n template: {\n type: Object,\n default: () => ({})\n },\n openByTemplate: {\n type: Boolean,\n default: false\n }\n },\n emits: ['confirm'],\n setup(props, { emit }) {\n const editAppInfoRef = ref()\n\n const formState = reactive({\n name: props.template.name || '',\n description: props.template.description || '',\n sceneId: props.template.sceneId || null,\n industryId: props.template.industryId || null,\n assetsUrl: props.template.assetsUrl || 'template-cover-1'\n })\n\n const isOpen = ref(false)\n\n const tagsList = reactive({\n scene: [],\n industry: []\n })\n\n const validRules = {\n name: [\n { required: true, message: '应用名称必填', trigger: 'blur' },\n { max: 50, message: '长度不大于50', trigger: 'change' },\n {\n trigger: 'blur',\n validator: (rule: any, value: string, callback: any) => {\n if (!/^[\\w\\-_]+$/.test(value)) {\n callback(new Error('应用名称只能包括英文、数字、中划线和下划线'))\n } else {\n callback()\n }\n }\n }\n ],\n description: [\n { max: 200, message: '长度不大于200', trigger: 'change' },\n {\n trigger: 'blur',\n validator: (rule: any, value: string, callback: any) => {\n if (!/^[\\w\\-_\\u4e00-\\u9fa5]*$/.test(value)) {\n callback(new Error('描述只能包括中文、英文、数字、中划线和下划线'))\n } else {\n callback()\n }\n }\n }\n ],\n sceneId: [{ required: true, message: '场景必选', trigger: 'change' }],\n industryId: [{ required: true, message: '行业必选', trigger: 'change' }]\n }\n\n const setVisible = (visible: boolean) => emit('update:visible', visible)\n\n const getTagsList = async () => {\n Promise.all([fetchBusinessCategoryByGroup('场景'), fetchBusinessCategoryByGroup('行业')])\n .then((res) => {\n tagsList.scene = res[0] || []\n tagsList.industry = res[1] || []\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n\n const handleOpen = () => {\n isOpen.value = true\n }\n\n const handleSelectIcon = (icon: string) => {\n formState.assetsUrl = icon\n isOpen.value = false\n }\n\n const cancle = () => {\n isOpen.value = false\n setVisible(false)\n }\n\n const confirm = () => {\n editAppInfoRef.value.validate((valid: boolean) => {\n if (valid) {\n emit(\n 'confirm',\n props.template?.id\n ? {\n id: props.template.id,\n ...formState\n }\n : formState\n )\n\n cancle()\n }\n })\n }\n\n onMounted(() => {\n getTagsList()\n })\n\n return {\n isOpen,\n editAppInfoRef,\n formState,\n validRules,\n tagsList,\n setVisible,\n handleOpen,\n handleSelectIcon,\n confirm,\n cancle\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.form-item-icon-wrapper {\n position: relative;\n .form-item-icon {\n font-size: 40px;\n cursor: pointer;\n }\n .form-item-icon-mask {\n background-color: var(--te-app-center-mask-modal-bg-color);\n transition: background-color, 0.2s, ease-in-out;\n position: fixed;\n width: 40px;\n height: 40px;\n border-radius: 8px;\n }\n .dropdown-menu {\n position: absolute;\n bottom: 100%;\n left: 0;\n padding: 16px;\n margin-bottom: 5px;\n width: 192px;\n border-radius: 4px;\n z-index: 1000;\n overflow: hidden;\n background: var(--te-template-common-bg-color);\n box-shadow: 0 4px 16px 0 var(--te-base-box-shadow-rgba-3);\n\n .icon-list {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin: 4px 0;\n .icon {\n font-size: 32px;\n cursor: pointer;\n }\n }\n }\n}\n</style>\n","<template>\n <div class=\"app-center\">\n <div class=\"app-center-title\">应用中心</div>\n <div class=\"app-center-operation\">\n <tiny-button class=\"add-app\" @click=\"creatApp()\"> <svg-icon name=\"add\"></svg-icon>创建应用 </tiny-button>\n <div class=\"app-center-filter\">\n <tiny-select v-model=\"state.appFilter\" :options=\"appFilterOptions\" @change=\"getApplicationList\"></tiny-select>\n <tiny-select v-model=\"state.orderBy\" :options=\"appOrderByOptions\" @change=\"getApplicationList\"></tiny-select>\n <tiny-search\n class=\"app-center-search\"\n v-model=\"state.appSearchKey\"\n clearable\n placeholder=\"输入关键字搜索、过滤\"\n @search=\"getApplicationList\"\n is-enter-search\n >\n <template #prefix> <tiny-icon-search /> </template>\n </tiny-search>\n <div class=\"type-toolbar\">\n <span\n v-for=\"item in arrangeOptions\"\n :key=\"item.id\"\n :class=\"['icon-wrap', { active: state.type === item.id }]\"\n @click=\"typeClick(item.id)\"\n >\n <svg-icon :name=\"item.assetsUrl\"></svg-icon>\n </span>\n </div>\n </div>\n </div>\n <div class=\"app-center-list\">\n <div class=\"list-wrap\">\n <div class=\"list\" v-if=\"state.type === 'default'\">\n <template v-for=\"item in appList\" :key=\"item.id\">\n <div class=\"item\">\n <div class=\"app-name\">\n <svg-icon :name=\"item.assetsUrl || 'template-cover-1'\" class=\"app-img\"></svg-icon>\n <span class=\"app-name-text\">{{ item.name }}</span>\n </div>\n <div class=\"app-tag\">\n <div v-if=\"item.sceneId\" class=\"tag\">\n {{ item.scene[0]?.name }}\n </div>\n <div v-if=\"item.industryId\" class=\"tag\">\n {{ item.industry[0]?.name }}\n </div>\n <div v-if=\"item.framework\" class=\"tag\">{{ item.framework }}</div>\n </div>\n <div class=\"app-desc\">{{ item.description }}</div>\n <tiny-popover\n :visible-arrow=\"false\"\n trigger=\"hover\"\n placement=\"bottom-start\"\n popper-class=\"operation-popover\"\n ref=\"popoverRef\"\n >\n <template #reference>\n <div class=\"app-operation\">\n <svg-icon name=\"ellipsis\"></svg-icon>\n </div>\n </template>\n <div class=\"options\">\n <div class=\"option\" @click=\"openApplication(item)\">开发应用</div>\n <div class=\"option\" @click=\"handleDelete(item)\">删除应用</div>\n </div>\n </tiny-popover>\n </div>\n </template>\n </div>\n <tiny-grid ref=\"gridRef\" class=\"table\" v-if=\"state.type === 'table' && appList.length\" :data=\"appList\">\n <tiny-grid-column field=\"name\" title=\"应用名称\" show-overflow>\n <template #default=\"data\">\n <div class=\"app-name\">\n <svg-icon :name=\"data.row.assetsUrl || 'template-cover-1'\" class=\"app-img\"></svg-icon>\n <span>{{ data.row.name }}</span>\n </div>\n </template>\n </tiny-grid-column>\n <tiny-grid-column field=\"created_at\" title=\"创建时间\" show-overflow></tiny-grid-column>\n <tiny-grid-column field=\"createdBy\" title=\"创建人\" show-overflow></tiny-grid-column>\n <tiny-grid-column field=\"description\" title=\"应用描述\" show-overflow></tiny-grid-column>\n <tiny-grid-column width=\"180\" field=\"operation\" title=\"操作\">\n <template #default=\"data\">\n <tiny-button type=\"text\" @click=\"openApplication(data.row)\"> 开发应用 </tiny-button>\n <tiny-button type=\"text\" @click=\"handleDelete(data.row)\"> 删除应用 </tiny-button>\n </template>\n </tiny-grid-column>\n </tiny-grid>\n <search-empty :isShow=\"!appList.length\" />\n </div>\n <tiny-pager\n v-if=\"state.total > state.pageSize\"\n mode=\"number\"\n :current-page=\"state.currentPage\"\n :page-size=\"state.pageSize\"\n :page-sizes=\"state.pageSizes\"\n :total=\"state.total\"\n @size-change=\"pageSizeChange\"\n @current-change=\"currentChange\"\n ></tiny-pager>\n </div>\n <app-dialog v-model:visible=\"state.appVisible\" @confirm=\"confirmApp\"></app-dialog>\n </div>\n</template>\n\n<script>\nimport { reactive, ref, onMounted } from 'vue'\nimport { Button, Select, Pager, Grid, GridColumn, Popover, Search, Modal, Notify } from '@opentiny/vue'\nimport { iconSearch } from '@opentiny/vue-icon'\nimport { SearchEmpty } from '@opentiny/tiny-engine-common'\nimport AppDialog from './AppDialog.vue'\nimport { fetchApplicationList, createApplication, updateApplication, deleteApplication } from './js/http'\n\nexport default {\n components: {\n TinyButton: Button,\n TinySelect: Select,\n TinyPager: Pager,\n TinyGrid: Grid,\n TinyGridColumn: GridColumn,\n TinyPopover: Popover,\n TinySearch: Search,\n SearchEmpty,\n TinyIconSearch: iconSearch(),\n AppDialog\n },\n\n setup() {\n const appList = ref([])\n\n const appFilterOptions = [\n {\n label: '全部应用',\n value: 'all'\n },\n {\n label: '我的应用',\n value: 'my'\n }\n ]\n\n const appOrderByOptions = [\n {\n label: '按创建时间排序',\n value: 'created_time'\n },\n {\n label: '按最近更新时间排序',\n value: 'last_updated_time'\n }\n ]\n\n const arrangeOptions = [\n {\n id: 'default',\n name: '栅格',\n assetsUrl: 'workspace-icon-application-center'\n },\n {\n id: 'table',\n name: '列表',\n assetsUrl: 'small-list'\n }\n ]\n\n const state = reactive({\n appFilter: 'all',\n orderBy: 'created_time',\n appSearchKey: '',\n type: 'default',\n total: 0,\n pageSize: 10,\n currentPage: 1,\n pageSizes: [10, 20, 30, 40],\n appVisible: false\n })\n\n const getApplicationList = () => {\n const params = {\n currentPage: state.currentPage,\n pageSize: state.pageSize,\n name: state.appSearchKey,\n createdBy: state.appFilter === 'all' ? '' : '1'\n }\n if (state.orderBy === 'last_updated_time') {\n params.orderBy = state.orderBy\n }\n fetchApplicationList(Object.fromEntries(Object.entries(params).filter(([, value]) => !!value))).then((res) => {\n appList.value = res.apps || []\n state.total = res.total\n })\n }\n\n const creatApp = () => {\n state.appVisible = true\n }\n\n const handleDelete = (template) => {\n Modal.confirm({\n message: '即将删除应用,删除后不可恢复,请谨慎操作。',\n title: '删除应用'\n }).then((res) => {\n if (res === 'confirm') {\n deleteApplication(template.id)\n .then(() => {\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n })\n }\n\n const openApplication = (template) => {\n const href = window.location.href.split('?')[0] || './'\n window.open(`${href}?type=app&id=${template.id}&tenant=${template.tenantId}`)\n }\n\n const typeClick = (type) => {\n state.type = type\n }\n\n const pageSizeChange = (val) => {\n state.pageSize = val\n state.currentPage = 1\n getApplicationList()\n }\n\n const currentChange = (val) => {\n state.currentPage = val\n getApplicationList()\n }\n\n const confirmApp = (formData) => {\n if (formData?.id) {\n const updateId = formData.id\n delete formData.id\n updateApplication(updateId, formData)\n .then(() => {\n Notify({\n type: 'success',\n message: '应用更新成功',\n position: 'top-right',\n duration: 5000\n })\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n } else {\n createApplication(formData)\n .then(() => {\n Notify({\n type: 'success',\n message: '应用创建成功',\n position: 'top-right',\n duration: 5000\n })\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n }\n\n onMounted(() => {\n getApplicationList()\n })\n\n return {\n state,\n appList,\n appFilterOptions,\n appOrderByOptions,\n arrangeOptions,\n creatApp,\n getApplicationList,\n typeClick,\n handleDelete,\n openApplication,\n confirmApp,\n pageSizeChange,\n currentChange\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.app-center {\n padding: 24px;\n background: var(--te-template-common-bg-color);\n height: -webkit-fill-available;\n .app-center-title {\n font-size: 20px;\n font-weight: 600;\n }\n .app-center-operation {\n margin: 24px 0 20px;\n display: flex;\n justify-content: space-between;\n }\n .app-center-filter {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n .app-center-search {\n min-width: 300px;\n }\n .type-toolbar {\n display: flex;\n border-radius: 4px;\n background-color: var(--te-template-app-center-btn-bg-color);\n .icon-wrap {\n width: 24px;\n height: 24px;\n color: var(--te-template-app-center-btn-icon-color);\n font-size: 16px;\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n transition: 0.3s;\n &.active {\n border: 1px solid var(--te-template-app-center-btn-border-color-active);\n color: var(--te-template-app-center-btn-color-active);\n border-radius: 4px;\n background-color: var(--te-template-app-center-btn-bg-color-active);\n }\n }\n }\n .app-center-list {\n height: calc(100vh - 200px);\n }\n}\n.list {\n display: flex;\n gap: 24px;\n flex-wrap: wrap;\n .item {\n width: 252px;\n padding: 24px;\n border-radius: 8px;\n background: var(--te-template-center-common-item-bg-color);\n border: 1px solid var(--te-template-app-center-item-border-color);\n position: relative;\n &:hover {\n border-color: var(--te-template-app-center-item-border-color-hover);\n }\n .app-name {\n display: flex;\n gap: 8px;\n align-items: center;\n .app-img {\n width: 40px;\n height: 40px;\n }\n .app-name-text {\n font-size: 18px;\n font-weight: 600;\n }\n }\n .app-tag {\n display: flex;\n gap: 4px;\n height: 20px;\n margin-top: 12px;\n .tag {\n padding: 2px 4px;\n border-radius: 2px;\n background: var(--te-template-center-common-item-tag-bg-color);\n }\n }\n .app-desc {\n margin-top: 12px;\n color: var(--te-template-center-common-item-desc-text-color);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .app-operation {\n display: none;\n }\n &:hover {\n .app-operation {\n display: block;\n position: absolute;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n background: var(--te-template-center-common-item-operation-bg-color);\n color: var(--te-template-center-common-item-operation-icon-color);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n top: 16px;\n right: 16px;\n }\n }\n }\n}\n.table {\n .app-name {\n display: flex;\n gap: 8px;\n align-items: center;\n .app-img {\n width: 24px;\n height: 24px;\n }\n }\n\n .tiny-button.tiny-button--text {\n padding-left: 0;\n }\n}\n\n.list-wrap {\n margin-bottom: 12px;\n max-height: calc(100% - 80px);\n overflow: auto;\n .empty-wrap {\n width: 100%;\n }\n}\n.options {\n .option {\n padding: 4px 16px;\n cursor: pointer;\n &:hover {\n background: var(--te-template-common-bg-color-hover);\n }\n }\n}\n</style>\n<style lang=\"less\">\n.tiny-pager__selector.tiny-popover.tiny-popper[x-placement],\n.operation-popover.tiny-popover.tiny-popper[x-placement] {\n padding: 8px 0;\n}\n</style>\n","/**\n * Copyright (c) 2023 - present TinyEngine Authors.\n * Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.\n *\n * Use of this source code is governed by an MIT-style license.\n *\n * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,\n * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR\n * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.\n *\n */\n\nimport entry from './src/Main.vue'\nimport metaData from './meta'\nimport './src/styles/vars.less'\n\nexport default {\n ...metaData,\n entry\n}\n"],"names":["metaData","_sfc_main$1","TinyInput","TinyButton","TinyDialogBox","TinyForm","TinyFormItem","TinySelect","props","emit","editAppInfoRef","ref","formState","reactive","isOpen","tagsList","validRules","rule","value","callback","setVisible","visible","getTagsList","fetchBusinessCategoryByGroup","res","error","Notify","handleOpen","handleSelectIcon","icon","cancle","confirm","valid","_a","onMounted","_hoisted_1","_hoisted_4","_createBlock","_component_tiny_dialog_box","$props","$setup","_withCtx","_createVNode","_component_tiny_button","_cache","_createTextVNode","_component_tiny_form","_component_tiny_form_item","_component_tiny_input","$event","_component_tiny_select","_createElementVNode","_openBlock","_createElementBlock","_hoisted_2","_createCommentVNode","_component_svg_icon","_Transition","_hoisted_3","_Fragment","_renderList","iconIndex","_sfc_main","Button","Select","Pager","Grid","GridColumn","Popover","Search","SearchEmpty","iconSearch","AppDialog","appList","appFilterOptions","appOrderByOptions","arrangeOptions","state","getApplicationList","params","fetchApplicationList","creatApp","handleDelete","template","Modal","deleteApplication","openApplication","href","typeClick","type","pageSizeChange","val","currentChange","confirmApp","formData","updateId","updateApplication","createApplication","_hoisted_6","_hoisted_7","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_20","_component_tiny_search","_component_tiny_icon_search","item","_hoisted_8","_toDisplayString","_hoisted_12","_hoisted_13","_b","_hoisted_14","_component_tiny_popover","_hoisted_18","_hoisted_19","_component_tiny_grid","_component_tiny_grid_column","data","_component_search_empty","_component_tiny_pager","_component_app_dialog","index","entry"],"mappings":";;;;;;AAAA,MAAAA,KAAe;AAAA,EACb,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICyEAC,KAAe;AAAA,EACb,YAAY;AAAA,IAAA,WACVC;AAAAA,IAAA,YACAC;AAAAA,IAAA,eACAC;AAAAA,IAAA,UACAC;AAAAA,IAAA,cACAC;AAAAA,IAAA,YACAC;AAAAA,EAAA;AAAA,EAEF,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN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icon-wrapper[data-v-2dd22eb8]{position:relative}.form-item-icon-wrapper .form-item-icon[data-v-2dd22eb8]{font-size:40px;cursor:pointer}.form-item-icon-wrapper .form-item-icon-mask[data-v-2dd22eb8]{background-color:var(--te-app-center-mask-modal-bg-color);transition:background-color,.2s,ease-in-out;position:fixed;width:40px;height:40px;border-radius:8px}.form-item-icon-wrapper .dropdown-menu[data-v-2dd22eb8]{position:absolute;bottom:100%;left:0;padding:16px;margin-bottom:5px;width:192px;border-radius:4px;z-index:1000;overflow:hidden;background:var(--te-template-common-bg-color);box-shadow:0 4px 16px 0 var(--te-base-box-shadow-rgba-3)}.form-item-icon-wrapper .dropdown-menu .icon-list[data-v-2dd22eb8]{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0}.form-item-icon-wrapper .dropdown-menu .icon-list .icon[data-v-2dd22eb8]{font-size:32px;cursor:pointer}.app-center[data-v-2d6a9530]{padding:24px;background:var(--te-template-common-bg-color);height:-webkit-fill-available}.app-center .app-center-title[data-v-2d6a9530]{font-size:20px;font-weight:600}.app-center .app-center-operation[data-v-2d6a9530]{margin:24px 0 20px;display:flex;justify-content:space-between}.app-center .app-center-filter[data-v-2d6a9530]{display:flex;align-items:center;gap:12px}.app-center .app-center-search[data-v-2d6a9530]{min-width:300px}.app-center .type-toolbar[data-v-2d6a9530]{display:flex;border-radius:4px;background-color:var(--te-template-app-center-btn-bg-color)}.app-center .type-toolbar .icon-wrap[data-v-2d6a9530]{width:24px;height:24px;color:var(--te-template-app-center-btn-icon-color);font-size:16px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;transition:.3s}.app-center .type-toolbar .icon-wrap.active[data-v-2d6a9530]{border:1px solid var(--te-template-app-center-btn-border-color-active);color:var(--te-template-app-center-btn-color-active);border-radius:4px;background-color:var(--te-template-app-center-btn-bg-color-active)}.app-center .app-center-list[data-v-2d6a9530]{height:calc(100vh - 200px)}.list[data-v-2d6a9530]{display:flex;gap:24px;flex-wrap:wrap}.list .item[data-v-2d6a9530]{width:252px;padding:24px;border-radius:8px;background:var(--te-template-center-common-item-bg-color);border:1px solid var(--te-template-app-center-item-border-color);position:relative}.list .item[data-v-2d6a9530]:hover{border-color:var(--te-template-app-center-item-border-color-hover)}.list .item .app-name[data-v-2d6a9530]{display:flex;gap:8px;align-items:center}.list .item .app-name .app-img[data-v-2d6a9530]{width:40px;height:40px}.list .item .app-name .app-name-text[data-v-2d6a9530]{font-size:18px;font-weight:600}.list .item .app-tag[data-v-2d6a9530]{display:flex;gap:4px;height:20px;margin-top:12px}.list .item .app-tag .tag[data-v-2d6a9530]{padding:2px 4px;border-radius:2px;background:var(--te-template-center-common-item-tag-bg-color)}.list .item .app-desc[data-v-2d6a9530]{margin-top:12px;color:var(--te-template-center-common-item-desc-text-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list .item .app-operation[data-v-2d6a9530]{display:none}.list .item:hover .app-operation[data-v-2d6a9530]{display:block;position:absolute;width:20px;height:20px;border-radius:4px;background:var(--te-template-center-common-item-operation-bg-color);color:var(--te-template-center-common-item-operation-icon-color);display:inline-flex;justify-content:center;align-items:center;cursor:pointer;top:16px;right:16px}.table .app-name[data-v-2d6a9530]{display:flex;gap:8px;align-items:center}.table .app-name .app-img[data-v-2d6a9530]{width:24px;height:24px}.table .tiny-button.tiny-button--text[data-v-2d6a9530]{padding-left:0}.list-wrap[data-v-2d6a9530]{margin-bottom:12px;max-height:calc(100% - 80px);overflow:auto}.list-wrap .empty-wrap[data-v-2d6a9530]{width:100%}.options .option[data-v-2d6a9530]{padding:4px 16px;cursor:pointer}.options .option[data-v-2d6a9530]:hover{background:var(--te-template-common-bg-color-hover)}.tiny-pager__selector.tiny-popover.tiny-popper[x-placement],.operation-popover.tiny-popover.tiny-popper[x-placement]{padding:8px 0}:root{--te-template-common-bg-color: var(--te-common-bg-default);--te-template-common-bg-color-hover: var(--te-common-bg-container);--te-app-center-mask-modal-bg-color: var(--te-common-mask);--te-template-app-center-btn-bg-color: var(--te-common-bg-container);--te-template-app-center-btn-icon-color: var(--te-common-icon-secondary);--te-template-app-center-btn-color-active: var(--te-common-icon-primary);--te-template-app-center-btn-border-color-active: var(--te-common-border-active);--te-template-app-center-btn-bg-color-active: var(--te-common-bg-default);--te-template-app-center-item-border-color: var(--te-common-border-card);--te-template-app-center-item-border-color-hover: var(--te-common-border-checked);--te-template-center-common-item-bg-color: var(--te-common-bg-container-weaken);--te-template-center-common-item-tag-bg-color: var(--te-common-bg-prompt);--te-template-center-common-item-operation-bg-color: var(--te-common-bg-prompt);--te-template-center-common-item-operation-icon-color: var(--te-common-icon-secondary);--te-template-center-common-item-desc-text-color: var(--te-common-text-secondary)}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@opentiny/tiny-engine-workspace-application-center",
3
+ "version": "2.9.0-alpha.10",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "scripts": {
8
+ "build": "vite build"
9
+ },
10
+ "type": "module",
11
+ "main": "dist/index.js",
12
+ "module": "dist/index.js",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/opentiny/tiny-engine",
19
+ "directory": "packages/workspace/application-center"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/opentiny/tiny-engine/issues"
23
+ },
24
+ "author": "OpenTiny Team",
25
+ "license": "MIT",
26
+ "homepage": "https://opentiny.design/tiny-engine",
27
+ "dependencies": {
28
+ "@opentiny/tiny-engine-common": "2.9.0-alpha.10",
29
+ "@opentiny/tiny-engine-meta-register": "2.9.0-alpha.10",
30
+ "vue-clipboard3": "^2.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.9.0-alpha.10",
34
+ "@vitejs/plugin-vue": "^5.1.2",
35
+ "@vitejs/plugin-vue-jsx": "^4.0.1",
36
+ "vite": "^5.4.2"
37
+ },
38
+ "peerDependencies": {
39
+ "@opentiny/vue": "^3.20.0",
40
+ "@opentiny/vue-icon": "^3.20.0",
41
+ "vue": "^3.4.15"
42
+ },
43
+ "gitHead": "b1997150ce3c9fc08861e82d082c6b7413444a3d"
44
+ }