mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
* refactor(app): replace notification with es6 service (#6015) [EE-1897] chore(app): format * refactor(containers): remove the dependency on angular modal service (#6017) [EE-1898] * refactor(app): remove angular from http-request [EE-1899] (#6016) * feat(app): add axios [EE-2035](#6077) * refactor(feature): remove angular dependency from feature service [EE-2034] (#6078) * refactor(app): replace box-selector with react component (#6046) fix: rename angular2react refactor(app): make box-selector type generic feat(app): add story for box-selector feat(app): test box-selector feat(app): add stories for box selector item fix(app): remove unneccesary element refactor(app): remove assign * feat(feature): add be-indicator in react [EE-2005] (#6106) * refactor(app): add react components for headers [EE-1949] (#6023) * feat(auth): provide user context * feat(app): added base header component [EE-1949] style(app): reformat refactor(app/header): use same api as angular * feat(app): add breadcrumbs component [EE-2024] * feat(app): remove u element from user links * fix(users): handle axios errors Co-authored-by: Chaim Lev-Ari <chiptus@gmail.com> * refactor(app): convert switch component to react [EE-2005] (#6025) Co-authored-by: Marcelo Rydel <marcelorydel26@gmail.com>
66 lines
1.5 KiB
JavaScript
66 lines
1.5 KiB
JavaScript
import './assets/css';
|
|
import '@babel/polyfill';
|
|
|
|
import angular from 'angular';
|
|
import { UI_ROUTER_REACT_HYBRID } from '@uirouter/react-hybrid';
|
|
|
|
import './matomo-setup';
|
|
import analyticsModule from './angulartics.matomo';
|
|
|
|
import './agent';
|
|
import './azure/_module';
|
|
import './docker/__module';
|
|
import './edge/__module';
|
|
import './portainer/__module';
|
|
|
|
import { onStartupAngular } from './app';
|
|
import { configApp } from './config';
|
|
|
|
import { init as initFeatureService } from './portainer/feature-flags/feature-flags.service';
|
|
import { Edition } from './portainer/feature-flags/enums';
|
|
|
|
initFeatureService(Edition.CE);
|
|
|
|
angular
|
|
.module('portainer', [
|
|
'ui.bootstrap',
|
|
'ui.router',
|
|
UI_ROUTER_REACT_HYBRID,
|
|
'ui.select',
|
|
'isteven-multi-select',
|
|
'ngSanitize',
|
|
'ngFileUpload',
|
|
'ngMessages',
|
|
'ngResource',
|
|
'angularUtils.directives.dirPagination',
|
|
'LocalStorageModule',
|
|
'angular-jwt',
|
|
'angular-json-tree',
|
|
'angular-loading-bar',
|
|
'angular-clipboard',
|
|
'ngFileSaver',
|
|
'luegg.directives',
|
|
'portainer.app',
|
|
'portainer.agent',
|
|
'portainer.azure',
|
|
'portainer.docker',
|
|
'portainer.kubernetes',
|
|
'portainer.edge',
|
|
'portainer.integrations',
|
|
'rzModule',
|
|
'moment-picker',
|
|
'angulartics',
|
|
analyticsModule,
|
|
])
|
|
.run(onStartupAngular)
|
|
.config(configApp);
|
|
|
|
if (require) {
|
|
const req = require.context('./', true, /^(.*\.(js$))[^.]*$/im);
|
|
req
|
|
.keys()
|
|
.filter((path) => !path.includes('.test'))
|
|
.forEach(function (key) {
|
|
req(key);
|
|
});
|
|
}
|