@gadmin2n/schematics 0.0.107 → 0.0.108

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.
Files changed (45) hide show
  1. package/dist/lib/application/files/gadmin2-game-angle-demo/config/.types.d.ts +8 -9
  2. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/AgendaJob.ts +17 -15
  3. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Audit.ts +13 -17
  4. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Event.ts +48 -17
  5. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Game.ts +1 -2
  6. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/ITActivityDay.ts +14 -18
  7. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Log.ts +0 -1
  8. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Page.ts +42 -18
  9. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/PageResource.ts +28 -18
  10. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Resource.ts +42 -18
  11. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Role.ts +1 -2
  12. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/RolePages.ts +14 -18
  13. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/RoleResource.ts +28 -18
  14. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/SavedQuery.ts +13 -17
  15. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/User.ts +14 -18
  16. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowEventOutbox.ts +17 -17
  17. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowNodeInstance.ts +9 -14
  18. package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowNodeType.ts +9 -14
  19. package/dist/lib/application/files/gadmin2-game-angle-demo/gitignore +1 -0
  20. package/dist/lib/application/files/gadmin2-game-angle-demo/server/package.json +1 -1
  21. package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/temporal.service.ts +7 -1
  22. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/App.tsx +75 -71
  23. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/BulkActions.tsx +36 -6
  24. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/ListPageHeader.tsx +41 -14
  25. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/RowActions.tsx +153 -144
  26. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/agentPanel/inspectorActions.ts +3 -3
  27. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/config/agentAllowed.tsx +35 -0
  28. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/config/env.ts +2 -2
  29. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/dev-shell/DevShell.tsx +8 -2
  30. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/helpers/http.ts +20 -1
  31. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/helpers/list.tsx +48 -0
  32. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/plugins/devShellPlugin.ts +40 -2
  33. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agenda/index.tsx +3 -2
  34. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agendaJob/list.tsx +6 -6
  35. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasCell.tsx +4 -3
  36. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasListPage.tsx +4 -3
  37. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasPage.tsx +99 -5
  38. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasToolbar.tsx +28 -30
  39. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/CanvasAiModal.tsx +80 -0
  40. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/game/list.tsx +6 -0
  41. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/editor.tsx +2 -1
  42. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/components/NodeInstanceForm.tsx +2 -1
  43. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/show.tsx +2 -1
  44. package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflowEventOutbox/list.tsx +6 -6
  45. package/package.json +1 -1
@@ -1,8 +1,7 @@
1
1
  import { ModelConfig } from "../.types";
2
2
  import { pageActions, PAGE_SIZE } from "./_common";
3
3
 
4
- export const Resource: ModelConfig =
5
- {
4
+ export const Resource: ModelConfig = {
6
5
  metadata: {
7
6
  nameKeys: ["name"],
8
7
  pageActions,
@@ -10,31 +9,43 @@ export const Resource: 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: 'REFRESH', desc: 'Refresh'},
19
- {action: 'SETTING', desc: 'Setting'},
17
+ { action: "REFRESH", desc: "Refresh" },
20
18
  {
21
19
  action: "EXPORT",
22
- desc: 'export',
23
- fields: ["*","!createdAt","!pageResources.*","_count.pageResources","!roleResources.*","_count.roleResources"]
20
+ desc: "export",
21
+ fields: [
22
+ "*",
23
+ "!createdAt",
24
+ "!pageResources.*",
25
+ "_count.pageResources",
26
+ "!roleResources.*",
27
+ "_count.roleResources",
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: ["*","!createdAt","!pageResources.*","_count.pageResources","!roleResources.*","_count.roleResources"],
37
+ fields: [
38
+ "*",
39
+ "!createdAt",
40
+ "!pageResources.*",
41
+ "_count.pageResources",
42
+ "!roleResources.*",
43
+ "_count.roleResources",
44
+ ],
32
45
  rowSelection: {
33
46
  actions: [
34
- {action: 'INSERT', desc: 'Insert'},
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 Resource: ModelConfig =
44
55
  action: "EDIT",
45
56
  desc: "Edit",
46
57
  },
47
-
48
- {action: "DELETE", desc: 'Delete'}
58
+
59
+ { action: "DELETE", desc: "Delete" },
49
60
  ],
50
61
  },
51
62
  params: {
@@ -53,7 +64,14 @@ export const Resource: ModelConfig =
53
64
  },
54
65
  },
55
66
  form: {
56
- fields: ["*","!creator","!createdAt","!updatedAt","!pageResources.*","!roleResources.*"],
67
+ fields: [
68
+ "*",
69
+ "!creator",
70
+ "!createdAt",
71
+ "!updatedAt",
72
+ "!pageResources.*",
73
+ "!roleResources.*",
74
+ ],
57
75
  reaction: {
58
76
  id: {
59
77
  toggle: [],
@@ -64,7 +82,13 @@ export const Resource: ModelConfig =
64
82
  },
65
83
  },
66
84
  show: {
67
- fields: ["*","!createdAt","!pageResources.*","_count.pageResources","!roleResources.*","_count.roleResources"],
85
+ fields: [
86
+ "*",
87
+ "!createdAt",
88
+ "!pageResources.*",
89
+ "_count.pageResources",
90
+ "!roleResources.*",
91
+ "_count.roleResources",
92
+ ],
68
93
  },
69
- }
70
- ;
94
+ };
@@ -15,12 +15,12 @@ export const Role: 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: ["*", "!create_time"],
23
22
  },
