cleaned up lodash imports
This commit is contained in:
parent
f9767ec3cf
commit
1ee18a7fa3
15 changed files with 19 additions and 27 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import _ from 'lodash'
|
||||
import { throttle } from 'lodash'
|
||||
import { mapState as mapPiniaState } from 'pinia'
|
||||
import { mapGetters, mapState } from 'vuex'
|
||||
|
||||
|
|
@ -224,7 +224,7 @@ const Chat = {
|
|||
}
|
||||
}, 5000)
|
||||
},
|
||||
handleScroll: _.throttle(function () {
|
||||
handleScroll: throttle(function () {
|
||||
this.lastScrollPosition = getScrollPosition()
|
||||
if (!this.currentChat) {
|
||||
return
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import get from 'lodash/get'
|
||||
import { get } from 'lodash'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import Modal from '../modal/modal.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import get from 'lodash/get'
|
||||
import { get } from 'lodash'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import Modal from '../modal/modal.vue'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { uniqBy } from 'lodash'
|
||||
import map from 'lodash/map'
|
||||
import { uniqBy, map } from 'lodash'
|
||||
|
||||
import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
|
||||
import Conversation from '../conversation/conversation.vue'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
import get from 'lodash/get'
|
||||
import map from 'lodash/map'
|
||||
import reject from 'lodash/reject'
|
||||
import { get, map, reject } from 'lodash'
|
||||
|
||||
import withLoadMore from 'src/components/../hocs/with_load_more/with_load_more'
|
||||
import withSubscription from 'src/components/../hocs/with_subscription/with_subscription'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import groupBy from 'lodash/groupBy'
|
||||
import map from 'lodash/map'
|
||||
import { map, groupBy } from 'lodash'
|
||||
import { mapGetters, mapState } from 'vuex'
|
||||
|
||||
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
import ldEscape from 'lodash/escape'
|
||||
import isEqual from 'lodash/isEqual'
|
||||
import merge from 'lodash/merge'
|
||||
import ldUnescape from 'lodash/unescape'
|
||||
import { escape as ldEscape, isEqual, merge, unescape as ldUnescape } from 'lodash'
|
||||
import { mapState } from 'pinia'
|
||||
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import get from 'lodash/get'
|
||||
import { get } from 'lodash'
|
||||
import { mapState } from 'pinia'
|
||||
|
||||
import RichContent from 'src/components/rich_content/rich_content.jsx'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue