| Sean McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <title>sketch-container-status demo</title> |
| 4 | <link rel="stylesheet" href="demo.css" /> |
| Sean McCullough | 71941bd | 2025-04-18 13:31:48 -0700 | [diff] [blame] | 5 | <script |
| 6 | src="/dist/web-components/sketch-container-status.js" |
| 7 | type="module" |
| 8 | ></script> |
| Sean McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 9 | |
| 10 | <script> |
| 11 | document.addEventListener("DOMContentLoaded", () => { |
| Sean McCullough | 71941bd | 2025-04-18 13:31:48 -0700 | [diff] [blame] | 12 | const containerStatus = document.querySelector("#status-2"); |
| Sean McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 13 | containerStatus.state = { |
| Sean McCullough | 71941bd | 2025-04-18 13:31:48 -0700 | [diff] [blame] | 14 | hostname: "example.hostname", |
| 15 | initial_commit: "decafbad", |
| Sean McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 16 | message_count: 27, |
| Sean McCullough | 71941bd | 2025-04-18 13:31:48 -0700 | [diff] [blame] | 17 | os: "linux", |
| Sean McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 18 | total_usage: { |
| Sean McCullough | 71941bd | 2025-04-18 13:31:48 -0700 | [diff] [blame] | 19 | start_time: "around lunch", |
| 20 | messages: 1337, |
| Sean McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 21 | 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 McCullough | 71941bd | 2025-04-18 13:31:48 -0700 | [diff] [blame] | 26 | }, |
| 27 | working_dir: "/app", |
| Sean McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 28 | }; |
| 29 | }); |
| 30 | </script> |
| Sean McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 31 | </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 McCullough | 86b5686 | 2025-04-18 13:04:03 -0700 | [diff] [blame] | 40 | </body> |
| Sean McCullough | 71941bd | 2025-04-18 13:31:48 -0700 | [diff] [blame] | 41 | </html> |