@gadmin2n/schematics 0.0.107 → 0.0.109
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/lib/application/files/gadmin2-game-angle-demo/config/.types.d.ts +8 -9
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/AgendaJob.ts +17 -15
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Audit.ts +13 -17
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Event.ts +48 -17
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Game.ts +1 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/ITActivityDay.ts +14 -18
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Log.ts +0 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Page.ts +42 -18
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/PageResource.ts +28 -18
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Resource.ts +42 -18
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Role.ts +1 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/RolePages.ts +14 -18
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/RoleResource.ts +28 -18
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/SavedQuery.ts +13 -17
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/User.ts +14 -18
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowEventOutbox.ts +17 -17
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowNodeInstance.ts +9 -14
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowNodeType.ts +9 -14
- package/dist/lib/application/files/gadmin2-game-angle-demo/gitignore +1 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/package.json +2 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/temporal.service.ts +7 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/App.tsx +75 -71
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/BulkActions.tsx +36 -6
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/ListPageHeader.tsx +41 -14
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/RowActions.tsx +153 -144
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/agentPanel/inspectorActions.ts +3 -3
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/config/agentAllowed.tsx +35 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/config/env.ts +2 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/dev-shell/DevShell.tsx +8 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/helpers/http.ts +20 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/helpers/list.tsx +48 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/plugins/devShellPlugin.ts +40 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agenda/index.tsx +3 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agendaJob/list.tsx +6 -6
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasCell.tsx +4 -3
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasListPage.tsx +4 -3
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasPage.tsx +99 -5
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasToolbar.tsx +28 -30
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/CanvasAiModal.tsx +80 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/game/list.tsx +6 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/editor.tsx +2 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/components/NodeInstanceForm.tsx +2 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/show.tsx +2 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflowEventOutbox/list.tsx +6 -6
- package/package.json +1 -1
|
@@ -15,11 +15,6 @@ export type ModelConfig = {
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
};
|
|
17
17
|
actions: (
|
|
18
|
-
| {
|
|
19
|
-
action: "SETTING";
|
|
20
|
-
desc?: string;
|
|
21
|
-
option?: any;
|
|
22
|
-
}
|
|
23
18
|
| {
|
|
24
19
|
action: "REFRESH";
|
|
25
20
|
desc?: string;
|
|
@@ -29,6 +24,14 @@ export type ModelConfig = {
|
|
|
29
24
|
desc?: string;
|
|
30
25
|
fields?: string[];
|
|
31
26
|
}
|
|
27
|
+
| {
|
|
28
|
+
action: "IMPORT";
|
|
29
|
+
desc?: string;
|
|
30
|
+
}
|
|
31
|
+
| {
|
|
32
|
+
action: "INSERT";
|
|
33
|
+
desc?: string;
|
|
34
|
+
}
|
|
32
35
|
)[];
|
|
33
36
|
};
|
|
34
37
|
header: {
|
|
@@ -41,10 +44,6 @@ export type ModelConfig = {
|
|
|
41
44
|
fields: string[];
|
|
42
45
|
rowSelection: {
|
|
43
46
|
actions: (
|
|
44
|
-
| {
|
|
45
|
-
action: "INSERT";
|
|
46
|
-
desc: string;
|
|
47
|
-
}
|
|
48
47
|
| {
|
|
49
48
|
action: "DELETE";
|
|
50
49
|
desc: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ModelConfig } from "../.types";
|
|
2
2
|
import { pageActions, PAGE_SIZE } from "./_common";
|
|
3
3
|
|
|
4
|
-
export const AgendaJob: ModelConfig =
|
|
5
|
-
{
|
|
4
|
+
export const AgendaJob: ModelConfig = {
|
|
6
5
|
metadata: {
|
|
7
6
|
nameKeys: ["name"],
|
|
8
7
|
pageActions,
|
|
@@ -10,17 +9,16 @@ export const AgendaJob: ModelConfig =
|
|
|
10
9
|
table: {
|
|
11
10
|
toolbar: {
|
|
12
11
|
searchBar: {
|
|
13
|
-
fields: ["id","name"],
|
|
12
|
+
fields: ["id", "name"],
|
|
14
13
|
containsFields: ["name"],
|
|
15
14
|
placeholder: "id,name",
|
|
16
15
|
},
|
|
17
16
|
actions: [
|
|
18
|
-
{action:
|
|
19
|
-
{action: 'SETTING', desc: 'Setting'},
|
|
17
|
+
{ action: "REFRESH", desc: "Refresh" },
|
|
20
18
|
{
|
|
21
19
|
action: "EXPORT",
|
|
22
|
-
desc:
|
|
23
|
-
fields: ["*","!createdAt","!created_at"]
|
|
20
|
+
desc: "export",
|
|
21
|
+
fields: ["*", "!createdAt", "!created_at"],
|
|
24
22
|
},
|
|
25
23
|
],
|
|
26
24
|
},
|
|
@@ -28,11 +26,9 @@ export const AgendaJob: ModelConfig =
|
|
|
28
26
|
filter: [],
|
|
29
27
|
sorter: ["id"],
|
|
30
28
|
},
|
|
31
|
-
fields: ["*","!createdAt","!created_at"],
|
|
29
|
+
fields: ["*", "!createdAt", "!created_at"],
|
|
32
30
|
rowSelection: {
|
|
33
|
-
actions: [
|
|
34
|
-
{action: 'EXPORT', desc: 'Export'},
|
|
35
|
-
],
|
|
31
|
+
actions: [{ action: "EXPORT", desc: "Export" }],
|
|
36
32
|
},
|
|
37
33
|
rowActions: {
|
|
38
34
|
visibleNum: 1,
|
|
@@ -43,7 +39,14 @@ export const AgendaJob: ModelConfig =
|
|
|
43
39
|
},
|
|
44
40
|
},
|
|
45
41
|
form: {
|
|
46
|
-
fields: [
|
|
42
|
+
fields: [
|
|
43
|
+
"*",
|
|
44
|
+
"!creator",
|
|
45
|
+
"!createdAt",
|
|
46
|
+
"!updatedAt",
|
|
47
|
+
"!created_at",
|
|
48
|
+
"!updated_at",
|
|
49
|
+
],
|
|
47
50
|
reaction: {
|
|
48
51
|
id: {
|
|
49
52
|
toggle: [],
|
|
@@ -54,7 +57,6 @@ export const AgendaJob: ModelConfig =
|
|
|
54
57
|
},
|
|
55
58
|
},
|
|
56
59
|
show: {
|
|
57
|
-
fields: ["*","!createdAt","!created_at"],
|
|
60
|
+
fields: ["*", "!createdAt", "!created_at"],
|
|
58
61
|
},
|
|
59
|
-
}
|
|
60
|
-
;
|
|
62
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ModelConfig } from "../.types";
|
|
2
2
|
import { pageActions, PAGE_SIZE } from "./_common";
|
|
3
3
|
|
|
4
|
-
export const Audit: ModelConfig =
|
|
5
|
-
{
|
|
4
|
+
export const Audit: ModelConfig = {
|
|
6
5
|
metadata: {
|
|
7
6
|
nameKeys: ["id"],
|
|
8
7
|
pageActions,
|
|
@@ -15,26 +14,24 @@ export const Audit: ModelConfig =
|
|
|
15
14
|
placeholder: "id",
|
|
16
15
|
},
|
|
17
16
|
actions: [
|
|
18
|
-
{action:
|
|
19
|
-
{action: 'SETTING', desc: 'Setting'},
|
|
17
|
+
{ action: "REFRESH", desc: "Refresh" },
|
|
20
18
|
{
|
|
21
19
|
action: "EXPORT",
|
|
22
|
-
desc:
|
|
23
|
-
fields: ["*","!createdAt"]
|
|
20
|
+
desc: "export",
|
|
21
|
+
fields: ["*", "!createdAt"],
|
|
24
22
|
},
|
|
23
|
+
{ action: "INSERT", desc: "Insert" },
|
|
25
24
|
],
|
|
26
25
|
},
|
|
27
26
|
header: {
|
|
28
27
|
filter: [],
|
|
29
28
|
sorter: ["id"],
|
|
30
29
|
},
|
|
31
|
-
fields: ["*","!createdAt"],
|
|
30
|
+
fields: ["*", "!createdAt"],
|
|
32
31
|
rowSelection: {
|
|
33
32
|
actions: [
|
|
34
|
-
{action:
|
|
35
|
-
|
|
36
|
-
{action: 'DELETE', desc: 'Delete'},
|
|
37
|
-
{action: 'EXPORT', desc: 'Export'},
|
|
33
|
+
{ action: "DELETE", desc: "Delete" },
|
|
34
|
+
{ action: "EXPORT", desc: "Export" },
|
|
38
35
|
],
|
|
39
36
|
},
|
|
40
37
|
rowActions: {
|
|
@@ -44,8 +41,8 @@ export const Audit: ModelConfig =
|
|
|
44
41
|
action: "EDIT",
|
|
45
42
|
desc: "Edit",
|
|
46
43
|
},
|
|
47
|
-
|
|
48
|
-
{action: "DELETE", desc:
|
|
44
|
+
|
|
45
|
+
{ action: "DELETE", desc: "Delete" },
|
|
49
46
|
],
|
|
50
47
|
},
|
|
51
48
|
params: {
|
|
@@ -53,7 +50,7 @@ export const Audit: ModelConfig =
|
|
|
53
50
|
},
|
|
54
51
|
},
|
|
55
52
|
form: {
|
|
56
|
-
fields: ["*","!creator","!createdAt","!updatedAt"],
|
|
53
|
+
fields: ["*", "!creator", "!createdAt", "!updatedAt"],
|
|
57
54
|
reaction: {
|
|
58
55
|
id: {
|
|
59
56
|
toggle: [],
|
|
@@ -64,7 +61,6 @@ export const Audit: ModelConfig =
|
|
|
64
61
|
},
|
|
65
62
|
},
|
|
66
63
|
show: {
|
|
67
|
-
fields: ["*","!createdAt"],
|
|
64
|
+
fields: ["*", "!createdAt"],
|
|
68
65
|
},
|
|
69
|
-
}
|
|
70
|
-
;
|
|
66
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ModelConfig } from "../.types";
|
|
2
2
|
import { pageActions, PAGE_SIZE } from "./_common";
|
|
3
3
|
|
|
4
|
-
export const Event: ModelConfig =
|
|
5
|
-
{
|
|
4
|
+
export const Event: ModelConfig = {
|
|
6
5
|
metadata: {
|
|
7
6
|
nameKeys: ["id"],
|
|
8
7
|
pageActions,
|
|
@@ -15,26 +14,39 @@ export const Event: ModelConfig =
|
|
|
15
14
|
placeholder: "id",
|
|
16
15
|
},
|
|
17
16
|
actions: [
|
|
18
|
-
{action:
|
|
19
|
-
{action: 'SETTING', desc: 'Setting'},
|
|
17
|
+
{ action: "REFRESH", desc: "Refresh" },
|
|
20
18
|
{
|
|
21
19
|
action: "EXPORT",
|
|
22
|
-
desc:
|
|
23
|
-
fields: ["*","!created_at"]
|
|
20
|
+
desc: "export",
|
|
21
|
+
fields: ["*", "!created_at"],
|
|
24
22
|
},
|
|
23
|
+
{ action: "INSERT", desc: "Insert" },
|
|
25
24
|
],
|
|
26
25
|
},
|
|
27
26
|
header: {
|
|
28
27
|
filter: [],
|
|
29
28
|
sorter: ["id"],
|
|
30
29
|
},
|
|
31
|
-
fields: [
|
|
30
|
+
fields: [
|
|
31
|
+
"*",
|
|
32
|
+
"!created_at",
|
|
33
|
+
"!businessRequester",
|
|
34
|
+
"!number",
|
|
35
|
+
"!additionalInfo",
|
|
36
|
+
"!snSysId",
|
|
37
|
+
"!oitOwner",
|
|
38
|
+
"!createdAt",
|
|
39
|
+
"!endDate",
|
|
40
|
+
"!creator",
|
|
41
|
+
"!updatedAt",
|
|
42
|
+
"!startDate",
|
|
43
|
+
"!eventType",
|
|
44
|
+
"!country",
|
|
45
|
+
],
|
|
32
46
|
rowSelection: {
|
|
33
47
|
actions: [
|
|
34
|
-
{action:
|
|
35
|
-
|
|
36
|
-
{action: 'DELETE', desc: 'Delete'},
|
|
37
|
-
{action: 'EXPORT', desc: 'Export'},
|
|
48
|
+
{ action: "DELETE", desc: "Delete" },
|
|
49
|
+
{ action: "EXPORT", desc: "Export" },
|
|
38
50
|
],
|
|
39
51
|
},
|
|
40
52
|
rowActions: {
|
|
@@ -44,8 +56,8 @@ export const Event: ModelConfig =
|
|
|
44
56
|
action: "EDIT",
|
|
45
57
|
desc: "Edit",
|
|
46
58
|
},
|
|
47
|
-
|
|
48
|
-
{action: "DELETE", desc:
|
|
59
|
+
|
|
60
|
+
{ action: "DELETE", desc: "Delete" },
|
|
49
61
|
],
|
|
50
62
|
},
|
|
51
63
|
params: {
|
|
@@ -53,7 +65,14 @@ export const Event: ModelConfig =
|
|
|
53
65
|
},
|
|
54
66
|
},
|
|
55
67
|
form: {
|
|
56
|
-
fields: [
|
|
68
|
+
fields: [
|
|
69
|
+
"*",
|
|
70
|
+
"!creator",
|
|
71
|
+
"!created_at",
|
|
72
|
+
"!updated_at",
|
|
73
|
+
"!createdAt",
|
|
74
|
+
"!updatedAt",
|
|
75
|
+
],
|
|
57
76
|
reaction: {
|
|
58
77
|
id: {
|
|
59
78
|
toggle: [],
|
|
@@ -64,7 +83,19 @@ export const Event: ModelConfig =
|
|
|
64
83
|
},
|
|
65
84
|
},
|
|
66
85
|
show: {
|
|
67
|
-
fields: [
|
|
86
|
+
fields: [
|
|
87
|
+
"*",
|
|
88
|
+
"!created_at",
|
|
89
|
+
"!businessRequester",
|
|
90
|
+
"!number",
|
|
91
|
+
"!additionalInfo",
|
|
92
|
+
"!snSysId",
|
|
93
|
+
"!oitOwner",
|
|
94
|
+
"!createdAt",
|
|
95
|
+
"!endDate",
|
|
96
|
+
"!creator",
|
|
97
|
+
"!updatedAt",
|
|
98
|
+
"!startDate",
|
|
99
|
+
],
|
|
68
100
|
},
|
|
69
|
-
}
|
|
70
|
-
;
|
|
101
|
+
};
|
|
@@ -15,12 +15,12 @@ export const Game: ModelConfig = {
|
|
|
15
15
|
},
|
|
16
16
|
actions: [
|
|
17
17
|
{ action: "REFRESH", desc: "Refresh" },
|
|
18
|
-
{ action: "SETTING", desc: "Setting" },
|
|
19
18
|
{
|
|
20
19
|
action: "EXPORT",
|
|
21
20
|
desc: "export",
|
|
22
21
|
fields: ["*", "!createdAt"],
|
|
23
22
|
},
|
|
23
|
+
{ action: "INSERT", desc: "Insert" },
|
|
24
24
|
],
|
|
25
25
|
},
|
|
26
26
|
header: {
|
|
@@ -30,7 +30,6 @@ export const Game: ModelConfig = {
|
|
|
30
30
|
fields: ["*", "!createdAt"],
|
|
31
31
|
rowSelection: {
|
|
32
32
|
actions: [
|
|
33
|
-
{ action: "INSERT", desc: "Insert" },
|
|
34
33
|
{ action: "DELETE", desc: "Delete" },
|
|
35
34
|
{ action: "EXPORT", desc: "Export" },
|
|
36
35
|
],
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ModelConfig } from "../.types";
|
|
2
2
|
import { pageActions, PAGE_SIZE } from "./_common";
|
|
3
3
|
|
|
4
|
-
export const ITActivityDay: ModelConfig =
|
|
5
|
-
{
|
|
4
|
+
export const ITActivityDay: ModelConfig = {
|
|
6
5
|
metadata: {
|
|
7
6
|
nameKeys: ["title"],
|
|
8
7
|
pageActions,
|
|
@@ -10,31 +9,29 @@ export const ITActivityDay: ModelConfig =
|
|
|
10
9
|
table: {
|
|
11
10
|
toolbar: {
|
|
12
11
|
searchBar: {
|
|
13
|
-
fields: ["id","title"],
|
|
12
|
+
fields: ["id", "title"],
|
|
14
13
|
containsFields: ["title"],
|
|
15
14
|
placeholder: "id,title",
|
|
16
15
|
},
|
|
17
16
|
actions: [
|
|
18
|
-
{action:
|
|
19
|
-
{action: 'SETTING', desc: 'Setting'},
|
|
17
|
+
{ action: "REFRESH", desc: "Refresh" },
|
|
20
18
|
{
|
|
21
19
|
action: "EXPORT",
|
|
22
|
-
desc:
|
|
23
|
-
fields: ["*","!created_at"]
|
|
20
|
+
desc: "export",
|
|
21
|
+
fields: ["*", "!created_at"],
|
|
24
22
|
},
|
|
23
|
+
{ action: "INSERT", desc: "Insert" },
|
|
25
24
|
],
|
|
26
25
|
},
|
|
27
26
|
header: {
|
|
28
27
|
filter: [],
|
|
29
28
|
sorter: ["id"],
|
|
30
29
|
},
|
|
31
|
-
fields: ["*","!createdAt","!updatedAt","!dateKey"],
|
|
30
|
+
fields: ["*", "!createdAt", "!updatedAt", "!dateKey"],
|
|
32
31
|
rowSelection: {
|
|
33
32
|
actions: [
|
|
34
|
-
{action:
|
|
35
|
-
|
|
36
|
-
{action: 'DELETE', desc: 'Delete'},
|
|
37
|
-
{action: 'EXPORT', desc: 'Export'},
|
|
33
|
+
{ action: "DELETE", desc: "Delete" },
|
|
34
|
+
{ action: "EXPORT", desc: "Export" },
|
|
38
35
|
],
|
|
39
36
|
},
|
|
40
37
|
rowActions: {
|
|
@@ -44,8 +41,8 @@ export const ITActivityDay: ModelConfig =
|
|
|
44
41
|
action: "EDIT",
|
|
45
42
|
desc: "Edit",
|
|
46
43
|
},
|
|
47
|
-
|
|
48
|
-
{action: "DELETE", desc:
|
|
44
|
+
|
|
45
|
+
{ action: "DELETE", desc: "Delete" },
|
|
49
46
|
],
|
|
50
47
|
},
|
|
51
48
|
params: {
|
|
@@ -53,7 +50,7 @@ export const ITActivityDay: ModelConfig =
|
|
|
53
50
|
},
|
|
54
51
|
},
|
|
55
52
|
form: {
|
|
56
|
-
fields: ["*","!creator","!created_at","!updated_at"],
|
|
53
|
+
fields: ["*", "!creator", "!created_at", "!updated_at"],
|
|
57
54
|
reaction: {
|
|
58
55
|
id: {
|
|
59
56
|
toggle: [],
|
|
@@ -64,7 +61,6 @@ export const ITActivityDay: ModelConfig =
|
|
|
64
61
|
},
|
|
65
62
|
},
|
|
66
63
|
show: {
|
|
67
|
-
fields: ["*","!created_at"],
|
|
64
|
+
fields: ["*", "!created_at"],
|
|
68
65
|
},
|
|
69
|
-
}
|
|
70
|
-
;
|
|
66
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ModelConfig } from "../.types";
|
|
2
2
|
import { pageActions, PAGE_SIZE } from "./_common";
|
|
3
3
|
|
|
4
|
-
export const Page: ModelConfig =
|
|
5
|
-
{
|
|
4
|
+
export const Page: ModelConfig = {
|
|
6
5
|
metadata: {
|
|
7
6
|
nameKeys: ["name"],
|
|
8
7
|
pageActions,
|
|
@@ -10,31 +9,43 @@ export const Page: ModelConfig =
|
|
|
10
9
|
table: {
|
|
11
10
|
toolbar: {
|
|
12
11
|
searchBar: {
|
|
13
|
-
fields: ["id","name"],
|
|
12
|
+
fields: ["id", "name"],
|
|
14
13
|
containsFields: ["name"],
|
|
15
14
|
placeholder: "id,name",
|
|
16
15
|
},
|
|
17
16
|
actions: [
|
|
18
|
-
{action:
|
|
19
|
-
{action: 'SETTING', desc: 'Setting'},
|
|
17
|
+
{ action: "REFRESH", desc: "Refresh" },
|
|
20
18
|
{
|
|
21
19
|
action: "EXPORT",
|
|
22
|
-
desc:
|
|
23
|
-
fields: [
|
|
20
|
+
desc: "export",
|
|
21
|
+
fields: [
|
|
22
|
+
"*",
|
|
23
|
+
"!createdAt",
|
|
24
|
+
"!pageResources.*",
|
|
25
|
+
"_count.pageResources",
|
|
26
|
+
"!rolePages.*",
|
|
27
|
+
"_count.rolePages",
|
|
28
|
+
],
|
|
24
29
|
},
|
|
30
|
+
{ action: "INSERT", desc: "Insert" },
|
|
25
31
|
],
|
|
26
32
|
},
|
|
27
33
|
header: {
|
|
28
34
|
filter: [],
|
|
29
35
|
sorter: ["id"],
|
|
30
36
|
},
|
|
31
|
-
fields: [
|
|
37
|
+
fields: [
|
|
38
|
+
"*",
|
|
39
|
+
"!createdAt",
|
|
40
|
+
"!pageResources.*",
|
|
41
|
+
"_count.pageResources",
|
|
42
|
+
"!rolePages.*",
|
|
43
|
+
"_count.rolePages",
|
|
44
|
+
],
|
|
32
45
|
rowSelection: {
|
|
33
46
|
actions: [
|
|
34
|
-
{action:
|
|
35
|
-
|
|
36
|
-
{action: 'DELETE', desc: 'Delete'},
|
|
37
|
-
{action: 'EXPORT', desc: 'Export'},
|
|
47
|
+
{ action: "DELETE", desc: "Delete" },
|
|
48
|
+
{ action: "EXPORT", desc: "Export" },
|
|
38
49
|
],
|
|
39
50
|
},
|
|
40
51
|
rowActions: {
|
|
@@ -44,8 +55,8 @@ export const Page: ModelConfig =
|
|
|
44
55
|
action: "EDIT",
|
|
45
56
|
desc: "Edit",
|
|
46
57
|
},
|
|
47
|
-
|
|
48
|
-
{action: "DELETE", desc:
|
|
58
|
+
|
|
59
|
+
{ action: "DELETE", desc: "Delete" },
|
|
49
60
|
],
|
|
50
61
|
},
|
|
51
62
|
params: {
|
|
@@ -53,7 +64,14 @@ export const Page: ModelConfig =
|
|
|
53
64
|
},
|
|
54
65
|
},
|
|
55
66
|
form: {
|
|
56
|
-
fields: [
|
|
67
|
+
fields: [
|
|
68
|
+
"*",
|
|
69
|
+
"!creator",
|
|
70
|
+
"!createdAt",
|
|
71
|
+
"!updatedAt",
|
|
72
|
+
"!pageResources.*",
|
|
73
|
+
"!rolePages.*",
|
|
74
|
+
],
|
|
57
75
|
reaction: {
|
|
58
76
|
id: {
|
|
59
77
|
toggle: [],
|
|
@@ -64,7 +82,13 @@ export const Page: ModelConfig =
|
|
|
64
82
|
},
|
|
65
83
|
},
|
|
66
84
|
show: {
|
|
67
|
-
fields: [
|
|
85
|
+
fields: [
|
|
86
|
+
"*",
|
|
87
|
+
"!createdAt",
|
|
88
|
+
"!pageResources.*",
|
|
89
|
+
"_count.pageResources",
|
|
90
|
+
"!rolePages.*",
|
|
91
|
+
"_count.rolePages",
|
|
92
|
+
],
|
|
68
93
|
},
|
|
69
|
-
}
|
|
70
|
-
;
|
|
94
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ModelConfig } from "../.types";
|
|
2
2
|
import { pageActions, PAGE_SIZE } from "./_common";
|
|
3
3
|
|
|
4
|
-
export const PageResource: ModelConfig =
|
|
5
|
-
{
|
|
4
|
+
export const PageResource: ModelConfig = {
|
|
6
5
|
metadata: {
|
|
7
6
|
nameKeys: ["id"],
|
|
8
7
|
pageActions,
|
|
@@ -15,26 +14,31 @@ export const PageResource: ModelConfig =
|
|
|
15
14
|
placeholder: "id",
|
|
16
15
|
},
|
|
17
16
|
actions: [
|
|
18
|
-
{action:
|
|
19
|
-
{action: 'SETTING', desc: 'Setting'},
|
|
17
|
+
{ action: "REFRESH", desc: "Refresh" },
|
|
20
18
|
{
|
|
21
19
|
action: "EXPORT",
|
|
22
|
-
desc:
|
|
23
|
-
fields: [
|
|
20
|
+
desc: "export",
|
|
21
|
+
fields: [
|
|
22
|
+
"*",
|
|
23
|
+
"!createdAt",
|
|
24
|
+
"!page.*",
|
|
25
|
+
"page",
|
|
26
|
+
"!resource.*",
|
|
27
|
+
"resource",
|
|
28
|
+
],
|
|
24
29
|
},
|
|
30
|
+
{ action: "INSERT", desc: "Insert" },
|
|
25
31
|
],
|
|
26
32
|
},
|
|
27
33
|
header: {
|
|
28
|
-
filter: ["page","resource"],
|
|
34
|
+
filter: ["page", "resource"],
|
|
29
35
|
sorter: ["id"],
|
|
30
36
|
},
|
|
31
|
-
fields: ["*","!createdAt","!page.*","page","!resource.*","resource"],
|
|
37
|
+
fields: ["*", "!createdAt", "!page.*", "page", "!resource.*", "resource"],
|
|
32
38
|
rowSelection: {
|
|
33
39
|
actions: [
|
|
34
|
-
{action:
|
|
35
|
-
|
|
36
|
-
{action: 'DELETE', desc: 'Delete'},
|
|
37
|
-
{action: 'EXPORT', desc: 'Export'},
|
|
40
|
+
{ action: "DELETE", desc: "Delete" },
|
|
41
|
+
{ action: "EXPORT", desc: "Export" },
|
|
38
42
|
],
|
|
39
43
|
},
|
|
40
44
|
rowActions: {
|
|
@@ -44,8 +48,8 @@ export const PageResource: ModelConfig =
|
|
|
44
48
|
action: "EDIT",
|
|
45
49
|
desc: "Edit",
|
|
46
50
|
},
|
|
47
|
-
|
|
48
|
-
{action: "DELETE", desc:
|
|
51
|
+
|
|
52
|
+
{ action: "DELETE", desc: "Delete" },
|
|
49
53
|
],
|
|
50
54
|
},
|
|
51
55
|
params: {
|
|
@@ -53,7 +57,14 @@ export const PageResource: ModelConfig =
|
|
|
53
57
|
},
|
|
54
58
|
},
|
|
55
59
|
form: {
|
|
56
|
-
fields: [
|
|
60
|
+
fields: [
|
|
61
|
+
"*",
|
|
62
|
+
"!creator",
|
|
63
|
+
"!createdAt",
|
|
64
|
+
"!updatedAt",
|
|
65
|
+
"!page.*",
|
|
66
|
+
"!resource.*",
|
|
67
|
+
],
|
|
57
68
|
reaction: {
|
|
58
69
|
id: {
|
|
59
70
|
toggle: [],
|
|
@@ -64,7 +75,6 @@ export const PageResource: ModelConfig =
|
|
|
64
75
|
},
|
|
65
76
|
},
|
|
66
77
|
show: {
|
|
67
|
-
fields: ["*","!createdAt","!page.*","page","!resource.*","resource"],
|
|
78
|
+
fields: ["*", "!createdAt", "!page.*", "page", "!resource.*", "resource"],
|
|
68
79
|
},
|
|
69
|
-
}
|
|
70
|
-
;
|
|
80
|
+
};
|