diff --git a/src/entrypoints/popup/App.svelte b/src/entrypoints/popup/App.svelte index 43065a9..fbd0ee8 100644 --- a/src/entrypoints/popup/App.svelte +++ b/src/entrypoints/popup/App.svelte @@ -21,7 +21,7 @@
{#if activePage === 'main'} -
+
(activePage = 'settings')} onSiteConfigOpenRequest={() => (activePage = 'site-config')} diff --git a/src/entrypoints/popup/components/BackButton.svelte b/src/entrypoints/popup/components/BackButton.svelte new file mode 100644 index 0000000..8df75d3 --- /dev/null +++ b/src/entrypoints/popup/components/BackButton.svelte @@ -0,0 +1,20 @@ + + + diff --git a/src/entrypoints/popup/components/PageHeader.svelte b/src/entrypoints/popup/components/PageHeader.svelte new file mode 100644 index 0000000..100ff98 --- /dev/null +++ b/src/entrypoints/popup/components/PageHeader.svelte @@ -0,0 +1,35 @@ + + +
+ {#if actionsLeft} +
+ {@render actionsLeft()} +
+ {/if} + +
+

{title}

+ {#if subtitle} +

{subtitle}

+ {/if} +
+ + {#if actionsRight} +
+ {@render actionsRight()} +
+ {/if} +
diff --git a/src/entrypoints/popup/pages/main/Header.svelte b/src/entrypoints/popup/pages/main/Header.svelte index c0fe4ef..1ad61d7 100644 --- a/src/entrypoints/popup/pages/main/Header.svelte +++ b/src/entrypoints/popup/pages/main/Header.svelte @@ -1,4 +1,7 @@ -
-
-

stream-bypass

- v{import.meta.env.VERSION} -
-
+ + {#snippet actionsRight()} {#key allHostsDisabled} !allHostsDisabled, (v) => (allHostsDisabled = !v)} /> {/key} - -
-
+ + {/snippet} + diff --git a/src/entrypoints/popup/pages/main/Main.svelte b/src/entrypoints/popup/pages/main/Main.svelte index 5108567..89c7aec 100644 --- a/src/entrypoints/popup/pages/main/Main.svelte +++ b/src/entrypoints/popup/pages/main/Main.svelte @@ -63,7 +63,7 @@ {:else if currentMatch}
diff --git a/src/entrypoints/popup/pages/settings/Header.svelte b/src/entrypoints/popup/pages/settings/Header.svelte index 735106f..e8c8806 100644 --- a/src/entrypoints/popup/pages/settings/Header.svelte +++ b/src/entrypoints/popup/pages/settings/Header.svelte @@ -1,6 +1,6 @@ -
-
- -
-

Settings

-

Manage hosts and integrations

-
-
-
+ + {#snippet actionsLeft()} + + {/snippet} + diff --git a/src/entrypoints/popup/pages/site-config/Header.svelte b/src/entrypoints/popup/pages/site-config/Header.svelte index c688008..ba99db9 100644 --- a/src/entrypoints/popup/pages/site-config/Header.svelte +++ b/src/entrypoints/popup/pages/site-config/Header.svelte @@ -1,6 +1,6 @@ -
- -
-

Site settings

-

{domain}

-
-
+ + {#snippet actionsLeft()} + + {/snippet} +