Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
"pc3": "Method 2",
"pc4": "Method 2 Alt",
"pc5": "Manual",
"aagl": "An Anime Game Launcher",
"android": "Wifi",
"android2": "Cell Data",
"android3": "Alternative"
Expand Down Expand Up @@ -283,6 +284,16 @@
"Paste the text to the textbox below",
"Paste the link here... https://webstatic..."
],
"aagl": [
"Open Genshin Impact in this PC (If you use multiple accounts, please restart the game)",
"Then open the wish history in the game and wait it to load",
"Open AAGL on your computer",
"In the top right, click the three lines to open the menu",
"Click 'Open Wishes' to open the wish page in your browser",
"Copy the link from the address bar from https://gs until #log (the URL will look like this: https://gs.hoyoverse.com/genshin/event/e20190909gacha-df01aea2/index.html?***#/log)",
"Past the link into the textbox below:",
"Paste the link here... https://gs..."
],
"android": [
"Open Wish (in the game)",
"Press History",
Expand Down
50 changes: 49 additions & 1 deletion src/routes/wish/import.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
pc4: 8,
pc5: 9,
pclog: 7,
aagl: 8,
android: 1,
android2: 1,
android3: 1,
Expand Down Expand Up @@ -963,7 +964,14 @@
on:click={() => changeSelectedType('pc')}
class="pill {['pc', 'pc3', 'pc4', 'pc5', 'pclocal'].includes(selectedType) ? 'active' : ''}"
>
PC
PC (Windows)
</button>
<button
disabled={processingLog}
on:click={() => changeSelectedType('aagl')}
class="pill {['aagl'].includes(selectedType) ? 'active' : ''}"
>
Linux
</button>
<button
disabled={processingLog}
Expand Down Expand Up @@ -1039,6 +1047,29 @@
</div>
</div>
{/if}

{#if ['aagl'].includes(selectedType)}
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
<div class="step-number border-2 border-white w-8 h-8 rounded-full flex justify-center items-center">
<span class="text-white font-bold">4</span>
</div>
<div class="step-bar w-1 bg-white opacity-50 mt-2 h-full" />
</div>
<div class="content flex flex-col pb-6 pt-1">
<p class="text-white">{$t('wish.import.chooseMethod')}</p>
<div class="flex mt-4 flex-wrap">
<button
disabled={processingLog}
on:click={() => changeSelectedType('aagl')}
class="pill {selectedType === 'aagl' ? 'active' : ''}"
>
{$t('wish.import.method.aagl')}
</button>
</div>
</div>
</div>
{/if}
<!-- {#if ['android', 'android2', 'android3'].includes(selectedType)}
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
Expand Down Expand Up @@ -1294,6 +1325,21 @@
<p class="text-white">{$t('wish.import.guide.pclocal.8')}</p>
</div>
</div>

{:else if selectedType === 'aagl'}
{#each Array(7) as _, i}
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
<div class="w-8 rounded-full flex justify-center items-center">
<span class="text-white font-bold">{5 + i}</span>
</div>
<div class="step-bar w-1 bg-white opacity-50 mt-2 h-full" />
</div>
<div class="content flex-col items-center {i === 6 ? 'pb-8' : ''}">
<p class="text-white">{$t(`wish.import.guide.aagl.${i}`)}</p>
</div>
</div>
{/each}
{:else if selectedType === 'ios'}
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
Expand Down Expand Up @@ -1385,6 +1431,8 @@
<Input bind:value={genshinLink} placeholder={$t('wish.import.guide.pclog.6')} />
{:else if selectedType === 'pclocal'}
<Textarea bind:value={generatedTextInput} placeholder={$t('wish.import.guide.pclocal.9')} />
{:else if selectedType === 'aagl'}
<Textarea bind:value={generatedTextInput} placeholder={$t('wish.import.guide.aagl.7')} />
{:else if selectedType === 'ios'}
<Input bind:value={genshinLink} placeholder={$t('wish.import.guide.ios2.13')} />
{:else}
Expand Down