mirror of https://github.com/portainer/portainer
feat(webpack): add missing imports
parent
f5ccfabb2b
commit
3cb053250b
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { browseGetResponse } from './response/browse';
|
||||
|
||||
angular.module('portainer.agent')
|
||||
.factory('Browse', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function BrowseFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
'use strict';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// ngResource will transform it as an array of chars.
|
||||
// This functions simply creates a response object and assign
|
||||
// the data to a field.
|
||||
function browseGetResponse(data) {
|
||||
export function browseGetResponse(data) {
|
||||
var response = {};
|
||||
response.file = data;
|
||||
return response;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export function ContainerInstanceProviderViewModel(data) {
|
||||
this.Id = data.id;
|
||||
this.Namespace = data.namespace;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { ContainerGroupDefaultModel } from '../../../models/container_group';
|
||||
|
||||
angular.module('portainer.azure')
|
||||
.controller('AzureCreateContainerInstanceController', ['$q', '$scope', '$state', 'AzureService', 'Notifications',
|
||||
function ($q, $scope, $state, AzureService, Notifications) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.docker')
|
||||
.controller('ServiceTasksDatatableController', ['DatatableService',
|
||||
function (DatatableService) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function MacvlanFormData() {
|
||||
export function MacvlanFormData() {
|
||||
this.Scope = 'local';
|
||||
this.SelectedNetworkConfig = '';
|
||||
this.DatatableState = {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
function includeString(text, values) {
|
||||
return values.some(function(val){
|
||||
return text.indexOf(val) !== -1;
|
||||
|
@ -258,7 +260,7 @@ angular.module('portainer.docker')
|
|||
.filter('imagelayercommand', function () {
|
||||
'use strict';
|
||||
return function (createdBy) {
|
||||
return createdBy.replace('/bin/sh -c #(nop) ', '').replace('/bin/sh -c ', 'RUN ');
|
||||
return createdBy.replace('/bin/sh -c #(nop) ', '').replace('/bin/sh -c ', 'RUN ');
|
||||
};
|
||||
})
|
||||
.filter('trimshasum', function () {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
function ConstraintModel(op, key, value) {
|
||||
this.op = op;
|
||||
this.value = value;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import splitargs from 'splitargs/src/splitargs'
|
||||
|
||||
angular.module('portainer.docker')
|
||||
.factory('ContainerHelper', [function ContainerHelperFactory() {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.docker')
|
||||
.factory('ImageHelper', [function ImageHelperFactory() {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { ResourceControlViewModel } from '../../portainer/models/resourceControl';
|
||||
|
||||
export function ConfigViewModel(data) {
|
||||
this.Id = data.ID;
|
||||
this.CreatedAt = data.CreatedAt;
|
||||
|
|
|
@ -38,7 +38,7 @@ var capDesc = {
|
|||
'BLOCK_SUSPEND': 'Employ features that can block system suspend.'
|
||||
};
|
||||
|
||||
function ContainerCapabilities() {
|
||||
export function ContainerCapabilities() {
|
||||
// all capabilities can be found at https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities
|
||||
return [
|
||||
new ContainerCapability('SETPCAP', true),
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
import { ContainerCapabilities } from '../../../models/containerCapabilities';
|
||||
import { AccessControlFormData } from '../../../../portainer/components/accessControlForm/porAccessControlFormModel';
|
||||
|
||||
angular.module('portainer.docker')
|
||||
.controller('CreateContainerController', ['$q', '$scope', '$state', '$timeout', '$transition$', '$filter', 'Container', 'ContainerHelper', 'Image', 'ImageHelper', 'Volume', 'NetworkService', 'ResourceControlService', 'Authentication', 'Notifications', 'ContainerService', 'ImageService', 'FormValidator', 'ModalService', 'RegistryService', 'SystemService', 'SettingsService', 'HttpRequestHelper',
|
||||
function ($q, $scope, $state, $timeout, $transition$, $filter, Container, ContainerHelper, Image, ImageHelper, Volume, NetworkService, ResourceControlService, Authentication, Notifications, ContainerService, ImageService, FormValidator, ModalService, RegistryService, SystemService, SettingsService, HttpRequestHelper) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.docker')
|
||||
.controller('ImageController', ['$q', '$scope', '$transition$', '$state', '$timeout', 'ImageService', 'RegistryService', 'Notifications', 'HttpRequestHelper', 'ModalService', 'FileSaver', 'Blob',
|
||||
function ($q, $scope, $transition$, $state, $timeout, ImageService, RegistryService, Notifications, HttpRequestHelper, ModalService, FileSaver, Blob) {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
import angular from 'angular';
|
||||
import { AccessControlFormData } from '../../../../portainer/components/accessControlForm/porAccessControlFormModel';
|
||||
import { MacvlanFormData } from '../../../components/network-macvlan-form/networkMacvlanFormModel';
|
||||
|
||||
angular.module('portainer.docker')
|
||||
.controller('CreateNetworkController', ['$q', '$scope', '$state', 'PluginService', 'Notifications', 'NetworkService', 'LabelHelper', 'Authentication', 'ResourceControlService', 'FormValidator', 'HttpRequestHelper',
|
||||
function ($q, $scope, $state, PluginService, Notifications, NetworkService, LabelHelper, Authentication, ResourceControlService, FormValidator, HttpRequestHelper) {
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
angular.module('portainer.docker')
|
||||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
import { AccessControlFormData } from '../../../../portainer/components/accessControlForm/porAccessControlFormModel';
|
||||
|
||||
angular.module('portainer.docker')
|
||||
.controller('CreateServiceController', ['$q', '$scope', '$state', '$timeout', 'Service', 'ServiceHelper', 'ConfigService', 'ConfigHelper', 'SecretHelper', 'SecretService', 'VolumeService', 'NetworkService', 'ImageHelper', 'LabelHelper', 'Authentication', 'ResourceControlService', 'Notifications', 'FormValidator', 'PluginService', 'RegistryService', 'HttpRequestHelper', 'NodeService', 'SettingsService', 'WebhookService','EndpointProvider',
|
||||
function ($q, $scope, $state, $timeout, Service, ServiceHelper, ConfigService, ConfigHelper, SecretHelper, SecretService, VolumeService, NetworkService, ImageHelper, LabelHelper, Authentication, ResourceControlService, Notifications, FormValidator, PluginService, RegistryService, HttpRequestHelper, NodeService, SettingsService, WebhookService,EndpointProvider) {
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import angular from 'angular';
|
||||
|
||||
angular.module('portainer.docker')
|
||||
.controller('SwarmController', ['$q', '$scope', 'SystemService', 'NodeService', 'Notifications', 'StateManager', 'Authentication',
|
||||
function ($q, $scope, SystemService, NodeService, Notifications, StateManager, Authentication) {
|
||||
|
@ -28,7 +30,7 @@ function ($q, $scope, SystemService, NodeService, Notifications, StateManager, A
|
|||
// If connected to a replica, information for node1 is available at element #5
|
||||
// The next 10 elements are information related to the node
|
||||
var node_offset = info[0][1] === 'primary' ? 4 : 5;
|
||||
for (i = 0; i < node_count; i++) {
|
||||
for (let i = 0; i < node_count; i++) {
|
||||
extractNodeInfo(info, node_offset);
|
||||
node_offset += 9;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function StoridgeEventModel(data) {
|
||||
export function StoridgeEventModel(data) {
|
||||
this.Time = data.time;
|
||||
this.Category = data.category;
|
||||
this.Module = data.module;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function StoridgeInfoModel(data) {
|
||||
export function StoridgeInfoModel(data) {
|
||||
this.Domain = data.domain;
|
||||
this.Nodes = data.nodes;
|
||||
this.Status = data.status;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function StoridgeProfileDefaultModel() {
|
||||
export function StoridgeProfileDefaultModel() {
|
||||
this.Directory = '/cio/';
|
||||
this.Capacity = 20;
|
||||
this.Redundancy = 2;
|
||||
|
@ -10,12 +10,12 @@ function StoridgeProfileDefaultModel() {
|
|||
this.MaxBandwidth = 100;
|
||||
}
|
||||
|
||||
function StoridgeProfileListModel(data) {
|
||||
export function StoridgeProfileListModel(data) {
|
||||
this.Name = data;
|
||||
this.Checked = false;
|
||||
}
|
||||
|
||||
function StoridgeProfileModel(name, data) {
|
||||
export function StoridgeProfileModel(name, data) {
|
||||
this.Name = name;
|
||||
this.Directory = data.directory;
|
||||
this.Capacity = data.capacity;
|
||||
|
@ -34,7 +34,7 @@ function StoridgeProfileModel(name, data) {
|
|||
}
|
||||
}
|
||||
|
||||
function StoridgeCreateProfileRequest(model) {
|
||||
export function StoridgeCreateProfileRequest(model) {
|
||||
this.name = model.Name;
|
||||
this.capacity = model.Capacity;
|
||||
this.directory = model.Directory;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
import angular from 'angular';
|
||||
import { StoridgeInfoModel } from '../models/info';
|
||||
import { StoridgeEventModel } from '../models/events';
|
||||
|
||||
angular.module('extension.storidge')
|
||||
.factory('StoridgeClusterService', ['$q', 'Storidge', function StoridgeClusterServiceFactory($q, Storidge) {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { StoridgeProfileDefaultModel } from '../../models/profile';
|
||||
|
||||
angular.module('extension.storidge')
|
||||
.controller('StoridgeProfilesController', ['$q', '$scope', '$state', 'Notifications', 'StoridgeProfileService',
|
||||
function ($q, $scope, $state, Notifications, StoridgeProfileService) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('porAccessControlFormController', ['$q', 'UserService', 'TeamService', 'Notifications', 'Authentication', 'ResourceControlService',
|
||||
function ($q, UserService, TeamService, Notifications, Authentication, ResourceControlService) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('porAccessControlPanelController', ['$q', '$state', 'UserService', 'TeamService', 'ResourceControlService', 'Notifications', 'Authentication', 'ModalService', 'FormValidator',
|
||||
function ($q, $state, UserService, TeamService, ResourceControlService, Notifications, Authentication, ModalService, FormValidator) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('porAccessManagementController', ['AccessService', 'Notifications',
|
||||
function (AccessService, Notifications) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app').controller('EndpointListController', [
|
||||
function EndpointListController() {
|
||||
var ctrl = this;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('EndpointSelectorController', function () {
|
||||
var ctrl = this;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function EndpointSecurityFormData() {
|
||||
export function EndpointSecurityFormData() {
|
||||
this.TLS = false;
|
||||
this.TLSMode = 'tls_client_ca';
|
||||
this.TLSCACert = null;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app').component('groupForm', {
|
||||
templateUrl: './groupForm.html',
|
||||
controller: function() {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('TagSelectorController', function () {
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app').component('templateList', {
|
||||
templateUrl: './templateList.html',
|
||||
controller: function() {
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
import angular from 'angular';
|
||||
import moment from 'moment';
|
||||
import _ from 'lodash';
|
||||
import filesize from 'filesize';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.filter('truncate', function () {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('StackHelper', [function StackHelperFactory() {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('TemplateHelper', [function TemplateHelperFactory() {
|
||||
'use strict';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
function EndpointGroupDefaultModel() {
|
||||
export function EndpointGroupDefaultModel() {
|
||||
this.Name = '';
|
||||
this.Description = '';
|
||||
this.Tags = [];
|
||||
}
|
||||
|
||||
function EndpointGroupModel(data) {
|
||||
export function EndpointGroupModel(data) {
|
||||
this.Id = data.Id;
|
||||
this.Name = data.Name;
|
||||
this.Description = data.Description;
|
||||
|
@ -13,14 +13,14 @@ function EndpointGroupModel(data) {
|
|||
this.AuthorizedTeams = data.AuthorizedTeams;
|
||||
}
|
||||
|
||||
function EndpointGroupCreateRequest(model, endpoints) {
|
||||
export function EndpointGroupCreateRequest(model, endpoints) {
|
||||
this.Name = model.Name;
|
||||
this.Description = model.Description;
|
||||
this.Tags = model.Tags;
|
||||
this.AssociatedEndpoints = endpoints;
|
||||
}
|
||||
|
||||
function EndpointGroupUpdateRequest(model, endpoints) {
|
||||
export function EndpointGroupUpdateRequest(model, endpoints) {
|
||||
this.id = model.Id;
|
||||
this.Name = model.Name;
|
||||
this.Description = model.Description;
|
||||
|
|
|
@ -14,7 +14,7 @@ export function TemplateDefaultModel() {
|
|||
this.Registry = {};
|
||||
}
|
||||
|
||||
function TemplateCreateRequest(model) {
|
||||
export function TemplateCreateRequest(model) {
|
||||
this.Type = model.Type;
|
||||
this.Name = model.Name;
|
||||
this.Hostname = model.Hostname;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
import { UserAccessViewModel } from '../../models/access';
|
||||
import { TeamAccessViewModel } from '../../models/access';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('AccessService', ['$q', 'UserService', 'TeamService', function AccessServiceFactory($q, UserService, TeamService) {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('ResourceControlService', ['$q', 'ResourceControl', 'UserService', 'TeamService', 'ResourceControlHelper', function ResourceControlServiceFactory($q, ResourceControl, UserService, TeamService, ResourceControlHelper) {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
import { StackViewModel, ExternalStackViewModel } from '../../models/stack';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('StackService', ['$q', 'Stack', 'ResourceControlService', 'FileUploadService', 'StackHelper', 'ServiceService', 'ContainerService', 'SwarmService', 'EndpointProvider',
|
||||
function StackServiceFactory($q, Stack, ResourceControlService, FileUploadService, StackHelper, ServiceService, ContainerService, SwarmService, EndpointProvider) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { TagViewModel } from '../../models/tag';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('TagService', ['$q', 'Tags', function TagServiceFactory($q, Tags) {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
import angular from 'angular';
|
||||
import { TeamViewModel } from '../../models/team';
|
||||
import { TeamMembershipModel } from '../../models/teamMembership';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('TeamService', ['$q', 'Teams', 'TeamMembershipService', function TeamServiceFactory($q, Teams, TeamMembershipService) {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
import angular from 'angular';
|
||||
import {
|
||||
TemplateViewModel,
|
||||
TemplateCreateRequest,
|
||||
TemplateUpdateRequest
|
||||
} from '../../models/template';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('TemplateService', ['$q', 'Templates', 'TemplateHelper', 'ImageHelper', 'ContainerHelper',
|
||||
function TemplateServiceFactory($q, Templates, TemplateHelper, ImageHelper, ContainerHelper) {
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
import { UserViewModel } from '../../models/user';
|
||||
import { TeamMembershipModel } from '../../models/teamMembership';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('UserService', ['$q', 'Users', 'UserHelper', 'TeamService', 'TeamMembershipService', function UserServiceFactory($q, Users, UserHelper, TeamService, TeamMembershipService) {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { WebhookViewModel } from '../../models/webhook';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('WebhookService', ['$q', 'Webhooks', function WebhookServiceFactory($q, Webhooks) {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import Chart from 'chart.js';
|
||||
import filesize from 'filesize';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('ChartService', [function ChartService() {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
import CodeMirror from 'codemirror';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('CodeMirrorService', function CodeMirrorService() {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('ExtensionManager', ['$q', 'PluginService', 'SystemService', 'ExtensionService',
|
||||
function ExtensionManagerFactory($q, PluginService, SystemService, ExtensionService) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import bootbox from 'bootbox';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.factory('ModalService', [function ModalServiceFactory() {
|
||||
'use strict';
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { EndpointSecurityFormData } from '../../../components/endpointSecurity/porEndpointSecurityModel';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('CreateEndpointController', ['$q', '$scope', '$state', '$filter', 'clipboard', 'EndpointService', 'GroupService', 'TagService', 'Notifications',
|
||||
function ($q, $scope, $state, $filter, clipboard, EndpointService, GroupService, TagService, Notifications) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { EndpointSecurityFormData } from '../../../components/endpointSecurity/porEndpointSecurityModel';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('EndpointController', ['$q', '$scope', '$state', '$transition$', '$filter', 'EndpointService', 'GroupService', 'TagService', 'EndpointProvider', 'Notifications',
|
||||
function ($q, $scope, $state, $transition$, $filter, EndpointService, GroupService, TagService, EndpointProvider, Notifications) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { EndpointGroupDefaultModel } from '../../../models/group';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('CreateGroupController', ['$q', '$scope', '$state', 'GroupService', 'EndpointService', 'TagService', 'Notifications',
|
||||
function ($q, $scope, $state, GroupService, EndpointService, TagService, Notifications) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('InitEndpointController', ['$scope', '$state', 'EndpointService', 'StateManager', 'Notifications',
|
||||
function ($scope, $state, EndpointService, StateManager, Notifications) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { AccessControlFormData } from '../../../components/accessControlForm/porAccessControlFormModel';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('CreateStackController', ['$scope', '$state', 'StackService', 'Authentication', 'Notifications', 'FormValidator', 'ResourceControlService', 'FormHelper', 'EndpointProvider',
|
||||
function ($scope, $state, StackService, Authentication, Notifications, FormValidator, ResourceControlService, FormHelper, EndpointProvider) {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
|
||||
angular.module('portainer.app')
|
||||
.controller('TemplateController', ['$q', '$scope', '$state', '$transition$', 'TemplateService', 'TemplateHelper', 'NetworkService', 'Notifications',
|
||||
function ($q, $scope, $state, $transition$, TemplateService, TemplateHelper, NetworkService, Notifications) {
|
||||
|
|
Loading…
Reference in New Issue