Revert "Use deep imports for importing lodash to make tree shaking easier"

This reverts commit 3c3767a9
This commit is contained in:
kolaente 2020-03-03 21:02:13 +01:00
parent 3c3767a91e
commit fe6c859150
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
9 changed files with 9 additions and 12 deletions

View file

@ -33,7 +33,7 @@
</template> </template>
<script> <script>
import differenceWith from 'lodash' import {differenceWith} from 'lodash'
import multiselect from 'vue-multiselect' import multiselect from 'vue-multiselect'
import UserModel from '../../../models/user' import UserModel from '../../../models/user'

View file

@ -35,7 +35,7 @@
</template> </template>
<script> <script>
import differenceWith from 'lodash' import { differenceWith } from 'lodash'
import multiselect from 'vue-multiselect' import multiselect from 'vue-multiselect'
import LabelService from '../../../services/label' import LabelService from '../../../services/label'

View file

@ -1,6 +1,4 @@
import defaults from 'lodash' import {defaults, omitBy, isNil} from 'lodash'
import omitBy from 'lodash'
import isNil from 'lodash'
export default class AbstractModel { export default class AbstractModel {

View file

@ -1,5 +1,5 @@
import TeamShareBaseModel from './teamShareBase' import TeamShareBaseModel from './teamShareBase'
import merge from 'lodash' import {merge} from 'lodash'
export default class TeamListModel extends TeamShareBaseModel { export default class TeamListModel extends TeamShareBaseModel {
defaults() { defaults() {

View file

@ -1,5 +1,5 @@
import UserModel from './user' import UserModel from './user'
import merge from 'lodash' import {merge} from 'lodash'
export default class TeamMemberModel extends UserModel { export default class TeamMemberModel extends UserModel {
defaults() { defaults() {

View file

@ -1,5 +1,5 @@
import TeamShareBaseModel from './teamShareBase' import TeamShareBaseModel from './teamShareBase'
import merge from 'lodash' import {merge} from 'lodash'
export default class TeamNamespaceModel extends TeamShareBaseModel { export default class TeamNamespaceModel extends TeamShareBaseModel {
defaults() { defaults() {

View file

@ -1,5 +1,5 @@
import UserShareBaseModel from './userShareBase' import UserShareBaseModel from './userShareBase'
import merge from 'lodash' import {merge} from 'lodash'
// This class extends the user share model with a 'rights' parameter which is used in sharing // This class extends the user share model with a 'rights' parameter which is used in sharing
export default class UserListModel extends UserShareBaseModel { export default class UserListModel extends UserShareBaseModel {

View file

@ -1,5 +1,5 @@
import UserShareBaseModel from "./userShareBase"; import UserShareBaseModel from "./userShareBase";
import merge from 'lodash' import {merge} from 'lodash'
// This class extends the user share model with a 'rights' parameter which is used in sharing // This class extends the user share model with a 'rights' parameter which is used in sharing
export default class UserNamespaceModel extends UserShareBaseModel { export default class UserNamespaceModel extends UserShareBaseModel {

View file

@ -1,6 +1,5 @@
import axios from 'axios' import axios from 'axios'
import reduce from 'lodash' import {reduce, replace} from 'lodash'
import replace from 'lodash'
let config = require('../../public/config.json') let config = require('../../public/config.json')