Skip to content

Commit 060dfd5

Browse files
authored
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
1 parent 83fcd72 commit 060dfd5

11 files changed

Lines changed: 33 additions & 524 deletions

File tree

packages/client/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# nft.storage
22

3+
### Notice: Uploads have been decommissioned, and upload functionality in this package no longer functions, even with a valid API key. Please visit <a href="https://nft.storage/nft-storage-classic">the product page</a> to learn more and find a new hot storage provider for uploading new assets.
4+
35
![ci][ci.icon]
46
[![package][version.icon]][package.url]
57
[![styled with prettier][prettier.icon]][prettier.url]
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
export function DeprecationBanner() {
22
return (
33
<div className="w-full text-center p-3 bg-black text-white text-sm">
4-
We&apos;re evolving our platform for you. Learn more &gt;&gt;&nbsp;
5-
<a href="https://nft.storage/blog/the-next-chapter-of-nftstorage">
6-
https://nft.storage/blog/the-next-chapter-of-nftstorage
7-
</a>
4+
Notice: Uploads have been decommissioned. Please visit{' '}
5+
<a href="https://nft.storage/nft-storage-classic">the product page</a> to
6+
learn more and find a new hot storage provider for uploading new assets.
87
</div>
98
)
109
}

packages/website/lib/constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ if (globalThis.window) {
3232
const AUTHENTICATED_ROUTES = {
3333
MANAGE: 'manage',
3434
FILES: 'files',
35-
NEW_FILE: 'new-file',
3635
NEW_KEY: 'new-key',
3736
PINNING_REQUEST: 'pinning-request',
3837
}

packages/website/lib/countly.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export const ui = {
4141
NAVBAR: 'navbar',
4242
LOGIN: 'login',
4343
FILES: 'files',
44-
NEW_FILE: 'new-file',
4544
NEW_TOKEN: 'new-token',
4645
PINNING_REQUEST: 'pinning-request',
4746
TOKENS: 'tokens',

packages/website/next-sitemap.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const routes = [
1010
{ loc: '/callback-v0', exclude: true },
1111
{ loc: '/files', exclude: true },
1212
{ loc: '/manage', exclude: true },
13-
{ loc: '/new-file', exclude: true },
1413
{ loc: '/new-key', exclude: true },
1514
]
1615

packages/website/pages/files.js

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -357,23 +357,6 @@ export default function Files({ user }) {
357357
)
358358
}
359359

360-
const UploadFileButton = () => (
361-
<Button
362-
disabled={user?.tags.HasAccountRestriction}
363-
href={{
364-
pathname: '/new-file',
365-
}}
366-
className="flex-none mb-2"
367-
id="upload"
368-
tracking={{
369-
ui: countly.ui.FILES,
370-
action: 'Upload File',
371-
}}
372-
>
373-
+ Upload
374-
</Button>
375-
)
376-
377360
return (
378361
<>
379362
<Script src="//embed.typeform.com/next/embed.js" />
@@ -386,49 +369,6 @@ export default function Files({ user }) {
386369
<>
387370
<div className="flex flex-wrap items-center mb-4">
388371
<h1 className="flex-auto chicagoflf my-8">Files</h1>
389-
<div className="flex flex-wrap items-center mt-2">
390-
<Tooltip
391-
placement="bottom"
392-
overlay={
393-
<span>
394-
NFTUp is the easiest way for content creators to upload
395-
their metadata and assets, ready to be minted into NFTs
396-
by smart contracts and then traded on marketplaces, and
397-
browsed in galleries.
398-
</span>
399-
}
400-
overlayClassName="ns-tooltip"
401-
id="learn-more-nftup-info"
402-
>
403-
<a
404-
href="/docs/how-to/nftup"
405-
className="items-center mr-4 mb-2 btn button-reset select-none black py-2 px-3 hologram chicagoflf interactive light"
406-
id="learn-more-nftup"
407-
>
408-
<VscQuestion size={16} className="mr-2" /> Upload
409-
directories easily with NFTUp
410-
</a>
411-
</Tooltip>
412-
{user?.tags.HasAccountRestriction ? (
413-
<Tooltip
414-
id="blocked-upload-file-booltip"
415-
placement="bottom"
416-
overlayClassName="ns-tooltip"
417-
overlay={
418-
<span style={{ width: 160 }}>
419-
You are unable to upload files when your account is
420-
blocked. Please contact support@nft.storage
421-
</span>
422-
}
423-
>
424-
<span style={{ paddingLeft: 10 }}>
425-
<UploadFileButton />
426-
</span>
427-
</Tooltip>
428-
) : (
429-
<UploadFileButton />
430-
)}
431-
</div>
432372
</div>
433373
<div className="table-responsive">
434374
<When condition={hasZeroNfts}>

packages/website/pages/manage.js

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import Button from '../components/button.js'
66
import Loading from '../components/loading.js'
77
import Tooltip from '../components/tooltip.js'
88
import countly from '../lib/countly.js'
9-
import { VscMail } from 'react-icons/vsc'
109
import { Popover, ArrowContainer } from 'react-tiny-popover'
11-
import Link from '../components/link'
1210

1311
/**
1412
*
@@ -118,39 +116,6 @@ export default function ManageKeys({ user }) {
118116
<div className="flex flex-wrap items-center mb-4">
119117
<h1 className="flex-auto chicagoflf my-8">API Keys</h1>
120118
<div className="flex flex-wrap items-center mt-2">
121-
{!user?.tags.HasAccountRestriction &&
122-
!user?.tags.HasPsaAccess &&
123-
!user?.pendingTagProposals?.HasPsaAccess && (
124-
<Tooltip
125-
placement="bottom"
126-
overlay={
127-
<span>
128-
NFT.Storage is capable of efficiently ingesting
129-
billions of records. Whether or not your data is
130-
already on PDFS, we have simple APIs for bulk data
131-
import. You do not need to request bulk API access if
132-
you are just looking to upload your data to
133-
NFT.Storage. Check out{' '}
134-
<Link href="/docs/how-to/pinning-service/">
135-
the docs
136-
</Link>{' '}
137-
for more details.
138-
</span>
139-
}
140-
overlayClassName="ns-tooltip"
141-
id="request-api-pinning-info"
142-
>
143-
<Link
144-
href="/pinning-request"
145-
className="items-center mr-4 btn button-reset select-none black py-2 px-4 hologram chicagoflf interactive light"
146-
id="request-api-pinning"
147-
>
148-
<VscMail size={12} className="mr-2" /> Request bulk
149-
pinning API access
150-
</Link>
151-
</Tooltip>
152-
)}
153-
154119
{user?.tags.HasAccountRestriction ? (
155120
<Tooltip
156121
id="blocked-new-key-booltip"

0 commit comments

Comments
 (0)