mirror of https://github.com/portainer/portainer
refactor(webpack): remove more angular imports
parent
ae7fff3fe9
commit
f6e1782632
|
@ -1,6 +1,4 @@
|
||||||
import '../assets/css/app.css';
|
import '../assets/css/app.css';
|
||||||
import angular from 'angular';
|
|
||||||
|
|
||||||
import './agent/_module';
|
import './agent/_module';
|
||||||
import './azure/_module';
|
import './azure/_module';
|
||||||
import './docker/__module';
|
import './docker/__module';
|
||||||
|
@ -26,7 +24,6 @@ angular.module('portainer', [
|
||||||
'angular-clipboard',
|
'angular-clipboard',
|
||||||
'ngFileSaver',
|
'ngFileSaver',
|
||||||
'luegg.directives',
|
'luegg.directives',
|
||||||
// 'portainer.templates',
|
|
||||||
'portainer.app',
|
'portainer.app',
|
||||||
'portainer.agent',
|
'portainer.agent',
|
||||||
'portainer.azure',
|
'portainer.azure',
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import angular from 'angular';
|
|
||||||
|
|
||||||
angular.module('portainer.agent').component('fileUploader', {
|
angular.module('portainer.agent').component('fileUploader', {
|
||||||
templateUrl: './file-uploader.html',
|
templateUrl: './file-uploader.html',
|
||||||
controller: 'FileUploaderController',
|
controller: 'FileUploaderController',
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import angular from 'angular';
|
|
||||||
|
|
||||||
angular.module('portainer.agent').factory('Host', [
|
angular.module('portainer.agent').factory('Host', [
|
||||||
'$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', 'StateManager',
|
'$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', 'StateManager',
|
||||||
function AgentFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider, StateManager) {
|
function AgentFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider, StateManager) {
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import angular from 'angular';
|
|
||||||
|
|
||||||
angular.module('portainer.agent')
|
angular.module('portainer.agent')
|
||||||
.factory('AgentVersion1', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function AgentFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
.factory('AgentVersion1', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function AgentFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import angular from 'angular';
|
|
||||||
import { AgentViewModel } from '../models/agent';
|
import { AgentViewModel } from '../models/agent';
|
||||||
|
|
||||||
angular.module('portainer.agent').factory('AgentService', [
|
angular.module('portainer.agent').factory('AgentService', [
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import angular from 'angular';
|
|
||||||
|
|
||||||
angular.module('portainer.agent').service('AgentPingService', [
|
angular.module('portainer.agent').service('AgentPingService', [
|
||||||
'AgentPing',
|
'AgentPing',
|
||||||
function AgentPingService(AgentPing) {
|
function AgentPingService(AgentPing) {
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import angular from 'angular';
|
|
||||||
|
|
||||||
angular.module('portainer')
|
angular.module('portainer')
|
||||||
.run(['$rootScope', '$state', 'Authentication', 'authManager', 'StateManager', 'EndpointProvider', 'Notifications', 'Analytics', 'cfpLoadingBar', '$transitions', 'HttpRequestHelper',
|
.run(['$rootScope', '$state', 'Authentication', 'authManager', 'StateManager', 'EndpointProvider', 'Notifications', 'Analytics', 'cfpLoadingBar', '$transitions', 'HttpRequestHelper',
|
||||||
function ($rootScope, $state, Authentication, authManager, StateManager, EndpointProvider, Notifications, Analytics, cfpLoadingBar, $transitions, HttpRequestHelper) {
|
function ($rootScope, $state, Authentication, authManager, StateManager, EndpointProvider, Notifications, Analytics, cfpLoadingBar, $transitions, HttpRequestHelper) {
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import angular from 'angular';
|
|
||||||
|
|
||||||
angular.module('portainer.azure').component('azureEndpointConfig', {
|
angular.module('portainer.azure').component('azureEndpointConfig', {
|
||||||
bindings: {
|
bindings: {
|
||||||
applicationId: '=',
|
applicationId: '=',
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import angular from 'angular';
|
|
||||||
|
|
||||||
angular.module('portainer.azure')
|
angular.module('portainer.azure')
|
||||||
.controller('AzureContainerInstancesController', ['$scope', '$state', 'AzureService', 'Notifications',
|
.controller('AzureContainerInstancesController', ['$scope', '$state', 'AzureService', 'Notifications',
|
||||||
function ($scope, $state, AzureService, Notifications) {
|
function ($scope, $state, AzureService, Notifications) {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
import '../assets/css/vendor.css';
|
import '../assets/css/vendor.css';
|
||||||
|
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
|
|
Loading…
Reference in New Issue