@gadmin2n/schematics 0.0.140 → 0.0.142
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/ui/Event.ts +1 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/package.json +1 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/scripts/gen-jwt.ts +8 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/seed/workflow-node-types.ts +32 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/seed/workflow.seed.ts +39 -33
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/temporal.service.spec.ts +34 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/temporal.service.ts +26 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-compiler.service.spec.ts +149 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-compiler.service.ts +20 -6
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-http-response.spec.ts +85 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-http-response.ts +157 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow.controller.spec.ts +59 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow.controller.ts +15 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow.service.spec.ts +125 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow.service.ts +109 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/PageHeader.tsx +46 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/index.ts +1 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/config/routeRegistry.test.ts +10 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/config/routeRegistry.tsx +6 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/constants/layout.ts +30 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/locales/en/workflow.json +20 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/locales/zh_CN/workflow.json +20 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agenda/index.tsx +9 -20
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/audit/list.tsx +141 -138
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasListPage.tsx +8 -19
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/human-approval/inbox.tsx +12 -19
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/page/list.tsx +47 -150
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/permissionReadme/index.tsx +13 -12
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/resource/list.tsx +110 -113
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/role/list.tsx +61 -64
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/user/list.tsx +187 -200
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/approval-channels/index.tsx +46 -44
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/NewNodeDefaults.test.tsx +6 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/connections/index.tsx +50 -41
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/index.tsx +9 -22
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/instances.tsx +4 -8
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/index.tsx +9 -22
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/widgets/ExternalRequestConfigEditor.test.tsx +42 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/widgets/ExternalRequestConfigEditor.tsx +77 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/widgets/ReturnResultConfigEditor.test.tsx +29 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/widgets/ReturnResultConfigEditor.tsx +245 -55
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/temporal-tenant/index.test.tsx +152 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/temporal-tenant/index.tsx +417 -161
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/utils/newNodeConfig.ts +5 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/styles/index.css +20 -0
- package/package.json +1 -1
|
@@ -5,8 +5,10 @@ export function withNewNodeDefaults(
|
|
|
5
5
|
if (nodeType === 'return_result') {
|
|
6
6
|
return {
|
|
7
7
|
...config,
|
|
8
|
-
resultType: '
|
|
8
|
+
resultType: 'JSON',
|
|
9
9
|
sourceMode: 'INPUT',
|
|
10
|
+
httpStatusCode: 200,
|
|
11
|
+
httpHeaders: {},
|
|
10
12
|
};
|
|
11
13
|
}
|
|
12
14
|
if (nodeType === 'http_request') {
|
|
@@ -25,6 +27,8 @@ export function withNewNodeDefaults(
|
|
|
25
27
|
path: `external-${crypto.randomUUID()}`,
|
|
26
28
|
secret: randomHex(32),
|
|
27
29
|
verificationMode: 'HMAC',
|
|
30
|
+
responseMode: 'IMMEDIATE',
|
|
31
|
+
responseTimeoutSeconds: 60,
|
|
28
32
|
};
|
|
29
33
|
}
|
|
30
34
|
if (nodeType === 'submit_approval_result') {
|
|
@@ -141,3 +141,23 @@
|
|
|
141
141
|
.card-table > .ant-card-body > div:empty {
|
|
142
142
|
display: none;
|
|
143
143
|
}
|
|
144
|
+
|
|
145
|
+
/*
|
|
146
|
+
* Refine CRUD 页头统一为「压扁白卡」风格(与 PageHeader/HEADER_CARD_PROPS 一致)。
|
|
147
|
+
* Refine Create/Edit/Show/List 的页头是 pro-layout PageHeader(ghost 透明底、
|
|
148
|
+
* 根节点内联 padding:0),其标题行渲染为 .ant-page-header-heading,
|
|
149
|
+
* 内容(表单/卡片)在兄弟节点 .ant-page-header-content,因此只给标题行加白卡样式。
|
|
150
|
+
* cssinjs 生成的类优先级更高,box 属性需 !important。
|
|
151
|
+
*/
|
|
152
|
+
.ant-page-header-heading {
|
|
153
|
+
background: var(--ant-color-bg-container);
|
|
154
|
+
border: 1px solid var(--ant-color-border-secondary);
|
|
155
|
+
border-radius: 8px;
|
|
156
|
+
padding: 12px 24px !important;
|
|
157
|
+
margin-bottom: 16px !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* pro-layout 默认给内容区 12px 上 padding,归零使页头卡与内容卡间距恰为 16px */
|
|
161
|
+
.ant-page-header-content {
|
|
162
|
+
padding-top: 0 !important;
|
|
163
|
+
}
|