From df7e2a7489861446e34fe271c62bc7180973ec5e Mon Sep 17 00:00:00 2001 From: XenosG <65891277+XenosG@users.noreply.github.com> Date: Tue, 13 Aug 2024 12:26:53 +0300 Subject: [PATCH] Homepage (#319) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: created homepage * refactor: moved buttons to card footer * feat: added more cards * feat: setup masonry layout for cards * fix: fixed masonry layout (for now) * fix: Run prettier format * fix: fixed temp info in cards fix: added temp link to homepage in root * fix: fixed formatting * refactor: Changed all text to use Text component * feat: Pity widget (uncompleted) chore: added more temp data to reminder feat: started work on Achievement widget * fix: fixed formatting, commented unused code * feat: added progress component (shadcn) fix: fixed colors in progress component feat: Achievement widget (almost complete) * fix: Run Prettier formatter * fix: Text component now doesnt have margin by default, has margin property instead * fix: Run formatter * fix: fixed achievement widget fix: fixed progress component colors to work with new color system * feat: added a bunch of components for future development * fix: added dependencies * refactor: removed unneeded comments refactor: using tuples instead of arrays * feat: removed dragdrop pkg, took svelte file and modified it feat: added Edit menu (ts is angry at dragdrop svelte, because there's no type declaration) * refactor: commented unused code * fix: fixed dragdrop to work with ts type system * fix: formatter * feat: added more widgets and a welcome dialog fix: dragdrop now works chore: ran prettier * chore: ran prettier * feat: changed most values to variables instead of plain text feat: resin tracker now almost fully working (lacks realtime resin regeneration) feat: display is coming together feat: wish buttons now work * feat: added underline when hovering and focusing on resin tracker input refactor: total wishes now take info directly from the userProfile feat: moved and changed total wishes in wishing stats widget feat: moved up wishing page link in pity widget and swapped buttons in wishing stats widget fix: text colors are now using tailwind theme colors fix: dark theme now uses brighter color for five stars fix: resin now wont overflow 2000 when increasing with button refactor: fixed misspell "standart" in variable names * refactor: total wishes counter is now readable feat: wrote code for getting some achievements data from userProfile Feat is commented for now until we have achievement data in userProfile * feat: added localization for the dashboard chore: added .vscode to gitignore * refactor: moved the homepage to the root * chore: regenerate lockfile --------- Co-authored-by: Alexander König Co-authored-by: Ludovic Malot --- .gitignore | 2 +- .../ui/dragdrop/DragDropList.svelte | 295 +++++ src/lib/locales/DE.json | 47 + src/lib/locales/EN.json | 47 + src/lib/locales/ES.json | 47 + src/lib/locales/FR.json | 47 + src/lib/locales/IT.json | 49 +- src/lib/locales/PL.json | 47 + src/lib/locales/PT.json | 49 +- src/lib/locales/RU.json | 47 + src/lib/locales/TH.json | 47 + src/lib/locales/ZH-S.json | 47 + src/lib/locales/ZH-T.json | 47 + src/routes/+page.svelte | 1027 ++++++++++++++++- tailwind.config.js | 2 +- 15 files changed, 1812 insertions(+), 35 deletions(-) create mode 100644 src/lib/components/ui/dragdrop/DragDropList.svelte diff --git a/.gitignore b/.gitignore index 2a361b5e..d9129b77 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,4 @@ vite.config.js.timestamp-* vite.config.ts.timestamp-* .idea .vscode -/.npm-only-allow \ No newline at end of file +/.npm-only-allow diff --git a/src/lib/components/ui/dragdrop/DragDropList.svelte b/src/lib/components/ui/dragdrop/DragDropList.svelte new file mode 100644 index 00000000..423d65b2 --- /dev/null +++ b/src/lib/components/ui/dragdrop/DragDropList.svelte @@ -0,0 +1,295 @@ + + + +
+
+

+
+ +
+ {#each data as datum, i (datum.id ? datum.id : JSON.stringify(datum))} + +
+
+ + +
+ +
+ {#if datum.html} + {@html datum.html} + {:else if datum.text} +

{datum.text}

+ {:else if datum.check} +
+ + check(i)} + class="" + id={datum.check + .replace(/[^a-zA-Z]/g, '') + .replace(/(?:^\w|[A-Z]|\b\w)/g, (match, index) => + index === 0 ? match.toLowerCase() : match.toUpperCase() + ) + .concat('Check')} + checked={data[i].checked} + /> +
+ {:else} +

{datum}

+ {/if} +
+ +
+ {#if removesItems} + + {/if} +
+
+ {/each} +
+
+ + diff --git a/src/lib/locales/DE.json b/src/lib/locales/DE.json index d2e6b6c6..53e8d95e 100644 --- a/src/lib/locales/DE.json +++ b/src/lib/locales/DE.json @@ -8,6 +8,7 @@ "action.yes": "Ja", "action.no": "Nein", "action.confirm": "Bestätigen", + "action.cancel": "Cancel", "action.sort_by": "Sortieren nach: {{sortFN}}", "action.filter_by": "Filtern nach", "navigation.category.collection": "Deine Sammlung", @@ -18,6 +19,52 @@ "navigation.logout": "Abmelden", "error.title": "Fehler", "dashboard.title": "Startseite", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Verlauf des Waffengebets", "wish.detailed.title.Standard": "Verlauf des Standartgebets", "wish.detailed.title.CharacterEvent": "Verlauf des Charaktergebets", diff --git a/src/lib/locales/EN.json b/src/lib/locales/EN.json index 10a32199..3fac2852 100644 --- a/src/lib/locales/EN.json +++ b/src/lib/locales/EN.json @@ -8,6 +8,7 @@ "action.yes": "Yes", "action.no": "No", "action.confirm": "Confirm", + "action.cancel": "Cancel", "action.sort_by": "Sort By: {{sortFN}}", "action.filter_by": "Filter By", "navigation.category.collection": "Your collection", @@ -18,6 +19,52 @@ "navigation.logout": "Logout", "error.title": "Error", "dashboard.title": "Dashboard", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Weapon banner history", "wish.detailed.title.Standard": "Standard banner history", "wish.detailed.title.CharacterEvent": "Character banner history", diff --git a/src/lib/locales/ES.json b/src/lib/locales/ES.json index 354af486..dd0dba8d 100644 --- a/src/lib/locales/ES.json +++ b/src/lib/locales/ES.json @@ -8,6 +8,7 @@ "action.yes": "Yes", "action.no": "No", "action.confirm": "Confirm", + "action.cancel": "Cancel", "action.sort_by": "Ordenar por", "action.filter_by": "Filter By", "navigation.category.collection": "Tu colección", @@ -18,6 +19,52 @@ "navigation.logout": "Cerrar sesión", "error.title": "Error", "dashboard.title": "Inicio", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Weapon banner history", "wish.detailed.title.Standard": "Standard banner history", "wish.detailed.title.CharacterEvent": "Character banner history", diff --git a/src/lib/locales/FR.json b/src/lib/locales/FR.json index e0da3276..674e400c 100644 --- a/src/lib/locales/FR.json +++ b/src/lib/locales/FR.json @@ -8,6 +8,7 @@ "action.yes": "Oui", "action.no": "Non", "action.confirm": "Confirmer", + "action.cancel": "Cancel", "action.sort_by": "Trier par", "action.filter_by": "Filtrer par", "navigation.category.collection": "Votre collection", @@ -18,6 +19,52 @@ "navigation.logout": "Déconnexion", "error.title": "Erreur", "dashboard.title": "Tableau de bord", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Historique de la bannière d'armes", "wish.detailed.title.Standard": "Historique de la bannière permantente", "wish.detailed.title.CharacterEvent": "Historique de la bannière de personnages", diff --git a/src/lib/locales/IT.json b/src/lib/locales/IT.json index 8ee11e88..80014807 100644 --- a/src/lib/locales/IT.json +++ b/src/lib/locales/IT.json @@ -8,6 +8,7 @@ "action.yes": "Sì", "action.no": "No", "action.confirm": "Conferma", + "action.cancel": "Cancel", "action.sort_by": "Ordina per", "action.filter_by": "Filtra per", "navigation.category.collection": "La tua collezione", @@ -17,7 +18,53 @@ "navigation.login": "Accedi o Registrati", "navigation.logout": "Esci", "error.title": "Errore", - "dashboard.title": "Dashboard", + "dashboard.title": "Pannello di Controllo", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Cronologia banner Armi", "wish.detailed.title.Standard": "Cronologia banner Standard", "wish.detailed.title.CharacterEvent": "Cronologia banner Personaggi", diff --git a/src/lib/locales/PL.json b/src/lib/locales/PL.json index b5c57029..24828987 100644 --- a/src/lib/locales/PL.json +++ b/src/lib/locales/PL.json @@ -8,6 +8,7 @@ "action.yes": "Tak", "action.no": "Nie", "action.confirm": "Potwierdź", + "action.cancel": "Cancel", "action.sort_by": "Sortuj według: {{sortFN}}", "action.filter_by": "Filtruj według", "navigation.category.collection": "Twoja kolekcja", @@ -18,6 +19,52 @@ "navigation.logout": "Wyloguj się", "error.title": "Błąd", "dashboard.title": "Panel", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Historia banerów broni", "wish.detailed.title.Standard": "Historia baneru standardowego", "wish.detailed.title.CharacterEvent": "Historia banerów postaci", diff --git a/src/lib/locales/PT.json b/src/lib/locales/PT.json index 98a67528..c3776cab 100644 --- a/src/lib/locales/PT.json +++ b/src/lib/locales/PT.json @@ -8,7 +8,8 @@ "action.yes": "Sim", "action.no": "Não", "action.confirm": "Confirmar", - "action.sort_by": "Organizar por {{sortFN}}", + "action.cancel": "Cancel", + "action.sort_by": "Organizar por", "action.filter_by": "Filtrar por", "navigation.category.collection": "Sua coleção", "navigation.category.trackers": "Progresso", @@ -18,6 +19,52 @@ "navigation.logout": "Sair", "error.title": "Erro", "dashboard.title": "Painel principal", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Histórico do evento de armas", "wish.detailed.title.Standard": "Histórico da invocação do mochileiro", "wish.detailed.title.CharacterEvent": "Histórico do evento de personagens", diff --git a/src/lib/locales/RU.json b/src/lib/locales/RU.json index 44f8ee32..a15dc0a8 100644 --- a/src/lib/locales/RU.json +++ b/src/lib/locales/RU.json @@ -8,6 +8,7 @@ "action.yes": "Да", "action.no": "Нет", "action.confirm": "Подтвердить", + "action.cancel": "Cancel", "action.sort_by": "Сортировать", "action.filter_by": "Фильтр", "navigation.category.collection": "Коллекция", @@ -18,6 +19,52 @@ "navigation.logout": "Выйти из аккаунта", "error.title": "Ошибка", "dashboard.title": "Информационная панель", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Молитва события оружия", "wish.detailed.title.Standard": "Стандартная молитва", "wish.detailed.title.CharacterEvent": "Молитва события персонажа", diff --git a/src/lib/locales/TH.json b/src/lib/locales/TH.json index 57775bd7..f4e70c1e 100644 --- a/src/lib/locales/TH.json +++ b/src/lib/locales/TH.json @@ -8,6 +8,7 @@ "action.yes": "Yes", "action.no": "No", "action.confirm": "Confirm", + "action.cancel": "Cancel", "action.sort_by": "Sort By", "action.filter_by": "Filter By", "navigation.category.collection": "คอลเลคชั่นของคุณ", @@ -18,6 +19,52 @@ "navigation.logout": "ออกจากระบบ", "error.title": "Error", "dashboard.title": "แผงควบคุม", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "Weapon banner history", "wish.detailed.title.Standard": "Standard banner history", "wish.detailed.title.CharacterEvent": "Character banner history", diff --git a/src/lib/locales/ZH-S.json b/src/lib/locales/ZH-S.json index e6c160f0..ac1f3c09 100644 --- a/src/lib/locales/ZH-S.json +++ b/src/lib/locales/ZH-S.json @@ -8,6 +8,7 @@ "action.yes": "是", "action.no": "否", "action.confirm": "确认", + "action.cancel": "Cancel", "action.sort_by": "排序方式", "action.filter_by": "过滤方式", "navigation.category.collection": "你的收藏", @@ -18,6 +19,52 @@ "navigation.logout": "登出", "error.title": "错误", "dashboard.title": "主页", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "武器池记录", "wish.detailed.title.Standard": "常驻池记录", "wish.detailed.title.CharacterEvent": "角色池记录", diff --git a/src/lib/locales/ZH-T.json b/src/lib/locales/ZH-T.json index d925fc58..855061c6 100644 --- a/src/lib/locales/ZH-T.json +++ b/src/lib/locales/ZH-T.json @@ -8,6 +8,7 @@ "action.yes": "是", "action.no": "否", "action.confirm": "確認", + "action.cancel": "Cancel", "action.sort_by": "排序方式", "action.filter_by": "過濾方式", "navigation.category.collection": "你的收藏", @@ -18,6 +19,52 @@ "navigation.logout": "登出", "error.title": "錯誤", "dashboard.title": "首頁", + "dashboard.welcome.title": "Welcome to Dval.in!", + "dashboard.welcome.message": "Your best Genshin Impact companion! Dval.in helps you plan what to farm with an ascension calculator, and it also tracks your progress with a todo list and a wish counter.", + "dashboard.edit_layout.button": "Edit", + "dashboard.edit_layout.title": "Edit the layout", + "dashboard.edit_layout.description": "Edit your homepage layout to fit your needs.", + "dashboard.widget.changelog.title": "Changelog", + "dashboard.widget.reminder.title": "Reminder", + "dashboard.widget.reminder.daily": "Daily", + "dashboard.widget.reminder.daily.teapot_currency": "Teapot currency and friendship", + "dashboard.widget.reminder.daily.commissions": "Daily commissions", + "dashboard.widget.reminder.daily.resin": "Spend resin", + "dashboard.widget.reminder.daily.welkin": "Welkin moon", + "dashboard.widget.reminder.two_day.title": "Every 2 days", + "dashboard.widget.reminder.two_day.local_specialties": "Local specialties", + "dashboard.widget.reminder.two_day.ores": "Ores", + "dashboard.widget.reminder.three_day.title": "Every 3 days", + "dashboard.widget.reminder.three_day.crystals": "Crystal chunks", + "dashboard.widget.reminder.three_day.teapot_farm": "Teapot farms", + "dashboard.widget.reminder.three_day.fishing": "Fishing", + "dashboard.widget.reminder.weekly.title": "Weekly", + "dashboard.widget.reminder.weekly.parametric_transformer": "Parametric transformer", + "dashboard.widget.reminder.weekly.crystalfly_trap": "Crystalfly trap", + "dashboard.widget.reminder.weekly.bosses": "Weekly bosses", + "dashboard.widget.reminder.weekly.reputation": "Reputation bounties", + "dashboard.widget.events.title": "Current Events", + "dashboard.widget.events.version": "For version", + "dashboard.widget.events.timeline.button": "View timeline", + "dashboard.widget.todo.title": "To-do List", + "dashboard.widget.domain.title": "Domain Rotation", + "dashboard.widget.achievements.title": "Achievements", + "dashboard.widget.achievements.progress": "Overall progress", + "dashboard.widget.achievements.latest": "Latest achievements", + "dashboard.widget.achievements.more": "View more achievements", + "dashboard.widget.pity.title": "Pity", + "dashboard.widget.wishing.title": "Wishing stats", + "dashboard.widget.wishing.pity": "Pity", + "dashboard.widget.wishing.total": "Total wishes", + "dashboard.widget.wishing.latest": "Latest pulls", + "dashboard.widget.display.title": "Display", + "dashboard.widget.global_wishing.title": "Global wishing stats", + "dashboard.widget.global_wishing.percentage": "of all", + "dashboard.widget.global_wishing.pity_average": "Pity average", + "dashboard.widget.global_wishing.based_on": "based on {{number}} submissions", + "dashboard.widget.resin.title": "Resin tracker", + "dashboard.widget.resin.hour": "h", + "dashboard.widget.resin.minute": "m", "wish.detailed.title.WeaponEvent": "武器池記錄", "wish.detailed.title.Standard": "常駐池記錄", "wish.detailed.title.CharacterEvent": "角色池記錄", diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index cfd2e8bd..81a5bf1c 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,40 +1,1005 @@ + + + + {$i18n.t('dashboard.welcome.title')} + + {$i18n.t('dashboard.welcome.message')} + + + + {$i18n.t('action.cancel')} + + + + -
- - - Changelog: - - - - Improved import (support a wider range of exports, no multi account though!!) - - Beginner's banner - - Improved pull list (added pull number, highlight 4 & 5 star, filter by dates) - - - Fixed images (no brokey anymore!!!!, huge thanks to @Flappydom for helping with - renaming files) - - Improved search experience - Characters are retrieved from user data - - Use GOOD types under the hood (You cant see it but believe me... its there) - - Character/weapon/rarity mapping - - - - - - + + + + {$i18n.t('dashboard.edit_layout.button')} + + + + + {$i18n.t('dashboard.edit_layout.title')} + + + {$i18n.t('dashboard.edit_layout.description')} + + +
+ +
+
+
+
+
+
+ {#each dragDropList as Widget} + {#if Widget.check === `${$i18n.t('dashboard.widget.changelog.title')}` && Widget.checked == true} + + + + + + {$i18n.t('dashboard.widget.changelog.title')}: + + + + + {changeLog} + + + + + + {/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.reminder.title')}` && Widget.checked == true} + + + + + {$i18n.t('dashboard.widget.reminder.title')} + + + + + + + {$i18n.t('dashboard.widget.reminder.daily')} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + + + {$i18n.t('dashboard.widget.reminder.two_day.title')} + +
+ + +
+
+ + +
+ + + + {$i18n.t('dashboard.widget.reminder.three_day.title')} + +
+ + +
+
+ + +
+
+ + +
+ + + + {$i18n.t('dashboard.widget.reminder.weekly.title')} + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ {/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.events.title')}` && Widget.checked == true} + + + + + + {$i18n.t('dashboard.widget.events.title')} Current Events + + + + + + {$i18n.t('dashboard.widget.events.version')} + {currentVer} + +
+ +
+ {mockEvent.name} + + {Math.floor( + (mockEvent.end.getTime() - currentTime) / 3600000 / 24 + )}d + {Math.floor( + (mockEvent.end.getTime() - currentTime) / 3600000 + ) - + 24 * + Math.floor( + (mockEvent.end.getTime() - currentTime) / + 3600000 / + 24 + )}h + +
+
+ {mockEvent.name} + + {Math.floor( + (mockEvent.end.getTime() - currentTime) / 3600000 / 24 + )}d + {Math.floor( + (mockEvent.end.getTime() - currentTime) / 3600000 + ) - + 24 * + Math.floor( + (mockEvent.end.getTime() - currentTime) / + 3600000 / + 24 + )}h + +
+
+ {mockEvent.name} + + {Math.floor( + (mockEvent.end.getTime() - currentTime) / 3600000 / 24 + )}d + {Math.floor( + (mockEvent.end.getTime() - currentTime) / 3600000 + ) - + 24 * + Math.floor( + (mockEvent.end.getTime() - currentTime) / + 3600000 / + 24 + )}h + +
+
+ {mockEvent.name} + + {Math.floor( + (mockEvent.end.getTime() - currentTime) / 3600000 / 24 + )}d + {Math.floor( + (mockEvent.end.getTime() - currentTime) / 3600000 + ) - + 24 * + Math.floor( + (mockEvent.end.getTime() - currentTime) / + 3600000 / + 24 + )}h + +
+
+
+ + + +
{/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.todo.title')}` && Widget.checked == true} + + + + + {$i18n.t('dashboard.widget.todo.title')} + + + + + Farmable today: thing thing thing thing summary: some more even more + thing + + + {/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.domain.title')}` && Widget.checked == true} + + + + + {$i18n.t('dashboard.widget.domain.title')} + + + + + talent materials, weapon materials + corresponding chars/weaps + + + {/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.achievements.title')}` && Widget.checked == true} + + + + + + {$i18n.t('dashboard.widget.achievements.title')} + + + + +
+ + {$i18n.t('dashboard.widget.achievements.progress')}: + + + + + + + {achievementsDone}/{achievementsTotal} + +
+ +
+ + {$i18n.t('dashboard.widget.achievements.latest')}: + +
+ {mockAchievement.name} +
+
+ {mockAchievement.name} +
+
+ {mockAchievement.name} +
+
+ {mockAchievement.name} +
+
+ {mockAchievement.name} +
+
+
+ + + +
{/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.pity.title')}` && Widget.checked == true} + + + + {$i18n.t('dashboard.widget.pity.title')} + + + + +
+ +
+ +
+ + {characterPity[0]} + + + {characterPity[1]} + +
+
+ +
+ +
+ {weaponPity[0]} + + {weaponPity[1]} + +
+
+ +
+ +
+ + {standardPity[0]} + + + {standardPity[1]} + +
+
+
+
+
{/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.wishing.title')}` && Widget.checked == true} + + + + + {$i18n.t('dashboard.widget.wishing.title')} + + + + + + {$i18n.t('dashboard.widget.wishing.pity')} +
+ +
+ +
+ + {characterPity[0]} + + + {characterPity[1]} + +
+
+ +
+ +
+ + {weaponPity[0]} + + + {weaponPity[1]} + +
+
+ +
+ +
+ + {standardPity[0]} + + + {standardPity[1]} + +
+
+
+ +
+ + {$i18n.t('dashboard.widget.wishing.total')} + + + {($userProfile.wishes?.WeaponEvent?.length ?? 0) + + ($userProfile.wishes?.CharacterEvent?.length ?? 0) + + ($userProfile.wishes?.Beginner?.length ?? 0) + + ($userProfile.wishes?.Chronicled?.length ?? 0) + + ($userProfile.wishes?.Standard?.length ?? 0)} + +
+ +
+ + {$i18n.t('dashboard.widget.wishing.latest')} + +
+ + + + +
+
+
+ + + {$i18n.t('wish.overview.import_wish_button')} + + +
+ {/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.display.title')}` && Widget.checked == true} + + + + + {$i18n.t('dashboard.widget.display.title')} + + + +
+ + +
+ +
+
+ {/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.global_wishing.title')}` && Widget.checked == true} + + + + + + {$i18n.t('dashboard.widget.global_wishing.title')} + + + + +
+
+ {currentGachaFirst.name} Gacha Card + {currentGachaFirst.name} + + {Math.round( + (currentGachaFirst.pulls / 1000 + Number.EPSILON) * 10 + ) / 10}k + + + {currentGachaFirst.percentage}% {$i18n.t( + 'dashboard.widget.global_wishing.percentage' + )} 5* + + + {$i18n.t('dashboard.widget.global_wishing.pity_average')} + {currentGachaFirst.average} + +
+
+ {currentGachaSecond.name} Gacha Card + {currentGachaSecond.name} + + {Math.round( + (currentGachaSecond.pulls / 1000 + Number.EPSILON) * 10 + ) / 10}k + + + {currentGachaSecond.percentage}% {$i18n.t( + 'dashboard.widget.global_wishing.percentage' + )} 5* + + + {$i18n.t('dashboard.widget.global_wishing.pity_average')} + {currentGachaSecond.average} + +
+
+ + {$i18n.t('dashboard.widget.global_wishing.based_on', { + number: submissions + })} + +
+ + + +
+ {/if} + {#if Widget.check === `${$i18n.t('dashboard.widget.resin.title')}` && Widget.checked == true} + + + + + {$i18n.t('dashboard.widget.resin.title')} + + + +
+ Resin Icon + + ResinCounter.HandleInput()} + />/{maxResin} + +
+
+ + + + + +
+ + {#if currentResin < maxResin} +
+ {#if currentResin < 20} + + 20 in {ResinCounter.countTimeLeft(20)} + ({ResinCounter.countEndTime(20)}) + + {/if} + {#if currentResin < 30} + + 30 in {ResinCounter.countTimeLeft(30)} + ({ResinCounter.countEndTime(30)}) + + {/if} + {#if currentResin < 40} + + 40 in {ResinCounter.countTimeLeft(40)} + ({ResinCounter.countEndTime(40)}) + + {/if} + {#if currentResin < 60} + + 60 in {ResinCounter.countTimeLeft(60)} + ({ResinCounter.countEndTime(60)}) + + {/if} + + {maxResin} in {ResinCounter.countTimeLeft(maxResin)} + ({ResinCounter.countEndTime(maxResin)}) + +
+ {/if} +
+ +
+ {/if} + {/each} +
diff --git a/tailwind.config.js b/tailwind.config.js index 9c54049f..d412a9d1 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -50,7 +50,7 @@ const config = { tertiaryActive: '#1C1C22', neutral: '#1C1C22', text: '#FFFFFF', - fivestar: '#805920' + fivestar: '#FFB13F' }, light: { border: '#000000',