From df9686520b5cee5178ac7abb20344e3767543ce4 Mon Sep 17 00:00:00 2001 From: Jake Trevor Date: Thu, 15 Jul 2021 18:09:20 +0100 Subject: [PATCH] added react transition group, and a CD script --- .github/workflows/deploy.yml | 22 +++++++++++++++++++ package-lock.json | 40 +++++++++++++++++++++++++++++++++-- package.json | 1 + src/components/ScanModule.tsx | 1 + 4 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..33095a0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Deploy to firebase + +on: + release: + # Only use the types keyword to narrow down the activity types that will trigger your workflow. + types: [published, created, edited] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@master + with: + node-version: 12 + - run: npm ci + - run: npm run build + - uses: w9jds/firebase-action@master + with: + args: deploy --only hosting + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} diff --git a/package-lock.json b/package-lock.json index e4fea53..0207353 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3509,8 +3509,7 @@ "csstype": { "version": "3.0.8", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", - "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "dev": true + "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==" }, "dashdash": { "version": "1.14.1", @@ -3707,6 +3706,15 @@ "integrity": "sha512-ag6wfpBFyNXZ0p8pcuIDS//D8H062ZQJ3fzYxjpmeKjnz8W4pekL3AI8VohmyZmsWW2PWaHgjsmqR6L13101VQ==", "dev": true }, + "dom-helpers": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", + "requires": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, "domexception": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", @@ -7752,6 +7760,23 @@ "sisteransi": "^1.0.5" } }, + "prop-types": { + "version": "15.7.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", + "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", + "requires": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.8.1" + }, + "dependencies": { + "react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + } + } + }, "psl": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", @@ -7841,6 +7866,17 @@ "integrity": "sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ==", "dev": true }, + "react-transition-group": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.2.tgz", + "integrity": "sha512-/RNYfRAMlZwDSr6z4zNKV6xu53/e2BuaBbGhbyYIXTrmgu/bGHzmqOs7mJSJBHy9Ud+ApHx3QjrkKSp1pxvlFg==", + "requires": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + } + }, "read-package-json-fast": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-2.0.2.tgz", diff --git a/package.json b/package.json index 4a62c34..da3c7e3 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "dependencies": { "react": "^17.0.2", "react-dom": "^17.0.2", + "react-transition-group": "^4.4.2", "workbox-cacheable-response": "^6.1.5", "workbox-cli": "^6.1.5", "workbox-routing": "^6.1.5", diff --git a/src/components/ScanModule.tsx b/src/components/ScanModule.tsx index 1feca75..9b7fdd0 100644 --- a/src/components/ScanModule.tsx +++ b/src/components/ScanModule.tsx @@ -28,6 +28,7 @@ export let ScanModule = ({ inputDisplayed }) => { }; interface textareaProps { + className: string; value: string; setValue: Function; placeholder: string;