From 060dfd54df7d6d8fadf856b1d90a92c1b731450d Mon Sep 17 00:00:00 2001 From: Hannah Howard Date: Mon, 1 Jul 2024 15:03:12 -0700 Subject: [PATCH] feat(website): update website to remove upload functionality (#2704) # Goals Disable uploads # Implementation This PR does the following: - update the deprecation banner to note uploads are stopped - remove all UI related to uploads - add deprecation notice to the SDK --- packages/client/README.md | 2 + .../website/components/deprecationBanner.js | 7 +- packages/website/lib/constants.js | 1 - packages/website/lib/countly.js | 1 - packages/website/next-sitemap.js | 1 - packages/website/pages/files.js | 60 ---- packages/website/pages/manage.js | 35 --- packages/website/pages/new-file.js | 260 ------------------ packages/website/pages/pinning-request.js | 132 --------- packages/website/public/robots.txt | 1 - packages/website/public/sitemap.xml | 57 ++-- 11 files changed, 33 insertions(+), 524 deletions(-) delete mode 100644 packages/website/pages/new-file.js delete mode 100644 packages/website/pages/pinning-request.js diff --git a/packages/client/README.md b/packages/client/README.md index 42c3e246de..f14c637891 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -1,5 +1,7 @@ # nft.storage +### Notice: Uploads have been decommissioned, and upload functionality in this package no longer functions, even with a valid API key. Please visit the product page to learn more and find a new hot storage provider for uploading new assets. + ![ci][ci.icon] [![package][version.icon]][package.url] [![styled with prettier][prettier.icon]][prettier.url] diff --git a/packages/website/components/deprecationBanner.js b/packages/website/components/deprecationBanner.js index 200b86b109..fb46451329 100644 --- a/packages/website/components/deprecationBanner.js +++ b/packages/website/components/deprecationBanner.js @@ -1,10 +1,9 @@ export function DeprecationBanner() { return (
- We're evolving our platform for you. Learn more >>  - - https://nft.storage/blog/the-next-chapter-of-nftstorage - + Notice: Uploads have been decommissioned. Please visit{' '} + the product page to + learn more and find a new hot storage provider for uploading new assets.
) } diff --git a/packages/website/lib/constants.js b/packages/website/lib/constants.js index 4df46a3768..293bfa26f6 100644 --- a/packages/website/lib/constants.js +++ b/packages/website/lib/constants.js @@ -32,7 +32,6 @@ if (globalThis.window) { const AUTHENTICATED_ROUTES = { MANAGE: 'manage', FILES: 'files', - NEW_FILE: 'new-file', NEW_KEY: 'new-key', PINNING_REQUEST: 'pinning-request', } diff --git a/packages/website/lib/countly.js b/packages/website/lib/countly.js index 2ef7a6a48e..d4896598fb 100644 --- a/packages/website/lib/countly.js +++ b/packages/website/lib/countly.js @@ -41,7 +41,6 @@ export const ui = { NAVBAR: 'navbar', LOGIN: 'login', FILES: 'files', - NEW_FILE: 'new-file', NEW_TOKEN: 'new-token', PINNING_REQUEST: 'pinning-request', TOKENS: 'tokens', diff --git a/packages/website/next-sitemap.js b/packages/website/next-sitemap.js index c95d779891..804dc57d58 100644 --- a/packages/website/next-sitemap.js +++ b/packages/website/next-sitemap.js @@ -10,7 +10,6 @@ const routes = [ { loc: '/callback-v0', exclude: true }, { loc: '/files', exclude: true }, { loc: '/manage', exclude: true }, - { loc: '/new-file', exclude: true }, { loc: '/new-key', exclude: true }, ] diff --git a/packages/website/pages/files.js b/packages/website/pages/files.js index 660b3c49e3..ca5028f453 100644 --- a/packages/website/pages/files.js +++ b/packages/website/pages/files.js @@ -357,23 +357,6 @@ export default function Files({ user }) { ) } - const UploadFileButton = () => ( - - ) - return ( <>