Skip to content

Commit

Permalink
ipfs videos
Browse files Browse the repository at this point in the history
  • Loading branch information
wslyvh committed Mar 19, 2024
1 parent 91703ba commit 854c53b
Show file tree
Hide file tree
Showing 22 changed files with 9,902 additions and 10,297 deletions.
16 changes: 2 additions & 14 deletions devcon-archive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
"prebuild": "yarn prebuild:cache && yarn prebuild:cms",
"prebuild:cache": "sh ./update_config.sh",
"prebuild:cms": "sed -i \"s|%BRANCH_PLACEHOLDER%|$BRANCH|g\" ./static/admin/config.yml && sed -i \"s|local_backend: true||g\" ./static/admin/config.yml",
"build": "gatsby build && yarn build:lambda",
"build:app": "gatsby build",
"build:lambda": "netlify-lambda build src/server/functions --config ./src/server/webpack.config.js",
"start": "concurrently \"yarn start:app\" \"yarn start:lambda\"",
"start:app": "gatsby develop -H 0.0.0.0 -p 8000",
"start:lambda": "cross-env NODE_ENV=development SESSION_SECRET=dev netlify-lambda serve src/server/functions --config ./src/server/webpack.config.js",
"local-cms": "npx netlify-cms-proxy-server",
"build": "gatsby build",
"start": "gatsby develop -H 0.0.0.0 -p 8000",
"debug": "node node_modules/.bin/gatsby develop --inspect",
"format": "prettier --write \"src/**/*.{ts,tsx,json}\"",
"lint": "eslint --fix src/**/*.{ts,tsx}",
Expand All @@ -27,14 +22,11 @@
"browserstack-ts": "ts-node --project ./tsconfig.json browserstack/test.ts"
},
"dependencies": {
"@elastic/elasticsearch": "^7.13.0",
"@loadable/component": "^5.14.1",
"@tippyjs/react": "^4.2.5",
"canvas-confetti": "^1.4.0",
"dotenv": "^8.2.0",
"ethers": "^5.1.3",
"express": "^4.17.1",
"express-session": "^1.17.1",
"gatsby": "^3.2.1",
"gatsby-image": "^3.2.0",
"gatsby-plugin-image": "^1.6.0",
Expand Down Expand Up @@ -62,18 +54,14 @@
"js-search": "^2.0.0",
"moment": "^2.29.1",
"moment-timezone": "^0.5.33",
"mongoose": "^5.12.7",
"netlify-cms-app": "^2.14.38",
"passport": "^0.4.1",
"passport-web3": "^0.1.7",
"query-string": "^7.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-helmet": "^6.1.0",
"react-slick": "^0.27.14",
"react-use-gesture": "^9.1.3",
"rss-parser": "^3.12.0",
"serverless-http": "^2.7.0",
"slick-carousel": "^1.8.1",
"swr": "^0.5.6",
"web3modal": "^1.9.3",
Expand Down
2 changes: 1 addition & 1 deletion devcon-archive/src/components/domain/archive/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const Video = (props: VideoProps) => {
<Tab title="IPFS">
<div className="aspect">
<video controls autoPlay={false}>
<source src={`https://ipfs.io/ipfs/${props.video.ipfsHash}`} />
<source src={`https://cloudflare-ipfs.com/ipfs/${props.video.ipfsHash}`} />
</video>
</div>
</Tab>
Expand Down
2 changes: 1 addition & 1 deletion devcon-archive/src/components/domain/ipfs/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const Banner = (props: Props) => {

let ctaLink = ''
if (props.type === 'IPFS') {
ctaLink = `https://ipfs.io/ipfs/${props.hash}`
ctaLink = `https://cloudflare-ipfs.com/ipfs/${props.hash}`
}
if (props.type === 'Swarm') {
ctaLink = `https://gateway.ethswarm.org/access/${props.hash}`
Expand Down
2 changes: 1 addition & 1 deletion devcon-archive/src/components/domain/seo/Metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function Metadata(props: Props) {
],
"uploadDate": "${date.toISOString()}",
"duration": "${moment.duration(video.duration, 'milliseconds').toISOString()}",
"contentUrl": "https://ipfs.io/ipfs/${video.ipfsHash}"
"contentUrl": "https://cloudflare-ipfs.com/ipfs/${video.ipfsHash}"
}`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: "The Value of Cryptocurrencies in Supporting Human Rights"
description: "Privacy and Free Expression"
youtubeUrl: "https://youtu.be/nzeracgPYis"
imageUrl: /assets/uploads/videos/kurt-opsahl.png
ipfsHash: ""
ipfsHash: "QmSvm9WnCZNRg1cqY6Rpg1eC1emAm5HuStW6gyXitG9huM"
ethernaIndex: "https://etherna.io/embed/635172d7c02259b06a2ffe03"
ethernaPermalink: "https://etherna.io/embed/bdf3f7af33d7a3c6d67ffe3dadb7f199379d2b049202b8d98d0cde476236d06a"
duration: 2054
Expand Down
18 changes: 0 additions & 18 deletions devcon-archive/src/server/.babelrc

This file was deleted.

12 changes: 0 additions & 12 deletions devcon-archive/src/server/config/server.ts

This file was deleted.

12 changes: 0 additions & 12 deletions devcon-archive/src/server/controllers/TwitterController.ts

This file was deleted.

157 changes: 0 additions & 157 deletions devcon-archive/src/server/controllers/UserController.ts

This file was deleted.

51 changes: 0 additions & 51 deletions devcon-archive/src/server/functions/api.ts

This file was deleted.

16 changes: 0 additions & 16 deletions devcon-archive/src/server/models/UserAccountModel.ts

This file was deleted.

Loading

0 comments on commit 854c53b

Please sign in to comment.