refactor(app): create empty react structure [EE-3178] (#6926)

pull/6708/head
Chaim Lev-Ari 2022-05-17 07:22:44 +03:00 committed by GitHub
parent 668d526604
commit 1132c9ce87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
188 changed files with 147 additions and 4 deletions

View File

@ -3,9 +3,10 @@ import angular from 'angular';
import { AzureSidebarAngular } from './AzureSidebar/AzureSidebar';
import { DashboardViewAngular } from './Dashboard/DashboardView';
import { containerInstancesModule } from './ContainerInstances';
import { reactModule } from './react';
angular
.module('portainer.azure', ['portainer.app', containerInstancesModule])
.module('portainer.azure', ['portainer.app', containerInstancesModule, reactModule])
.config([
'$stateRegistryProvider',
function ($stateRegistryProvider) {

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const componentsModule = angular.module(
'portainer.azure.react.components',
[]
).name;

9
app/azure/react/index.ts Normal file
View File

@ -0,0 +1,9 @@
import angular from 'angular';
import { componentsModule } from './components';
import { viewsModule } from './views';
export const reactModule = angular.module('portainer.azure.react', [
viewsModule,
componentsModule,
]).name;

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const viewsModule = angular.module(
'portainer.azure.react.views',
[]
).name;

View File

@ -1,11 +1,13 @@
import angular from 'angular';
import { EnvironmentStatus } from '@/portainer/environments/types';
import { reactModule } from './react';
import containersModule from './containers';
import { componentsModule } from './components';
import { networksModule } from './networks';
angular.module('portainer.docker', ['portainer.app', containersModule, componentsModule, networksModule]).config([
angular.module('portainer.docker', ['portainer.app', containersModule, componentsModule, networksModule, reactModule]).config([
'$stateRegistryProvider',
function ($stateRegistryProvider) {
'use strict';

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const componentsModule = angular.module(
'portainer.docker.react.components',
[]
).name;

View 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;

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const viewsModule = angular.module(
'portainer.docker.react.views',
[]
).name;

View File

@ -4,9 +4,10 @@ import edgeStackModule from './views/edge-stacks';
import edgeDevicesModule from './devices';
import { componentsModule } from './components';
import { WaitingRoomViewAngular } from './EdgeDevices/WaitingRoomView';
import { reactModule } from './react';
angular
.module('portainer.edge', [edgeStackModule, edgeDevicesModule, componentsModule])
.module('portainer.edge', [edgeStackModule, edgeDevicesModule, componentsModule, reactModule])
.component('waitingRoomView', WaitingRoomViewAngular)
.config(function config($stateRegistryProvider) {
const edge = {

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const componentsModule = angular.module(
'portainer.edge.react.components',
[]
).name;

9
app/edge/react/index.ts Normal file
View File

@ -0,0 +1,9 @@
import angular from 'angular';
import { componentsModule } from './components';
import { viewsModule } from './views';
export const reactModule = angular.module('portainer.edge.react', [
viewsModule,
componentsModule,
]).name;

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const viewsModule = angular.module(
'portainer.edge.react.views',
[]
).name;

View File

@ -19,6 +19,7 @@ import { configApp } from './config';
import { init as initFeatureService } from './portainer/feature-flags/feature-flags.service';
import { Edition } from './portainer/feature-flags/enums';
import { nomadModule } from './nomad';
initFeatureService(Edition[process.env.PORTAINER_EDITION]);
@ -46,6 +47,7 @@ angular
'portainer.azure',
'portainer.docker',
'portainer.kubernetes',
nomadModule,
'portainer.edge',
'rzModule',
'moment-picker',

View File

@ -1,7 +1,8 @@
import registriesModule from './registries';
import customTemplateModule from './custom-templates';
import { reactModule } from './react';
angular.module('portainer.kubernetes', ['portainer.app', registriesModule, customTemplateModule]).config([
angular.module('portainer.kubernetes', ['portainer.app', registriesModule, customTemplateModule, reactModule]).config([
'$stateRegistryProvider',
function ($stateRegistryProvider) {
'use strict';

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const componentsModule = angular.module(
'portainer.kubernetes.react.components',
[]
).name;

View File

@ -0,0 +1,9 @@
import angular from 'angular';
import { componentsModule } from './components';
import { viewsModule } from './views';
export const reactModule = angular.module('portainer.kubernetes.react', [
viewsModule,
componentsModule,
]).name;

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const viewsModule = angular.module(
'portainer.kubernetes.react.views',
[]
).name;

8
app/nomad/index.ts Normal file
View File

@ -0,0 +1,8 @@
import angular from 'angular';
import { reactModule } from './react';
export const nomadModule = angular.module('portainer.nomad', [
'portainer.app',
reactModule,
]).name;

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const componentsModule = angular.module(
'portainer.nomad.react.components',
[]
).name;

9
app/nomad/react/index.ts Normal file
View File

@ -0,0 +1,9 @@
import angular from 'angular';
import { componentsModule } from './components';
import { viewsModule } from './views';
export const reactModule = angular.module('portainer.nomad.react', [
viewsModule,
componentsModule,
]).name;

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const viewsModule = angular.module(
'portainer.nomad.react.views',
[]
).name;

View File

@ -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',

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const componentsModule = angular.module(
'portainer.docker.react.components',
[]
).name;

View 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;

View File

@ -0,0 +1,6 @@
import angular from 'angular';
export const viewsModule = angular.module(
'portainer.docker.react.views',
[]
).name;

0
app/react/.keep Normal file
View File

0
app/react/auth/.keep Normal file
View File

View File

View File

0
app/react/azure/.keep Normal file
View File

View File

View File

0
app/react/docker/.keep Normal file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
app/react/edge/.keep Normal file
View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More