mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-10-02 03:38:18 +03:00
feat: [ongeki] data export/import
This commit is contained in:
@@ -2,8 +2,20 @@
|
||||
import { fade } from "svelte/transition";
|
||||
import { FADE_IN, FADE_OUT } from "../../libs/config";
|
||||
import GameSettingFields from "./GameSettingFields.svelte";
|
||||
|
||||
function exportData() {
|
||||
submitting = "export"
|
||||
GAME.export('ongeki')
|
||||
.then(data => download(JSON.stringify(data), `AquaDX_ongeki_export_${values[0]}.json`))
|
||||
.catch(e => error = e.message)
|
||||
.finally(() => submitting = "")
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<GameSettingFields game="ongeki"/>
|
||||
<button class="exportButton" on:click={exportData}>
|
||||
<Icon icon="bxs:file-export"/>
|
||||
{t('settings.export')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -69,6 +69,8 @@
|
||||
return 'mai2';
|
||||
case 'SDHD':
|
||||
return 'chu3';
|
||||
case 'SDDT':
|
||||
return 'ongeki';
|
||||
default:
|
||||
throw new Error(t('home.import.unknown-game'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user