From c1a9243be82b00d617226b27b305addb8eeac9b6 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Sat, 27 Aug 2022 18:13:53 +0700 Subject: [PATCH] Update wish import guide --- src/locales/en.json | 18 +++++ src/routes/wish/import.svelte | 122 +++++++++++++++++++++++++++++++--- 2 files changed, 130 insertions(+), 10 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 6578ef08..558662d1 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -185,6 +185,7 @@ "Please note that the old feedback link does not work anymore, please follow the new instructions below!" ], "notice30": "Wish history is changed on v3.0, please follow the new instruction below!", + "soon30": "Text tutorial is coming soon, for now please watch the video above!", "faqs": { "title": "Import Wish History FAQ", "q1": "How does it work?", @@ -218,6 +219,13 @@ "global": "%userprofile%\\AppData\\LocalLow\\miHoYo\\Genshin Impact\\output_log.txt", "china": "%userprofile%\\AppData\\LocalLow\\miHoYo\\原神\\output_log.txt" }, + "method": { + "pc": "Method 1", + "pc3": "Method 2", + "android": "Wifi", + "android2": "Cell Data", + "android3": "Alternative" + }, "guide": { "video": "Video Tutorial", "pc": [ @@ -241,6 +249,16 @@ "Paste the text to the textbox below", "Paste the link here... https://webstatic..." ], + "pc3": [ + "Press START on your keyboard, then search for Powershell", + "Click Windows Powershell, then copy & paste the script below to the Powershell, then press ENTER (only when 'Press Enter to continue...' message is not showing yet)", + "Open Genshin Impact in this PC", + "Then open the wish history in the game and wait it to load", + "Click the table, then press CTRL+A then CTRL+C", + "Alt+Tab to the powershell, then press ENTER, the link will be copied to your clipboard", + "Paste the text to the textbox below", + "Paste the link here... https://webstatic..." + ], "pclog": [ "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", diff --git a/src/routes/wish/import.svelte b/src/routes/wish/import.svelte index 944687ae..2cd97a7e 100644 --- a/src/routes/wish/import.svelte +++ b/src/routes/wish/import.svelte @@ -52,8 +52,11 @@ const steps = { pc: 7, + pc3: 8, pclog: 7, android: 1, + android2: 1, + android3: 1, ios: 11, ps: 5, pclocal: 5, @@ -61,7 +64,10 @@ const videoTutorial = { android: 'https://www.youtube.com/watch?v=6C5Zqhcm3NI', + android2: 'https://www.youtube.com/watch?v=rHN1iRjmKmc', + android3: 'https://www.youtube.com/watch?v=jAKq94KpGHA', pc: 'https://www.youtube.com/watch?v=FCwZkHeIezw', + pc3: 'https://www.youtube.com/watch?v=ojZzl3dmppI', pclog: 'https://www.youtube.com/watch?v=cl5HDd0bqKw', ios: 'https://www.youtube.com/watch?v=WfBpraUq41c', }; @@ -90,6 +96,8 @@ let powershellScriptChina = 'iex "&{$(irm https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/d40fa0fd74d85d692543c1621669f5f9375b5975/getlink.ps1)} china"'; let powershellScriptSource = 'https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235'; + let powershellScriptAlt = + 'pause;$m=(((Get-Clipboard -TextFormatType Html) | sls "(https:/.+log)").Matches[0].Value);$m;Set-Clipboard -Value $m'; let copiedScript = false; let news = ''; let showAdvancedOptions = false; @@ -854,6 +862,17 @@ } catch (err) {} } + function copyScriptAlt() { + try { + navigator.clipboard.writeText(powershellScriptAlt); + copiedScript = true; + + setTimeout(() => { + copiedScript = false; + }, 2000); + } catch (err) {} + } + $: selectedServer, updateServer(); onMount(() => { @@ -936,14 +955,14 @@ @@ -964,7 +983,7 @@ - + + + + {/if} + {#if ['android', 'android2', 'android3'].includes(selectedType)} +
+
+
+ 4 +
+
+
+
+

{$t('wish.import.chooseMethod')}

+
+ + +
- {/if} --> + {/if} {#if videoTutorial[selectedType] !== undefined}
@@ -1087,6 +1142,53 @@

{$t('wish.import.guide.pc2.10')}

+ {:else if selectedType === 'pc3'} +
+
+
+ 5 +
+
+
+
+

{$t(`wish.import.guide.pc3.0`)}

+
+
+ +
+
+
+ 6 +
+
+
+
+

{$t('wish.import.guide.pc3.1')}

+
+
{powershellScriptAlt}
+ +
+
+
+ {#each Array(5) as _, i} +
+
+
+ {7 + i} +
+
+
+
+

{$t(`wish.import.guide.pc3.${2 + i}`)}

+
+
+ {/each} {:else if selectedType === 'pclog'} {#each Array(2) as _, i}
@@ -1280,7 +1382,7 @@
-

Text tutorial is coming soon, for now please watch the video above!

+

{$t('wish.import.soon30')}