diff --git a/package.json b/package.json index 29df3f53..00ce3888 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@rollup/plugin-replace": "^2.3.4", "@rollup/plugin-url": "^5.0.0", "autoprefixer": "^10.0.1", + "dayjs": "^1.9.4", "dotenv": "^8.2.0", "postcss": "^8.1.2", "postcss-load-config": "^3.0.0", @@ -37,6 +38,7 @@ "sapper": "^0.28.0", "svelte": "^3.17.3", "svelte-preprocess": "^4.5.1", + "svelte-simple-modal": "^0.6.1", "tailwindcss": "^1.9.5" } } diff --git a/src/components/DataSync.svelte b/src/components/DataSync.svelte index 0c59db10..e018af04 100644 --- a/src/components/DataSync.svelte +++ b/src/components/DataSync.svelte @@ -1,12 +1,22 @@ + +
+ +

+ Your local data is conflicting with the ones stored in the Google Drive! +

+
+
+

+ + Google Drive Data - + {remoteNewer ? 'NEWER' : 'OLDER'} +

+

Last modified: {remoteFormatted}

+ +
+

OR

+
+

+ + Local Data - + {remoteNewer ? 'OLDER' : 'NEWER'} +

+

Last modified: {localFormatted}

+ +
+
+ +
diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index b9a295dc..d7fc9dc6 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -1,12 +1,21 @@ @@ -20,12 +29,13 @@ {#if $showSidebar} {/if} -
- -
+ +
+ +
+ +

Paimon.moe is not affiliated with miHoYo.
Genshin Impact, game content and materials are trademarks and copyrights of miHoYo.

- - diff --git a/src/routes/settings.svelte b/src/routes/settings.svelte index e120e6f7..f3c6934f 100644 --- a/src/routes/settings.svelte +++ b/src/routes/settings.svelte @@ -1,9 +1,9 @@
+

+ Paimon.moe use Application Data Directory on your Google Drive to save and sync your wish counter and todo list. +

+

Paimon.moe can only read and write file that this site create.

{#if $driveLoading} + {:else if !$driveSignedIn} + {:else} -

Drive signed in: {$driveSignedIn}

- {#if !$driveSignedIn} - - {:else} - - {/if} + +

+ Sync Status: + + {$synced ? 'Synced' : 'Syncing...'} + {#if $synced} + + {:else} + + {/if} + +

{/if}
diff --git a/src/routes/wish/_counter.svelte b/src/routes/wish/_counter.svelte index 5e4b8b05..6acd6bab 100644 --- a/src/routes/wish/_counter.svelte +++ b/src/routes/wish/_counter.svelte @@ -1,9 +1,11 @@