From e91e14a3d2a226578870dc03237324bd72af9393 Mon Sep 17 00:00:00 2001 From: slackline Date: Fri, 17 May 2024 17:49:47 +0100 Subject: [PATCH] wip(smithereens): Dialog box now populated from index.json Progress! After some head scratching and ultimately renaming the building block components box is now populated with species names from the `index.json` that are static files for Fragments and Muropeptides. The `Build database` button is greyed out but that is something to work on next week. --- web/src/routes/+page.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index 487c7154..82efc551 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -125,10 +125,14 @@ processingSmithereens = false; }) // Reactively compute if Smithereens is ready - $: SmithereensReady = !loadingSmithereens && !processingSmithereens && smithereensWorker.fragmentsLibrary !== undefined && smithereensWorker.muropeptidesLibrary !== undefined; + $: console.log(`[+page.svelte] loadingSmithereens : ${loadingSmithereens}`) + $: console.log(`[+page.svelte] processingSmithereens : ${processingSmithereens}`) + // How to see the indexes and more importantly the values that is selected by the user as this determines what file + // is loaded. + // $: console.log(`[+page.svelte] smithereensWorker.fragmentsLibraryIndex : ${smithereensWorker.fragmentsLibraryIndex}`) + // $: console.log(`[+page.svelte] smithereensWorker.muropeptidesLibraryIndex : ${smithereensWorker.muropeptidesLibraryIndex}`) + $: SmithereensReady = !loadingSmithereens && !processingSmithereens && smithereensWorker.fragmentsLibraryIndex !== undefined && smithereensWorker.muropeptidesLibraryIndex !== undefined; $: console.log(`[+page.svelte] SmithereensReady : ${SmithereensReady}`); - // $: console.log(`smithereensWorker.fragmentsLibraryIndex : ${smithereensWorker.fragmentsLibraryIndex}`); - // $: console.log(`smithereensWorker.muropeptidesLibraryIndex : ${smithereensWorker.muropeptidesLibrary}`); // Send data to Smithereens for processing function runSmithereensAnalysis() {