From 0bfd6fd10de3a6328a5c477b5643eebe981d68c8 Mon Sep 17 00:00:00 2001 From: Tang Bo Hao Date: Sat, 4 Nov 2023 23:26:46 +0800 Subject: [PATCH] chore: remove learn.ts, update ignore --- .gitignore | 2 + src/data/pages/learn.ts | 98 ----------------------------------------- 2 files changed, 2 insertions(+), 98 deletions(-) delete mode 100644 src/data/pages/learn.ts diff --git a/.gitignore b/.gitignore index d03028c2ff..7dd85aff98 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,8 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +.yarn +.yarnrc.yml /.vscode /temp diff --git a/src/data/pages/learn.ts b/src/data/pages/learn.ts deleted file mode 100644 index 2be446fc6b..0000000000 --- a/src/data/pages/learn.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { type TutorialCardProps } from '../../ui/design-system/src/lib/Components/TutorialCard'; -import { - accessControlCadence, - cadenceAtAGlance, - playgroundTutorials, - FCLQuickstartNextJs, - FCLQuickstartNuxtJs, - FCLQuickstartSvelteKit, - firstStepsWithCadence, - flowMetaDataStandard, - flowMultiNodeArchitecture, - flowNFTPetStore, - getTheFlowDown, - guideToFlowForEthereumUsers, - introToFlow, - learnCadenceVideoSeries, - NBATopShotExample, - organizingCadenceTutorial, - redSquirrelGetStartedArticle, - revolutionizeSmartContractProgramming, - zeroToJacobFlow, - quicknodeCreateNFTCollection, - quicknodeAccountAbstraction, - quicknodeDeploySmartContract, -} from '../../data/articles'; -import { type VideoCardErrorProps } from '@site/src/ui/design-system/src/lib/Components/VideoCard/VideoCardError'; -export interface LargeVideoCardProps { - link: string; // NOTE: link should be in the format that youtubes site uses ie: https://www.youtube.com/watch?v=... - title: string; - length: number; // seconds - className?: string; - errorBehavior?: VideoCardErrorProps['behavior']; -} -export interface SmallVideoCardProps extends LargeVideoCardProps { - tags: string[]; -} - -export const cadenceTutorials: TutorialCardProps[] = [ - quicknodeDeploySmartContract, - cadenceAtAGlance, - playgroundTutorials, - organizingCadenceTutorial, - learnCadenceVideoSeries, - zeroToJacobFlow, - firstStepsWithCadence, - FCLQuickstartNextJs, - FCLQuickstartNuxtJs, - FCLQuickstartSvelteKit, -]; - -export const nftTutorials: TutorialCardProps[] = [ - quicknodeCreateNFTCollection, - NBATopShotExample, - redSquirrelGetStartedArticle, - flowNFTPetStore, - flowMetaDataStandard, -]; - -export const architectureTutorials: TutorialCardProps[] = [ - quicknodeAccountAbstraction, - introToFlow, - flowMultiNodeArchitecture, - getTheFlowDown, - guideToFlowForEthereumUsers, - revolutionizeSmartContractProgramming, - accessControlCadence, -]; - -export const videos: { - primary: LargeVideoCardProps; - secondary: SmallVideoCardProps[]; -} = { - primary: { - link: 'https://www.youtube.com/watch?v=pRz7EzrWchs', - title: 'Learn Cadence - Hello World on Flow', - length: 1396, - }, - secondary: [ - { - link: 'https://www.youtube.com/watch?v=DInibYmxUsc', - title: 'Fungible Token Smart Contracts on Flow', - length: 1993, - tags: ['Guide'], - }, - { - link: 'https://www.youtube.com/watch?v=uEoh9SnjqCk', - title: 'How to build a basic web3 app on Flow', - length: 1878, - tags: ['Guide'], - }, - ], -}; - -export const allTutorials: TutorialCardProps[] = [ - ...nftTutorials, - ...cadenceTutorials, - ...architectureTutorials, -];