Example app demonstrating the NextGraph Discrete (Yjs/Automerge) ORM SDK in Svelte.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
879 B

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script type="module">
// Initialize as early as possible to prevent rendering before redirect to auth.
import { init as initNg, sessionPromise } from "./src/utils/ngSession";
let crdt = import.meta.env.NG_CRDT;
initNg(crdt);
</script>
<link rel="stylesheet" href="./src/expense-tracker.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Expense Tracker in Svelte with Discrete ORM</title>
</head>
<body>
<div id="root"></div>
<script type="module" lang="ts">
import { mount } from "svelte";
import App from "./src/components/Main.svelte";
import { sessionPromise } from "./src/utils/ngSession";
sessionPromise.then(() => {
mount(App, { target: document.getElementById("root") });
});
</script>
</body>
</html>