Skip to content

Commit 613645a

Browse files
committed
fix groovy json bug
1 parent 438e82f commit 613645a

File tree

19 files changed

+82
-13
lines changed

19 files changed

+82
-13
lines changed

admin-ui/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"@ant-design/icons": "^5.4.0",
77
"@ant-design/pro-components": "^2.7.19",
88
"@babel/standalone": "^7.25.6",
9+
"@dnd-kit/core": "^6.2.0",
10+
"@dnd-kit/sortable": "^9.0.0",
911
"@logicflow/core": "^2.0.5",
1012
"@logicflow/extension": "^2.0.9",
1113
"@reduxjs/toolkit": "^2.2.7",

admin-ui/src/config/menus.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ export const menus = [
1515
icon: "SmileOutlined",
1616
page: 'welcome',
1717
},
18+
{
19+
path: '/portal',
20+
name: '门户',
21+
icon: "SmileOutlined",
22+
page: 'portal',
23+
},
1824
{
1925
path: '/user',
2026
name: '用户列表',
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
import {useDraggable} from '@dnd-kit/core';
3+
4+
const Draggable = (props: any) => {
5+
const {attributes, listeners, setNodeRef, transform} = useDraggable({
6+
id: 'draggable',
7+
});
8+
const style = transform ? {
9+
transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
10+
} : undefined;
11+
12+
13+
return (
14+
<div ref={setNodeRef} style={style} {...listeners} {...attributes}>
15+
{props.children}
16+
</div>
17+
);
18+
}
19+
20+
export default Draggable;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
import {useDroppable} from '@dnd-kit/core';
3+
4+
const Droppable=(props:any)=> {
5+
const {isOver, setNodeRef} = useDroppable({
6+
id: 'droppable',
7+
});
8+
const style = {
9+
color: isOver ? 'green' : undefined,
10+
};
11+
12+
13+
return (
14+
<div ref={setNodeRef} style={style}>
15+
{props.children}
16+
</div>
17+
);
18+
}
19+
20+
export default Droppable;

admin-ui/src/pages/portal/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from "react";
2+
3+
const Portal = ()=>{
4+
return (
5+
<>
6+
7+
</>
8+
)
9+
}
10+
11+
export default Portal;

admin-ui/src/portal/index.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from "react";
2+
3+
const Portal = ()=>{
4+
return (
5+
<>
6+
7+
</>
8+
)
9+
}
10+
export default Portal;

example/example-application/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-example</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>3.3.25</version>
8+
<version>3.3.26</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

example/example-domain/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-example</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>3.3.25</version>
8+
<version>3.3.26</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

example/example-infra-flow/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-example</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>3.3.25</version>
8+
<version>3.3.26</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

example/example-infra-jpa/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-example</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>3.3.25</version>
8+
<version>3.3.26</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

example/example-server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-example</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>3.3.25</version>
8+
<version>3.3.26</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</parent>
1818

1919
<artifactId>springboot-example</artifactId>
20-
<version>3.3.25</version>
20+
<version>3.3.26</version>
2121

2222
<name>springboot-example</name>
2323
<description>springboot-example project for Spring Boot</description>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>com.codingapi.springboot</groupId>
1414
<artifactId>springboot-parent</artifactId>
15-
<version>3.3.25</version>
15+
<version>3.3.26</version>
1616

1717
<url>https://github.com/codingapi/springboot-framewrok</url>
1818
<name>springboot-parent</name>

springboot-starter-data-fast/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-parent</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>3.3.25</version>
8+
<version>3.3.26</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

springboot-starter-flow/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>3.3.25</version>
9+
<version>3.3.26</version>
1010
</parent>
1111

1212
<name>springboot-starter-flow</name>

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/domain/FlowButton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class FlowButton {
4444
*/
4545
private int order;
4646

47-
public boolean isGroovy() {
47+
public boolean hasGroovy() {
4848
return groovy != null;
4949
}
5050

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/service/impl/FlowCustomEventService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public MessageResult customFlowEvent(long recordId, IFlowOperator currentOperato
6868
if (flowButton == null) {
6969
throw new IllegalArgumentException("flow button not found");
7070
}
71-
if (!flowButton.isGroovy()) {
71+
if (!flowButton.hasGroovy()) {
7272
throw new IllegalArgumentException("flow button not groovy");
7373
}
7474
return flowButton.run(flowRecord, flowNode, flowWork, createOperator, currentOperator, bindData, opinion, historyRecords);

springboot-starter-security/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>3.3.25</version>
9+
<version>3.3.26</version>
1010
</parent>
1111

1212
<artifactId>springboot-starter-security</artifactId>

springboot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.codingapi.springboot</groupId>
77
<artifactId>springboot-parent</artifactId>
8-
<version>3.3.25</version>
8+
<version>3.3.26</version>
99
</parent>
1010
<artifactId>springboot-starter</artifactId>
1111

0 commit comments

Comments
 (0)