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