@galaxyproject/jsonviewer 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,70 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE visualization SYSTEM "../../visualization.dtd">
3
+ <visualization name="JSON/YAML Viewer" embeddable="true">
4
+ <description>Interactive viewer for JSON, YAML, and JSON-LD data</description>
5
+ <tags>
6
+ <tag>JSON</tag>
7
+ <tag>YAML</tag>
8
+ <tag>JSON-LD</tag>
9
+ <tag>Viewer</tag>
10
+ </tags>
11
+ <data_sources>
12
+ <data_source>
13
+ <model_class>HistoryDatasetAssociation</model_class>
14
+ <test test_attr="ext">json</test>
15
+ <test test_attr="ext">yaml</test>
16
+ <test test_attr="ext">geojson</test>
17
+ <test test_attr="ext">jsonld</test>
18
+ </data_source>
19
+ </data_sources>
20
+ <params>
21
+ <param required="true">dataset_id</param>
22
+ </params>
23
+ <settings>
24
+ <input>
25
+ <name>mode</name>
26
+ <label>Default view mode</label>
27
+ <type>select</type>
28
+ <value>tree</value>
29
+ <data>
30
+ <data><label>Tree</label><value>tree</value></data>
31
+ <data><label>Text</label><value>text</value></data>
32
+ <data><label>Table</label><value>table</value></data>
33
+ </data>
34
+ </input>
35
+ <input>
36
+ <name>expand_jsonld</name>
37
+ <label>Expand JSON-LD</label>
38
+ <type>boolean</type>
39
+ <value>false</value>
40
+ </input>
41
+ </settings>
42
+ <entry_point src="index.js" css="index.css" />
43
+ <tests>
44
+ <test>
45
+ <param name="dataset_id" value="https://cdn.jsdelivr.net/gh/galaxyproject/galaxy-test-data/genomes.json" ftype="json" />
46
+ </test>
47
+ </tests>
48
+ <help format="markdown"><![CDATA[
49
+ # What is the JSON/YAML Viewer?
50
+
51
+ The JSON/YAML Viewer provides an interactive way to explore structured data files in JSON, YAML, or JSON-LD format directly in your browser.
52
+
53
+ After selecting a dataset, its contents will be displayed in a rich editor with multiple viewing modes.
54
+
55
+ ## Key Features
56
+
57
+ - **Tree View**: Browse your data as an expandable tree with collapsible nodes, search, and path navigation.
58
+ - **Text View**: Inspect the raw content with syntax highlighting powered by CodeMirror.
59
+ - **Table View**: Visualize flat data structures in a tabular layout.
60
+ - **Search & Filter**: Quickly find specific keys or values within large documents.
61
+ - **YAML Support**: YAML files are automatically parsed and displayed in the viewer.
62
+ - **JSON-LD Expansion**: Optionally expand compacted JSON-LD documents to inspect their full linked data structure.
63
+ - **Dark Theme**: Automatically adapts to Galaxy's active theme.
64
+
65
+ This tool is useful for inspecting configuration files, API responses, metadata documents, and any structured data without leaving Galaxy.
66
+
67
+ To learn more about the underlying editor, visit:
68
+ [https://github.com/josdejong/svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor)
69
+ ]]></help>
70
+ </visualization>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg viewBox="1 1 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M14 19H16C17.1046 19 18 18.1046 18 17V14.5616C18 13.6438 18.6246 12.8439 19.5149 12.6213L21.0299 12.2425C21.2823 12.1794 21.2823 11.8206 21.0299 11.7575L19.5149 11.3787C18.6246 11.1561 18 10.3562 18 9.43845V5H14" stroke="#E30A17" stroke-width="2"/>
4
+ <path d="M10 5H8C6.89543 5 6 5.89543 6 7V9.43845C6 10.3562 5.37541 11.1561 4.48507 11.3787L2.97014 11.7575C2.71765 11.8206 2.71765 12.1794 2.97014 12.2425L4.48507 12.6213C5.37541 12.8439 6 13.6438 6 14.5616V19H10" stroke="#E30A17" stroke-width="2"/>
5
+ </svg>