diff --git a/src/routes/announcements/AnnouncementBanner.svelte b/src/layout/Banners/AnnouncementBanner.svelte similarity index 97% rename from src/routes/announcements/AnnouncementBanner.svelte rename to src/layout/Banners/AnnouncementBanner.svelte index 3e3d198..32bf987 100644 --- a/src/routes/announcements/AnnouncementBanner.svelte +++ b/src/layout/Banners/AnnouncementBanner.svelte @@ -1,6 +1,6 @@ + + + It's your choice + + We use analytics to improve your experience on this site. By clicking "Allow", you allow us to + collect anonymous data about your visit. + + + + + + diff --git a/src/layout/Dialogs/CryptoDialog.svelte b/src/layout/Dialogs/CryptoDialog.svelte new file mode 100644 index 0000000..dcb77ea --- /dev/null +++ b/src/layout/Dialogs/CryptoDialog.svelte @@ -0,0 +1,145 @@ + + + + + + + Cryptocurrencies + +
+
+ {#each wallets as wallet} + + {/each} +
+
+ + + +
+ + + + + + {qrCodeDialogueName} Wallet + +
+ {qrCodeValue} + +
+
+ + + + +
+ + + Address copied to clipboard + + + diff --git a/src/lib/components/Dialogue.svelte b/src/layout/Dialogs/Dialog.svelte similarity index 52% rename from src/lib/components/Dialogue.svelte rename to src/layout/Dialogs/Dialog.svelte index c9ed5e1..52b65f8 100644 --- a/src/lib/components/Dialogue.svelte +++ b/src/layout/Dialogs/Dialog.svelte @@ -4,7 +4,7 @@ import ArrowLeft from 'svelte-material-icons/ArrowLeft.svelte'; - export let modalOpen = false; + export let dialogOpen = false; export let fullscreen = false; export let notDismissible = false; @@ -16,20 +16,20 @@ } -{#if modalOpen} +{#if dialogOpen} +
{ - if (!notDismissible) modalOpen = !modalOpen; + if (!notDismissible) dialogOpen = !dialogOpen; }} on:keypress={() => { - if (!notDismissible) modalOpen = !modalOpen; + if (!notDismissible) dialogOpen = !dialogOpen; }} transition:fade={{ easing: quadInOut, duration: 150 }} /> 10} aria-modal="true" @@ -37,41 +37,39 @@ on:scroll={parseScroll} transition:fade={{ easing: quadInOut, duration: 150 }} > -
-
- {#if fullscreen} - - {/if} - {#if $$slots.icon} - - {/if} - {#if $$slots.title} -

- -

- {/if} -
- - {#if $$slots.description} -

- -

+
+ {#if fullscreen} + {/if} - -
- - {#if $$slots.buttons} -
- -
+ {#if $$slots.icon} + + {/if} + {#if $$slots.title} +

+ +

{/if}
+ + {#if $$slots.description} +

+ +

+ {/if} + +
+ + {#if $$slots.buttons} +
+ +
+ {/if}
{/if} - diff --git a/src/layout/Dialogs/DownloadCompatibilityWarningDialog.svelte b/src/layout/Dialogs/DownloadCompatibilityWarningDialog.svelte new file mode 100644 index 0000000..658221d --- /dev/null +++ b/src/layout/Dialogs/DownloadCompatibilityWarningDialog.svelte @@ -0,0 +1,25 @@ + + + + Warning + {warning} Do you still want to download? + + + + + + + diff --git a/src/lib/components/ImageModal.svelte b/src/layout/Dialogs/ImageDialog.svelte similarity index 77% rename from src/lib/components/ImageModal.svelte rename to src/layout/Dialogs/ImageDialog.svelte index 987a973..3d7806d 100644 --- a/src/lib/components/ImageModal.svelte +++ b/src/layout/Dialogs/ImageDialog.svelte @@ -7,12 +7,12 @@ const dispatch = createEventDispatcher(); - function closeModal() { + function closeDialog() { dispatch('close'); } function handleKeydown(event: KeyboardEvent) { - if (event.key === 'Escape') closeModal(); + if (event.key === 'Escape') closeDialog(); } @@ -20,16 +20,16 @@ - - + diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte index b57668b..536bcf0 100644 --- a/src/routes/download/+page.svelte +++ b/src/routes/download/+page.svelte @@ -13,7 +13,7 @@ import Query from '$lib/components/Query.svelte'; import Button from '$lib/components/Button.svelte'; import Picture from '$lib/components/Picture.svelte'; - import Dialogue from '$lib/components/Dialogue.svelte'; + import DownloadCompatibilityWarningDialog from '$layout/Dialogs/DownloadCompatibilityWarningDialog.svelte'; import { onMount } from 'svelte'; const query = createQuery(queries.manager()); @@ -69,21 +69,6 @@ ]} /> - - Warning - {warning} Do you still want to download? - - - - - - - -

ReVanced Manager

Patch your favourite apps, right on your device.

@@ -113,6 +98,8 @@
+ +