blob: a35e881cd4265eed66be88b95ba664419ba39bb2 [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" />
Sean McCullough71941bd2025-04-18 13:31:48 -07005 <script
6 src="/dist/web-components/sketch-container-status.js"
7 type="module"
8 ></script>
Sean McCullough86b56862025-04-18 13:04:03 -07009
10 <script>
11 document.addEventListener("DOMContentLoaded", () => {
Sean McCullough71941bd2025-04-18 13:31:48 -070012 const containerStatus = document.querySelector("#status-2");
Sean McCullough86b56862025-04-18 13:04:03 -070013 containerStatus.state = {
Sean McCullough71941bd2025-04-18 13:31:48 -070014 hostname: "example.hostname",
15 initial_commit: "decafbad",
Sean McCullough86b56862025-04-18 13:04:03 -070016 message_count: 27,
Sean McCullough71941bd2025-04-18 13:31:48 -070017 os: "linux",
Sean McCullough86b56862025-04-18 13:04:03 -070018 total_usage: {
Sean McCullough71941bd2025-04-18 13:31:48 -070019 start_time: "around lunch",
20 messages: 1337,
Sean McCullough86b56862025-04-18 13:04:03 -070021 input_tokens: 3,
22 output_tokens: 1000,
23 cache_read_input_tokens: 28,
24 cache_creation_input_tokens: 12354,
25 total_cost_usd: 2.03,
Sean McCullough71941bd2025-04-18 13:31:48 -070026 },
27 working_dir: "/app",
Sean McCullough86b56862025-04-18 13:04:03 -070028 };
29 });
30 </script>
Sean McCullough86b56862025-04-18 13:04:03 -070031 </head>
32 <body>
33 <h1>sketch-container-status demo</h1>
34
35 Empty:
36 <sketch-container-status id="status-1"></sketch-container-status>
37
38 With state fields set:
39 <sketch-container-status id="status-2"></sketch-container-status>
Sean McCullough86b56862025-04-18 13:04:03 -070040 </body>
Sean McCullough71941bd2025-04-18 13:31:48 -070041</html>