Add wish import for playstation

pull/1/head
Made Baruna 2021-04-21 14:20:14 +08:00
parent 796cfe2f4a
commit 4c845f0c5a
No known key found for this signature in database
GPG Key ID: 5AA5DA16AA5DCEAD
3 changed files with 45 additions and 7 deletions

View File

@ -76,7 +76,7 @@
let lastPull = {
id: '0',
time: '',
}
};
function cancel() {
fetchController.abort();
@ -94,6 +94,8 @@
case 'android':
case 'ios':
return 'mobile';
case 'ps':
return 'ps';
}
}
@ -231,7 +233,7 @@
lastPull.id = row.id;
lastPull.time = row.time;
}
if (time.unix() <= newestPullTime) {
return;
}
@ -631,6 +633,8 @@
</p>
<p class="text-white font-semibold mt-4">{$t('wish.import.faqs.q6')}</p>
<p class="text-gray-400">{$t('wish.import.faqs.a6')}</p>
<p class="text-white font-semibold mt-4">{$t('wish.import.faqs.q7')}</p>
<p class="text-gray-400">{$t('wish.import.faqs.a7')}</p>
</div>
{:else}
<div class="flex flex-col md:flex-row items-start md:items-center">
@ -659,6 +663,9 @@
<button on:click={() => changeSelectedType('ios')} class={`pill ${selectedType === 'ios' ? 'active' : ''}`}>
iOS
</button>
<button on:click={() => changeSelectedType('ps')} class={`pill ${selectedType === 'ps' ? 'active' : ''}`}>
PS
</button>
</div>
{#if selectedType === 'pc'}
<div class="bg-background rounded-xl px-4 py-2 text-white mb-4 mt-2">
@ -716,6 +723,17 @@
</ol>
</div>
<Input bind:value={genshinLink} placeholder={$t('wish.import.guide.ios.7')} />
{:else if selectedType === 'ps'}
<div class="bg-background rounded-xl px-4 py-2 text-white mb-4 mt-2">
{$t('wish.import.guide.ps.0')}
<ol class="list-decimal ml-4">
<li class="my-2">{$t('wish.import.guide.ps.1')}</li>
<li class="my-2">{$t('wish.import.guide.ps.2')}</li>
<li class="my-2">{$t('wish.import.guide.ps.3')}</li>
<li class="my-2">{$t('wish.import.guide.ps.4')}</li>
</ol>
</div>
<Input bind:value={genshinLink} placeholder={$t('wish.import.guide.ps.5')} />
{/if}
{/if}

View File

@ -171,7 +171,9 @@
"for more information). You can uncheck submit wish tally to disable wish submission. Then all your wish history is saved on your device (or your Google Drive if you turned on sync)."
],
"q6": "I've done all the steps, but I got some API error?",
"a6": "Make sure you copy all the text (hold and press Select All for mobile devices); maybe you missed some text that are needed for the importer to work."
"a6": "Make sure you copy all the text (hold and press Select All for mobile devices); maybe you missed some text that are needed for the importer to work.",
"q7": "It didn't read all my wish history!?",
"a7": "Wish history older than 6 months will be gone from the mihoyo server itself, so if you don't have a backup somewhere, it's gone sadly"
},
"guide": {
"video": "Video Tutorial",
@ -203,6 +205,14 @@
"There is a link on the bottom of the reply; press that",
"A browser should open up. Copy the link and paste it below",
"Paste link here... https://genshin.mihoyo..."
],
"ps": [
"You can only use this importer if you have an in-game mail with QR Code to open the web event",
"Open Genshin Impact on your PlayStation",
"Open the event mail that contains the QR Code",
"Scan the QR Code with your phone",
"Copy the link, and paste it below",
"Paste link here..."
]
}
},

View File

@ -146,7 +146,9 @@
"untuk info lebih lanjut). Kamu bisa tidak mencentang submit pity untuk tidak mengirim data wish. Kemudian semua data riwayat wish mu disimpan pada device masing-masing (atau google drive mu jika kamu menyalakan sync di setting)."
],
"q6": "Saya udah coba step-step nya, tapi kok malah dapet API error?",
"a6": "Coba pastiin sudah di copy semua text nya (coba select all aja text nya, jangan di potong-potong), mungkin ada yang kelewatan, jadi ada yang terpotong"
"a6": "Coba pastiin sudah di copy semua text nya (coba select all aja text nya, jangan di potong-potong), mungkin ada yang kelewatan, jadi ada yang terpotong",
"q7": "Kok wish nya ada yang gak kebaca!?",
"a7": "Riwayat wish yang lebih lama dari 6 akan terhapus di gamenya itu sendiri, jadi paimon.moe tidak bisa membaca wish yang sudah terhapus."
},
"guide": {
"video": "Video Tutorial",
@ -154,7 +156,7 @@
"Buka menu Paimon [ESC]",
"Klik Masukan",
"Tunggu sampai sudah ke-load dan browser mu akan terbuka",
"Copy & paste link nya ke input dibawah",
"Copy & paste link nya ke input di bawah",
"Paste link disini... https://webstatic..."
],
"android": [
@ -166,7 +168,7 @@
"Halaman nya seharusnya error dan akan menampilkan text dengan warna hitam",
"Tekan dan tahan text nya lalu pilih semua, kemudian copy text nya (jangan copy hanya sebagian text nya, jangan dipotong-potong lagi)",
"Nyalakan lagi wifi atau data selular mu",
"Paste text nya ke input dibawah",
"Paste text nya ke input di bawah",
"Paste text disini... Webpage not available..."
],
"ios": [
@ -176,8 +178,16 @@
"Tekan Masalah Game",
"Tekan Mode Co-Op",
"Ada link warna biru di bawah reply nya, klik link nya",
"Browser mu akan terbuka, copy link nya dan paste ke input dibawah",
"Browser mu akan terbuka, copy link nya dan paste ke input di bawah",
"Paste link disini... https://genshin.mihoyo..."
],
"ps": [
"Kamu hanya bisa mengimport wish mu jika kamu mempunyai mail yang ada QR Code nya (dipakai untuk membuka event web di hp)",
"Buka Genshin Impact di PlayStation mu",
"Buka mail event yang ada QR Code nya",
"Scan QR Code nya dengan HP mu",
"Copy link nya dan paste ke input di bawah",
"Paste link disini..."
]
}
},