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)
|
console.log(banner)
|
||||||
}
|
}
|
||||||
this.imageTypes = [
|
this.imageTypes = [
|
||||||
[ 'sm', 'png' ],
|
['sm', 'png'],
|
||||||
[ 'twitter', 'jpg' ]
|
['sm', 'webp'],
|
||||||
|
['twitter', 'jpg']
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,14 +46,14 @@ export class UTXOEngine {
|
||||||
entry.specs[sp.type] = await this._yamlLoad([specDir, `${sp.type}.yaml`].join('/'))
|
entry.specs[sp.type] = await this._yamlLoad([specDir, `${sp.type}.yaml`].join('/'))
|
||||||
|
|
||||||
// post processing of sub-specs
|
// post processing of sub-specs
|
||||||
switch(sp.type) {
|
switch (sp.type) {
|
||||||
case 'speakers':
|
case 'speakers':
|
||||||
for (const s of entry.specs[sp.type]) {
|
for (const s of entry.specs[sp.type]) {
|
||||||
if (!s.photos) {
|
if (!s.photos) {
|
||||||
s.photos = []
|
s.photos = []
|
||||||
}
|
}
|
||||||
for (const [ it, format ] of this.imageTypes) {
|
for (const [it, format] of this.imageTypes) {
|
||||||
if(await exists([ this.srcDir, f.name, 'photos', 'speakers', `${s.id}-${it}.${format}` ].join('/'))) {
|
if (await exists([this.srcDir, f.name, 'photos', 'speakers', `${s.id}-${it}.${format}`].join('/'))) {
|
||||||
s.photos.push(`${it}:${format}`)
|
s.photos.push(`${it}:${format}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Načítá se…
Odkázat v novém úkolu