diff --git a/package.json b/package.json index d234fccd0..4935c2cea 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,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 b44c53c98..000000000 --- a/pages/api/feedback.ts +++ /dev/null @@ -1,25 +0,0 @@ -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 67b753f5d..2bbaa23ea 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,9 +50,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 @@ -4051,9 +4048,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'} @@ -4119,10 +4113,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: @@ -7305,9 +7295,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==} @@ -12475,7 +12462,7 @@ snapshots: '@graphql-tools/optimize@2.0.0(graphql@15.9.0)': dependencies: graphql: 15.9.0 - tslib: 2.6.3 + tslib: 2.7.0 '@graphql-tools/relay-operation-optimizer@6.5.18(encoding@0.1.13)(graphql@15.9.0)': dependencies: @@ -12492,7 +12479,7 @@ snapshots: '@ardatan/relay-compiler': 12.0.0(encoding@0.1.13)(graphql@15.9.0) '@graphql-tools/utils': 10.5.4(graphql@15.9.0) graphql: 15.9.0 - tslib: 2.6.3 + tslib: 2.7.0 transitivePeerDependencies: - encoding - supports-color @@ -12511,7 +12498,7 @@ snapshots: cross-inspect: 1.0.1 dset: 3.1.4 graphql: 15.9.0 - tslib: 2.6.3 + tslib: 2.7.0 '@graphql-tools/utils@9.2.1(graphql@15.9.0)': dependencies: @@ -16317,8 +16304,6 @@ snapshots: dependencies: event-target-shim: 5.0.1 - abortcontroller-polyfill@1.7.5: {} - abstract-level@1.0.4: dependencies: buffer: 6.0.3 @@ -16385,15 +16370,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 @@ -17073,7 +17049,7 @@ snapshots: camel-case@4.1.2: dependencies: pascal-case: 3.1.2 - tslib: 2.6.3 + tslib: 2.7.0 camelcase-css@2.0.1: {} @@ -17100,7 +17076,7 @@ snapshots: capital-case@1.0.4: dependencies: no-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.7.0 upper-case-first: 2.0.2 capture-exit@2.0.0: @@ -17163,7 +17139,7 @@ snapshots: path-case: 3.0.4 sentence-case: 3.0.4 snake-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.7.0 character-entities-html4@1.1.4: {} @@ -17452,7 +17428,7 @@ snapshots: constant-case@3.0.4: dependencies: no-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.7.0 upper-case: 2.0.2 content-disposition@0.5.2: {} @@ -17541,7 +17517,7 @@ snapshots: cross-inspect@1.0.1: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 cross-spawn@6.0.5: dependencies: @@ -18918,7 +18894,7 @@ snapshots: header-case@2.0.4: dependencies: capital-case: 1.0.4 - tslib: 2.6.3 + tslib: 2.7.0 hermes-estree@0.22.0: optional: true @@ -19232,7 +19208,7 @@ snapshots: is-lower-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 is-negative-zero@2.0.3: {} @@ -19312,7 +19288,7 @@ snapshots: is-upper-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 is-weakref@1.0.2: dependencies: @@ -20264,8 +20240,6 @@ snapshots: lodash.uniqby@4.7.0: {} - lodash@4.17.15: {} - lodash@4.17.21: {} log-symbols@4.1.0: @@ -20305,11 +20279,11 @@ snapshots: lower-case-first@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 lower-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 lru-cache@10.0.0: {} @@ -21639,7 +21613,7 @@ snapshots: no-case@3.0.4: dependencies: lower-case: 2.0.2 - tslib: 2.6.3 + tslib: 2.7.0 nocache@3.0.4: optional: true @@ -21952,7 +21926,7 @@ snapshots: param-case@3.0.4: dependencies: dot-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.7.0 parent-module@1.0.1: dependencies: @@ -22005,14 +21979,14 @@ snapshots: pascal-case@3.1.2: dependencies: no-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.7.0 pascalcase@0.1.1: {} path-case@3.0.4: dependencies: dot-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.7.0 path-exists@3.0.0: optional: true @@ -23343,7 +23317,7 @@ snapshots: sentence-case@3.0.4: dependencies: no-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.7.0 upper-case-first: 2.0.2 serialize-error@2.1.0: @@ -23690,7 +23664,7 @@ snapshots: sponge-case@1.0.1: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 sprintf-js@1.0.3: {} @@ -23989,7 +23963,7 @@ snapshots: swap-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 symbol-tree@3.2.4: {} @@ -24303,7 +24277,7 @@ snapshots: title-case@3.0.3: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 tmpl@1.0.5: {} @@ -24757,11 +24731,11 @@ snapshots: upper-case-first@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 upper-case@2.0.2: dependencies: - tslib: 2.6.3 + tslib: 2.7.0 uri-js@4.4.1: dependencies: