1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-01 20:05:23 +02:00
portainer/app/portainer/react/components/registries.ts

23 lines
874 B
TypeScript

import angular from 'angular';
import { r2a } from '@/react-tools/react2angular';
import { withReactQuery } from '@/react-tools/withReactQuery';
import { withUIRouter } from '@/react-tools/withUIRouter';
import { RepositoriesDatatable } from '@/react/portainer/registries/repositories/ListView/RepositoriesDatatable';
import { TagsDatatable } from '@/react/portainer/registries/repositories/ItemView/TagsDatatable/TagsDatatable';
export const registriesModule = angular
.module('portainer.app.react.components.registries', [])
.component(
'registryRepositoriesDatatable',
r2a(withUIRouter(withReactQuery(RepositoriesDatatable)), ['dataset'])
)
.component(
'registriesRepositoryTagsDatatable',
r2a(withUIRouter(withReactQuery(TagsDatatable)), [
'dataset',
'advancedFeaturesAvailable',
'onRemove',
'onRetag',
])
).name;