Skip to content

Commit 241bf66

Browse files
sofia-nunezpaodb
authored andcommitted
feat: first implementation
1 parent d59f9f6 commit 241bf66

File tree

24 files changed

+1450
-172
lines changed

24 files changed

+1450
-172
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Bug Report
2-
description: Please report issues related to TEMPLATE_ADDON here.
2+
description: Please report issues related to Cron Expression Editor Add-on here.
33
body:
44
- type: textarea
55
id: problem-description

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Feature Request
2-
description: Please add feature suggestions related to TEMPLATE_ADDON here.
2+
description: Please add feature suggestions related to Cron Expression Editor Add-on here.
33
body:
44
- type: textarea
55
id: feature-proposal

README.md

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/template-add-on)
2-
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/template-add-on.svg)](https://vaadin.com/directory/component/template-add-on)
3-
[![Build Status](https://jenkins.flowingcode.com/job/template-addon/badge/icon)](https://jenkins.flowingcode.com/job/template-addon)
4-
[![Maven Central](https://img.shields.io/maven-central/v/com.flowingcode.vaadin.addons/template-addon)](https://mvnrepository.com/artifact/com.flowingcode.vaadin.addons/template-addon)
5-
[![Javadoc](https://img.shields.io/badge/javadoc-00b4f0)](https://javadoc.flowingcode.com/artifact/com.flowingcode.vaadin.addons/template-addon)
1+
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/cron-expression-editor-add-on)
2+
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/cron-expression-editor-add-on.svg)](https://vaadin.com/directory/component/cron-expression-editor-add-on)
3+
[![Build Status](https://jenkins.flowingcode.com/job/CronExpressionEditor-addon/badge/icon)](https://jenkins.flowingcode.com/job/CronExpressionEditor-addon)
4+
[![Maven Central](https://img.shields.io/maven-central/v/com.flowingcode.vaadin.addons/cron-expression-editor-addon)](https://mvnrepository.com/artifact/com.flowingcode.vaadin.addons/cron-expression-editor-addon)
5+
[![Javadoc](https://img.shields.io/badge/javadoc-00b4f0)](https://javadoc.flowingcode.com/artifact/com.flowingcode.vaadin.addons/cron-expression-editor-addon)
66

7-
# Template Add-on
7+
# Cron Expression Editor
88

9-
This is a template project for building new Vaadin 24 add-ons
9+
A component for Vaadin 24 that assists in the generation of cron expressions
1010

1111
## Features
1212

13-
* List the features of your add-on in here
13+
* A mode to input daily, weekly and monthly expressions with the assistance of UI components
14+
* An advanced mode to input cron expressions directly
15+
* Calculation of the next dates scheduled by the generated cron expression
16+
* Allows the configuration of a list of frequently used cron expressions
1417

1518
## Online demo
1619

17-
[Online demo here](http://addonsv24.flowingcode.com/template)
20+
[Online demo here](http://addonsv24.flowingcode.com/cron-expression-editor)
1821

1922
## Download release
2023

21-
[Available in Vaadin Directory](https://vaadin.com/directory/component/template-add-on)
24+
[Available in Vaadin Directory](https://vaadin.com/directory/component/cron-expression-editor-add-on)
2225

2326
### Maven install
2427

@@ -27,7 +30,7 @@ Add the following dependencies in your pom.xml file:
2730
```xml
2831
<dependency>
2932
<groupId>com.flowingcode.vaadin.addons</groupId>
30-
<artifactId>template-addon</artifactId>
33+
<artifactId>cron-expression-editor-addon</artifactId>
3134
<version>X.Y.Z</version>
3235
</dependency>
3336
```
@@ -44,7 +47,7 @@ To see the demo, navigate to http://localhost:8080/
4447

4548
## Release notes
4649

47-
See [here](https://github.com/FlowingCode/TemplateAddon/releases)
50+
See [here](https://github.com/FlowingCode/CronExpressionEditor/releases)
4851

4952
## Issue tracking
5053

@@ -69,13 +72,28 @@ Then, follow these steps for creating a contribution:
6972

7073
This add-on is distributed under Apache License 2.0. For license terms, see LICENSE.txt.
7174

72-
TEMPLATE_ADDON is written by Flowing Code S.A.
75+
CronExpressionEditor is written by Flowing Code S.A.
76+
77+
## Third-Party Dependencies
78+
79+
This project includes the following third-party dependency:
80+
81+
- **cron-expression-descriptor** – Licensed under the [MIT License](https://opensource.org/licenses/MIT).
7382

7483
# Developer Guide
7584

7685
## Getting started
7786

78-
Add your code samples in this section
87+
```java
88+
// Create a new instance
89+
CronExpressionEditor editor = new CronExpressionEditor();
90+
91+
// Set default expression (optional)
92+
editor.setDefaultExpression("0 0 12 * * ?");
93+
94+
// Add to your layout
95+
add(editor);
96+
```
7997

8098
## Special configuration when using Spring
8199

pom.xml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.flowingcode.vaadin.addons</groupId>
8-
<artifactId>template-addon</artifactId>
8+
<artifactId>cron-expression-editor-addon</artifactId>
99
<version>1.0.0-SNAPSHOT</version>
10-
<name>Template Add-on</name>
11-
<description>Template Add-on for Vaadin Flow</description>
10+
<name>Cron Expression Editor Add-on</name>
11+
<description>Component that assists in the generation of cron expressions</description>
1212
<url>https://www.flowingcode.com/en/open-source/</url>
1313

1414
<properties>
@@ -20,8 +20,10 @@
2020
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2121
<drivers.dir>${project.basedir}/drivers</drivers.dir>
2222
<jetty.version>11.0.20</jetty.version>
23+
<cron.expression.descriptor.version>1.2.10</cron.expression.descriptor.version>
24+
<day.of.week.selector.version>1.0.0</day.of.week.selector.version>
25+
<spring.context.version>6.2.5</spring.context.version>
2326
<flowingcode.commons.demo.version>4.2.0</flowingcode.commons.demo.version>
24-
<frontend.hotdeploy>true</frontend.hotdeploy>
2527
</properties>
2628

2729
<organization>
@@ -117,6 +119,21 @@
117119
</pluginRepositories>
118120

119121
<dependencies>
122+
<dependency>
123+
<groupId>com.flowingcode.vaadin.addons</groupId>
124+
<artifactId>day-of-week-selector-addon</artifactId>
125+
<version>${day.of.week.selector.version}</version>
126+
</dependency>
127+
<dependency>
128+
<groupId>org.springframework</groupId>
129+
<artifactId>spring-context</artifactId>
130+
<version>${spring.context.version}</version>
131+
</dependency>
132+
<dependency>
133+
<groupId>it.burning</groupId>
134+
<artifactId>cron-expression-descriptor</artifactId>
135+
<version>${cron.expression.descriptor.version}</version>
136+
</dependency>
120137
<dependency>
121138
<groupId>com.vaadin</groupId>
122139
<artifactId>vaadin-core</artifactId>
@@ -264,15 +281,12 @@
264281
<scan>3</scan>
265282
<!-- Use test scope because the UI/demo classes are in the test package. -->
266283
<useTestScope>true</useTestScope>
267-
<webApp>
268-
<resourceBases>
269-
<resourceBase>src/test/resources/META-INF/resources</resourceBase>
270-
<resourceBase>src/main/resources/META-INF/resources</resourceBase>
271-
</resourceBases>
272-
</webApp>
273284
<supportedPackagings>
274285
<supportedPackaging>jar</supportedPackaging>
275286
</supportedPackagings>
287+
<systemProperties>
288+
<vaadin.frontend.hotdeploy>true</vaadin.frontend.hotdeploy>
289+
</systemProperties>
276290
</configuration>
277291
</plugin>
278292
</plugins>

0 commit comments

Comments
 (0)