You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/scripts/generate-images.ts
+29-2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ import fetch from 'cross-fetch'
2
2
import{APP_URL,GetBaseUri}from'utils/constants'
3
3
import{getDay}from'utils/generator'
4
4
importfsfrom'fs'
5
+
importslugifyfrom'slugify'
5
6
6
7
Run()
7
8
@@ -15,13 +16,39 @@ async function Run() {
15
16
console.log(body.data.length,'sessions')
16
17
17
18
for(leti=0;i<body.data.length;i++){
18
-
awaitGenerateImages(body.data[i])
19
+
awaitGenerateAssets(body.data[i])
20
+
awaitGenerateCopy(body.data[i])
19
21
}
20
22
21
23
console.log('Done')
22
24
}
23
25
24
-
exportasyncfunctionGenerateImages(session: any){
26
+
exportasyncfunctionGenerateCopy(session: any){
27
+
constday=getDay(session.start)
28
+
constroom=session.room.name
29
+
consttext=`Visit the https://archive.devcon.org/ to gain access to the entire library of Devcon talks with the ease of filtering, playlists, personalized suggestions, decentralized access on IPFS and more.
Devcon is the Ethereum conference for developers, researchers, thinkers, and makers.
43
+
Devcon 6 was held in Bogotá, Colombia on Oct 11 - 14, 2022.
44
+
Devcon is organized and presented by the Ethereum Foundation, with the support of our sponsors. To find out more, please visit https://ethereum.foundation/`
0 commit comments