This commit is contained in:
tree 2023-03-25 00:42:42 +01:00
rodič d779ebee3f
revize e900c15d00
11 změnil soubory, kde provedl 133 přidání a 0 odebrání

Zobrazit soubor

@ -0,0 +1,64 @@
const peopleMapper = {
"dcbuilder-eth": { country: "cz" },
"luc-computer": { country: "nl" },
"ferit-tuncer": { country: "pt" },
"puncar": { country: "us" },
"miao-zhicheng": { country: "ee" },
"cryptowanderer": { country: "za" },
//"daniel-lumi": { country: "" },
"nicolas-manea": { country: "gb" }
};
export async function data($) {
const res = await $.loadJSONUrl(
"https://graphql.contentful.com/content/v1/spaces/6j1me6tz5h39/environments/master",
{
method: "POST",
body: JSON.stringify({
query: `
{
ethPraguePeopleSortedCollection(limit: 1) {
items {
ethPraguePeopleSortedCollection {
items {
sys { id }
... on EthPraguePerson {
sys { id }
name
twitter
company
role
profileImage {
sys {
publishedAt
id
}
fileName
url
}
}
}
}
}
}
}`
}),
headers: {
"content-type": "application/json",
authorization: "Bearer 7xdKQm9l5CXQE6tXXKYxNQ_lgvanmpdUgT20pIlxfOk",
},
},
);
return {
speakers: res.data.ethPraguePeopleSortedCollection.items[0].ethPraguePeopleSortedCollection.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] || {})
),
};
}

Zobrazit soubor

@ -0,0 +1,68 @@
{
"speakers": [
{
"id": "dcbuilder-eth",
"name": "dcbuilder.eth",
"twitter": "DCbuild3r",
"caption": "Worldcoin",
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/5ckzIji6kfbucbd3qqoL2Z/06e8a00ef6ffb5e2cc09b70d38633185/r-mqtMjszyRcqDbIsDI0E.jpeg",
"photo": "photos/speakers/dcbuilder-eth.jpeg"
},
{
"id": "luc-computer",
"name": "luc.computer",
"twitter": "lucemansnl",
"caption": "ens.eth / v3xlabs.eth",
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/2BG9dvrm9trs9BmOapUkBS/638df3c9a163d8dfb3d8ed7ab2f63502/react_live_1_by_1_1_PaNo1Cn.png",
"photo": "photos/speakers/luc-computer.png"
},
{
"id": "ferit-tuncer",
"name": "Ferit Tunçer",
"twitter": "0xferit",
"caption": "Prove Us Wrong",
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/6YFxhGfXMDNtlx1Kqfqflc/e49fa727bc3ae58e7b914486891bee1c/ferit_bgTransparent_0Bqkvbp.png",
"photo": "photos/speakers/ferit-tuncer.png"
},
{
"id": "puncar",
"name": "Puncar",
"twitter": "Puncar_DeFi",
"caption": "Peerwork.xyz",
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/7IqmiO7YkGntiVjdwM9lBw/cedbb36bdead5e4cc8cf11da150157ba/Puncar_PFP_wn7dq1c.jpg",
"photo": "photos/speakers/puncar.jpg"
},
{
"id": "miao-zhicheng",
"name": "Miao ZhiCheng",
"twitter": "https://www.lensfrens.xyz/hellwolf.lens",
"caption": "Superfluid",
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/JxxN1mJuM0Ds75UgI2Lbg/0c66ab5093d7b3b0df33fc6941f71739/miao-2023-sketch-plus-urbit_3XLDkFK.png",
"photo": "photos/speakers/miao-zhicheng.png"
},
{
"id": "cryptowanderer",
"name": "Cryptowanderer",
"twitter": "cryptowanderer",
"caption": "Kernel.community",
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/7n5BBm4XWdNxIG6PA2MQx/b6eb58e7c6c1988cd84e63d2cb6f60b7/name_redacted_as_a_zen_master_with_a_sprouting_seed_in_the_style_of_a_japanese__82PYqJ4.jpeg",
"photo": "photos/speakers/cryptowanderer.jpeg"
},
{
"id": "daniel-lumi",
"name": "Daniel Lumi",
"twitter": "zkLumi",
"caption": "",
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/4CDpZ13I1MqmalsULotTFm/2645ff8b850f56b57866c0287701618f/FCE962F5-FF3B-4CE1-AC17-1E5184032B9A_9rSVeEL.jpeg",
"photo": "photos/speakers/daniel-lumi.jpeg"
},
{
"id": "nicolas-manea",
"name": "Nicolas Manea",
"twitter": "NicolasManea",
"caption": "Cardiff University",
"photoUrl": "https://images.ctfassets.net/6j1me6tz5h39/5HPNj2nmhLXDVv7o1CQ8Tf/9b3591c31b32f241e74ec510d5462543/Profile_E3Z8U9O.jpg",
"photo": "photos/speakers/nicolas-manea.jpg"
}
]
}

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 41 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 281 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 1.2 MiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 152 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 206 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 499 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 32 KiB

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 216 KiB

Zobrazit soubor

@ -45,5 +45,6 @@ export function formatId(str) {
.normalize("NFD")
.toLowerCase()
.replace(/[\u0300-\u036F]/g, "")
.replace(/\./,"-")
.replace(/\s+/g, "-");
}