23
+ { action: "INSERT", desc: "Insert" },
24
24
  ],
25
25
  },
26
26
  header: {
@@ -30,7 +30,6 @@ export const Role: ModelConfig = {
30
30
  fields: ["*", "!create_time"],
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 RolePages: ModelConfig =
5
- {
4
+ export const RolePages: ModelConfig = {
6
5
  metadata: {
7
6
  nameKeys: ["id"],
8
7
  pageActions,
@@ -15,26 +14,24 @@ export const RolePages: ModelConfig =
15
14
  placeholder: "id",
16
15
  },
17
16
  actions: [
18
- {action: 'REFRESH', desc: 'Refresh'},
19
- {action: 'SETTING', desc: 'Setting'},
17
+ { action: "REFRESH", desc: "Refresh" },
20
18
  {
21
19
  action: "EXPORT",
22
- desc: 'export',
23
- fields: ["*","!createdAt","!role.*","role","!page.*","page"]
20
+ desc: "export",
21
+ fields: ["*", "!createdAt", "!role.*", "role", "!page.*", "page"],
24
22
  },
23
+ { action: "INSERT", desc: "Insert" },
25
24
  ],
26
25
  },
27
26
  header: {
28
- filter: ["role","page"],
27
+ filter: ["role", "page"],
29
28
  sorter: ["id"],
30
29
  },
31
- fields: ["*","!createdAt","!role.*","role","!page.*","page"],
30
+ fields: ["*", "!createdAt", "!role.*", "role", "!page.*", "page"],
32
31
  rowSelection: {
33
32
  actions: [
34
- {action: 'INSERT', desc: 'Insert'},
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 RolePages: ModelConfig =
44
41
  action: "EDIT",
45
42
  desc: "Edit",
46
43
  },
47
-
48
- {action: "DELETE", desc: 'Delete'}
44
+
45
+ { action: "DELETE", desc: "Delete" },
49
46
  ],
50
47
  },
51
48
  params: {
@@ -53,7 +50,7 @@ export const RolePages: ModelConfig =
53
50
  },
54
51
  },
55
52
  form: {
56
- fields: ["*","!creator","!createdAt","!updatedAt","!role.*","!page.*"],
53
+ fields: ["*", "!creator", "!createdAt", "!updatedAt", "!role.*", "!page.*"],
57
54
  reaction: {
58
55
  id: {
59
56
  toggle: [],
@@ -64,7 +61,6 @@ export const RolePages: ModelConfig =
64
61
  },
65
62
  },
66
63
  show: {
67
- fields: ["*","!createdAt","!role.*","role","!page.*","page"],
64
+ fields: ["*", "!createdAt", "!role.*", "role", "!page.*", "page"],
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 RoleResource: ModelConfig =
5
- {
4
+ export const RoleResource: ModelConfig = {
6
5
  metadata: {
7
6
  nameKeys: ["id"],
8
7
  pageActions,
@@ -15,26 +14,31 @@ export const RoleResource: ModelConfig =
15
14
  placeholder: "id",
16
15
  },
17
16
  actions: [
18
- {action: 'REFRESH', desc: 'Refresh'},
19
- {action: 'SETTING', desc: 'Setting'},
17
+ { action: "REFRESH", desc: "Refresh" },
20
18
  {
21
19
  action: "EXPORT",
22
- desc: 'export',
23
- fields: ["*","!createdAt","!role.*","role","!resource.*","resource"]
20
+ desc: "export",
21
+ fields: [
22
+ "*",
23
+ "!createdAt",
24
+ "!role.*",
25
+ "role",
26
+ "!resource.*",
27
+ "resource",
28
+ ],
24
29
  },
30
+ { action: "INSERT", desc: "Insert" },
25
31
  ],
26
32
  },
27
33
  header: {
28
- filter: ["role","resource"],
34
+ filter: ["role", "resource"],
29
35
  sorter: ["id"],
30
36
  },
31
- fields: ["*","!createdAt","!role.*","role","!resource.*","resource"],
37
+ fields: ["*", "!createdAt", "!role.*", "role", "!resource.*", "resource"],
32
38
  rowSelection: {
33
39
  actions: [
34
- {action: 'INSERT', desc: 'Insert'},
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 RoleResource: ModelConfig =
44
48
  action: "EDIT",
45
49
  desc: "Edit",
46
50
  },
47
-
48
- {action: "DELETE", desc: 'Delete'}
51
+
52
+ { action: "DELETE", desc: "Delete" },
49
53
  ],
50
54
  },
51
55
  params: {
@@ -53,7 +57,14 @@ export const RoleResource: ModelConfig =
53
57
  },
54
58
  },
55
59
  form: {
56
- fields: ["*","!creator","!createdAt","!updatedAt","!role.*","!resource.*"],
60
+ fields: [
61
+ "*",
62
+ "!creator",
63
+ "!createdAt",
64
+ "!updatedAt",
65
+ "!role.*",
66
+ "!resource.*",
67
+ ],
57
68
  reaction: {
58
69
  id: {
59
70
  toggle: [],
@@ -64,7 +75,6 @@ export const RoleResource: ModelConfig =
64
75
  },
65
76
  },
66
77
  show: {
67
- fields: ["*","!createdAt","!role.*","role","!resource.*","resource"],
78
+ fields: ["*", "!createdAt", "!role.*", "role", "!resource.*", "resource"],
68
79
  },
69
- }
70
- ;
80
+ };
@@ -1,8 +1,7 @@
1
1
  import { ModelConfig } from "../.types";
2
2
  import { pageActions, PAGE_SIZE } from "./_common";
3
3
 
4
- export const SavedQuery: ModelConfig =
5
- {
4
+ export const SavedQuery: ModelConfig = {
6
5
  metadata: {
7
6
  nameKeys: ["id"],
8
7
  pageActions,
@@ -15,26 +14,24 @@ export const SavedQuery: ModelConfig =
15
14
  placeholder: "id",
16
15
  },
17
16
  actions: [
18
- {action: 'REFRESH', desc: 'Refresh'},
19
- {action: 'SETTING', desc: 'Setting'},
17
+ { action: "REFRESH", desc: "Refresh" },
20
18
  {
21
19
  action: "EXPORT",
22
- desc: 'export',
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: 'INSERT', desc: 'Insert'},
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 SavedQuery: ModelConfig =
44
41
  action: "EDIT",
45
42
  desc: "Edit",
46
43
  },
47
-
48
- {action: "DELETE", desc: 'Delete'}
44
+
45
+ { action: "DELETE", desc: "Delete" },
49
46
  ],
50
47
  },
51
48
  params: {
@@ -53,7 +50,7 @@ export const SavedQuery: 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 SavedQuery: 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 User: ModelConfig =
5
- {
4
+ export const User: ModelConfig = {
6
5
  metadata: {
7
6
  nameKeys: ["id"],
8
7
  pageActions,
@@ -15,26 +14,24 @@ export const User: ModelConfig =
15
14
  placeholder: "id",
16
15
  },
17
16
  actions: [
18
- {action: 'REFRESH', desc: 'Refresh'},
19
- {action: 'SETTING', desc: 'Setting'},
17
+ { action: "REFRESH", desc: "Refresh" },
20
18
  {
21
19
  action: "EXPORT",
22
- desc: 'export',
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: ["roles"],
29
- sorter: ["id","roles"],
28
+ sorter: ["id", "roles"],
30
29
  },
31
- fields: ["*","!createdAt"],
30
+ fields: ["*", "!createdAt"],
32
31
  rowSelection: {
33
32
  actions: [
34
- {action: 'INSERT', desc: 'Insert'},
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 User: ModelConfig =
44
41
  action: "EDIT",
45
42
  desc: "Edit",
46
43
  },
47
-
48
- {action: "DELETE", desc: 'Delete'}
44
+
45
+ { action: "DELETE", desc: "Delete" },
49
46
  ],
50
47
  },
51
48
  params: {
@@ -53,7 +50,7 @@ export const User: 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 User: 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 WorkflowEventOutbox: ModelConfig =
5
- {
4
+ export const WorkflowEventOutbox: ModelConfig = {
6
5
  metadata: {
7
6
  nameKeys: ["id"],
8
7
  pageActions,
@@ -15,12 +14,11 @@ export const WorkflowEventOutbox: ModelConfig =
15
14
  placeholder: "id",
16
15
  },
17
16
  actions: [
18
- {action: 'REFRESH', desc: 'Refresh'},
19
- {action: 'SETTING', desc: 'Setting'},
17
+ { action: "REFRESH", desc: "Refresh" },
20
18
  {
21
19
  action: "EXPORT",
22
- desc: 'export',
23
- fields: ["*","!createdAt","!created_at"]
20
+ desc: "export",
21
+ fields: ["*", "!createdAt", "!created_at"],
24
22
  },
25
23
  ],
26
24
  },
@@ -28,24 +26,27 @@ export const WorkflowEventOutbox: ModelConfig =
28
26
  filter: [],
29
27
  sorter: ["id"],
30
28
  },
31
- fields: ["*","!createdAt","!created_at", "!payload"],
29
+ fields: ["*", "!createdAt", "!created_at", "!payload"],
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,
39
- actions: [
40
- {action: "DETAIL", desc: 'Detail'},
41
- ],
35
+ actions: [{ action: "DETAIL", desc: "Detail" }],
42
36
  },
43
37
  params: {
44
38
  pageSize: PAGE_SIZE,
45
39
  },
46
40
  },
47
41
  form: {
48
- fields: ["*","!creator","!createdAt","!updatedAt","!created_at","!updated_at"],
42
+ fields: [
43
+ "*",
44
+ "!creator",
45
+ "!createdAt",
46
+ "!updatedAt",
47
+ "!created_at",
48
+ "!updated_at",
49
+ ],
49
50
  reaction: {
50
51
  id: {
51
52
  toggle: [],
@@ -56,7 +57,6 @@ export const WorkflowEventOutbox: ModelConfig =
56
57
  },
57
58
  },
58
59
  show: {
59
- fields: ["*","!createdAt","!created_at"],
60
+ fields: ["*", "!createdAt", "!created_at"],
60
61
  },
61
- }
62
- ;
62
+ };
@@ -1,8 +1,7 @@
1
1
  import { ModelConfig } from "../.types";
2
2
  import { pageActions, PAGE_SIZE } from "./_common";
3
3
 
4
- export const WorkflowNodeInstance: ModelConfig =
5
- {
4
+ export const WorkflowNodeInstance: ModelConfig = {
6
5
  metadata: {
7
6
  nameKeys: ["id"],
8
7
  pageActions,
@@ -15,20 +14,17 @@ export const WorkflowNodeInstance: ModelConfig =
15
14
  placeholder: "Search by name",
16
15
  },
17
16
  actions: [
18
- {action: 'REFRESH', desc: 'Refresh'},
19
- {action: 'SETTING', desc: 'Setting'},
17
+ { action: "REFRESH", desc: "Refresh" },
18
+ { action: "INSERT", desc: "Insert" },
20
19
  ],
21
20
  },
22
21
  header: {
23
22
  filter: [],
24
23
  sorter: ["id"],
25
24
  },
26
- fields: ["*","!createdAt"],
25
+ fields: ["*", "!createdAt"],
27
26
  rowSelection: {
28
- actions: [
29
- {action: 'INSERT', desc: 'Insert'},
30
- {action: 'DELETE', desc: 'Delete'},
31
- ],
27
+ actions: [{ action: "DELETE", desc: "Delete" }],
32
28
  },
33
29
  rowActions: {
34
30
  visibleNum: 2,
@@ -37,7 +33,7 @@ export const WorkflowNodeInstance: ModelConfig =
37
33
  action: "EDIT",
38
34
  desc: "Edit",
39
35
  },
40
- {action: "DELETE", desc: 'Delete'}
36
+ { action: "DELETE", desc: "Delete" },
41
37
  ],
42
38
  },
43
39
  params: {
@@ -45,7 +41,7 @@ export const WorkflowNodeInstance: ModelConfig =
45
41
  },
46
42
  },
