Skip to content

Commit 788def4

Browse files
paodbjavier-godoy
authored andcommitted
build: update commons-demo to 3.5.0
1 parent bed30bf commit 788def4

File tree

5 files changed

+36
-14
lines changed

5 files changed

+36
-14
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
<dependency>
153153
<groupId>com.flowingcode.vaadin.addons.demo</groupId>
154154
<artifactId>commons-demo</artifactId>
155-
<version>3.0.0</version>
155+
<version>3.5.0</version>
156156
<scope>test</scope>
157157
</dependency>
158158
</dependencies>

src/test/java/com/flowingcode/vaadin/addons/orgchart/BottomTopDemo.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@
1919
*/
2020
package com.flowingcode.vaadin.addons.orgchart;
2121

22+
import java.util.Arrays;
23+
24+
import com.flowingcode.vaadin.addons.demo.DemoSource;
2225
import com.flowingcode.vaadin.addons.orgchart.client.enums.ChartDirectionEnum;
2326
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
24-
import java.util.Arrays;
27+
import com.vaadin.flow.router.PageTitle;
28+
import com.vaadin.flow.router.Route;
2529

2630
@SuppressWarnings("serial")
31+
@PageTitle("Bottom to Top")
32+
@DemoSource
33+
@Route(value = "orgchart/bottom-top", layout = OrgchartDemoView.class)
2734
public class BottomTopDemo extends VerticalLayout {
2835

2936
public BottomTopDemo() {

src/test/java/com/flowingcode/vaadin/addons/orgchart/DragAndDropExportDemo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@
2121

2222
import java.util.Arrays;
2323

24+
import com.flowingcode.vaadin.addons.demo.DemoSource;
2425
import com.flowingcode.vaadin.addons.orgchart.extra.TemplateLiteralRewriter;
2526
import com.vaadin.flow.component.notification.Notification;
2627
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
28+
import com.vaadin.flow.router.PageTitle;
29+
import com.vaadin.flow.router.Route;
2730

2831
@SuppressWarnings("serial")
32+
@PageTitle("Drag and Drop")
33+
@DemoSource
34+
@Route(value = "orgchart/drag-and-drop", layout = OrgchartDemoView.class)
2935
public class DragAndDropExportDemo extends VerticalLayout {
3036

3137
public DragAndDropExportDemo() {

src/test/java/com/flowingcode/vaadin/addons/orgchart/ImageInTitleDemo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@
2121

2222
import java.util.Arrays;
2323

24+
import com.flowingcode.vaadin.addons.demo.DemoSource;
2425
import com.flowingcode.vaadin.addons.orgchart.extra.TemplateLiteralRewriter;
2526
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
27+
import com.vaadin.flow.router.PageTitle;
28+
import com.vaadin.flow.router.Route;
2629

2730
@SuppressWarnings("serial")
31+
@PageTitle("Image in Title")
32+
@DemoSource
33+
@Route(value = "orgchart/image-title", layout = OrgchartDemoView.class)
2834
public class ImageInTitleDemo extends VerticalLayout {
2935

3036
public ImageInTitleDemo() {

src/test/java/com/flowingcode/vaadin/addons/orgchart/OrgchartDemoView.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,22 @@
3232
@GithubLink("https://github.com/FlowingCode/OrgChartAddon")
3333
public class OrgchartDemoView extends TabbedDemo {
3434

35-
private static final String DRAGNDROP_DEMO = "Drag and Drop";
36-
private static final String BOTTOMTOP_DEMO = "Bottom to Top";
37-
private static final String DRAGNDROP_SOURCE =
38-
"https://github.com/FlowingCode/OrgChartAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/orgchart/DragAndDropExportDemo.java";
39-
private static final String BOTTOMTOP_SOURCE =
40-
"https://github.com/FlowingCode/OrgChartAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/orgchart/BottomTopDemo.java";
41-
private static final String IMAGETITILE_DEMO = "Image in Title";
42-
private static final String IMAGETITILE_SOURCE =
43-
"https://github.com/FlowingCode/OrgChartAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/orgchart/ImageInTitleDemo.java";
35+
// private static final String DRAGNDROP_DEMO = "Drag and Drop";
36+
// private static final String BOTTOMTOP_DEMO = "Bottom to Top";
37+
// private static final String DRAGNDROP_SOURCE =
38+
// "https://github.com/FlowingCode/OrgChartAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/orgchart/DragAndDropExportDemo.java";
39+
// private static final String BOTTOMTOP_SOURCE =
40+
// "https://github.com/FlowingCode/OrgChartAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/orgchart/BottomTopDemo.java";
41+
// private static final String IMAGETITILE_DEMO = "Image in Title";
42+
// private static final String IMAGETITILE_SOURCE =
43+
// "https://github.com/FlowingCode/OrgChartAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/orgchart/ImageInTitleDemo.java";
4444

4545
public OrgchartDemoView() {
46-
addDemo(new DragAndDropExportDemo(), DRAGNDROP_DEMO, DRAGNDROP_SOURCE);
47-
addDemo(new BottomTopDemo(), BOTTOMTOP_DEMO, BOTTOMTOP_SOURCE);
48-
addDemo(new ImageInTitleDemo(), IMAGETITILE_DEMO, IMAGETITILE_SOURCE);
46+
addDemo(DragAndDropExportDemo.class);
47+
addDemo(BottomTopDemo.class);
48+
addDemo(ImageInTitleDemo.class);
49+
// addDemo(new DragAndDropExportDemo(), DRAGNDROP_DEMO, DRAGNDROP_SOURCE);
50+
// addDemo(new BottomTopDemo(), BOTTOMTOP_DEMO, BOTTOMTOP_SOURCE);
51+
// addDemo(new ImageInTitleDemo(), IMAGETITILE_DEMO, IMAGETITILE_SOURCE);
4952
}
5053
}

0 commit comments

Comments
 (0)