[IMP] OneBSpace rebrand of OpenCADStudio -> OneCAD Draft (wordmark, about, crash banner, 23 locales; strip SW/manifest; air-gap: update check, donations, discussions, external help links)

This commit is contained in:
Z User committed 2026-10-18 21:25:27 +00:00
1 parent c9e763006e
commit 193f2ae9ab
57 files changed
+760 -1091

No files matched your search

+4 -20
View File
@@ -1,12 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<link rel="manifest" href="app.webmanifest" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex, follow" />
<meta name="theme-color" content="#1e1e1e" />
<title>Open CAD Studio Web App</title>
<title>OneCAD Draft</title>
<link data-trunk rel="icon" href="assets/logo.svg" />
<style>
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #1e1e1e; }
@@ -46,32 +45,17 @@
<link data-trunk rel="copy-file" href="web/videos.json" />
<link data-trunk rel="copy-file" href="web/locale-labels.json" />
<link data-trunk rel="copy-file" href="web/ocs-control.js" />
<link data-trunk rel="copy-file" href="web/sw.js" />
<link data-trunk rel="copy-file" href="web/app.webmanifest" />
<link data-trunk rel="copy-file" href="assets/logo.svg" />
</head>
<body>
<div id="loading">
<div class="spinner"></div>
<div class="title">Open <span>CAD</span> Studio</div>
<div class="title">One<span>CAD</span> Draft</div>
<div class="sub">Loading…</div>
</div>
<script src="ocs-control.js" defer></script>
<script>
// Offline support: register the service worker. It is copied next to
// this page by Trunk (see the copy-file link in <head>), so the
// relative URL resolves to /app/sw.js and the registration scope is
// /app/ — the whole app. Registered immediately (not on load) so the
// worker starts capturing this visit's asset requests as early as
// possible. sw.js never reloads the page on update: a new worker
// waits until every tab on the old version has closed.
(() => {
if (!("serviceWorker" in navigator)) return;
navigator.serviceWorker.register("sw.js").catch(error => {
console.warn("service worker registration failed; offline support disabled:", error);
});
})();
</script>
<!-- OneBSpace (OneCAD Draft): service-worker registration removed — air-gapped
embedded build; the app shell is served (and cached) by the host. -->
<script>
(() => {
const splash = document.getElementById("loading");