-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathseeder.html
More file actions
191 lines (182 loc) · 7.17 KB
/
Copy pathseeder.html
File metadata and controls
191 lines (182 loc) · 7.17 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
<!doctype html>
<html lang="en">
<head>
<script>
/* three.ws theme boot — no-flash */ (function () {
document.documentElement.classList.add('js');
try {
var m = localStorage.getItem('twx_theme');
var l =
m === 'auto'
? window.matchMedia &&
window.matchMedia('(prefers-color-scheme: light)').matches
: m === 'light';
document.documentElement.setAttribute('data-theme', l ? 'light' : 'dark');
} catch (e) {
document.documentElement.setAttribute('data-theme', 'dark');
}
})();
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex, nofollow" />
<title data-i18n="admin_seeder.meta_title">Avatar Seeder · Control · three.ws</title>
<meta name="description" content="Admin control room for the three.ws avatar seeder." data-i18n-attr="content:admin_seeder.meta_description"/>
<link rel="stylesheet" href="/nav.css" />
<link rel="stylesheet" href="/src/admin-seeder.css" />
<!-- model-viewer (Google, allow-listed in CSP) powers the live 3D gallery -->
<script
type="module"
src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.5.0/model-viewer.min.js"
></script>
</head>
<body>
<header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<main class="sd-wrap" id="sd-root" aria-busy="true">
<!-- Auth gate -->
<section class="sd-gate" id="sd-gate" hidden>
<div class="sd-gate-mark" aria-hidden="true">◎</div>
<h1 data-i18n="admin_seeder.avatar_seeder">Avatar Seeder</h1>
<p data-i18n="admin_seeder.operator_control_enter_the_secret_to_open">Operator control. Enter the secret to open the control room.</p>
<form id="sd-gate-form" autocomplete="off">
<input
type="password"
id="sd-secret"
class="sd-input"
placeholder="CRON_SECRET"
aria-label="Operator secret"
autocomplete="current-password"
/>
<button type="submit" class="sd-btn sd-btn-primary" data-i18n="admin_seeder.unlock">Unlock</button>
<p class="sd-gate-err" id="sd-gate-err" role="alert" aria-live="assertive"></p>
</form>
</section>
<!-- Control panel -->
<div id="sd-panel" hidden>
<!-- Hero -->
<header class="sd-hero">
<div>
<p class="sd-kicker" data-i18n-html="admin_seeder.loading_headless_forge_lane">
<span class="sd-dot" id="sd-dot"></span>
<span id="sd-state-word">Loading</span> · headless forge lane
</p>
<h1 class="sd-title" data-i18n-html="admin_seeder.avatar_seeder_2">Avatar <em>Seeder</em></h1>
<p class="sd-sub" id="sd-sub" data-i18n="admin_seeder.every_tick_forges_one_fully_rigged_avatar">
Every tick forges one fully-rigged avatar and publishes it,
ready to walk, to the public gallery.
</p>
</div>
<div class="sd-hero-r">
<button
class="sd-btn sd-btn-ghost"
id="sd-run"
title="Force one export right now"
data-i18n="admin_seeder.run_one_now" data-i18n-attr="title:admin_seeder.force_one_export_right_now_title">
◎ Run one now
</button>
<button
class="sd-arm"
id="sd-arm"
role="switch"
aria-checked="false"
aria-label="Arm the seeder"
data-i18n-html="admin_seeder.disabled" data-i18n-attr="aria-label:admin_seeder.arm_the_seeder_arialabel">
<span class="sd-arm-lbl" id="sd-arm-lbl">Disabled</span>
<span class="sd-arm-track"><span class="sd-arm-knob"></span></span>
</button>
</div>
</header>
<!-- Circuit breaker -->
<div class="sd-breaker" id="sd-breaker" hidden role="alert">
<span aria-hidden="true">⚠</span>
<span id="sd-breaker-txt" data-i18n="admin_seeder.circuit_breaker_tripped">Circuit breaker tripped.</span>
</div>
<!-- Stats -->
<dl class="sd-stats" id="sd-stats">
<div class="sd-stat sd-stat--lead">
<dt data-i18n="admin_seeder.seeded_24h">Seeded · 24h</dt>
<dd id="sd-s-24h">—</dd>
<small id="sd-s-24h-sub" data-i18n="admin_seeder.last_day">last day</small>
</div>
<div class="sd-stat">
<dt data-i18n="admin_seeder.total_rigged_avatars">Total rigged avatars</dt>
<dd id="sd-s-total">—</dd>
<small id="sd-s-total-sub" data-i18n="admin_seeder.all_time">all time</small>
</div>
<div class="sd-stat">
<dt data-i18n="admin_seeder.rig_rate">Rig rate</dt>
<dd id="sd-s-rig">—</dd>
<small data-i18n="admin_seeder.skeleton_confirmed">skeleton-confirmed</small>
</div>
<div class="sd-stat">
<dt data-i18n="admin_seeder.next_export">Next export</dt>
<dd id="sd-s-next">—</dd>
<small id="sd-s-next-sub" data-i18n="admin_seeder.cadence_60s">cadence 60s</small>
</div>
<div class="sd-stat">
<dt data-i18n="admin_seeder.last_seeded">Last seeded</dt>
<dd id="sd-s-last" style="font-size: 1.15rem">—</dd>
<small id="sd-s-last-sub"></small>
</div>
</dl>
<!-- Live gallery -->
<section class="sd-section">
<div class="sd-section-h">
<div>
<h2 data-i18n="admin_seeder.freshly_forged">Freshly forged</h2>
<p data-i18n="admin_seeder.real_seeded_avatars_drag_to_orbit_every">
Real seeded avatars — drag to orbit. Every one is rigged and
animation-ready.
</p>
</div>
<span class="sd-section-meta" id="sd-gallery-meta">—</span>
</div>
<div class="sd-gallery" id="sd-gallery" aria-live="polite"></div>
</section>
<!-- Runtime flags -->
<section class="sd-section">
<div class="sd-section-h">
<div>
<h2 data-i18n="admin_seeder.runtime_flags">Runtime flags</h2>
<p data-i18n="admin_seeder.db_backed_switches_flip_instantly_no_redeplo">DB-backed switches — flip instantly, no redeploy.</p>
</div>
<a
class="sd-section-meta"
href="/docs/ops/runtime-flags.md"
target="_blank"
rel="noopener"
style="text-decoration: none"
data-i18n="admin_seeder.docs">docs ↗</a
>
</div>
<div class="sd-flags" id="sd-flags"></div>
</section>
</div>
</main>
<!-- Arm confirmation modal -->
<div
class="sd-modal"
id="sd-modal"
role="dialog"
aria-modal="true"
aria-labelledby="sd-modal-title"
>
<div class="sd-modal-card">
<h3 id="sd-modal-title" data-i18n="admin_seeder.arm_the_seeder">Arm the seeder?</h3>
<p id="sd-modal-body" data-i18n="admin_seeder.the_seeder_will_forge_and_publish_a">
The seeder will forge and publish a fully-rigged avatar to the public
gallery every minute, using the headless avatar forge. You can disarm any time.
</p>
<div class="sd-modal-actions">
<button class="sd-btn sd-btn-ghost" id="sd-modal-cancel" data-i18n="admin_seeder.cancel">Cancel</button>
<button class="sd-btn sd-btn-primary" id="sd-modal-go" data-i18n="admin_seeder.arm_start">Arm & start</button>
</div>
</div>
</div>
<div class="sd-toast" id="sd-toast" role="status" aria-live="polite"></div>
<script type="module" src="/src/admin-seeder.js"></script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
</body>
</html>