-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
290a066
commit 723a104
Showing
4 changed files
with
55 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
|
||
<script> | ||
export let jsonData; | ||
export let summary; | ||
</script> | ||
|
||
<details> | ||
<summary>{summary}</summary> | ||
<pre><code>{JSON.stringify(jsonData, null, 2)}</code></pre> | ||
</details> | ||
|
||
|
||
<style> | ||
details { | ||
font-size: 1.1em; | ||
text-align: left; | ||
} | ||
pre { | ||
margin-top: 10px; | ||
color: #faebd7; | ||
background-color: #2c3e50; | ||
padding: 10px; | ||
font-size: 14px; | ||
border-radius: 10px; | ||
overflow: auto; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script> | ||
import DetailsPrePanel from "../../JsonBrowser/DetailsPrePanel.svelte"; | ||
import { getJson } from "../../utils.js"; | ||
export let source; | ||
const promise = getJson(source + "/ro-crate-metadata.json"); | ||
</script> | ||
|
||
{#await promise} | ||
<p>Loading ro-crate-metadata.json...</p> | ||
{:then jsonData} | ||
{#if jsonData} | ||
<DetailsPrePanel {jsonData} summary="Ro-Crate Metadata" /> | ||
{/if} | ||
{:catch error} | ||
<p>No ro-crate-metadata.json found</p> | ||
{/await} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters