Update homepage
parent
d902ef97ed
commit
ed2da8907d
|
@ -13,23 +13,23 @@
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
const featured = {
|
const featured = {
|
||||||
arataki_itto: {
|
xiao: {
|
||||||
name: 'Itto',
|
name: 'Xiao',
|
||||||
rarity: 'legendary',
|
rarity: 'legendary',
|
||||||
count: 0,
|
count: 0,
|
||||||
average: '...',
|
average: '...',
|
||||||
percentage: '...',
|
percentage: '...',
|
||||||
},
|
},
|
||||||
gorou: {
|
shenhe: {
|
||||||
name: 'Gorou',
|
name: 'Shenhe',
|
||||||
rarity: 'legendary',
|
rarity: 'legendary',
|
||||||
count: 0,
|
count: 0,
|
||||||
average: '...',
|
average: '...',
|
||||||
percentage: '...',
|
percentage: '...',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const bannerId = 300023;
|
const bannerId = 300024;
|
||||||
const image = 'ittogorou.png';
|
const image = 'shenhexiao.png';
|
||||||
|
|
||||||
let loading = true;
|
let loading = true;
|
||||||
let user = '';
|
let user = '';
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
const promoted = ['arataki_itto', 'gorou'];
|
const promoted = ['xiao'];
|
||||||
let current = 0;
|
let current = 0;
|
||||||
|
|
||||||
async function change(index) {
|
async function change(index) {
|
||||||
|
|
|
@ -115,6 +115,8 @@
|
||||||
|
|
||||||
if (res.status === 400) {
|
if (res.status === 400) {
|
||||||
error = 'Not available yet';
|
error = 'Not available yet';
|
||||||
|
loading = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 128 KiB |
Loading…
Reference in New Issue