blob: e18440da019b1c4181e49a812225d6d1dc58e2b7 [file] [log] [blame]
Sean McCullough86b56862025-04-18 13:04:03 -07001<html>
2 <head>
3 <title>sketch-container-status demo</title>
4 <link rel="stylesheet" href="demo.css" />
Pokey Rulee2a8c2f2025-04-23 15:09:25 +01005 <script type="module" src="../sketch-container-status.ts"
Sean McCullough71941bd2025-04-18 13:31:48 -07006 ></script>
Sean McCullough86b56862025-04-18 13:04:03 -07007
8 <script>
9 document.addEventListener("DOMContentLoaded", () => {
Sean McCullough71941bd2025-04-18 13:31:48 -070010 const containerStatus = document.querySelector("#status-2");
Sean McCullough86b56862025-04-18 13:04:03 -070011 containerStatus.state = {
Sean McCullough71941bd2025-04-18 13:31:48 -070012 hostname: "example.hostname",
13 initial_commit: "decafbad",
Sean McCullough86b56862025-04-18 13:04:03 -070014 message_count: 27,
Sean McCullough71941bd2025-04-18 13:31:48 -070015 os: "linux",
Sean McCullough86b56862025-04-18 13:04:03 -070016 total_usage: {
Sean McCullough71941bd2025-04-18 13:31:48 -070017 start_time: "around lunch",
18 messages: 1337,
Sean McCullough86b56862025-04-18 13:04:03 -070019 input_tokens: 3,
20 output_tokens: 1000,
21 cache_read_input_tokens: 28,
22 cache_creation_input_tokens: 12354,
23 total_cost_usd: 2.03,
Sean McCullough71941bd2025-04-18 13:31:48 -070024 },
25 working_dir: "/app",
Sean McCullough86b56862025-04-18 13:04:03 -070026 };
27 });
28 </script>
Sean McCullough86b56862025-04-18 13:04:03 -070029 </head>
30 <body>
31 <h1>sketch-container-status demo</h1>
32
33 Empty:
34 <sketch-container-status id="status-1"></sketch-container-status>
35
36 With state fields set:
37 <sketch-container-status id="status-2"></sketch-container-status>
Sean McCullough86b56862025-04-18 13:04:03 -070038 </body>
Sean McCullough71941bd2025-04-18 13:31:48 -070039</html>