You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/index.js

65 lines
1.5 KiB

import './assets/css';
import './i18n';
import angular from 'angular';
import { UI_ROUTER_REACT_HYBRID } from '@uirouter/react-hybrid';
import './matomo-setup';
import { Edition } from '@/react/portainer/feature-flags/enums';
import { init as initFeatureService } from '@/react/portainer/feature-flags/feature-flags.service';
import analyticsModule from './angulartics.matomo';
import './agent';
import { azureModule } from './azure';
import './docker/__module';
import './edge/__module';
import './portainer/__module';
import { onStartupAngular } from './app';
import { configApp } from './config';
import { constantsModule } from './ng-constants';
initFeatureService(Edition[process.env.PORTAINER_EDITION]);
angular
.module('portainer', [
'ui.bootstrap',
'ui.router',
UI_ROUTER_REACT_HYBRID,
'ngSanitize',
'ngFileUpload',
'ngMessages',
'ngResource',
'angularUtils.directives.dirPagination',
'LocalStorageModule',
'angular-loading-bar',
'angular-clipboard',
'ngFileSaver',
'luegg.directives',
'portainer.app',
'portainer.agent',
azureModule,
'portainer.docker',
'portainer.kubernetes',
'portainer.edge',
'rzModule',
'moment-picker',
'angulartics',
analyticsModule,
constantsModule,
])
.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);
});
}