Add sync for Prague DeFi Summit
|
@ -0,0 +1,32 @@
|
|||
const peopleMapper = {
|
||||
"Radek Svarz": { country: "cz" },
|
||||
"Naim Ashab": { country: "cz " },
|
||||
};
|
||||
|
||||
export async function data($) {
|
||||
const res = await $.loadJSONUrl(
|
||||
"https://graphql.contentful.com/content/v1/spaces/6j1me6tz5h39/environments/master",
|
||||
{
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
query:
|
||||
"{ pragueDefiSummitCollection(limit: 1) { items { pitchDeck { url } twitterLink discordLink telegramLink applyToSpeakLink applyToSpeakLabel duckTapeLink paralelniPolisLink manifestoText { json links { entries { block { sys { id } } } assets { block { sys { id } url title width height } } } } } } pragueDefiSummitPeopleCollection { items { sys { id } name twitter company profileImage { sys { publishedAt id } fileName url } } } }",
|
||||
}),
|
||||
headers: {
|
||||
"content-type": "application/json",
|
||||
authorization: "Bearer 7xdKQm9l5CXQE6tXXKYxNQ_lgvanmpdUgT20pIlxfOk",
|
||||
},
|
||||
},
|
||||
);
|
||||
return {
|
||||
speakers: res.data.pragueDefiSummitPeopleCollection.items.map((s) =>
|
||||
Object.assign({
|
||||
id: $.formatId(s.name),
|
||||
name: s.name,
|
||||
twitter: s.twitter.replace("https://twitter.com/", ""),
|
||||
caption: s.company || "",
|
||||
photoUrl: s.profileImage?.url,
|
||||
}, peopleMapper[s.name] || {})
|
||||
),
|
||||
};
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"speakers": [
|
||||
{
|
||||
"id": "radek-svarz",
|
||||
"name": "Radek Svarz",
|
||||
"twitter": "radk",
|
||||
"caption": "",
|
||||
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/6JENTjUwVwc5yK5CupfZTc/a6745d430226893ae44412f32c4781ae/2020_radek_profile_-_face_aReCqT8.jpg",
|
||||
"country": "cz",
|
||||
"photo": "photos/speakers/radek-svarz.jpg"
|
||||
},
|
||||
{
|
||||
"id": "sasha-tanase",
|
||||
"name": "Sasha Tanase",
|
||||
"twitter": "sasha_tanase",
|
||||
"caption": "",
|
||||
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/2G0x2iQJtCP7aBfdDY1yJ0/0a70687805c116a6400309de5cae5f8f/sasha.jpg",
|
||||
"photo": "photos/speakers/sasha-tanase.jpg"
|
||||
},
|
||||
{
|
||||
"id": "rosco-kalis",
|
||||
"name": "Rosco Kalis",
|
||||
"twitter": "RoscoKalis ",
|
||||
"caption": "Revoke Cash",
|
||||
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/5wjHrhpbYShTSv34Rp4vca/1882ecd12c4f5526e0422002f58f4a4c/photo_2023-02-06_11.42.28.jpeg",
|
||||
"photo": "photos/speakers/rosco-kalis.jpeg"
|
||||
},
|
||||
{
|
||||
"id": "will-harborne",
|
||||
"name": "Will Harborne",
|
||||
"twitter": "will_harborne",
|
||||
"caption": "Rhino Fi",
|
||||
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/7lHwPf9tIk1Y3anuGcVhrA/eba6131507e769002ae96efcb83406ba/photo_2023-02-06_11.25.04.jpeg",
|
||||
"photo": "photos/speakers/will-harborne.jpeg"
|
||||
},
|
||||
{
|
||||
"id": "anna-george",
|
||||
"name": "Anna George",
|
||||
"twitter": "AnnaMSGeorge",
|
||||
"caption": "CoWSwap",
|
||||
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/7sNztyNmT7QSd43ml0FStd/0e382e06be6176f1edaa8613dfc82cd4/V__st__i__ek.JPG",
|
||||
"photo": "photos/speakers/anna-george.JPG"
|
||||
},
|
||||
{
|
||||
"id": "naim-ashhab",
|
||||
"name": "Naim Ashhab",
|
||||
"twitter": "ashhanai",
|
||||
"caption": "PWN",
|
||||
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/88N0QDix2MbIljjxpzk9v/175995cdecad997e485e1fd99a7589e4/1616698822484.jpeg",
|
||||
"photo": "photos/speakers/naim-ashhab.jpeg"
|
||||
},
|
||||
{
|
||||
"id": "julien-bouteloup",
|
||||
"name": "Julien Bouteloup",
|
||||
"twitter": "bneiluj",
|
||||
"caption": "Stake Capital Group ",
|
||||
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/2iBMPVY6qhcs1D4v4DpW73/98cda1ae2e55679820172b03cf8179ea/julien.jpeg",
|
||||
"photo": "photos/speakers/julien-bouteloup.jpeg"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -14,6 +14,13 @@ languages = ["english"]
|
|||
attendees = 1000
|
||||
tags = ["DeFi"]
|
||||
logo = "logo.jpg"
|
||||
description = '''
|
||||
DeFi is under siege.
|
||||
|
||||
The industry has arrived at a point where it is no longer sufficient to just keep saying “let’s get back to building”. We risk losing a bankless future unless the community comes together and collaborates on an action plan. Does the plan involve collaborating with the legacy establishment, or is it centered around scorched-earth policy? What are the key pillars of the plan? The community needs to decide, the industry needs to take action.
|
||||
|
||||
For this purpose Prague DeFi Summit, and the event build-up, has been designed around community collaboration and idea iteration. The Summit, filled with presentations, panels, fireside chats and networking is going to culminate in a roundtable with elected DeFi representatives with the purpose of distilling the community feedback into a coherent action plan. Are we ready to seize the opportunity?
|
||||
'''
|
||||
|
||||
[cfp]
|
||||
link = "https://cfp.paralelnipolis.cz/defi-prague-2022/cfp"
|
||||
|
|
Za Šířka: | Výška: | Velikost: 65 KiB |
Za Šířka: | Výška: | Velikost: 681 KiB |
Za Šířka: | Výška: | Velikost: 194 KiB |
Za Šířka: | Výška: | Velikost: 215 KiB |
Za Šířka: | Výška: | Velikost: 158 KiB |
Za Šířka: | Výška: | Velikost: 26 KiB |
Za Šířka: | Výška: | Velikost: 92 KiB |
|
@ -3,8 +3,8 @@ import { ensureDir, exists } from "https://deno.land/std@0.173.0/fs/mod.ts";
|
|||
|
||||
const CACHE_DIR = "./cache";
|
||||
|
||||
export async function loadJSONUrl(url) {
|
||||
const resp = await fetch(url);
|
||||
export async function loadJSONUrl(url, options) {
|
||||
const resp = await fetch(url, options);
|
||||
return resp.json();
|
||||
}
|
||||
|
||||
|
@ -39,3 +39,11 @@ export async function loadHtmlLocal(fn) {
|
|||
const text = cheerio.load(await Deno.readTextFile(fn));
|
||||
return text;
|
||||
}
|
||||
|
||||
export function formatId(str) {
|
||||
return str
|
||||
.normalize("NFD")
|
||||
.toLowerCase()
|
||||
.replace(/[\u0300-\u036F]/g, "")
|
||||
.replace(/\s+/, "-");
|
||||
}
|
||||
|
|