index.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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" />
  6. <title>codegraph telemetry</title>
  7. <link rel="stylesheet" href="/styles.css" />
  8. </head>
  9. <body>
  10. <header class="masthead">
  11. <div>
  12. <h1>codegraph telemetry</h1>
  13. <p class="subtitle">Anonymous usage from the public engine, straight out of D1.</p>
  14. </div>
  15. <form method="post" action="/logout">
  16. <button type="submit" class="secondary">Sign out</button>
  17. </form>
  18. </header>
  19. <main>
  20. <!-- CG-13 replaces this section with the Chart.js views. Until then it is a
  21. live proof that the session gate, the D1 binding and the asset
  22. pipeline all work end to end. -->
  23. <section class="panel">
  24. <h2>Connection</h2>
  25. <dl class="facts">
  26. <dt>Database</dt>
  27. <dd id="db-status">Checking…</dd>
  28. <dt>Latest event</dt>
  29. <dd id="latest-event">—</dd>
  30. <dt>Latest rollup</dt>
  31. <dd id="latest-rollup">—</dd>
  32. <dt>Chart library</dt>
  33. <dd id="chart-status">Checking…</dd>
  34. </dl>
  35. </section>
  36. </main>
  37. <script src="/vendor/chart.umd.js"></script>
  38. <script type="module" src="/app.js"></script>
  39. </body>
  40. </html>