Update timeline

This commit is contained in:
Made Baruna 2023-01-18 03:02:40 +08:00
parent fe3298c16f
commit c68bb3c0d5
18 changed files with 272 additions and 158 deletions

View file

@ -1043,4 +1043,114 @@ export const events = [
url: 'https://www.hoyolab.com/article/14201704',
showOnHome: true,
},
{
name: 'Across the Wilderness',
pos: '0% 50%',
zoom: '100%',
image: 'across_the_wilderness.jpg',
start: '2023-01-03 10:00:00',
end: '2023-01-13 03:59:59',
color: '#d9f8e2',
url: 'https://www.hoyolab.com/article/14710888',
showOnHome: true,
},
{
name: 'Ley Line Overflow',
pos: '0% 70%',
zoom: '200%',
image: 'leyline_overflow.jpg',
start: '2023-01-09 10:00:00',
end: '2023-01-16 03:59:59',
color: '#43DA8C',
url: 'https://www.hoyolab.com/article/14503342',
showOnHome: true,
},
{
name: 'May Fortune Find You - Daily Login',
pos: '0% 40%',
zoom: '200%',
image: 'daily_login_may_fortune_find_you_2.jpg',
start: '2023-01-19 04:00:00',
end: '2023-02-03 03:59:59',
color: '#6384e3',
url: 'https://www.hoyolab.com/article/15074968',
showOnHome: true,
},
{
name: 'The Exquisite Night Chimes',
pos: '0% 10%',
zoom: '200%',
image: 'the_exquisite_night_chimes.jpg',
start: '2023-01-19 10:00:00',
end: '2023-02-06 03:59:59',
color: '#7485dc',
url: 'https://www.hoyolab.com/article/15074939',
showOnHome: true,
},
{
name: '"Genius Invokation TCG" Heated Battle Mode: Omnipotent Guide',
pos: '0% 50%',
zoom: '200%',
image: 'genius_invokation_tcg.jpg',
start: '2023-01-28 10:00:00',
end: '2023-02-06 05:59:59',
color: '#faf0c5',
url: 'https://www.hoyolab.com/article/15074968',
showOnHome: true,
},
{
name: 'Second Blooming',
pos: '0% 15%',
zoom: '200%',
image: 'second_blooming.jpg',
start: '2023-01-31 10:00:00',
end: '2023-02-13 03:59:59',
color: '#e8e3df',
url: 'https://www.hoyolab.com/article/15074939',
showOnHome: true,
},
{
name: 'Iridescent Splendor',
pos: '0% 50%',
zoom: '200%',
image: 'iridescent_splendor.jpg',
start: '2023-02-05 04:00:00',
end: '2023-02-29 05:59:59',
color: '#77a8e7',
url: 'https://www.hoyolab.com/article/15074968',
showOnHome: true,
},
{
name: "Warrior's Spirit",
pos: '0% 40%',
zoom: '200%',
image: 'warriors_spirit.jpg',
start: '2023-02-09 10:00:00',
end: '2023-02-20 03:59:59',
color: '#c769a2',
url: 'https://www.hoyolab.com/article/15074939',
showOnHome: true,
},
{
name: 'Almighty Arataki Extraordinary and Exhilarating Extreme Beetle Brawl',
pos: '0% 50%',
zoom: '250%',
image: 'almighty_arataki_extraordinary_and_exhilarating_extreme_beetle_brawl.jpg',
start: '2023-02-16 10:00:00',
end: '2023-02-27 03:59:59',
color: '#c8bcae',
url: 'https://www.hoyolab.com/article/15074939',
showOnHome: true,
},
{
name: 'Overflowing Mastery',
pos: '0% 50%',
zoom: '200%',
image: 'overflowing_mastery.jpg',
start: '2023-02-20 04:00:00',
end: '2023-02-27 03:59:59',
color: '#f5debc',
url: 'https://www.hoyolab.com/article/15074968',
showOnHome: true,
},
];

View file

