-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
240 lines (206 loc) · 9.04 KB
/
index.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
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="utf-8">
<base href="./" />
<title>Test Page</title>
<!-- -->
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, viewport-fit=cover, interactive-widget=overlays-content, shrink-to-fit=no">
<!-- -->
<link ref="prefetch" href="/externals/lib/dom.js">
<link ref="prefetch" href="/externals/core/interact.js">
<link ref="prefetch" href="/externals/lib/object.js">
<link ref="prefetch" href="/externals/lib/uniform.js">
<!-- -->
<link ref="prefetch" href="/externals/core/core.js">
<link ref="prefetch" href="/externals/core/design.js">
<link ref="prefetch" href="/externals/core/existence.js">
<link ref="prefetch" href="/externals/core/grid.js">
<link ref="prefetch" href="/externals/core/theme.js">
<!-- -->
<link ref="prefetch" href="/externals/wcomp/image.js">
<link ref="prefetch" href="/externals/wcomp/longtext.js">
<link ref="prefetch" href="/externals/wcomp/rows.js">
<link ref="prefetch" href="/externals/wcomp/scrollbox.js">
<!-- -->
<link rel="icon" type="image/png" href="./favicon.png">
<!-- -->
<script data-owner="runtime" data-type="interact">
// avoid any dragging when no-needed...
document.documentElement.addEventListener("dragstart", (ev) => {
if (ev?.target?.matches?.("div, img, picture, canvas, video, svg")) {
ev.preventDefault();
}
}, {passive: false, capture: true});
// comment to enable native context menu
document.documentElement.addEventListener("contextmenu", (ev)=>{
ev.stopPropagation();
ev.preventDefault();
}, {capture: true});
//
if ("virtualKeyboard" in navigator && navigator?.virtualKeyboard) {
// @ts-ignore
navigator.virtualKeyboard.overlaysContent = true;
}
</script>
<!-- -->
<style data-owner="runtime" data-type="layers">
@layer u2-props, u2-core, u2-zoom, u2-normalize, u2-theme, u2-colors, u2-rows, u2-grid-box, u2-layout;
</style>
<!-- -->
<style data-owner="runtime" data-type="system">
body, html {
padding: 0px;
margin: 0px;
font-family: Calibri, sans-serif;
inline-size: 100dvi;
block-size: 100dvb;
max-inline-size: 100dvi;
max-block-size: 100dvb;
overflow-x: hidden;
}
body {
box-sizing: border-box;
container-type: size;
contain: strict;
}
.u2-test-handler {
cursor: grab;
inline-size: var(--icon-size);
block-size: var(--icon-size);
background-color: black;
aspect-ratio: 1 / 1;
pointer-events: auto;
}
* {
box-sizing: border-box;
transition-behavior: allow-discrete;
interpolate-size: allow-keywords;
}
#root {
inline-size: calc(100% - 2rem);
margin-inline: 1rem;
margin-block: 1rem;
block-size: max-content;
box-sizing: border-box;
pointer-events: none;
}
</style>
</head>
<body data-scheme="solid" data-chroma="0">
<ui-orientbox id="root">
<!-- -->
<div data-name="puk" style="display: inline grid; grid-auto-rows: max-content; grid-template-columns: minmax(0px, max-content) minmax(0px, 1fr); block-size: max-content; inline-size: stretch; inline-size: -webkit-fill-available; inline-size: -moz-available;">
<ui-select-row value="f1"> <ui-icon icon="github" style="padding: 0.5rem; block-size: 2rem;"></ui-icon> <span>Test Text 1</span> </ui-select-row>
<ui-select-row value="f2"> <ui-icon icon="github" style="padding: 0.5rem; block-size: 2rem;"></ui-icon> <span>Test Text 2</span> </ui-select-row>
</div>
<!-- -->
<ui-icon icon="github" style="inline-size: 4rem; block-size: 4rem; padding: 1rem;"></ui-icon>
<!-- -->
<ui-shaped icon="github" data-scheme="inverse" data-chroma="0.1" data-tooltip="Github">
<div class="u2-item-design" data-shape="wavy" data-alpha="1" data-highlight="4" data-highlight-hover="6"></div>
</ui-shaped>
<!-- -->
<ui-button data-name="drop-box" style="inline-size: 8rem; block-size: 2rem;" data-scheme="inverse" data-highlight="8">
<ui-select-row data-highlight-hover="4" value="github"> <ui-icon icon="github"></ui-icon> <span>Github</span> </ui-select-row>
<ui-select-row data-highlight-hover="4" value="gitlab"> <ui-icon icon="gitlab"></ui-icon> <span>Gitlab</span> </ui-select-row>
<!--<label>
<ui-icon icon="gitlab" style="padding: 0.25rem;"></ui-icon>
<span style="flex-grow: 1;">Tribunal</span>
</label>-->
</ui-button>
<!-- -->
<form
data-chroma="0.05" data-highlight="1" data-scheme="solid"
style="inline-size: 100%; block-size: max-content; border-radius: 0.5rem;"
>
<ui-block>
<ui-icon slot="icon" icon="settings"></ui-icon>
<span slot="label">Checkbox Test</span>
<ui-switch>
<ui-icon icon="sun" slot="icon"/>
<input type="checkbox" label="Checkbox-Test" placeholder="Test" name="test"/>
</ui-switch>
</ui-block>
<!-- -->
<ui-block>
<ui-icon slot="icon" icon="settings"></ui-icon>
<span slot="label">Switch Test</span>
<ui-switch>
<ui-icon icon="sun" slot="icon"/>
<input type="radio" label=" " placeholder="Switch" name="switch" value="dark"/>
<input type="radio" label=" " placeholder="Switch" name="switch" value="default"/>
<input type="radio" label=" " placeholder="Switch" name="switch" value="light"/>
</ui-switch>
</ui-block>
<!-- -->
<ui-block>
<ui-icon slot="icon" icon="settings"></ui-icon>
<span slot="label">Volume Test</span>
<ui-switch>
<!--<ui-icon icon="sun" slot="icon"></ui-icon>-->
<span slot="icon" class="ui-indicator"></span>
<input type="number" label=" " placeholder="Number" name="number" value="0" min="-2" max="2" step="1"/>
</ui-switch>
</ui-block>
<!-- -->
<ui-block>
<ui-icon slot="icon" icon="settings"></ui-icon>
<span slot="label">Number Test</span>
<ui-number>
<span slot="icon" class="ui-indicator"></span>
<input type="number" inputmode="numeric" pattern="[0-9]*" size="5" label=" " placeholder="Number" name="number" value="0" min="-2" max="2" step="1"/>
</ui-number>
</ui-block>
<!-- -->
<ui-block class="layout-alt">
<ui-icon slot="icon" icon="settings"></ui-icon>
<span slot="label">Shape Select Test</span>
<div data-name="shape">
<!-- TODO! needs to remake...
<ui-toggle value="f1">
<div data-scheme="solid" data-alpha="1" data-highlight="4" data-highlight-hover="6" slot="bg"></div>
<div data-scheme="inverse" class="u2-item-design" data-shape="wavy" data-alpha="1" data-highlight="4" data-highlight-hover="6"></div>
</ui-toggle>
<ui-toggle value="f2">
<div data-scheme="solid" data-alpha="1" data-highlight="4" data-highlight-hover="6" slot="bg"></div>
<div data-scheme="inverse" class="u2-item-design" data-shape="circle" data-alpha="1" data-highlight="4" data-highlight-hover="6"></div>
</ui-toggle>
-->
</div>
</ui-block>
</form>
</ui-orientbox>
<!-- -->
<ui-statusbar></ui-statusbar>
<ui-tooltip></ui-tooltip>
<!-- -->
<ui-modal type="contextmenu"></ui-modal>
<!-- -->
<ui-frame>
<div slot="ui-title-bar">Ochko</div>
<div class="ui-content" id="settings" data-alpha="1" data-scheme="solid" data-chroma="0" data-highlight="0">RX</div>
</ui-frame>
<!-- -->
<ui-taskbar>
<ui-task label="Settings" icon="settings" data-id="settings"></ui-task>
</ui-taskbar>
<!-- -->
<ui-navbar>
</ui-navbar>
<!-- -->
<ui-modal type="popup" data-name="calendar">
Calendar slot...
</ui-modal>
<!-- -->
<ui-modal type="popup" data-name="app-menu">
App menu slot...
</ui-modal>
<!-- -->
<ui-modal type="popup" data-name="quick-settings">
Quick settings slot...
</ui-modal>
<!-- -->
<script src="./test/UITest.ts" type="module"></script>
</body>
</html>