From 1b75f6d577c511ac3560c3e371521af89f05f2ea Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Tue, 9 Mar 2021 15:25:49 +0800 Subject: [PATCH] Update wish counter --- src/components/WishCounterHowToModal.svelte | 24 ++++- src/routes/wish/_counter.svelte | 27 +++--- src/routes/wish/_firstTime.svelte | 42 +++++++++ src/routes/wish/index.svelte | 97 +++++++++++++++++---- 4 files changed, 160 insertions(+), 30 deletions(-) create mode 100644 src/routes/wish/_firstTime.svelte diff --git a/src/components/WishCounterHowToModal.svelte b/src/components/WishCounterHowToModal.svelte index 2f49b2c0..067c5a48 100644 --- a/src/components/WishCounterHowToModal.svelte +++ b/src/components/WishCounterHowToModal.svelte @@ -1,14 +1,34 @@
-

How to use Wish Counter

+

Wish Counter Help & Settings

+
+ Enable Manual Input +
+

+ Using the Auto Import and manual input together is not recommended, still need some testing! +

Consider using the Auto Import first, access it on button beside the button you click to open this How To

-

Using the Auto Import and manual input together is not recommended, still need some testing!

+

How to use manual input

After you do 1 pull Wish:

diff --git a/src/routes/wish/_counter.svelte b/src/routes/wish/_counter.svelte index 8d9801b8..47be92e6 100644 --- a/src/routes/wish/_counter.svelte +++ b/src/routes/wish/_counter.svelte @@ -18,6 +18,7 @@ let numberFormat = Intl.NumberFormat(); + export let manualInput = false; export let id = ''; export let name = ''; export let legendaryPity = 90; @@ -241,9 +242,11 @@

{name}

- + {#if manualInput} + + {/if}
{#if isEdit} - {:else} + {:else if manualInput}
{/if}
-
+
{#if isDetailOpen}
-
-
- Click the list to edit or delete + {#if manualInput} +
+
+ Click the list to edit or delete +
+
- -
+ {/if}
+

+
+
+
+ +
+
+
diff --git a/src/routes/wish/index.svelte b/src/routes/wish/index.svelte index 6db8e4f6..b44017f2 100644 --- a/src/routes/wish/index.svelte +++ b/src/routes/wish/index.svelte @@ -1,14 +1,16 @@