From 9efc5162ab68c25157143ea275454b7d3bdc8e75 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 25 May 2021 13:29:15 +0100 Subject: [PATCH 1/8] Removing request button. --- .../builder/app/[application]/_layout.svelte | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/_layout.svelte index 8a83439911..d9ffdda8cf 100644 --- a/packages/builder/src/pages/builder/app/[application]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/_layout.svelte @@ -91,14 +91,6 @@ -
- -
{:catch error} @@ -200,14 +192,4 @@ i:hover { color: var(--ink); } - - .beta { - position: absolute; - bottom: var(--spacing-m); - left: var(--spacing-m); - z-index: 1; - } - .beta :global(button) { - background-color: var(--background); - } From 0340c735e89f14bf3bceb180694be04ef975c5d8 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 25 May 2021 13:39:30 +0100 Subject: [PATCH 2/8] fix cron trigger output --- packages/server/src/api/controllers/automation.js | 5 ++++- packages/server/src/automations/triggers.js | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/automation.js b/packages/server/src/api/controllers/automation.js index 20e54fe238..c9c8759fd6 100644 --- a/packages/server/src/api/controllers/automation.js +++ b/packages/server/src/api/controllers/automation.js @@ -65,7 +65,10 @@ async function checkForCronTriggers({ appId, oldAuto, newAuto }) { // need to create cron job else if (isCronTrigger(newAuto) && cronTriggerActivated) { const job = await triggers.automationQueue.add( - { automation: newAuto, event: { appId } }, + { + automation: newAuto, + event: { appId, timestamp: Date.now() }, + }, { repeat: { cron: newTrigger.inputs.cron } } ) // Assign cron job ID from bull so we can remove it later if the cron trigger is removed diff --git a/packages/server/src/automations/triggers.js b/packages/server/src/automations/triggers.js index 812c601fa7..332710a3e4 100644 --- a/packages/server/src/automations/triggers.js +++ b/packages/server/src/automations/triggers.js @@ -216,7 +216,15 @@ const BUILTIN_DEFINITIONS = { }, required: ["cron"], }, - outputs: {}, + outputs: { + properties: { + timestamp: { + type: "number", + description: "Timestamp the cron was executed", + }, + }, + required: ["timestamp"], + }, }, type: "TRIGGER", }, From 0cd8d50fcc24054731b207a8c2288cf3edc5b1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 25 May 2021 15:12:25 +0200 Subject: [PATCH 3/8] add node target to cli package --- packages/cli/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/package.json b/packages/cli/package.json index 73da05ec0b..453ee6d06f 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -11,6 +11,10 @@ "scripts": { "build": "pkg . --out-path build" }, + "pkg": { + "targets": [ "node14" ], + "outputPath": "build" + }, "dependencies": { "axios": "^0.21.1", "chalk": "^4.1.0", From 122c1f6fe087b7edd548446f0f3964a26e7bb37c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 25 May 2021 15:15:11 +0200 Subject: [PATCH 4/8] remove unused dependencies in top level package file --- package.json | 7 ------- yarn.lock | 25 ------------------------- 2 files changed, 32 deletions(-) diff --git a/package.json b/package.json index 71296665c7..380407d48d 100644 --- a/package.json +++ b/package.json @@ -40,12 +40,5 @@ "test:e2e:ci": "lerna run cy:ci", "build:docker": "lerna run build:docker && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh && cd -", "build:docker:staging": "cd hosting/scripts/linux/ && ./release-to-docker-hub.sh staging && cd -" - }, - "dependencies": { - "@spectrum-css/actionbutton": "^1.0.1", - "@spectrum-css/actiongroup": "^1.0.1", - "@spectrum-css/link": "^3.1.1", - "@spectrum-css/menu": "^3.0.1", - "@spectrum-css/toast": "^3.0.1" } } diff --git a/yarn.lock b/yarn.lock index f344bd8338..8678a07d03 100644 --- a/yarn.lock +++ b/yarn.lock @@ -824,31 +824,6 @@ estree-walker "^1.0.1" micromatch "^4.0.2" -"@spectrum-css/actionbutton@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@spectrum-css/actionbutton/-/actionbutton-1.0.1.tgz#9c75da37ea6915919fb574c74bd60dacc03b6577" - integrity sha512-AUqtyNabHF451Aj9i3xz82TxS5Z6k1dttA68/1hMeU9kbPCSS4P6Viw3vaRGs9CSspuR8xnnhDgrq+F+zMy2Hw== - -"@spectrum-css/actiongroup@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@spectrum-css/actiongroup/-/actiongroup-1.0.1.tgz#b95b86e7af229e90fe1e70399d8d4b547b4bd31c" - integrity sha512-5Q6uMjzv5BFA2TwGASr/jAtJpTWl26fhWvgGY8kOA0RCSij35l+YJg/FPXf6Nnj2qCOl8DkNycjT9YXJ+bhyVA== - -"@spectrum-css/link@^3.1.1": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@spectrum-css/link/-/link-3.1.1.tgz#cb526a2e10b50ef5a7ae29cca7272e2610d597eb" - integrity sha512-Bi88lRhTY7g6nM/ryW1yY4Cji211ZYNtRxkxbV7n2lPvwMAAQtyx0qVD3ru4kTGj/FFVvmPR3XiOE10K13HSNA== - -"@spectrum-css/menu@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@spectrum-css/menu/-/menu-3.0.1.tgz#2a376f991acc24e12ec892bb6b9db2650fc41fbe" - integrity sha512-Qjg0+1O0eC89sb/bRFq2AGnQ8XqhVy23TUXHyffNM8qdcMssnlny3QmhzjURCZKvx/Y5UytCpzhedPQqSpQwZg== - -"@spectrum-css/toast@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@spectrum-css/toast/-/toast-3.0.1.tgz#36f62ea05302761e59b9d53e05f6c04423861796" - integrity sha512-jov++S358BrN2tmMfaoYk1N6u9HojgeuQk61keXrK2m3VE5/n94x7Lg3kIPeSWO0odyDfBlMqT9jacbRey3QTg== - "@types/estree@0.0.39": version "0.0.39" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" From 3dc7ba268e362328b8fe382baf783ef0c6944cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 25 May 2021 15:19:10 +0200 Subject: [PATCH 5/8] remove unused component in manage layout --- .../builder/src/pages/builder/portal/manage/_layout.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/manage/_layout.svelte b/packages/builder/src/pages/builder/portal/manage/_layout.svelte index 356b362b0b..bb09efb6f2 100644 --- a/packages/builder/src/pages/builder/portal/manage/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/manage/_layout.svelte @@ -12,7 +12,5 @@ {#if $auth.isAdmin} - - - + {/if} From ab56fceaae3d6cbfe3fef2f2f5bbe044d4cda684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 25 May 2021 15:25:56 +0200 Subject: [PATCH 6/8] fix double page component issue in email section --- .../builder/portal/manage/_layout.svelte | 8 +- .../portal/manage/email/[template].svelte | 124 +++++++++--------- .../builder/portal/manage/email/index.svelte | 122 +++++++++-------- 3 files changed, 127 insertions(+), 127 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/manage/_layout.svelte b/packages/builder/src/pages/builder/portal/manage/_layout.svelte index bb09efb6f2..98ae140b25 100644 --- a/packages/builder/src/pages/builder/portal/manage/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/manage/_layout.svelte @@ -1,7 +1,7 @@ {#if $auth.isAdmin} - + + + {/if} diff --git a/packages/builder/src/pages/builder/portal/manage/email/[template].svelte b/packages/builder/src/pages/builder/portal/manage/email/[template].svelte index 182201d2ba..d1001b2d76 100644 --- a/packages/builder/src/pages/builder/portal/manage/email/[template].svelte +++ b/packages/builder/src/pages/builder/portal/manage/email/[template].svelte @@ -69,71 +69,69 @@ } - - -
- $goto("./")} - quiet - size="S" - icon="BackAndroid" - > - Back to email settings - -
-
- - Email Template: {template} - - -
- Change the email template here. Add dynamic content by using the bindings - menu on the right. +
+ $goto("./")} + quiet + size="S" + icon="BackAndroid" > - - - -
- { - selectedTemplate.contents = e.detail.value - }} - value={selectedTemplate?.contents} - /> -
- Bindings - {#if mounted} - - - - - - - - - {/if} -
+ Back to email settings + +
+
+ + Email Template: {template} + + +
+ Change the email template here. Add dynamic content by using the bindings + menu on the right. + + + +
+ { + selectedTemplate.contents = e.detail.value + }} + value={selectedTemplate?.contents} + /> +
+ Bindings + {#if mounted} + + + + + + + + + {/if}
- - -
-