1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

refactor(docker/volumes): migrate table to react [EE-4677] (#10312)

This commit is contained in:
Chaim Lev-Ari 2023-10-11 10:27:42 +03:00 committed by GitHub
parent 8e1417b4e9
commit 5c37ed328f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 402 additions and 395 deletions

View file

@ -28,6 +28,7 @@ import { containersModule } from './containers';
import { servicesModule } from './services';
import { networksModule } from './networks';
import { swarmModule } from './swarm';
import { volumesModule } from './volumes';
const ngModule = angular
.module('portainer.docker.react.components', [
@ -35,6 +36,7 @@ const ngModule = angular
servicesModule,
networksModule,
swarmModule,
volumesModule,
])
.component('dockerfileDetails', r2a(DockerfileDetails, ['image']))
.component('dockerHealthStatus', r2a(HealthStatus, ['health']))

View file

@ -0,0 +1,18 @@
import angular from 'angular';
import { r2a } from '@/react-tools/react2angular';
import { withUIRouter } from '@/react-tools/withUIRouter';
import { VolumesDatatable } from '@/react/docker/volumes/ListView/VolumesDatatable';
import { withCurrentUser } from '@/react-tools/withCurrentUser';
export const volumesModule = angular
.module('portainer.docker.react.components.volumes', [])
.component(
'volumesDatatable',
r2a(withUIRouter(withCurrentUser(VolumesDatatable)), [
'dataset',
'onRemove',
'onRefresh',
'isBrowseVisible',
])
).name;