Files
2026-07-13 12:08:39 +08:00

72 lines
2.4 KiB
TypeScript

import angular from 'angular';
import { HomeView } from '@/react/portainer/HomeView';
import { withCurrentUser } from '@/react-tools/withCurrentUser';
import { r2a } from '@/react-tools/react2angular';
import { withReactQuery } from '@/react-tools/withReactQuery';
import { withUIRouter } from '@/react-tools/withUIRouter';
import { CreateUserAccessToken } from '@/react/portainer/account/CreateAccessTokenView';
import { EdgeComputeSettingsView } from '@/react/portainer/settings/EdgeComputeView/EdgeComputeSettingsView';
import { BackupSettingsPanel } from '@/react/portainer/settings/SettingsView/BackupSettingsView/BackupSettingsPanel';
import { SettingsView } from '@/react/portainer/settings/SettingsView/SettingsView';
import { CreateHelmRepositoriesView } from '@/react/portainer/account/helm-repositories/CreateHelmRepositoryView';
import { wizardModule } from './wizard';
import { teamsModule } from './teams';
import { updateSchedulesModule } from './update-schedules';
import { environmentGroupModule } from './env-groups';
import { registriesModule } from './registries';
import { activityLogsModule } from './activity-logs';
import { templatesModule } from './templates';
import { usersModule } from './users';
import { environmentsModule } from './environments';
import { gitopsViewsModule } from './gitops';
export const viewsModule = angular
.module('portainer.app.react.views', [
wizardModule,
teamsModule,
updateSchedulesModule,
environmentGroupModule,
registriesModule,
activityLogsModule,
templatesModule,
usersModule,
environmentsModule,
gitopsViewsModule,
])
.component(
'homeView',
r2a(withUIRouter(withReactQuery(withCurrentUser(HomeView))), [])
)
.component(
'createUserAccessToken',
r2a(
withReactQuery(withCurrentUser(withUIRouter(CreateUserAccessToken))),
[]
)
)
.component(
'settingsEdgeCompute',
r2a(
withUIRouter(withReactQuery(withCurrentUser(EdgeComputeSettingsView))),
['onSubmit', 'settings']
)
)
.component(
'backupSettingsPanel',
r2a(withUIRouter(withReactQuery(withCurrentUser(BackupSettingsPanel))), [])
)
.component(
'settingsView',
r2a(withUIRouter(withReactQuery(withCurrentUser(SettingsView))), [])
)
.component(
'createHelmRepositoryView',
r2a(
withUIRouter(withReactQuery(withCurrentUser(CreateHelmRepositoriesView))),
[]
)
).name;