mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-07 11:04:50 +01:00
Add tcg share validation
This commit is contained in:
parent
663eed49e4
commit
78caf23c39
4 changed files with 46 additions and 4 deletions
|
@ -1044,6 +1044,8 @@
|
|||
"selectDeck": "Select Deck",
|
||||
"loadingLink": "Generating link...",
|
||||
"loadingLinkError": "Error generating link 😥",
|
||||
"shareDeck": "Share Deck \"{name}\""
|
||||
"shareDeck": "Share Deck \"{name}\"",
|
||||
"removeCompare": "Remove Compare",
|
||||
"shareNotComplete": "Please complete the deck with 3 characters and 30 action cards to share!"
|
||||
}
|
||||
}
|
|
@ -17,6 +17,7 @@
|
|||
"radiantSpincrystal": "Radiant Spincrystal",
|
||||
"calendar": "Kalender",
|
||||
"banners": "Rerun Karakter",
|
||||
"tcg": "TCG",
|
||||
"settings": "Pengaturan",
|
||||
"donate": "Donasi"
|
||||
},
|
||||
|
@ -968,6 +969,8 @@
|
|||
"18ATKSet": "Set +18% ATK",
|
||||
"20EnergyRechargeSet": "Set 20% Energy Recharge",
|
||||
"25PhysicalDmgSet": "Set Physical DMG +25%",
|
||||
"80EMSet": "Set Elemental Mastery +80",
|
||||
"15HealingBonusSet": "Set Healing Bonus +15%",
|
||||
"sands": "SANDS",
|
||||
"goblet": "GOBLET",
|
||||
"circlet": "CIRCLET",
|
||||
|
@ -995,7 +998,10 @@
|
|||
},
|
||||
"common": {
|
||||
"dataSynced": "Data sudah disinkronkan!",
|
||||
"driveError": "Drive Sync tidak tersedia saat ini 😔"
|
||||
"driveError": "Drive Sync tidak tersedia saat ini 😔",
|
||||
"open": "Pilih",
|
||||
"delete": "Hapus",
|
||||
"deleteConfirm": "Hapus?"
|
||||
},
|
||||
"update": {
|
||||
"newUpdate": "Paimon.moe ada update baru!",
|
||||
|
@ -1013,5 +1019,33 @@
|
|||
"sortByRerun": "Diurutkan dari rerun terlama",
|
||||
"bannerTitle": "Timeline Rilis Karakter",
|
||||
"bannerSubtitle": "Lihat kapan suatu karakter dirilis dan rerun terakhirnya"
|
||||
},
|
||||
"tcg": {
|
||||
"title": "Genius Invokation TCG",
|
||||
"requirementResonance": "Kamu memerlukan 2 karakter {element} di deck mu untuk menambahkan kartu ini!",
|
||||
"requirementTalent": "Kamu perlu {character} di deck mu untuk menambahkan kartu ini!",
|
||||
"addedToDeck": "Ditambahkan ke deck!",
|
||||
"deletedFromDeck": "Dihapus dari deck!",
|
||||
"removedFromDeck": "Dikurangi dari deck!",
|
||||
"alreadyMaxCharacters": "Kamu sudah punya 3 karakter di deck mu!",
|
||||
"alreadyMaxActions": "Kamu sudah punya 30 kartu aksi di deck mu!",
|
||||
"requirementInDeck": "Kamu perlu menghapus kartu {card} untuk menghapus {character} dari deck mu!",
|
||||
"addToDeck": "Tambah ke Deck",
|
||||
"removeFromDeck": "{type} from Deck",
|
||||
"delete": "Hapus",
|
||||
"remove": "Kurangi",
|
||||
"compare": "Bandingkan",
|
||||
"noCardOnDeck": "Belum ada kartu di dalam deck ini",
|
||||
"loadDefaultDeck": "Buka Deck Awal",
|
||||
"saveDeck": "Simpan Deck",
|
||||
"hideDeck": "Sembunyikan Deck",
|
||||
"showDeck": "Tampilkan Deck",
|
||||
"addDeck": "Tambah Deck",
|
||||
"selectDeck": "Pilih Deck",
|
||||
"loadingLink": "Membuat link...",
|
||||
"loadingLinkError": "Error membuat link 😥",
|
||||
"shareDeck": "Share Deck \"{name}\"",
|
||||
"removeCompare": "Hilangkan Komparasi",
|
||||
"shareNotComplete": "Silahkan lengkapi dulu deck dengan 3 karakter dan 30 kartu aksi!"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,6 +6,7 @@
|
|||
import Button from '../../components/Button.svelte';
|
||||
import Icon from '../../components/Icon.svelte';
|
||||
import Input from '../../components/Input.svelte';
|
||||
import { pushToast } from '../../stores/toast';
|
||||
import Card from './_card.svelte';
|
||||
import DeckModal from './_deckModal.svelte';
|
||||
import ShareModal from './_shareModal.svelte';
|
||||
|
@ -37,6 +38,11 @@
|
|||
}
|
||||
|
||||
function share() {
|
||||
if (characterCount !== 3 || actionCount !== 30) {
|
||||
pushToast($t('tcg.shareNotComplete'));
|
||||
return;
|
||||
}
|
||||
|
||||
open(
|
||||
ShareModal,
|
||||
{
|
||||
|
|
|
@ -436,7 +436,7 @@
|
|||
on:click={removeCompare}
|
||||
transition:fly={{ duration: 100, y: 100 }}
|
||||
>
|
||||
<p>Remove Compare</p>
|
||||
<p>{$t('tcg.removeCompare')}</p>
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue