(path)
| 364 | const query = `from=${FROM}&to=${TO}`; |
| 365 | const fetched = new Map(); |
| 366 | const apiGet = async (path) => { |
| 367 | if (!fetched.has(path)) { |
| 368 | fetched.set( |
| 369 | path, |
| 370 | fetch(`${BASE}${path}`, { headers: { cookie: `${name}=${value}` } }).then((r) => r.json()), |
| 371 | ); |
| 372 | } |
| 373 | return fetched.get(path); |
| 374 | }; |
| 375 | |
| 376 | for (const panel of PANELS) { |
| 377 | const rendered = view.panels.find((p) => p.id === panel.id); |