-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoption.html
More file actions
192 lines (168 loc) · 4.67 KB
/
option.html
File metadata and controls
192 lines (168 loc) · 4.67 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Github Aid options menu</title>
<script src="./option.js" type="module"></script>
<link rel="stylesheet" href="../css/modern-normalize.min.css">
<style>
html,
body {
max-width: 480px;
min-width: calc(min(24rem, 380px));
}
body {
font-family: monospace;
font-size: 1rem;
margin: 0;
padding: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
}
@media screen and (max-width: 460px) {
html,
body {
width: 100vw;
max-width: calc(min(100vw, 420px));
min-width: 320px;
}
}
input[type="text"],
input[type="number"] {
width: 100%;
padding: 0.5rem 0rem;
margin: 0.5rem 0rem;
}
input[type="number"] {
text-align: center;
}
button {
position: relative;
background-color: #7a7a7a;
color: white;
border: none;
padding: 0.5rem 0rem;
text-align: center;
cursor: pointer;
border-radius: 0.5rem;
}
button:hover {
filter: brightness(90%);
}
button:active {
scale: 0.95;
}
div {
position: relative;
border: 1px solid #ccc;
border-radius: 5px;
margin-top: 1rem;
padding: 0.5rem;
}
#layout_setup {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
gap: 3px 3px;
grid-auto-flow: row;
}
.layout-cell {
position: relative;
width: 100%;
background-color: cornflowerblue;
}
.layout-cell>select {
display: block;
width: 100%;
height: 2rem;
background: transparent;
text-align: center;
}
.disabled {
background-color: slategray !important;
}
.footer {
text-align: center;
}
.footer ul {
font-size: medium;
text-align: start;
list-style-position: inside;
padding: 0;
}
</style>
</head>
<body>
<h2>Github Aid options</h2>
<div style="
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 1fr 1fr 1fr;
gap: 0.5rem;
">
<button id="storage_reset" style="background-color: coral;">reset</button>
<button id="storage_load" style="background-color: cornflowerblue;">reload</button>
<button id="storage_save" style="background-color: limegreen;">save</button>
</div>
<div>
<label for="token">Enter Github Access Token</label>
<input type="text" id="token" name="token">
</div>
<div id="api_mode">
<p>Select Github API mode to use</p>
<input type="radio" id="use_rest_api" name="api_mode" value="rest">
<label for="use_rest_api">REST (access token is optional)</label><br>
<input type="radio" id="use_graphql_api" name="api_mode" value="graphql">
<label for="use_graphql_api">GraphQL (requires an access token)</label><br>
</div>
<div>
<label for="recursion_limit">Enter Recursion Limit for folders</label>
<input type="number" id="recursion_limit" name="recursion_limit" value="5" min="1" max="16">
</div>
<div>
<label for="layout_setup">Configure the injected GUI layout</label>
<div id="layout_setup">
<!-- Nine of the following cells get injected dynamically during page load: -->
<!--span class="layout-cell">
<select name="feature-select">
<option value="none">no feature</option>
<option value="diskspace">diskspace</option>
<option value="size">size</option>
<option value="download">download</option>
</select>
<select name="span-select">
<option value="0">zero span</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</span -->
</div>
</div>
<div class="footer">
<p>
<a href="https://github.com/omar-azmi/github_aid_ts/" target="_blank" rel="noopener">star on github</a>
OR
<a href="./seppuku.html" target="_blank" rel="noopener">commit seppuku</a>
</p>
<p>
<a href="https://github.com/omar-azmi/github_aid_ts?tab=readme-ov-file#how-to-get-a-github-access-token" target="_blank" rel="noopener">
guide on how to get a personal access token
</a>
</p>
<hr>
open-source libraries embedded:
<ul>
<li><a href="https://github.com/sindresorhus/modern-normalize" target="_blank" rel="noopener">modern-normalize v2.0.0</a> (MIT License)</li>
<li><a href="https://github.com/omar-azmi/kitchensink_ts" target="_blank" rel="noopener">kitchensink_ts v0.7.5</a></li>
</ul>
open-source tools used:
<ul>
<li><a href="https://github.com/evanw/esbuild" target="_blank" rel="noopener">esbuild</a></li>
<li><a href="https://github.com/lucacasonato/esbuild_deno_loader" target="_blank" rel="noopener">esbuild_deno_loader</a></li>
<li><a href="https://github.com/denoland/deno" target="_blank" rel="noopener">Deno</a></li>
</ul>
</div>
</body>
</html>