feat: add tui app

This commit is contained in:
Max Koon
2025-11-14 13:26:15 -05:00
parent 058f2bb94f
commit 5b14b4e7a4
22 changed files with 2395 additions and 128 deletions

20
apps/tui/src/index.tsx Normal file
View File

@@ -0,0 +1,20 @@
import { RGBA, TextAttributes, createCliRenderer } from "@opentui/core";
import { createRoot } from "@opentui/react";
import { Settings } from "@money/ui";
import { ZeroProvider } from "@rocicorp/zero/react";
import { schema } from '@money/shared';
const userID = "anon";
const server = "http://laptop:4848";
const auth = undefined;
function Main() {
return (
<ZeroProvider {...{ userID, auth, server, schema }}>
<Settings />
</ZeroProvider>
);
}
const renderer = await createCliRenderer();
createRoot(renderer).render(<Main />);