Update photos
This commit is contained in:
rodič
2d81e7861e
revize
be5f71cf0e
|
@ -1,7 +1,13 @@
|
|||
export async function data($) {
|
||||
const bundle = await $.loadJSONUrl("https://spec.utxo.cz/23/bundle.json");
|
||||
return {
|
||||
speakers: bundle.spec.speakers,
|
||||
speakers: bundle.spec.speakers.map(s => {
|
||||
if (s.photos && s.photos[0]) {
|
||||
const [ tp, ext ] = s.photos[0].split(":")
|
||||
s.photoUrl = `https://spec.utxo.cz/22/photos/speakers/${s.id}-${tp}.${ext}`
|
||||
}
|
||||
return s
|
||||
}),
|
||||
tracks: bundle.spec.tracks,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
"photos": [
|
||||
"web:png",
|
||||
"twitter:jpg"
|
||||
]
|
||||
],
|
||||
"photoUrl": "https://spec.utxo.cz/22/photos/speakers/petr-lukac-web.png",
|
||||
"photo": "photos/speakers/petr-lukáč.png"
|
||||
},
|
||||
{
|
||||
"id": "tereza-starostova",
|
||||
|
@ -27,7 +29,9 @@
|
|||
"country": "cz",
|
||||
"photos": [
|
||||
"twitter:jpg"
|
||||
]
|
||||
],
|
||||
"photoUrl": "https://spec.utxo.cz/22/photos/speakers/tereza-starostova-twitter.jpg",
|
||||
"photo": "photos/speakers/tereza-starostová.jpg"
|
||||
},
|
||||
{
|
||||
"id": "tree",
|
||||
|
@ -44,7 +48,9 @@
|
|||
"desc": "Founder of @gweicz | 🦄 #Ethereum #DeFi #DAO enthusiast 🦇🔊 | ✈️ #travel maniac | ⚡ riding #electricunicycle | 🇨🇿🇬🇧 lang | 🟡⚫ | 🇺🇦 Слава Україні!\n",
|
||||
"photos": [
|
||||
"twitter:jpg"
|
||||
]
|
||||
],
|
||||
"photoUrl": "https://spec.utxo.cz/22/photos/speakers/tree-twitter.jpg",
|
||||
"photo": "photos/speakers/tree.jpg"
|
||||
}
|
||||
],
|
||||
"tracks": [
|
||||
|
|
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 55 KiB |
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 42 KiB |
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 32 KiB |
Načítá se…
Odkázat v novém úkolu