Use deep imports for importing lodash to make tree shaking easier
This commit is contained in:
parent
aeba5651af
commit
3c3767a91e
9 changed files with 12 additions and 9 deletions
|
@ -33,7 +33,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {differenceWith} from 'lodash'
|
||||
import differenceWith from 'lodash'
|
||||
import multiselect from 'vue-multiselect'
|
||||
|
||||
import UserModel from '../../../models/user'
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { differenceWith } from 'lodash'
|
||||
import differenceWith from 'lodash'
|
||||
import multiselect from 'vue-multiselect'
|
||||
|
||||
import LabelService from '../../../services/label'
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import {defaults, omitBy, isNil} from 'lodash'
|
||||
import defaults from 'lodash'
|
||||
import omitBy from 'lodash'
|
||||
import isNil from 'lodash'
|
||||
|
||||
export default class AbstractModel {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import TeamShareBaseModel from './teamShareBase'
|
||||
import {merge} from 'lodash'
|
||||
import merge from 'lodash'
|
||||
|
||||
export default class TeamListModel extends TeamShareBaseModel {
|
||||
defaults() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import UserModel from './user'
|
||||
import {merge} from 'lodash'
|
||||
import merge from 'lodash'
|
||||
|
||||
export default class TeamMemberModel extends UserModel {
|
||||
defaults() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import TeamShareBaseModel from './teamShareBase'
|
||||
import {merge} from 'lodash'
|
||||
import merge from 'lodash'
|
||||
|
||||
export default class TeamNamespaceModel extends TeamShareBaseModel {
|
||||
defaults() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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
|
||||
export default class UserListModel extends UserShareBaseModel {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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
|
||||
export default class UserNamespaceModel extends UserShareBaseModel {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import axios from 'axios'
|
||||
import {reduce, replace} from 'lodash'
|
||||
import reduce from 'lodash'
|
||||
import replace from 'lodash'
|
||||
|
||||
let config = require('../../public/config.json')
|
||||
|
||||
|
|
Loading…
Reference in a new issue