mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-03 12:16:22 -04:00
update api surface for create_dht_record with owner
This commit is contained in:
parent
bebdbee41b
commit
69378ca9b0
20 changed files with 206 additions and 88 deletions
|
@ -24,20 +24,25 @@
|
|||
<!-- iOS meta tags & icons -->
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<meta name="apple-mobile-web-app-title" content="ftest">
|
||||
<meta name="apple-mobile-web-app-title" content="Veilid-flutter Example">
|
||||
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" type="image/png" href="favicon.png" />
|
||||
|
||||
<title>ftest</title>
|
||||
<title>Veilid-flutter Example</title>
|
||||
<link rel="manifest" href="manifest.json">
|
||||
|
||||
<!-- Load WASM modules -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script type="module">
|
||||
{{flutter_js}}
|
||||
{{flutter_build_config}}
|
||||
|
||||
import * as veilid_wasm_module from './wasm/veilid_wasm.js';
|
||||
|
||||
async function run() {
|
||||
async function initVeilidWASM() {
|
||||
// save the wasm exports
|
||||
window.veilid_wasm = veilid_wasm_module;
|
||||
// init the js module
|
||||
|
@ -45,13 +50,23 @@
|
|||
// init the wasm library
|
||||
await veilid_wasm_module.initialize_veilid_wasm();
|
||||
}
|
||||
run();
|
||||
|
||||
const loading = document.createElement('div');
|
||||
document.body.appendChild(loading);
|
||||
loading.textContent = "Loading Entrypoint...";
|
||||
_flutter.loader.load({
|
||||
onEntrypointLoaded: async function (engineInitializer) {
|
||||
loading.textContent = "Initializing engine...";
|
||||
const appRunner = await engineInitializer.initializeEngine();
|
||||
|
||||
loading.textContent = "Initializing Veilid...";
|
||||
await initVeilidWASM();
|
||||
|
||||
loading.textContent = "Running example...";
|
||||
await appRunner.runApp();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="flutter_bootstrap.js" async></script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue