From 3c539aad1543a0b39581d23749db806658f3e0bf Mon Sep 17 00:00:00 2001 From: coomdev Date: Fri, 10 Jun 2022 05:44:35 +0200 Subject: [PATCH] Auto-refresh when opening thread watcher --- src/Components/App.svelte | 492 +++++++++++++++++++------------------ src/Components/Tab.svelte | 5 +- src/Components/Tabs.svelte | 3 +- 3 files changed, 252 insertions(+), 248 deletions(-) diff --git a/src/Components/App.svelte b/src/Components/App.svelte index f479419..8854e8b 100644 --- a/src/Components/App.svelte +++ b/src/Components/App.svelte @@ -1,5 +1,7 @@ -
-
-

PEE Settings

-
- - - General - External - File Host - Thread Watcher - {#if $appState.akValid} - Hydrus - {/if} - - - - - - - - - +{#if visible} +
+
+

PEE Settings

+
+ + + General + External + File Host + updateThreads()}>Thread Watcher + {#if $appState.akValid} + Hydrus + {/if} + + + + + + + + + - - {#if $settings.eye} - {/if} - - - - - - - - {#if $settings.hyd} - {#if $appState.herror} - {$appState.herror} + {#if $settings.eye} + {/if} + + + + + - {#if $appState.akValid} - - - {/if} - {/if} - - - - {#if !$settings.te} - {#if $settings.phash} + {#if $settings.hyd} + {#if $appState.herror} + {$appState.herror} + {/if} - {/if} -

Booru sources

-
- {#each $settings.rsources as source, i} - removeBooru(source.domain)} - on:toggle={() => toggleBooru(source.domain)} - toggleable={true} - toggled={!$settings.rsources.find( - (e) => e.domain == source.domain - )?.disabled} - /> - {/each} -
- - -
+ {#if $appState.akValid} + {/if} + {/if} + + + + {#if !$settings.te} + + {#if $settings.phash} -
+ + +
+ + + + + +
+
-
-

Blacklisted tags

-
- {#each $settings.blacklist as tag, i} - removeTag(tag)} /> +
+

Blacklisted tags

+
+ {#each $settings.blacklist as tag, i} + removeTag(tag)} /> + {/each} +
+ { + if (ev.key == "Enter") { + $settings.blacklist = [ + ...$settings.blacklist, + ev.currentTarget.value, + ]; + ev.currentTarget.value = ""; + } + }} + /> + {/if} + + +

Host to use when uploading files (Only permanent hosts)

+ { - if (ev.key == "Enter") { - $settings.blacklist = [ - ...$settings.blacklist, - ev.currentTarget.value, - ]; - ev.currentTarget.value = ""; - } - }} - /> - {/if} -
- -

Host to use when uploading files (Only permanent hosts)

- - -
- - + + + ?] - - - + >] + - {#if !updating} -
- {#each threads as thread} -
- >>{thread.id} - ({thread.cnt} embeds) -
- {/each} -
- {:else} -

Loading...

- {/if} - - {#if $appState.akValid} - - + {#if !updating} +
+

Format is (embedded links / link in filename)

+ {#each threads as thread} +
+ >>{thread.id} + ({thread.pees} / {thread.eyes + thread.other}) +
+ {/each} +
+ {:else} +

Loading...

+ {/if}
- {/if} - + {#if $appState.akValid} + + + + {/if} + +
-
+{/if}