fix(ui): подтверждать операции рекурсивных маршрутов
This commit is contained in:
1 parent
79a8d95e7d
commit
f5fc9282e2
11 files changed
+364
-138
No files matched your search
@@ -8,8 +8,8 @@ for (const width of [320, 390, 1024, 1440]) {
|
||||
await page.route("**/health", route => route.fulfill({ json: { ok: true } }))
|
||||
await page.route("**/api/**", route => {
|
||||
const path = new URL(route.request().url()).pathname
|
||||
return route.fulfill({ json: path === "/api/recursive-routes" ? { routes: [] }
|
||||
: path === "/api/recursive-routes/gateways" ? { gateways: [] }
|
||||
return route.fulfill({ json: path === "/api/recursive-routes" ? { serverId: 1, routes: [], live: true, stale: false }
|
||||
: path === "/api/recursive-routes/gateways" ? { serverId: 1, gateways: [] }
|
||||
: path === "/api/auth/config" ? { required: false }
|
||||
: path === "/api/servers" ? [{ id: 1, name: "Роутер", host: "192.0.2.100", type: "exit-node", site: "TEST", country: "RU", asn: "64512", enabled: true, status: "online", latency: 1 }]
|
||||
: path === "/api/evobgp/settings" ? { enabled: false, baseUrl: "", secretConfigured: false } : {} })
|
||||
|
||||
Reference in new issue
Block a user