@ -1,16 +1,5 @@
export const eventsData = [
[
{
name: "Hilichurls' Treasure Trove",
pos: '50% 75%',
image: 'hilicurl_treasure_trove.jpg',
start: '2022-11-03 10:00:00',
end: '2022-12-04 23:59:59',
color: '#d7eff3',
zoom: '100%',
url: 'https://www.hoyolab.com/article/13340875',
showOnHome: true,
},
{
name: 'Duelist Rising',
pos: '0% 30%',
@ -33,19 +22,19 @@ export const eventsData = [
url: 'https://hoyo.link/395dBCAd',
showOnHome: true,
},
],
[
{
name: 'Outside the Canvas, Inside the Lens: Greenery Chapter',
pos: '0% 25%',
image: 'outside_the_canvas_inside_the_lens.jpg',
start: '2022-11-16 10:00:00',
end: '2022-12-05 03:59:59',
color: '#d1dab5',
name: '"Genius Invokation TCG" Heated Battle Mode: Omnipotent Guide',
pos: '0% 50%',
zoom: '200%',
url: 'https://www.hoyolab.com/article/13718763',
image: 'genius_invokation_tcg.jpg',
start: '2023-01-28 10:00:00',
end: '2023-02-06 05:59:59',
color: '#faf0c5',
url: 'https://www.hoyolab.com/article/15074968',
showOnHome: true,
},
],
[
{
name: 'Fluttering Footsteps in the Fields',
pos: '0% 30%',
@ -68,30 +57,30 @@ export const eventsData = [
url: 'https://www.hoyolab.com/article/14486468',
showOnHome: true,
},
],
[
{
name: 'Fabulous Fungus Frenzy',
pos: '0% 80%',
name: 'May Fortune Find You - Daily Login',
pos: '0% 40%',
zoom: '200%',
image: 'fabulous_fungus_frenzy.jpg',
start: '2022-11-10 10:00:00',
end: '2022-11-28 03:59:59',
color: '#fad688',
url: 'https://www.hoyolab.com/article/13595311',
image: 'daily_login_may_fortune_find_you_2.jpg',
start: '2023-01-19 04:00:00',
end: '2023-02-03 03:59:59',
color: '#6384e3',
url: 'https://www.hoyolab.com/article/15074968',
showOnHome: true,
},
{
name: 'Marvelous Merchandise',
name: 'Iridescent Splendor',
pos: '0% 50%',
zoom: '200%',
image: 'marvelous_merchandise_event.jpg',
start: '2022-11-28 10:00:00',
end: '2022-12-05 03:59:59',
color: '#c5ffbc',
url: 'https://www.hoyolab.com/article/13736970',
image: 'iridescent_splendor.jpg',
start: '2023-02-05 04:00:00',
end: '2023-02-29 05:59:59',
color: '#77a8e7',
url: 'https://www.hoyolab.com/article/15074968',
showOnHome: true,
},
],
[
{
name: 'Akitsu Kimodameshi',
pos: '0% 15%',
@ -106,38 +95,38 @@ export const eventsData = [
{
name: 'Across the Wilderness',
pos: '0% 50%',
zoom: '100%',
image: 'across_the_wilderness_temp.jpg',
zoom: '220%',
image: 'across_the_wilderness.jpg',
start: '2023-01-03 10:00:00',
end: '2023-01-13 03:59:59',
color: '#d9f8e2',
url: 'https://www.hoyolab.com/article/14503342',
url: 'https://www.hoyolab.com/article/14710888',
showOnHome: true,
},
{
name: 'Second Blooming',
pos: '0% 15%',
zoom: '200%',
image: 'second_blooming.jpg',
start: '2023-01-31 10:00:00',
end: '2023-02-13 03:59:59',
color: '#e8e3df',
url: 'https://www.hoyolab.com/article/15074939',
showOnHome: true,
},
{
name: 'Almighty Arataki Extraordinary and Exhilarating Extreme Beetle Brawl',
pos: '0% 50%',
zoom: '250%',
image: 'almighty_arataki_extraordinary_and_exhilarating_extreme_beetle_brawl.jpg',
start: '2023-02-16 10:00:00',
end: '2023-02-27 03:59:59',
color: '#c8bcae',
url: 'https://www.hoyolab.com/article/15074939',
showOnHome: true,
},
],
[
{
name: "Adventurer's Trial",
pos: '0% 70%',
zoom: '200%',
image: 'adventurers_trials.jpg',
start: '2022-11-04 10:00:00',
end: '2022-11-21 03:59:59',
color: '#e5c2ee',
url: 'https://www.hoyolab.com/article/13297789',
showOnHome: true,
},
{
name: 'Hypostatic Symphony: Dissonant Verse',
pos: '0% 80%',
zoom: '200%',
image: 'hypostatic_symphony.jpg',
start: '2022-11-24 10:00:00',
end: '2022-12-05 03:59:59',
color: '#c9e880',
url: 'https://www.hoyolab.com/article/13880027',
showOnHome: true,
},
{
name: 'Misty Dungeon: Realm of Sand',
pos: '0% 50%',
@ -171,31 +160,41 @@ export const eventsData = [
url: 'https://www.hoyolab.com/article/14503342',
showOnHome: true,
},
{
name: 'The Exquisite Night Chimes',
pos: '0% 10%',
zoom: '200%',
image: 'the_exquisite_night_chimes.jpg',
start: '2023-01-19 10:00:00',
end: '2023-02-06 03:59:59',
color: '#7485dc',
url: 'https://www.hoyolab.com/article/15074939',
showOnHome: true,
},
{
name: "Warrior's Spirit",
pos: '0% 40%',
zoom: '200%',
image: 'warriors_spirit.jpg',
start: '2023-02-09 10:00:00',
end: '2023-02-20 03:59:59',
color: '#c769a2',
url: 'https://www.hoyolab.com/article/15074939',
showOnHome: true,
},
{
name: 'Overflowing Mastery',
pos: '0% 50%',
zoom: '200%',
image: 'overflowing_mastery.jpg',
start: '2023-02-20 04:00:00',
end: '2023-02-27 03:59:59',
color: '#f5debc',
url: 'https://www.hoyolab.com/article/15074968',
showOnHome: true,
},
],
[
{
name: "The Moongrass' Enlightenment - Nahida Banner",
pos: '30% 15%',
zoom: '200%',
image: 'the_moongrass_enlightenment_1.jpg',
start: '2022-11-02 06:00:00',
end: '2022-11-18 17:59:59',
color: '#a4deb1',
url: 'https://www.hoyolab.com/article/13249513',
showOnHome: true,
timezoneDependent: true,
},
{
name: 'Everbloom Violet - Yae Banner',
pos: '30% 15%',
zoom: '200%',
image: 'everbloom_violet_2.jpg',
start: '2022-11-18 18:00:00',
end: '2022-12-06 14:59:59',
color: '#ffd1f9',
url: 'https://www.hoyolab.com/article/13736827',
showOnHome: true,
},
{
name: 'From Ashes Reborn - Wanderer Banner',
pos: '30% 15%',
@ -219,31 +218,31 @@ export const eventsData = [
url: 'https://www.hoyolab.com/article/14503241',
showOnHome: true,
},
],
[
{
name: 'Tapestry of Golden Flames - Yoimiya Banner',
pos: '30% 25%',
name: 'Caution in Confidence - Alhaitham Banner',
pos: '30% 10%',
zoom: '200%',
image: 'tapestry_of_golden_flames_3.jpg',
start: '2022-11-02 06:00:00',
end: '2022-11-18 17:59:59',
color: '#fc8976',
url: 'https://www.hoyolab.com/article/13249513',
image: 'caution_in_confidence_1.jpg',
start: '2023-01-18 06:00:00',
end: '2023-02-07 17:59:59',
color: '#5bcbd1',
url: 'https://www.hoyolab.com/article/15053172',
showOnHome: true,
timezoneDependent: true,
},
{
name: 'Farewell of Snezhnaya - Tartaglia Banner',
name: 'Moment of Bloom - Hu Tao Banner',
pos: '30% 15%',
zoom: '200%',
image: 'farewell_of_snezhnaya_4.jpg',
start: '2022-11-18 18:00:00',
end: '2022-12-06 14:59:59',
color: '#4ED8F3',
url: 'https://www.hoyolab.com/article/13736827',
zoom: '150%',
image: 'moment_of_bloom_3.jpg',
start: '2023-02-07 18:00:00',
end: '2023-02-28 14:59:59',
color: '#FF7966',
url: 'https://www.hoyolab.com/article/15075039',
showOnHome: true,
},
],
[
{
name: "Oni's Royale - Itto Banner",
pos: '30% 15%',
@ -267,31 +266,31 @@ export const eventsData = [
url: 'https://www.hoyolab.com/article/14503241',
showOnHome: true,
},
],
[
{
name: 'Epitome Invocation - Weapon Banner',
pos: '30% 35%',
zoom: '150%',
image: 'epitome_invocation_37.jpg',
start: '2022-11-02 06:00:00',
end: '2022-11-18 17:59:59',
color: '#FFAA4B',
url: 'https://www.hoyolab.com/article/13249513',
name: 'Invitation to Mundane Life - Xiao Banner',
pos: '30% 10%',
zoom: '200%',
image: 'invitation_to_mundane_life_4.jpg',
start: '2023-01-18 06:00:00',
end: '2023-02-07 17:59:59',
color: '#25d7b8',
url: 'https://www.hoyolab.com/article/15053172',
showOnHome: true,
timezoneDependent: true,
},
{
name: 'Epitome Invocation - Weapon Banner',
pos: '30% 35%',
name: 'Discerner of Enigmas - Yelan Banner',
pos: '30% 15%',
zoom: '150%',
image: 'epitome_invocation_38.png',
start: '2022-11-18 18:00:00',
end: '2022-12-06 14:59:59',
color: '#FFAA4B',
url: 'https://www.hoyolab.com/article/13736827',
image: 'discerner_of_enigmas_2.jpg',
start: '2023-02-07 18:00:00',
end: '2023-02-28 14:59:59',
color: '#7de6fd',
url: 'https://www.hoyolab.com/article/15075039',
showOnHome: true,
},
],
[
{
name: 'Epitome Invocation - Weapon Banner',
pos: '30% 35%',
@ -315,28 +314,31 @@ export const eventsData = [
url: 'https://www.hoyolab.com/article/14503241',
showOnHome: true,
},
{
name: 'Epitome Invocation - Weapon Banner',
pos: '30% 25%',
zoom: '150%',
image: 'epitome_invocation_41.jpg',
start: '2023-01-18 06:00:00',
end: '2023-02-07 17:59:59',
color: '#FFAA4B',
url: 'https://www.hoyolab.com/article/15053172',
showOnHome: true,
timezoneDependent: true,
},
{
name: 'Epitome Invocation - Weapon Banner',
pos: '30% 15%',
zoom: '150%',
image: 'epitome_invocation_42.jpg',
start: '2023-02-07 18:00:00',
end: '2023-02-28 14:59:59',
color: '#FFAA4B',
url: 'https://www.hoyolab.com/article/15075039',
showOnHome: true,
},
],
[
{
name: 'Spiral Abyss',
image: 'spiral_abyss.jpg',
pos: '50% 20%',
start: '2022-11-01 04:00:00',
end: '2022-11-16 04:00:00',
color: '#4299E1',
description:
"When Dendro Core attacks (this includes Burgeon and Hyperbloom attacks) hit an opponent, a shockwave will be unleashed at that opponent's position, dealing True DMG. A shockwave can be unleashed this way every 2s.",
},
{
name: 'Spiral Abyss',
image: 'spiral_abyss.jpg',
pos: '50% 20%',
start: '2022-11-16 04:00:00',
end: '2022-12-01 04:00:00',
color: '#4299E1',
description:
"When characters deal DMG to an opponent, a shockwave will be unleashed at that opponent's position, dealing True DMG. Each Elemental DMG Type (including Physical DMG) can unleash a shockwave this way every 8s.",
},
{
name: 'Spiral Abyss',
image: 'spiral_abyss.jpg',
@ -379,16 +381,6 @@ export const eventsData = [
},
],
[
{
name: "Paimon's Bargain - Bennet, Lisa, and Blackcliff",
pos: '0% 50%',
zoom: '150%',
start: '2022-11-01 04:00:00',
end: '2022-12-01 04:00:00',
color: '#B6A1EA',
image: 'paimon_bargain.png',
description: 'Now selling: Bennet, Lisa, and Blackcliff Weapons.',
},
{
name: "Paimon's Bargain - Barbara, Kaeya, and Royal",
pos: '0% 50%',
@ -399,18 +391,18 @@ export const eventsData = [
image: 'paimon_bargain.png',
description: 'Now selling: Barbara, Kaeya, and Royal Weapons.',
},
{
name: "Paimon's Bargain - Fischl, Xiangling, and Blackcliff",
pos: '0% 50%',
zoom: '150%',
start: '2023-01-01 04:00:00',
end: '2023-02-01 04:00:00',
color: '#B6A1EA',
image: 'paimon_bargain.png',
description: 'Now selling: Fischl, Xiangling, and Blackcliff Weapons.',
},
],
[
{
name: 'Battle Pass - A Previous Life',
pos: '0% 12%',
image: 'a_previous_life.jpg',
start: '2022-11-02 06:00:00',
end: '2022-12-05 03:59:59',
color: '#e3bd71',
url: 'https://www.hoyolab.com/article/13249651',
timezoneDependent: true,
},
{
name: 'Battle Pass - Stellar Rivers',
pos: '0% 12%',
@ -421,5 +413,15 @@ export const eventsData = [
url: 'https://www.hoyolab.com/article/14149689',
timezoneDependent: true,
},
{
name: 'Battle Pass - Rythm and Ryhme',
pos: '0% 12%',
image: 'rythm_and_ryhme.jpg',
start: '2023-01-18 06:00:00',
end: '2023-02-27 03:59:59',
color: '#fcdeaf',
url: 'https://www.hoyolab.com/article/15075109',
timezoneDependent: true,
},
],
];

View file

@ -40,8 +40,10 @@
current = [...current, event];
} else if (start.isAfter(now)) {
const diff = start.diff(now);
const timeUpcoming = dayjs.duration(diff);
event.time = diff > 86400000 ? timeUpcoming.format('D[d] H[h]') : timeUpcoming.format('H[h]');
event.time =
diff > 86400000
? `${Math.trunc(dayjs.duration(diff).asDays())}d ${dayjs.duration(diff).format('H[h]')}`
: dayjs.duration(diff).format('H[h]');
upcoming = [...upcoming, event];
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB