feat(deps): upgrade from lodash to lodash-es

pull/2670/head
Chaim Lev-Ari 2018-11-29 09:54:13 +02:00
parent 8fd6891cd6
commit 4accf4a4c7
48 changed files with 52 additions and 47 deletions

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.agent').controller('HostBrowserController', [
'HostBrowserService', 'Notifications', 'FileSaver', 'ModalService',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.agent')
.controller('VolumeBrowserController', ['HttpRequestHelper', 'VolumeBrowserService', 'FileSaver', 'Blob', 'ModalService', 'Notifications',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
export function ContainerInstanceProviderViewModel(data) {
this.Id = data.id;

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.controller('ContainersDatatableController', ['PaginationService', 'DatatableService', 'EndpointProvider',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.controller('JobsDatatableController', ['$q', '$state', 'PaginationService', 'DatatableService', 'ContainerService', 'ModalService', 'Notifications',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.controller('ServiceTasksDatatableController', ['DatatableService',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.controller('ServicesDatatableController', ['PaginationService', 'DatatableService', 'EndpointProvider',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.controller('porImageRegistryController', ['$q', 'RegistryService', 'DockerHubService', 'ImageService', 'Notifications',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
function includeString(text, values) {
return values.some(function(val){

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
function ConstraintModel(op, key, value) {
this.op = op;

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.factory('ImageHelper', [function ImageHelperFactory() {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.factory('InfoHelper', [function InfoHelperFactory() {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { ResourceControlViewModel } from '../../portainer/models/resourceControl';
export function createStatus(statusText) {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { ImageViewModel } from '../models/image';
import { ImageDetailsViewModel } from "../models/imageDetails";
import { ImageLayerViewModel } from "../models/imageLayer";

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { PluginViewModel } from "../models/plugin";
angular.module('portainer.docker')

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { AccessControlFormData } from '../../../../portainer/components/accessControlForm/porAccessControlFormModel';
angular.module('portainer.docker')

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { ContainerCapabilities, ContainerCapability } from '../../../models/containerCapabilities';
import { AccessControlFormData } from '../../../../portainer/components/accessControlForm/porAccessControlFormModel';
import { ContainerDetailsViewModel } from '../../../models/container';

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.controller('ImageController', ['$q', '$scope', '$transition$', '$state', '$timeout', 'ImageService', 'RegistryService', 'Notifications', 'HttpRequestHelper', 'ModalService', 'FileSaver', 'Blob',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.docker')
.controller('ImagesController', ['$scope', '$state', 'ImageService', 'Notifications', 'ModalService', 'HttpRequestHelper', 'FileSaver', 'Blob', 'EndpointProvider',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { AccessControlFormData } from '../../../../portainer/components/accessControlForm/porAccessControlFormModel';
angular.module('portainer.docker')

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.controller('porAccessControlFormController', ['$q', 'UserService', 'TeamService', 'Notifications', 'Authentication', 'ResourceControlService',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.controller('porAccessControlPanelController', ['$q', '$state', 'UserService', 'TeamService', 'ResourceControlService', 'Notifications', 'Authentication', 'ModalService', 'FormValidator',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.controller('porAccessManagementController', ['AccessService', 'Notifications',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app').controller('EndpointListController', [
function EndpointListController() {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.controller('EndpointSelectorController', function () {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app').component('groupForm', {
templateUrl: './groupForm.html',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.controller('MultiEndpointSelectorController', function () {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.controller('TagSelectorController', function () {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app').component('templateList', {
templateUrl: './templateList.html',

View File

@ -1,5 +1,5 @@
import moment from 'moment';
import _ from 'lodash';
import _ from 'lodash-es';
import filesize from 'filesize';
angular.module('portainer.app')

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.factory('EndpointHelper', [function EndpointHelperFactory() {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.factory('ResourceControlHelper', [function ResourceControlHelperFactory() {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.factory('StackHelper', [function StackHelperFactory() {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.factory('TemplateHelper', [function TemplateHelperFactory() {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.factory('EndpointStatusInterceptor', ['$q', '$injector', 'EndpointProvider', function ($q, $injector, EndpointProvider) {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
export function TemplateDefaultModel() {
this.Type = 1;

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { UserAccessViewModel } from '../../models/access';
import { TeamAccessViewModel } from '../../models/access';

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.factory('ResourceControlService', ['$q', 'ResourceControl', 'UserService', 'TeamService', 'ResourceControlHelper', function ResourceControlServiceFactory($q, ResourceControl, UserService, TeamService, ResourceControlHelper) {

View File

@ -1,5 +1,5 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { StackViewModel, ExternalStackViewModel } from '../../models/stack';
angular.module('portainer.app')

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { UserViewModel } from '../../models/user';
import { TeamMembershipModel } from '../../models/teamMembership';

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import CodeMirror from 'codemirror';
import 'codemirror/mode/yaml/yaml.js';
import 'codemirror/addon/lint/lint.js';

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.factory('EndpointProvider', ['LocalStorage', function EndpointProviderFactory(LocalStorage) {

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.factory('ExtensionManager', ['$q', 'PluginService', 'SystemService', 'ExtensionService',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.controller('InitEndpointController', ['$scope', '$state', 'EndpointService', 'StateManager', 'Notifications',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
angular.module('portainer.app')
.controller('TemplateController', ['$q', '$scope', '$state', '$transition$', 'TemplateService', 'TemplateHelper', 'NetworkService', 'Notifications',

View File

@ -1,4 +1,4 @@
import _ from 'lodash';
import _ from 'lodash-es';
import { AccessControlFormData } from '../../components/accessControlForm/porAccessControlFormModel';
angular.module('portainer.app')

View File

@ -59,7 +59,7 @@
"isteven-angular-multiselect": "~4.0.0",
"jquery": "^3.3.1",
"js-yaml": "~3.10.0",
"lodash": "^4.17.10",
"lodash-es": "^4.17.11",
"moment": "^2.21.0",
"ng-file-upload": "~12.2.13",
"rdash-ui": "1.0.*",

View File

@ -5465,6 +5465,11 @@ locate-path@^3.0.0:
p-locate "^3.0.0"
path-exists "^3.0.0"
lodash-es@^4.17.11:
version "4.17.11"
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.11.tgz#145ab4a7ac5c5e52a3531fb4f310255a152b4be0"
integrity sha512-DHb1ub+rMjjrxqlB3H56/6MXtm1lSksDp2rA2cNWjG8mlDUYFhUj3Di2Zn5IwSU87xLv8tNIQ7sSwE/YOX/D/Q==
lodash-webpack-plugin@^0.11.5:
version "0.11.5"
resolved "https://registry.yarnpkg.com/lodash-webpack-plugin/-/lodash-webpack-plugin-0.11.5.tgz#c4bd064b4f561c3f823fa5982bdeb12c475390b9"