react-cron-generator 2.0.10 → 2.0.12
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 +19 -23
- package/build/cron-tab/custom.d.ts +1 -0
- package/build/cron-tab/daily.d.ts +1 -0
- package/build/cron-tab/hourly.d.ts +1 -0
- package/build/cron-tab/minutes.d.ts +1 -0
- package/build/cron-tab/monthly.d.ts +1 -0
- package/build/cron-tab/weekly.d.ts +1 -0
- package/build/cron.d.ts +1 -0
- package/build/index.js +174 -43
- package/build/index.js.map +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -9,7 +9,9 @@ Package helps to build linux scheduler cron expression.
|
|
|
9
9
|
[](https://badge.fury.io/js/react-cron-generator) 
|
|
10
10
|
<a href="https://github.com/sojinantony01/react-spread-sheet/blob/main/LICENSE">
|
|
11
11
|
<img src="https://img.shields.io/npm/l/react-cron-generator.svg" alt="license">
|
|
12
|
-
</a>
|
|
12
|
+
</a> <span>E2E tests passing.</span>
|
|
13
|
+
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
```
|
|
15
17
|
data = '* * * * * * *'
|
|
@@ -27,32 +29,25 @@ npm install react-cron-generator
|
|
|
27
29
|
|
|
28
30
|
|
|
29
31
|
```
|
|
30
|
-
import React, {
|
|
32
|
+
import React, { useState } from 'react'
|
|
31
33
|
import Cron from 'react-cron-generator'
|
|
32
34
|
import 'react-cron-generator/dist/cron-builder.css'
|
|
33
35
|
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
showResultText={true}
|
|
50
|
-
showResultCron={true}
|
|
51
|
-
/>
|
|
52
|
-
|
|
53
|
-
</div>)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
37
|
+
const App = () => {
|
|
38
|
+
const [state, setState] = useState<State>({});
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<Cron
|
|
42
|
+
onChange={(e, text) => {
|
|
43
|
+
setState({ value: e });
|
|
44
|
+
}}
|
|
45
|
+
value={state.value}
|
|
46
|
+
showResultText={true}
|
|
47
|
+
showResultCron={true}
|
|
48
|
+
/>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
56
51
|
|
|
57
52
|
export default App;
|
|
58
53
|
|
|
@@ -68,6 +63,7 @@ export default App;
|
|
|
68
63
|
| translateFn | translate function callback | method | No
|
|
69
64
|
| locale | locale for cronstrue | en | No
|
|
70
65
|
| options | Options for Cron component, *Must pass a valid cron value for available headers | All available headers | No
|
|
66
|
+
| disabled | Disable cron selector | false | No
|
|
71
67
|
|
|
72
68
|
|
|
73
69
|
**translateFn**
|