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