mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(docker/containers): migrate networks table to react [EE-4665] (#10069)
This commit is contained in:
parent
776f6a62c3
commit
b15812a74d
28 changed files with 632 additions and 259 deletions
|
@ -1,7 +1,5 @@
|
|||
import { DefaultBodyType, PathParams, rest } from 'msw';
|
||||
import { SystemInfo } from 'docker-types/generated/1.41';
|
||||
|
||||
import { VersionResponse } from '@/react/docker/proxy/queries/useVersion';
|
||||
import { SystemInfo, SystemVersion } from 'docker-types/generated/1.41';
|
||||
|
||||
export const dockerHandlers = [
|
||||
rest.get<DefaultBodyType, PathParams, SystemInfo>(
|
||||
|
@ -16,7 +14,7 @@ export const dockerHandlers = [
|
|||
})
|
||||
)
|
||||
),
|
||||
rest.get<DefaultBodyType, PathParams, VersionResponse>(
|
||||
rest.get<DefaultBodyType, PathParams, SystemVersion>(
|
||||
'/api/endpoints/:endpointId/docker/version',
|
||||
(req, res, ctx) => res(ctx.json({ ApiVersion: '1.24' }))
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue