diff --git a/src/App.svelte b/src/App.svelte index 3dff241..ea4c4c0 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,6 +6,7 @@ import Modal from "svelte-simple-modal"; import { getJson } from "./utils"; + import CheckMark from "./CheckMark.svelte"; const searchParams = new URLSearchParams(window.location.search); let source = searchParams.get("source"); @@ -43,7 +44,8 @@ {/if} {:catch error} -

{error.message}

+ +

{error.message}

{/await} {:else}
diff --git a/src/CheckMark.svelte b/src/CheckMark.svelte new file mode 100644 index 0000000..39f9ac8 --- /dev/null +++ b/src/CheckMark.svelte @@ -0,0 +1,33 @@ + + +{#if valid} +
+{:else} +
×
+{/if} + + diff --git a/src/JsonBrowser/JsonKeyLink.svelte b/src/JsonBrowser/JsonKeyLink.svelte index 73b5828..f164c55 100644 --- a/src/JsonBrowser/JsonKeyLink.svelte +++ b/src/JsonBrowser/JsonKeyLink.svelte @@ -33,9 +33,9 @@ } } - const version_urls = all_urls[version]; + const version_urls = all_urls[version] || {}; - let url; + let url = ""; if (version_urls[name]) { url = `https://ngff.openmicroscopy.org/${version}/index.html#${version_urls[name]}`; diff --git a/src/JsonValidator/MultiscaleArrays/Multiscale.svelte b/src/JsonValidator/MultiscaleArrays/Multiscale.svelte new file mode 100644 index 0000000..17fcf67 --- /dev/null +++ b/src/JsonValidator/MultiscaleArrays/Multiscale.svelte @@ -0,0 +1,84 @@ + + +{#await promise} +

loading...

+{:then errors} + {#if errors.length > 0} + + + {#each errors as error} +

Error: {error}

+ {/each} + {:else} +

+ {datasets.length} Datasets checked +

+ {/if} +{:catch error} +

{error.message}

+{/await} diff --git a/src/JsonValidator/MultiscaleArrays/index.svelte b/src/JsonValidator/MultiscaleArrays/index.svelte index 94b3cef..1ba56cf 100644 --- a/src/JsonValidator/MultiscaleArrays/index.svelte +++ b/src/JsonValidator/MultiscaleArrays/index.svelte @@ -1,5 +1,6 @@