Metaverse festival sync

This commit is contained in:
tree 2023-03-27 04:06:52 +02:00
rodič 23e69cd47f
revize e6398222c7
11 změnil soubory, kde provedl 143 přidání a 2 odebrání

Zobrazit soubor

@ -0,0 +1,40 @@
import { Html5Entities } from "https://deno.land/x/html_entities@v1.0/mod.js";
export async function data(tools) {
const $ = await tools.loadHtmlUrl("https://metaversefestivalprague.com/");
const out = { speakers: [] };
const peopleMapper = {
'Dušan Matuška': { country: 'sk' }
}
for (const el of $("div.elementor-col-16").toArray()) {
const name = cleanupName($('h3 span', el).html())
if (name === "Reveal Soon") {
continue;
}
const item = {
id: tools.formatId(name),
name,
caption: $('p.elementor-icon-box-description', el).text().trim(),
photoUrl: $('img.attachment-large', el).attr('src'),
}
if (peopleMapper[name]) {
Object.assign(item, peopleMapper[name])
}
out.speakers.push(item);
}
return out;
}
function cleanupName (str) {
return Html5Entities.decode(str.trim())
.replace(/\s?<br>\s?/, ' ')
.toLowerCase()
.split(' ')
.map(str => str.charAt(0).toUpperCase() + str.slice(1))
.join(' ')
}

Zobrazit soubor

@ -0,0 +1,100 @@
{
"speakers": [
{
"id": "adam-rajnoha",
"name": "Adam Rajnoha",
"caption": "Co-Founder & CEO of MOYA"
},
{
"id": "julie-sislerova",
"name": "Julie Šislerová",
"caption": "Founder of Holky v Metaverse"
},
{
"id": "david-marak",
"name": "David Mařák",
"caption": "Co-Founder & CTO of Yord"
},
{
"id": "honza-borysek",
"name": "Honza Borýsek",
"caption": "Founder, Growth & Innovation"
},
{
"id": "juraj-kovac",
"name": "Juraj Kováč",
"caption": "Creative & Strategy Director, THIS IS LOCCO"
},
{
"id": "ondrej-t",
"name": "Ondrej T.",
"caption": "Metaverse & Web3 Advisor and Evangelist"
},
{
"id": "thomas-de-bruyne",
"name": "Thomas De Bruyne",
"caption": "Xperience Lab Lead | Transformational Leadership"
},
{
"id": "olska-green",
"name": "Olska Green",
"caption": "Founder of Phygital Sustainable Fashion Brand ECOOLSKA",
"photoUrl": "https://metaversefestivalprague.com/wp-content/uploads/2023/03/metaverse-speakers-10.png",
"photo": "photos/speakers/olska-green.png"
},
{
"id": "filip-kolert",
"name": "Filip Kolert",
"caption": "Founder & COO at Swipelux",
"photoUrl": "https://metaversefestivalprague.com/wp-content/uploads/2023/03/metaverse-speakers-6.png",
"photo": "photos/speakers/filip-kolert.png"
},
{
"id": "iraida-novruzova",
"name": "Iraida Novruzova",
"caption": "Metaverse FashionExpert",
"photoUrl": "https://metaversefestivalprague.com/wp-content/uploads/2023/03/metaverse-speakers-11.png",
"photo": "photos/speakers/iraida-novruzova.png"
},
{
"id": "pavla-julia-kolarova",
"name": "Pavla Julia Kolářová",
"caption": "Brand & Strategic Designer | Web3",
"photoUrl": "https://metaversefestivalprague.com/wp-content/uploads/2023/03/metaverse-speakers-8.png",
"photo": "photos/speakers/pavla-julia-kolarova.png"
},
{
"id": "sara-polak",
"name": "Sara Polak",
"caption": "Founder at CCHAOS Research",
"photoUrl": "https://metaversefestivalprague.com/wp-content/uploads/2023/03/metaverse-speakers-13.png",
"photo": "photos/speakers/sara-polak.png"
},
{
"id": "martin-sokol",
"name": "Martin Sokol",
"caption": "Digital Marketing | Growth of Mobile Games"
},
{
"id": "timmu-toke",
"name": "Timmu Toke",
"caption": "CEO atReady Player Me",
"photoUrl": "https://metaversefestivalprague.com/wp-content/uploads/2023/03/metaverse-speakers-14.png",
"photo": "photos/speakers/timmu-toke.png"
},
{
"id": "natalia-rajnohova",
"name": "Natália Rajnohová",
"caption": "CMO at YORD, Co-founder at MOYA",
"photoUrl": "https://metaversefestivalprague.com/wp-content/uploads/2023/03/metaverse-speakers-16.png",
"photo": "photos/speakers/natalia-rajnohova.png"
},
{
"id": "inna-fetissova",
"name": "Inna Fetissova",
"caption": "Co-Founder and CMO at MOYA",
"photoUrl": "https://metaversefestivalprague.com/wp-content/uploads/2023/03/metaverse-speakers-17.png",
"photo": "photos/speakers/inna-fetissova.png"
}
]
}

Binární soubor nebyl zobrazen.

Za

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

Binární soubor nebyl zobrazen.

Za

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

Binární soubor nebyl zobrazen.

Za

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

Binární soubor nebyl zobrazen.

Za

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

Binární soubor nebyl zobrazen.

Za

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

Binární soubor nebyl zobrazen.

Za

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

Binární soubor nebyl zobrazen.

Za

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

Binární soubor nebyl zobrazen.

Za

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

Zobrazit soubor

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