react-cron-generator 1.3.12 → 2.0.0
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/README.md +4 -19
- package/dist/index.js +7498 -4
- package/dist/index.js.map +1 -0
- package/package.json +33 -13
- package/dist/cron-builder.css +0 -91
- package/dist/cron-tab/custom.js +0 -46
- package/dist/cron-tab/daily.js +0 -130
- package/dist/cron-tab/hourly.js +0 -143
- package/dist/cron-tab/minutes.js +0 -52
- package/dist/cron-tab/monthly.js +0 -175
- package/dist/cron-tab/weekly.js +0 -148
- package/dist/cron-tab/yearly.js +0 -32
- package/dist/cron.js +0 -245
- package/dist/hour-select/index.js +0 -47
- package/dist/localization/translation.json +0 -29
- package/dist/meta/index.js +0 -79
- package/dist/minutes-select/index.js +0 -47
package/README.md
CHANGED
|
@@ -6,10 +6,6 @@ Simple react component to generate cron expression
|
|
|
6
6
|
|
|
7
7
|
Package helps to build linux scheduler cron expression.
|
|
8
8
|
|
|
9
|
-
Make sure you have include bootstrap(4.x) in your project.
|
|
10
|
-
|
|
11
|
-
For old bootstrap(3.x) version support, please use cron generator version "1.2.12"
|
|
12
|
-
|
|
13
9
|
|
|
14
10
|
```
|
|
15
11
|
data = '* * * * * * *'
|
|
@@ -89,22 +85,11 @@ const options = {
|
|
|
89
85
|
|
|
90
86
|
```
|
|
91
87
|
|
|
92
|
-
## Ref
|
|
93
|
-
|
|
94
|
-
Added `ref` to the component now you can access state and functions using ref.
|
|
95
|
-
|
|
96
|
-
add the new prop ` onRef={ref => (this.cronGen = ref)} `
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
<Cron
|
|
100
|
-
onRef={ref => (this.cronGen = ref)}
|
|
101
|
-
onChange={(e)=> {this.setState({value:e}); console.log(e)}}
|
|
102
|
-
value={this.state.value}
|
|
103
|
-
showResultText={true}
|
|
104
|
-
showResultCron={true}
|
|
105
|
-
/>
|
|
106
|
-
```
|
|
107
88
|
|
|
89
|
+
## Release notes 2.x.x
|
|
90
|
+
1. Build Procedure updated
|
|
91
|
+
2. Updated to latest react(18)
|
|
92
|
+
3. Migrated to hooks and typescript
|
|
108
93
|
|
|
109
94
|
[Sojin Antony](https://github.com/sojinantony01)
|
|
110
95
|
|