Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

index.html

48 lines1.3 KB

1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <title>Tauri SQLite E2E</title>
7 </head>
8 <body>
9 <main>
10 <p id="status">Booting Tauri persisted collection e2e runtime</p>
11 <pre id="details"></pre>
12 </main>
13 <script type="module">
14 const reportUrl = '%VITE_TANSTACK_DB_TAURI_E2E_REPORT_URL%'
15​
16 if (reportUrl && !reportUrl.startsWith('%')) {
17 fetch(reportUrl, {
18 method: 'POST',
19 headers: {
20 'content-type': 'application/json',
21 },
22 body: JSON.stringify({
23 kind: 'status',
24 phase: 'html-loaded',
25 }),
26 }).catch(() => {})
27 }
28​
29 import('/src/main.ts').catch((error) => {
30 if (reportUrl && !reportUrl.startsWith('%')) {
31 fetch(reportUrl, {
32 method: 'POST',
33 headers: {
34 'content-type': 'application/json',
35 },
36 body: JSON.stringify({
37 kind: 'status',
38 phase: 'main-import-failed',
39 details: {
40 message: String(error?.message ?? error),
41 },
42 }),
43 }).catch(() => {})
44 }
45 })
46 </script>
47 </body>
48</html>