Add wish tally link

pull/1/head
Made Baruna 2021-04-01 14:01:25 +08:00
parent 579edbf77e
commit 72067fd246
3 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,7 @@
"manual": "If you want to manually input the data, you can enable it here:",
"manualButton": "Enable Manual Input",
"errorBanner": "Banner time missmatch! Please adjust your server on settings page. Still not working? please leave a message on Discord 😅",
"globalWishTally": "Global Wish Tally",
"import": {
"title": "Import Wish History",
"faqsButton": "FAQ - READ FIRST",

View File

@ -25,6 +25,7 @@
"manual": "Jika kamu ingin memasukkan datanya secara manual, kamu bisa menyalakannya disini:",
"manualButton": "Nyalakan Input Manual",
"errorBanner": "Waktu banner salah! Coba sesuaikan server di halaman settings. Masih gak bisa? tolong chat di Discord 😅",
"globalWishTally": "Perhitungan Pity Wish Global",
"import": {
"title": "Import Riwayat Wish",
"faqsButton": "FAQS - BACA DULU",

View File

@ -12,6 +12,8 @@
import { readSave, updateTime, fromRemote } from '../../stores/saveManager';
import SummaryItem from './_summaryItem.svelte';
import GiveawayModal from './_giveaway.svelte';
import Icon from '../../components/Icon.svelte';
import { mdiEarth, mdiGlobeLight, mdiGlobeModel } from '@mdi/js';
const { open: openModal } = getContext('simple-modal');
@ -171,6 +173,14 @@
{$t('wish.wishesWorth')} <img class="w-4 h-4 mx-2" src="/images/primogem.png" alt="primogem" />
{numberFormat.format(totalWish * 160)}
</div>
<a
href="/wish/tally"
class="bg-item rounded-xl p-4 flex items-center w-full text-white mt-4 hover:text-primary"
style="height: min-content;"
>
<Icon path={mdiEarth} className="mr-2" />
{$t('wish.globalWishTally')}
</a>
<div
on:click={openGiveaway}
class="bg-item rounded-xl p-4 w-full text-white mt-4 cursor-pointer hover:text-primary"