(path)
| 389 | const query = `from=${FROM}&to=${TO}`; |
| 390 | const fetched = new Map(); |
| 391 | const apiGet = async (path) => { |
| 392 | if (!fetched.has(path)) { |
| 393 | fetched.set( |
| 394 | path, |
| 395 | fetch(`${BASE}${path}`, { headers: { cookie: `${name}=${value}` } }).then((r) => r.json()), |
| 396 | ); |
| 397 | } |
| 398 | return fetched.get(path); |
| 399 | }; |
| 400 | |
| 401 | for (const panel of PANELS) { |
| 402 | const rendered = view.panels.find((p) => p.id === panel.id); |