47
43
  form: {
48
- fields: ["*","!creator","!createdAt","!updatedAt"],
44
+ fields: ["*", "!creator", "!createdAt", "!updatedAt"],
49
45
  reaction: {
50
46
  id: {
51
47
  toggle: [],
@@ -56,7 +52,6 @@ export const WorkflowNodeInstance: ModelConfig =
56
52
  },
57
53
  },
58
54
  show: {
59
- fields: ["*","!createdAt"],
55
+ fields: ["*", "!createdAt"],
60
56
  },
61
- }
62
- ;
57
+ };
@@ -1,8 +1,7 @@
1
1
  import { ModelConfig } from "../.types";
2
2
  import { pageActions, PAGE_SIZE } from "./_common";
3
3
 
4
- export const WorkflowNodeType: ModelConfig =
5
- {
4
+ export const WorkflowNodeType: ModelConfig = {
6
5
  metadata: {
7
6
  nameKeys: ["id"],
8
7
  pageActions,
@@ -15,20 +14,17 @@ export const WorkflowNodeType: ModelConfig =
15
14
  placeholder: "Search by label or type",
16
15
  },
17
16
  actions: [
18
- {action: 'REFRESH', desc: 'Refresh'},
19
- {action: 'SETTING', desc: 'Setting'},
17
+ { action: "REFRESH", desc: "Refresh" },
18
+ { action: "INSERT", desc: "Insert" },
20
19
  ],
21
20
  },
22
21
  header: {
23
22
  filter: [],
24
23
  sorter: ["id"],
25
24
  },
26
- fields: ["*","!createdAt"],
25
+ fields: ["*", "!createdAt"],
27
26
  rowSelection: {
28
- actions: [
29
- {action: 'INSERT', desc: 'Insert'},
30
- {action: 'DELETE', desc: 'Delete'},
31
- ],
27
+ actions: [{ action: "DELETE", desc: "Delete" }],
32
28
  },
33
29
  rowActions: {
34
30
  visibleNum: 2,
@@ -37,7 +33,7 @@ export const WorkflowNodeType: ModelConfig =
37
33
  action: "EDIT",
38
34
  desc: "Edit",
39
35
  },
40
- {action: "DELETE", desc: 'Delete'}
36
+ { action: "DELETE", desc: "Delete" },
41
37
  ],
