From bc1ad5e45af73618ef184f73ec9187a5f050ab70 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 26 Aug 2022 18:46:21 -0400 Subject: [PATCH] More re-org. Try to move message searching implementation into separate .js file. Have apiFetch() put errors into state, as appropriate. Add errorDetails display. --- src/lib/QueryInput.svelte | 3 +- src/lib/state.js | 5 + src/routes/+page.js | 66 +++++++++++- src/routes/+page.svelte | 167 +++++++++++++++---------------- src/routes/settings/+page.svelte | 9 +- src/utils.js | 6 +- 6 files changed, 163 insertions(+), 93 deletions(-) diff --git a/src/lib/QueryInput.svelte b/src/lib/QueryInput.svelte index e4fb595..38d9b23 100644 --- a/src/lib/QueryInput.svelte +++ b/src/lib/QueryInput.svelte @@ -18,10 +18,11 @@ Allow JavaScript to mutate objects - + {/if} +