-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanel.html
135 lines (118 loc) · 4.13 KB
/
panel.html
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html>
<head>
<script src="panel.js"></script>
</head>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
overflow: clip;
}
input, select {
padding: 0;
font-size: 11px;
}
</style>
<body
style="
margin: 0px;
width: 100vw;
height: 100vh;
"
>
<!-- Error div -->
<div id="error-container" style="background-color: #ffcccc; padding: 10px; display: none;">
<pre id="error-message" style="margin: 0;"></pre>
</div>
<!-- The Messages -->
<div id="messages"
style="
position: absolute;
left: 0px;
top: 0px;
width: calc(100%);
bottom: 0px;
overflow-x: clip;
overflow-y: clip;
"
>
<!-- Top Checkbox Row -->
<div style="background-color: #FBFBFD; border-bottom: 1px solid #EEEFF8; padding: 5px;">
<input type="checkbox" id="id_raw_messages" />
<label for="id_raw_messages">Display Raw Messages</label>
</div>
<!-- The messages go here -->
<div style="width:100%; height: calc(100% - 30px); overflow-y: auto;" id="id_messages">
</div>
<!-- The Resource Metadata -->
<div id="metadata"
style="
position: absolute;
right: 10px;
top: 0px;
width: 50%;
max-width: 246px;
background-color: #FBFBFD;
border-left: 1px solid #EEEFF8;
border-bottom: 1px solid #EEEFF8;
overflow-x: auto;
overflow-y: auto;
padding: 10px;
">
<!-- 3 columns -->
<div id="newmeta"
style="
display: grid;
grid-template-columns: 1fr 90px 90px;
gap: 5px 10px;
justify-items: left;">
<b></b>
<b>Request</b>
<b>Response</b>
<label for="content_type_select" style='text-wrap:nowrap'>Content-Type:</label>
<select id="content_type_select" style="width:90px">
<option value=""> </option>
<option value="text/plain">Text</option>
<option value="text/html">HTML</option>
<option value="application/json">JSON</option>
<option value="text/markdown">Markdown</option>
<option value="application/javascript">Javascript</option>
</select>
<span id="content_type_response"></span>
<label for="merge_type_select" style='text-wrap:nowrap'>Merge-Type:</label>
<select id="merge_type_select" style="width:90px">
<option value=""> </option>
<option value="dt">dt</option>
<option value="simpleton">simpleton</option>
</select>
<span id="merge_type_response"></span>
<label for="subscribe_request" style="cursor:pointer">Subscribe:</label>
<input type="checkbox" id="subscribe_request" checked style="margin: 0;cursor:pointer"/>
<span id="subscribe_response"></span>
<label for="version_request">Version:</label>
<input type="text" id="version_request" style="width:86px"/>
<span id="version_response"></span>
<label for="parents_request">Parents:</label>
<input type="text" id="parents_request" style="width:86px" />
<span id="parents_response"></span>
<label id="error_d_label" style="display:none" for="error_d">Error:</label>
<span id="error_d" style="grid-column: 2 / span 2;"></span>
<div></div>
<button id="resubmit_button" style="justify-self: end;font-size:80%">resubmit</button>
<div></div>
</div>
<div id="edit_source_d" style="
margin-top: 10px;
background-color: #EBEBED;
grid-column: 3 / span 3;
display: none;
align-items: center;
padding: 5px;">
<input type="checkbox" id="edit_source" style="margin-right: 5px;cursor:pointer" />
<label for="edit_source" style="cursor:pointer">Edit source</label>
</div>
</div>
</div>
</body>
</html>