-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (89 loc) · 3.55 KB
/
Copy pathindex.html
File metadata and controls
98 lines (89 loc) · 3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>StructView</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header class="app-header">
<h1>StructView</h1>
<p>Paste JSON or YAML and explore it as a collapsible structure.</p>
</header>
<section class="tabs-shell">
<div id="tabs-bar" class="tabs-bar"></div>
<button id="add-tab-btn" class="add-tab-btn" type="button">+ New Tab</button>
</section>
<section class="app-toolbar">
<div class="toolbar-actions">
<button id="open-file-btn" class="secondary-btn" type="button">Open File</button>
<button id="save-file-btn" class="secondary-btn" type="button" hidden>Save</button>
<button id="clear-text-btn" class="secondary-btn" type="button">Clear All</button>
<button id="render-btn" type="button">Generate Structure</button>
<button id="hide-text-pane-btn" class="secondary-btn" type="button">Hide Text Pane</button>
<button id="show-text-pane-btn" class="secondary-btn" type="button" hidden>Show Text Pane</button>
</div>
</section>
<section class="breadcrumb-shell" aria-label="Structure breadcrumb">
<span class="breadcrumb-label">Node Path</span>
<nav id="node-breadcrumb" class="node-breadcrumb" aria-live="polite">
<span class="breadcrumb-empty">No node selected.</span>
</nav>
</section>
<main class="layout">
<section class="panel editor-panel">
<div class="panel-title-row">
<h2>Input</h2>
<button id="beautify-btn" class="secondary-btn pane-action-btn" type="button">Beautify</button>
</div>
<div class="editor-wrap" id="editor-wrap">
<pre id="line-number-layer" class="line-number-layer" aria-hidden="true"></pre>
<pre id="highlight-layer" class="highlight-layer" aria-hidden="true"></pre>
<textarea
id="input-box"
class="input-box"
spellcheck="false"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
placeholder="Paste JSON or YAML here..."
></textarea>
</div>
<p id="status" class="status">Waiting for input...</p>
</section>
<div
id="pane-resizer"
class="pane-resizer"
role="separator"
aria-orientation="vertical"
aria-label="Resize panes"
></div>
<section class="panel viewer-panel">
<div class="panel-title-row">
<h2>Structure</h2>
<div class="legend">
<span class="badge object">Object</span>
<span class="badge array">Array</span>
<span class="badge value">Value</span>
</div>
</div>
<div class="search-row">
<input
id="tree-search"
class="tree-search"
type="text"
placeholder="Search keys or values..."
autocomplete="off"
/>
<button id="tree-search-prev" class="tree-search-nav" type="button">Previous</button>
<button id="tree-search-next" class="tree-search-nav" type="button">Next</button>
<button id="tree-search-clear" class="tree-search-clear" type="button">Clear</button>
</div>
<p id="search-status" class="search-status">Showing full structure.</p>
<div id="tree-root" class="tree-root"></div>
</section>
</main>
<script src="renderer.js"></script>
</body>
</html>