mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
refactor(ui): remove global providers [EE-4128] (#7578)
This commit is contained in:
parent
d3f094cb18
commit
fad376b415
46 changed files with 372 additions and 214 deletions
|
@ -5,10 +5,25 @@ import { CreateView } from '@/react/azure/container-instances/CreateView';
|
|||
import { ItemView } from '@/react/azure/container-instances/ItemView';
|
||||
import { ListView } from '@/react/azure/container-instances/ListView';
|
||||
import { DashboardView } from '@/react/azure/DashboardView';
|
||||
import { withCurrentUser } from '@/react-tools/withCurrentUser';
|
||||
import { withReactQuery } from '@/react-tools/withReactQuery';
|
||||
import { withUIRouter } from '@/react-tools/withUIRouter';
|
||||
|
||||
export const viewsModule = angular
|
||||
.module('portainer.azure.react.views', [])
|
||||
.component('containerInstanceView', r2a(ItemView, []))
|
||||
.component('createContainerInstanceView', r2a(CreateView, []))
|
||||
.component('containerInstancesView', r2a(ListView, []))
|
||||
.component('dashboardView', r2a(DashboardView, [])).name;
|
||||
.component(
|
||||
'containerInstanceView',
|
||||
r2a(withUIRouter(withReactQuery(withCurrentUser(ItemView))), [])
|
||||
)
|
||||
.component(
|
||||
'createContainerInstanceView',
|
||||
r2a(withUIRouter(withReactQuery(withCurrentUser(CreateView))), [])
|
||||
)
|
||||
.component(
|
||||
'containerInstancesView',
|
||||
r2a(withUIRouter(withReactQuery(withCurrentUser(ListView))), [])
|
||||
)
|
||||
.component(
|
||||
'dashboardView',
|
||||
r2a(withUIRouter(withReactQuery(withCurrentUser(DashboardView))), [])
|
||||
).name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue