From 19f70e8066838fc63dc25a11876032207978853a Mon Sep 17 00:00:00 2001 From: "Isaac Lombard [SSW]" <152236421+isaaclombardssw@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:43:31 +1000 Subject: [PATCH] =?UTF-8?q?=E2=9E=96=20Old=20Dependencies=20=E2=80=93=20Re?= =?UTF-8?q?moving=20Airtable=20(#2235)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit removing airtable --- package.json | 1 - pages/api/feedback.ts | 26 -------------------------- pnpm-lock.yaml | 26 -------------------------- 3 files changed, 53 deletions(-) delete mode 100644 pages/api/feedback.ts diff --git a/package.json b/package.json index 0b5644b2c..77c6aa1e6 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ "@typescript-eslint/eslint-plugin": "^5.42.0", "@typescript-eslint/parser": "^5.42.0", "@vercel/postgres": "^0.5.1", - "airtable": "^0.9.0", "algoliasearch": "^4.0.0", "autoprefixer": "^10.4.20", "axios": "^0.21.2", diff --git a/pages/api/feedback.ts b/pages/api/feedback.ts deleted file mode 100644 index 052a2f155..000000000 --- a/pages/api/feedback.ts +++ /dev/null @@ -1,26 +0,0 @@ -//TODO – this is no longer needed, https://github.com/tinacms/tina.io/issues/2215 -import Airtable from 'airtable' - -interface FeedbackRecord { - Date: string - Comment?: string - Review: 'Good' | 'Bad' - Email?: string - slug: string -} - -export default function feedback(req, res) { - const base = Airtable.base('appmrIEGfi6XWeXaY') - - const fields: FeedbackRecord = req.body - - base('Site Feedback').create([{ fields }], function(err, records) { - if (err) { - console.error(err) - res.json({ message: 'Uh oh spagehtti-o' }) - return - } - - res.json({ message: 'Thanks for your feedback!' }) - }) -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef9be735c..e3ea6d391 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,9 +44,6 @@ importers: '@vercel/postgres': specifier: ^0.5.1 version: 0.5.1 - airtable: - specifier: ^0.9.0 - version: 0.9.0(encoding@0.1.13) algoliasearch: specifier: ^4.0.0 version: 4.24.0 @@ -3969,9 +3966,6 @@ packages: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} - abortcontroller-polyfill@1.7.5: - resolution: {integrity: sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ==} - abstract-level@1.0.4: resolution: {integrity: sha512-eUP/6pbXBkMbXFdx4IH2fVgvB7M0JvR7/lIL33zcs0IBcwjdzSSl31TOJsaCzmKSSDF9h8QYSOJux4Nd4YJqFg==} engines: {node: '>=12'} @@ -4033,10 +4027,6 @@ packages: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} - airtable@0.9.0: - resolution: {integrity: sha512-8gSNSSkS5RgqgEDbWDSZSkF/a1vy4RsT8Z0YPVr+YeoF8m8v+0FScflR+z6HiPW11dKeNym3T2wNLVIpg52X2Q==} - engines: {node: '>=8.0.0'} - ajv-keywords@3.5.2: resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} peerDependencies: @@ -7017,9 +7007,6 @@ packages: lodash.uniqby@4.7.0: resolution: {integrity: sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==} - lodash@4.17.15: - resolution: {integrity: sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==} - lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} @@ -15691,8 +15678,6 @@ snapshots: dependencies: event-target-shim: 5.0.1 - abortcontroller-polyfill@1.7.5: {} - abstract-level@1.0.4: dependencies: buffer: 6.0.3 @@ -15750,15 +15735,6 @@ snapshots: clean-stack: 2.2.0 indent-string: 4.0.0 - airtable@0.9.0(encoding@0.1.13): - dependencies: - abort-controller: 3.0.0 - abortcontroller-polyfill: 1.7.5 - lodash: 4.17.15 - node-fetch: 2.7.0(encoding@0.1.13) - transitivePeerDependencies: - - encoding - ajv-keywords@3.5.2(ajv@6.12.6): dependencies: ajv: 6.12.6 @@ -19354,8 +19330,6 @@ snapshots: lodash.uniqby@4.7.0: {} - lodash@4.17.15: {} - lodash@4.17.21: {} log-symbols@4.1.0: