|
6 | 6 | { key: "port", value: "Port" }, |
7 | 7 | { key: "rule", value: "Rule" }, |
8 | 8 | { key: "overflow", empty: true }, |
9 | | - ]; |
| 9 | + ] as const; |
10 | 10 |
|
11 | 11 | const rows = [ |
12 | | - { id: "a", name: "Load Balancer 3", port: 3000, rule: "Round robin" }, |
13 | | - { id: "b", name: "Load Balancer 1", port: 443, rule: "Round robin" }, |
14 | | - { id: "c", name: "Load Balancer 2", port: 80, rule: "DNS delegation" }, |
15 | | - { id: "d", name: "Load Balancer 6", port: 3000, rule: "Round robin" }, |
16 | | - { id: "e", name: "Load Balancer 4", port: 443, rule: "Round robin" }, |
17 | | - { id: "f", name: "Load Balancer 5", port: 80, rule: "DNS delegation" }, |
| 12 | + { |
| 13 | + id: "a", |
| 14 | + name: "Load Balancer 3", |
| 15 | + port: 3000, |
| 16 | + rule: "Round robin", |
| 17 | + overflow: null, |
| 18 | + }, |
| 19 | + { |
| 20 | + id: "b", |
| 21 | + name: "Load Balancer 1", |
| 22 | + port: 443, |
| 23 | + rule: "Round robin", |
| 24 | + overflow: null, |
| 25 | + }, |
| 26 | + { |
| 27 | + id: "c", |
| 28 | + name: "Load Balancer 2", |
| 29 | + port: 80, |
| 30 | + rule: "DNS delegation", |
| 31 | + overflow: null, |
| 32 | + }, |
| 33 | + { |
| 34 | + id: "d", |
| 35 | + name: "Load Balancer 6", |
| 36 | + port: 3000, |
| 37 | + rule: "Round robin", |
| 38 | + overflow: null, |
| 39 | + }, |
| 40 | + { |
| 41 | + id: "e", |
| 42 | + name: "Load Balancer 4", |
| 43 | + port: 443, |
| 44 | + rule: "Round robin", |
| 45 | + overflow: null, |
| 46 | + }, |
| 47 | + { |
| 48 | + id: "f", |
| 49 | + name: "Load Balancer 5", |
| 50 | + port: 80, |
| 51 | + rule: "DNS delegation", |
| 52 | + overflow: null, |
| 53 | + }, |
18 | 54 | ]; |
19 | 55 | </script> |
20 | 56 |
|
21 | | -<DataTable sortable headers="{headers}" rows="{rows}"> |
| 57 | +<DataTable |
| 58 | + sortable |
| 59 | + headers="{headers}" |
| 60 | + rows="{rows}" |
| 61 | +> |
22 | 62 | <span slot="cell" let:cell> |
23 | 63 | {#if cell.key === "overflow"} |
24 | 64 | <OverflowMenu flipped> |
|
0 commit comments