Skip to content

Commit 84e0e40

Browse files
committed
Borrow more complete todo app from upstream TanStack/db as a more attractive example.
1 parent 47c2225 commit 84e0e40

19 files changed

+340
-1593
lines changed

examples/local-first/index.html

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<!doctype html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="icon" href="data:image/png;base64,iVBORw0KGgo=" />
7+
<link href="/src/index.css" rel="stylesheet" />
8+
<title>Local-First Todo Example</title>
9+
</head>
310

4-
<head>
5-
<meta charset="UTF-8" />
6-
<link rel="icon" href="data:image/png;base64,iVBORw0KGgo=">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Local-First Example</title>
9-
</head>
10-
11-
<body>
12-
<div id="root"></div>
13-
<script type="module" src="/src/main.tsx"></script>
14-
</body>
15-
11+
<body>
12+
<div id="root"></div>
13+
<script type="module" src="/src/index.tsx"></script>
14+
</body>
1615
</html>

examples/local-first/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919
"@tanstack/trailbase-db-collection": "^0.0.3",
2020
"react": "^19.1.0",
2121
"react-dom": "^19.1.0",
22+
"tailwindcss": "^4.1.11",
2223
"trailbase": "workspace:*"
2324
},
2425
"devDependencies": {
2526
"@eslint/js": "^9.31.0",
27+
"@tailwindcss/vite": "^4.1.11",
2628
"@types/react": "^19.1.8",
2729
"@types/react-dom": "^19.1.6",
2830
"@vitejs/plugin-react": "^4.7.0",

examples/local-first/src/App.css

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)