Add the web runtime (DOM patcher, events, host bridge) and a browser e2e
web/ is the js-target MoonBit program: it renders app.view into the DOM with a keyed patcher, turns pointer/touch/key events into app input, runs effects against window.Android or demo stand-ins, and exposes window.launcher.* for the Android shell. tests/e2e.cjs ports the legacy Playwright flows and passes against the build; scripts/build-web.sh assembles dist/web. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28e0284d9b
commit
637129aa4e
10 files changed
+1554
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="dark">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<title>ultra · Launcher</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- The page is the MoonBit program (launcher.js, built from web/*.mbt): it renders into
|
||||
#app. On a phone the Java shell serves this folder from the APK's assets, answers
|
||||
apps.json / widgets.json and provides window.Android; in a desktop browser the demo
|
||||
JSON files next to this page are used and a toast stands in for each launch. -->
|
||||
<main id="app"></main>
|
||||
<div id="toast" role="status"></div>
|
||||
<script type="module" src="launcher.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user