42
38
  },
43
39
  params: {
@@ -45,7 +41,7 @@ export const WorkflowNodeType: ModelConfig =
45
41
  },
46
42
  },
47
43
  form: {
48
- fields: ["*","!creator","!createdAt","!updatedAt"],
44
+ fields: ["*", "!creator", "!createdAt", "!updatedAt"],
49
45
  reaction: {
50
46
  id: {
51
47
  toggle: [],
@@ -56,7 +52,6 @@ export const WorkflowNodeType: ModelConfig =
56
52
  },
57
53
  },
58
54
  show: {
59
- fields: ["*","!createdAt"],
55
+ fields: ["*", "!createdAt"],
60
56
  },
61
- }
62
- ;
57
+ };
@@ -51,3 +51,4 @@ settings.local.json
51
51
  docs/
52
52
  .frontend-slides/
53
53
  .agent
54
+ agent-eval/runs/**/*/results/
@@ -89,7 +89,7 @@
89
89
  "devDependencies": {
90
90
  "@faker-js/faker": "^10.4.0",
91
91
  "@gadmin2n/prisma-nest-generator": "^0.0.46",
92
- "@gadmin2n/prisma-react-generator": "^0.0.60",
92
+ "@gadmin2n/prisma-react-generator": "^0.0.61",
93
93
  "@nestjs/cli": "^11.0.21",
94
94
  "@nestjs/testing": "^10.4.15",
95
95
  "@types/cookie-parser": "^1.4.3",
@@ -18,7 +18,13 @@ export class TemporalService implements OnModuleInit, OnModuleDestroy {
18
18
  private client: Client;
19
19
  private readonly logger = new Logger(TemporalService.name);
20
20
 
21
- async onModuleInit() {
21
+ onModuleInit() {
22
+ // Fire-and-forget: 不 await 连接,避免 Temporal 不可用时阻塞 server 启动。
23
+ // 连接成功前调用 startWorkflow 等方法会抛 "Temporal client not connected"。
24
+ this.connectInBackground();
25
+ }
26
+
27
+ private async connectInBackground() {
22
28
  try {
23
29
  this.connection = await Connection.connect({ address: TEMPORAL_ADDRESS });
24
30
  this.client = new Client({