From 627bb6695736f4cb2e5ae2cdd54ed4bb53a6f22a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 11 Dec 2023 00:21:54 +0100 Subject: [PATCH] Added `CronEditor` component. --- .../backend/http/webapp/package-lock.json | 11 +- platypush/backend/http/webapp/package.json | 3 +- .../src/components/elements/CronEditor.vue | 179 ++++++++++++++++++ 3 files changed, 191 insertions(+), 2 deletions(-) create mode 100644 platypush/backend/http/webapp/src/components/elements/CronEditor.vue diff --git a/platypush/backend/http/webapp/package-lock.json b/platypush/backend/http/webapp/package-lock.json index b186d473ec..c50f284630 100644 --- a/platypush/backend/http/webapp/package-lock.json +++ b/platypush/backend/http/webapp/package-lock.json @@ -9,8 +9,9 @@ "version": "0.1.0", "dependencies": { "@fortawesome/fontawesome-free": "^6.1.1", - "core-js": "^3.31.1", "axios": "^1.6.0", + "core-js": "^3.31.1", + "cronstrue": "^2.47.0", "highlight.js": "^11.9.0", "lato-font": "^3.0.0", "mitt": "^2.1.0", @@ -4699,6 +4700,14 @@ "node": ">=10" } }, + "node_modules/cronstrue": { + "version": "2.47.0", + "resolved": "https://registry.npmjs.org/cronstrue/-/cronstrue-2.47.0.tgz", + "integrity": "sha512-fnFwJy7zslTEz6h7O7BkwgHNBvuuPmkhAYKqPDxK5mBQLz2nG08T9afbnjm+yrvcc/wxrd+otaVSnoXT9ulUOw==", + "bin": { + "cronstrue": "bin/cli.js" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", diff --git a/platypush/backend/http/webapp/package.json b/platypush/backend/http/webapp/package.json index 851845dbc3..5678996157 100644 --- a/platypush/backend/http/webapp/package.json +++ b/platypush/backend/http/webapp/package.json @@ -9,8 +9,9 @@ }, "dependencies": { "@fortawesome/fontawesome-free": "^6.1.1", - "core-js": "^3.31.1", "axios": "^1.6.0", + "core-js": "^3.31.1", + "cronstrue": "^2.47.0", "highlight.js": "^11.9.0", "lato-font": "^3.0.0", "mitt": "^2.1.0", diff --git a/platypush/backend/http/webapp/src/components/elements/CronEditor.vue b/platypush/backend/http/webapp/src/components/elements/CronEditor.vue new file mode 100644 index 0000000000..a67ce244f4 --- /dev/null +++ b/platypush/backend/http/webapp/src/components/elements/CronEditor.vue @@ -0,0 +1,179 @@ + + + + +