mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 15:25:22 +02:00
refactor(app): create empty react structure [EE-3178] (#6926)
This commit is contained in:
parent
668d526604
commit
1132c9ce87
188 changed files with 147 additions and 4 deletions
|
@ -9,6 +9,7 @@ import servicesModule from './services';
|
|||
import teamsModule from './teams';
|
||||
import homeModule from './home';
|
||||
import { accessControlModule } from './access-control';
|
||||
import { reactModule } from './react';
|
||||
|
||||
async function initAuthentication(authManager, Authentication, $rootScope, $state) {
|
||||
authManager.checkAuthOnRefresh();
|
||||
|
@ -38,6 +39,7 @@ angular
|
|||
servicesModule,
|
||||
teamsModule,
|
||||
accessControlModule,
|
||||
reactModule,
|
||||
])
|
||||
.config([
|
||||
'$stateRegistryProvider',
|
||||
|
|
6
app/portainer/react/components/index.ts
Normal file
6
app/portainer/react/components/index.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import angular from 'angular';
|
||||
|
||||
export const componentsModule = angular.module(
|
||||
'portainer.docker.react.components',
|
||||
[]
|
||||
).name;
|
9
app/portainer/react/index.ts
Normal file
9
app/portainer/react/index.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import angular from 'angular';
|
||||
|
||||
import { componentsModule } from './components';
|
||||
import { viewsModule } from './views';
|
||||
|
||||
export const reactModule = angular.module('portainer.docker.react', [
|
||||
viewsModule,
|
||||
componentsModule,
|
||||
]).name;
|
6
app/portainer/react/views/index.ts
Normal file
6
app/portainer/react/views/index.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import angular from 'angular';
|
||||
|
||||
export const viewsModule = angular.module(
|
||||
'portainer.docker.react.views',
|
||||
[]
|
||||
).name;
|
Loading…
Add table
Add a link
Reference in a new issue