Update
This commit is contained in:
rodič
338b341b1a
revize
5ff7f537f3
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 11 KiB |
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 9.5 KiB |
|
@ -21,8 +21,9 @@ export class UTXOEngine {
|
|||
console.log(banner)
|
||||
}
|
||||
this.imageTypes = [
|
||||
[ 'sm', 'png' ],
|
||||
[ 'twitter', 'jpg' ]
|
||||
['sm', 'png'],
|
||||
['sm', 'webp'],
|
||||
['twitter', 'jpg']
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -45,14 +46,14 @@ export class UTXOEngine {
|
|||
entry.specs[sp.type] = await this._yamlLoad([specDir, `${sp.type}.yaml`].join('/'))
|
||||
|
||||
// post processing of sub-specs
|
||||
switch(sp.type) {
|
||||
switch (sp.type) {
|
||||
case 'speakers':
|
||||
for (const s of entry.specs[sp.type]) {
|
||||
if (!s.photos) {
|
||||
s.photos = []
|
||||
}
|
||||
for (const [ it, format ] of this.imageTypes) {
|
||||
if(await exists([ this.srcDir, f.name, 'photos', 'speakers', `${s.id}-${it}.${format}` ].join('/'))) {
|
||||
for (const [it, format] of this.imageTypes) {
|
||||
if (await exists([this.srcDir, f.name, 'photos', 'speakers', `${s.id}-${it}.${format}`].join('/'))) {
|
||||
s.photos.push(`${it}:${format}`)
|
||||
}
|
||||
}
|
||||
|
|
Načítá se…
Odkázat v novém úkolu