forked from MoxAssault/MoxAssault.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-runtime.html
More file actions
189 lines (175 loc) · 9.71 KB
/
Copy pathtest-runtime.html
File metadata and controls
189 lines (175 loc) · 9.71 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
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="dark light">
<title>VPXS YML Builder</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css.src/1variables.css">
<link rel="stylesheet" href="css.src/base.css">
<link rel="stylesheet" href="css.src/search.css">
<link rel="stylesheet" href="css.src/card.css">
<link rel="stylesheet" href="css.src/category.css">
<link rel="stylesheet" href="css.src/modal.css">
</head>
<body>
<main class="app" id="app">
<header class="app-header">
<a class="brand" href="./" aria-label="VPXS YML Builder home">
<span class="brand-bolt" aria-hidden="true">⚡</span>
<span>VPXS YML Builder</span>
</a>
<div class="header-search-wrap">
<p class="search-status" id="searchStatus" role="status" aria-live="polite"></p>
<form class="search-box compact-search" id="searchForm" role="search" novalidate>
<label class="visually-hidden" for="idInput">VPS table ID or table name</label>
<input
id="idInput"
name="query"
type="search"
placeholder="Search VPS table ID or name…"
autocomplete="off"
spellcheck="false"
aria-autocomplete="list"
aria-controls="suggestions"
aria-expanded="false"
>
<button id="searchBtn" type="submit">Search</button>
</form>
<div id="suggestions" class="suggestions" role="listbox" aria-label="Search suggestions"></div>
</div>
<div class="header-actions">
<button class="icon-btn" id="recentBtn" type="button" aria-haspopup="dialog">Recent</button>
<button class="icon-btn" id="helpBtn" type="button" aria-haspopup="dialog">Help</button>
<button class="theme-toggle" id="themeToggle" type="button" aria-label="Switch to light theme" aria-pressed="false">
<span class="theme-knob" id="themeKnob" aria-hidden="true">🌙</span>
</button>
</div>
</header>
<section class="empty-state" id="emptyState">
<div class="empty-state-icon" aria-hidden="true">⚡</div>
<h1>Build VPS YML files without the screen marathon.</h1>
<p>Search for a table above, choose its assets, then edit everything in one compact workspace.</p>
<span class="shortcut-hint"><kbd>/</kbd> focuses search</span>
</section>
<section class="workspace" id="workspace" hidden aria-live="polite">
<div class="workspace-main">
<article class="table-strip" id="tableStrip">
<button class="text-btn table-clear-button" id="changeTableBtn" type="button">Clear</button>
</article>
<section class="workspace-section asset-section" aria-label="Assets Panel">
<div class="section-heading-row compact-heading">
<div>
<p class="eyebrow">Assets Panel</p>
</div>
<div class="table-badges" id="tableBadges" aria-label="Current asset selections"></div>
</div>
<div class="asset-matrix" id="assetMatrix"></div>
</section>
<section class="workspace-section builder-section" id="builderSection" hidden aria-labelledby="builderHeading">
<div class="section-heading-row compact-heading builder-toolbar">
<div>
<p class="eyebrow" id="builderHeading">Configuration Panel</p>
</div>
</div>
<div class="accordion-stack" id="accordionStack"></div>
</section>
</div>
<aside class="preview-drawer live-yml-panel" id="previewDrawer" aria-labelledby="previewHeading">
<div class="preview-drawer-header">
<div id="previewHeading" class="eyebrow">
<span class="preview-dot state-neutral" id="previewStatusDot" role="img" aria-label="Overall asset status: No table loaded"></span>
YAML Generated Preview
</div>
<span id="previewLineCount" class="mono">1 LINE</span>
</div>
<div class="preview-actions" aria-label="YAML actions">
<button class="text-btn" id="validateBtn" type="button">Validate</button>
<button class="text-btn" id="drawerCopyBtn" type="button">Copy</button>
<button class="text-btn preview-primary" id="downloadNextBtn" type="button">Download & Clear</button>
</div>
<pre id="previewYaml" class="mono" tabindex="0"></pre>
</aside>
</section>
<footer class="site-footer">
<span>VPXS YML Builder</span>
<span aria-hidden="true">•</span>
<span>Powered by the Virtual Pinball Spreadsheet database</span>
</footer>
</main>
<dialog class="app-dialog" id="helpDialog" aria-labelledby="helpTitle">
<div class="dialog-header">
<div>
<p class="eyebrow">How it works</p>
<h2 id="helpTitle">Fast repeat-use workflow</h2>
</div>
<button class="dialog-close" data-close-dialog type="button" aria-label="Close help">×</button>
</div>
<div class="dialog-body">
<ol>
<li>Search for a table, then select its VPX file and any optional assets.</li>
<li>Use the compact configuration tabs to enter only the fields you need. Advanced Config panels start open.</li>
<li>Your current build autosaves locally so a refresh does not wipe it out.</li>
<li>Use <strong>Download & Clear</strong> to save the YML, clear the current build, and return focus to search.</li>
</ol>
<div class="shortcut-grid">
<span><kbd>/</kbd> Focus search</span>
<span><kbd>Ctrl</kbd> + <kbd>Enter</kbd> Validate</span>
<span><kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Enter</kbd> Download & clear</span>
<span><kbd>Esc</kbd> Close an open dialog</span>
</div>
</div>
</dialog>
<dialog class="app-dialog" id="validationDialog" aria-labelledby="validationTitle">
<div class="dialog-header">
<div>
<p class="eyebrow">Build check</p>
<h2 id="validationTitle">Validation results</h2>
</div>
<button class="dialog-close" data-close-dialog type="button" aria-label="Close validation results">×</button>
</div>
<div class="dialog-body" id="validationBody"></div>
</dialog>
<dialog class="app-dialog" id="recentDialog" aria-labelledby="recentTitle">
<div class="dialog-header recent-dialog-header">
<h2 id="recentTitle">Recent Build History</h2>
<div class="dialog-header-actions">
<button class="text-btn danger-btn" id="clearHistoryBtn" type="button">Clear History</button>
<button class="dialog-close" data-close-dialog type="button" aria-label="Close recent build history">×</button>
</div>
</div>
<div class="dialog-body" id="recentBody"></div>
</dialog>
<script>
window.__VPS_DB_OVERRIDE__ = [
{
id: "G43W0j", name: "Medieval Madness", manufacturer: "Williams", year: 1997, updatedAt: "2026-07-01T12:00:00Z",
theme: ["Fantasy", "Knights"],
tableFiles: [
{ id: "vpxA1", createdAt: "2026-06-01T00:00:00Z", authors: ["JPSalas", "Wylte"], version: "2.5", tableFormat: "VPX", fileName: "mm.vpx", updatedAt: "2026-06-01T00:00:00Z", imgUrl: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='450'%3E%3Crect width='100%25' height='100%25' fill='%23151a24'/%3E%3Crect x='18' y='18' width='264' height='414' rx='16' fill='%232fe6d6'/%3E%3Ctext x='150' y='235' text-anchor='middle' font-family='Arial' font-size='54' font-weight='700' fill='%230b0e14'%3EVPX%3C/text%3E%3C/svg%3E" },
{ id: "vpxA2", createdAt: "2026-05-15T00:00:00Z", authors: ["VPW"], version: "3.0", tableFormat: "VPX", fileName: "mm-vpw.vpx" },
{ id: "fxExcluded", version: "1.0", tableFormat: "FX3" },
{ id: "patchForA1", parentId: "vpxA1", features: ["VPU Patch"], version: "1.1", authors: ["VPU Team"] },
{ id: "patchForA2", parentID: "vpxA2", Features: ["VPU Patch"], version: "1.2", authors: ["VPU Team"] },
{ id: "vpxBroken", version: "0.1", broken: true }
],
b2sFiles: [{ id: "b2sA1", createdAt: "2026-04-02T00:00:00Z", authors: ["Cyberpez"], version: "1.2", imgUrl: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='300'%3E%3Crect width='100%25' height='100%25' fill='%23151a24'/%3E%3Crect x='18' y='18' width='464' height='264' rx='16' fill='%23ff9f1c'/%3E%3Ctext x='250' y='170' text-anchor='middle' font-family='Arial' font-size='64' font-weight='700' fill='%23181007'%3EB2S%3C/text%3E%3C/svg%3E" }],
romFiles: [{ id: "romA1", createdAt: "2026-03-03T00:00:00Z", version: "L-2" }],
altColorFiles: [{ id: "colA1", createdAt: "2026-02-04T00:00:00Z", authors: ["Nzgundam"] }],
pupPackFiles: [{ id: "pupA1", createdAt: "2026-01-05T00:00:00Z", authors: ["RASTER"], version: "1.0" }],
vpuPatchFiles: [{ id: "patchA1", createdAt: "2025-12-06T00:00:00Z", authors: ["VPU Team"], version: "1.0" }]
},
{ id: "X92Lk9", name: "Attack From Mars", manufacturer: "Bally", year: 1995, tableFiles: [{id:"vpxB1",version:"1.0"}], b2sFiles: [], romFiles: [], altColorFiles: [], pupPackFiles: [], vpuPatchFiles: [] }
];
</script>
<script src="js.src/fields.js"></script>
<script src="js.src/utilities.js"></script>
<script src="js.src/apiHelper.js"></script>
<script src="js.src/searchHelper.js"></script>
<script src="js.src/uiHelper.js"></script>
<script src="js.src/main.js"></script>
</body>
</html>