From 3c042cc169e24e3da1c5e3aa6f09999bd90f8bfb Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaurym@users.noreply.github.com> Date: Mon, 6 Mar 2023 11:33:12 +0100 Subject: [PATCH] refactor: Switch back to crisp (#25) * refactor: Switch back to crisp * update node version * Fix node * --openssl-legacy-provider * Use node 16 --- .github/workflows/pr.yml | 3 +++ package.json | 6 +++--- public/index.html | 2 +- public/js/crisp.js | 10 ++++++++++ public/js/sendinblue.js | 10 ---------- 5 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 public/js/crisp.js delete mode 100644 public/js/sendinblue.js diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 35452ce..25dc6cb 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,6 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' - run: yarn install - run: yarn test:lint - run: yarn test:prettier diff --git a/package.json b/package.json index e4a9100..75c0346 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "homepage": "https://saasify.sh", "license": "MIT", "engines": { - "node": ">=10" + "node": "16.x" }, "scripts": { "update-deployment": "saasify get amaurymartiny/reacher@latest -o src/lib/deployment.json", - "start": "SKIP_PREFLIGHT_CHECK=true react-app-rewired start", - "build": "SKIP_PREFLIGHT_CHECK=true react-app-rewired build", + "start": "SKIP_PREFLIGHT_CHECK=true react-app-rewired start --openssl-legacy-provider", + "build": "SKIP_PREFLIGHT_CHECK=true react-app-rewired build --openssl-legacy-provider", "analyze": "source-map-explorer 'build/static/js/*.js'", "test": "run-s test:*", "test:lint": "eslint .", diff --git a/public/index.html b/public/index.html index 882e72a..2fcf25a 100644 --- a/public/index.html +++ b/public/index.html @@ -10,7 +10,7 @@ - + Reacher - Open-Source Email Verification API diff --git a/public/js/crisp.js b/public/js/crisp.js new file mode 100644 index 0000000..22e1457 --- /dev/null +++ b/public/js/crisp.js @@ -0,0 +1,10 @@ +// https://crisp.chat/en/ +window.$crisp = []; +window.CRISP_WEBSITE_ID = '76583d5a-660c-43a9-9fba-8c65c1cf9d49'; +(function () { + d = document; + s = d.createElement('script'); + s.src = 'https://client.crisp.chat/l.js'; + s.async = 1; + d.getElementsByTagName('head')[0].appendChild(s); +})(); \ No newline at end of file diff --git a/public/js/sendinblue.js b/public/js/sendinblue.js deleted file mode 100644 index f9e3627..0000000 --- a/public/js/sendinblue.js +++ /dev/null @@ -1,10 +0,0 @@ -(function(d, w, c) { - w.SibConversationsID = '6366d410f90cc11a765868a8'; - w[c] = w[c] || function() { - (w[c].q = w[c].q || []).push(arguments); - }; - var s = d.createElement('script'); - s.async = true; - s.src = 'https://conversations-widget.sendinblue.com/sib-conversations.js'; - if (d.head) d.head.appendChild(s); -})(document, window, 'SibConversations'); \ No newline at end of file