mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-02-18 03:16:30 +01:00
Add some message
This commit is contained in:
parent
80c3dd6eba
commit
0ec9612791
6 changed files with 24 additions and 11 deletions
|
@ -60,9 +60,9 @@
|
||||||
|
|
||||||
let url;
|
let url;
|
||||||
|
|
||||||
let processingLog = false;
|
let processingLog = true;
|
||||||
let fetchingWishes = false;
|
let fetchingWishes = false;
|
||||||
let finishedProcessingLog = false;
|
let finishedProcessingLog = true;
|
||||||
let calculatingPity = false;
|
let calculatingPity = false;
|
||||||
|
|
||||||
let cancelled = false;
|
let cancelled = false;
|
||||||
|
@ -511,7 +511,8 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<p class="mt-4">{$t('wish.import.importNotice1')}</p>
|
<p class="mt-4">{$t('wish.import.importNotice1')}</p>
|
||||||
<p>{$t('wish.import.importNotice2')}</p>
|
<p class="mb-1">{$t('wish.import.importNotice2')}</p>
|
||||||
|
<p class="text-red-300 mb-1">{$t('wish.import.importNotice3')}</p>
|
||||||
<p class="font-semibold">{$t('wish.import.saveData')}</p>
|
<p class="font-semibold">{$t('wish.import.saveData')}</p>
|
||||||
{:else if calculatingPity}
|
{:else if calculatingPity}
|
||||||
<Icon path={mdiLoading} spin color="white" />
|
<Icon path={mdiLoading} spin color="white" />
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
"nonew": "No New Wishes",
|
"nonew": "No New Wishes",
|
||||||
"importNotice1": "Imported wishes will be appended or replaced accordingly to existing data",
|
"importNotice1": "Imported wishes will be appended or replaced accordingly to existing data",
|
||||||
"importNotice2": "If you don't have any data saved before, first wish will be counted as pity 1",
|
"importNotice2": "If you don't have any data saved before, first wish will be counted as pity 1",
|
||||||
|
"importNotice3": "Please note if you are importing a different account, please make sure to separate your account on the settings page, or your data will be mixed up!",
|
||||||
"saveData": "Save wish data?",
|
"saveData": "Save wish data?",
|
||||||
"reCalculating": "Re-calculating pity...",
|
"reCalculating": "Re-calculating pity...",
|
||||||
"processing": "Processing",
|
"processing": "Processing",
|
||||||
|
@ -355,6 +356,7 @@
|
||||||
"thanks": "Thanks😁!",
|
"thanks": "Thanks😁!",
|
||||||
"modal": {
|
"modal": {
|
||||||
"notice": "All Todo and Wish history data will be deleted",
|
"notice": "All Todo and Wish history data will be deleted",
|
||||||
|
"backup": "You can backup your wish history first by exporting it to an excel file!",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"reset": "Reset"
|
"reset": "Reset"
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
"nonew": "Tdk ada wish baru",
|
"nonew": "Tdk ada wish baru",
|
||||||
"importNotice1": "Wish yang diimport akan ditambah atau dihapus sesuai dengan data yang sudah pernah diimport",
|
"importNotice1": "Wish yang diimport akan ditambah atau dihapus sesuai dengan data yang sudah pernah diimport",
|
||||||
"importNotice2": "Jika kamu tidak mempunyai data yang tersimpan sebelumnya, wish pertama akan dihitung sebagai pity 1.",
|
"importNotice2": "Jika kamu tidak mempunyai data yang tersimpan sebelumnya, wish pertama akan dihitung sebagai pity 1.",
|
||||||
|
"importNotice3": "Harap diingat jika kamu mengimport akun yang berbeda, pastikan sudah memisahkan akun di halaman setting jika tidak ingin data mu tercampur!",
|
||||||
"saveData": "Simpan data?",
|
"saveData": "Simpan data?",
|
||||||
"reCalculating": "Menghitung pity...",
|
"reCalculating": "Menghitung pity...",
|
||||||
"processing": "Memproses",
|
"processing": "Memproses",
|
||||||
|
@ -355,8 +356,9 @@
|
||||||
"thanks": "Thanks😁!",
|
"thanks": "Thanks😁!",
|
||||||
"modal": {
|
"modal": {
|
||||||
"notice": "Semua todo dan riwayat wish akan dihapus",
|
"notice": "Semua todo dan riwayat wish akan dihapus",
|
||||||
"cancel": "Cancel",
|
"backup": "Kamu bisa backup dulu riwayat history dengan mengexport nya ke file excel!",
|
||||||
"delete": "Delete",
|
"cancel": "Batal",
|
||||||
|
"delete": "Hapus",
|
||||||
"reset": "Reset"
|
"reset": "Reset"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<div>
|
<div>
|
||||||
<p class="text-white font-bold mb-4 text-lg">{$t('settings.modal.delete')} {account.label}?</p>
|
<p class="text-white font-bold mb-4 text-lg">{$t('settings.modal.delete')} {account.label}?</p>
|
||||||
<p class="text-white mb-4">{$t('settings.modal.notice')}</p>
|
<p class="text-white mb-4">{$t('settings.modal.notice')}</p>
|
||||||
|
<p class="text-white mb-4 italic">{$t('settings.modal.backup')}</p>
|
||||||
<div class="flex justify-end gap-2">
|
<div class="flex justify-end gap-2">
|
||||||
<Button on:click={cancel}>{$t('settings.modal.cancel')}</Button>
|
<Button on:click={cancel}>{$t('settings.modal.cancel')}</Button>
|
||||||
<Button on:click={deleteAccount} color="red">{$t('settings.modal.delete')}</Button>
|
<Button on:click={deleteAccount} color="red">{$t('settings.modal.delete')}</Button>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<div>
|
<div>
|
||||||
<p class="text-white font-bold mb-4 text-lg">{$t('settings.modal.reset')} {account.label}?</p>
|
<p class="text-white font-bold mb-4 text-lg">{$t('settings.modal.reset')} {account.label}?</p>
|
||||||
<p class="text-white mb-4">{$t('settings.modal.notice')}</p>
|
<p class="text-white mb-4">{$t('settings.modal.notice')}</p>
|
||||||
|
<p class="text-white mb-4 italic">{$t('settings.modal.backup')}</p>
|
||||||
<div class="flex justify-end gap-2">
|
<div class="flex justify-end gap-2">
|
||||||
<Button on:click={cancel}>{$t('settings.modal.cancel')}</Button>
|
<Button on:click={cancel}>{$t('settings.modal.cancel')}</Button>
|
||||||
<Button on:click={resetAccount} color="red">{$t('settings.modal.reset')}</Button>
|
<Button on:click={resetAccount} color="red">{$t('settings.modal.reset')}</Button>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
import { weaponList } from '../../data/weaponList';
|
import { weaponList } from '../../data/weaponList';
|
||||||
import { getAccountPrefix } from '../../stores/account';
|
import { getAccountPrefix } from '../../stores/account';
|
||||||
import { fromRemote, readSave } from '../../stores/saveManager';
|
import { fromRemote, readSave } from '../../stores/saveManager';
|
||||||
import { getTimeOffset } from '../../stores/server';
|
import { getTimeOffset, server } from '../../stores/server';
|
||||||
import { pushToast } from '../../stores/toast';
|
import { pushToast } from '../../stores/toast';
|
||||||
|
|
||||||
Chart.defaults.global.defaultFontColor = '#cbd5e0';
|
Chart.defaults.global.defaultFontColor = '#cbd5e0';
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
beginners: 'beginners',
|
beginners: 'beginners',
|
||||||
};
|
};
|
||||||
|
|
||||||
let errorProcessingPull = '';
|
let errorProcessingPull = null;
|
||||||
|
|
||||||
const bannerType = bannerTypes[id];
|
const bannerType = bannerTypes[id];
|
||||||
let bannerChart;
|
let bannerChart;
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
|
|
||||||
if (currentBanner === undefined) {
|
if (currentBanner === undefined) {
|
||||||
console.log('error banner here', JSON.stringify(pull));
|
console.log('error banner here', JSON.stringify(pull));
|
||||||
errorProcessingPull = JSON.stringify(pull);
|
errorProcessingPull = pull;
|
||||||
pushToast($t('wish.errorBanner'), 'error');
|
pushToast($t('wish.errorBanner'), 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -407,9 +407,15 @@
|
||||||
</div>
|
</div>
|
||||||
{#if loading}
|
{#if loading}
|
||||||
<div class="text-white pl-4 md:pl-8 mt-4">{$t('wish.detail.loading')}</div>
|
<div class="text-white pl-4 md:pl-8 mt-4">{$t('wish.detail.loading')}</div>
|
||||||
{#if errorProcessingPull !== ''}
|
<div class="text-gray-400 pl-4 md:pl-8 mt-2">
|
||||||
Error when getting banner for {errorProcessingPull}
|
{#if errorProcessingPull !== null}
|
||||||
{/if}
|
Show this on Discord if still stuck:<br/>
|
||||||
|
Error when getting banner for<br/>
|
||||||
|
id: {errorProcessingPull.id}<br/>
|
||||||
|
time: {errorProcessingPull.time}<br/>
|
||||||
|
server: {$server}
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="flex mt-4 wrapper">
|
<div class="flex mt-4 wrapper">
|
||||||
<div class="block overflow-x-auto xl:overflow-x-visible whitespace-no-wrap px">
|
<div class="block overflow-x-auto xl:overflow-x-visible whitespace-no-wrap px">
|
||||||
|
|
Loading…
Add table
Reference in a new issue