actually import lodash-es
This commit is contained in:
parent
2731ea81cb
commit
3cc8402e01
67 changed files with 67 additions and 67 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { throttle } from 'lodash'
|
||||
import { throttle } from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { snakeCase } from 'lodash'
|
||||
import { snakeCase } from 'lodash-es'
|
||||
|
||||
import { StatusCodeError } from 'src/services/errors/errors'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { last } from 'lodash'
|
||||
import { last } from 'lodash-es'
|
||||
|
||||
import { paramsString, promisedRequest } from './helpers.js'
|
||||
import { fetchFriends, MASTODON_STATUS_URL } from './public.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { orderBy, uniqueId } from 'lodash'
|
||||
import { orderBy, uniqueId } from 'lodash-es'
|
||||
|
||||
import ChatMessage from 'src/components/chat_message/chat_message.vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get, maxBy, minBy, sortBy, throttle } from 'lodash'
|
||||
import { get, maxBy, minBy, sortBy, throttle } from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
import { nextTick } from 'vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { throttle } from 'lodash'
|
||||
import { throttle } from 'lodash-es'
|
||||
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
import { hex2rgb } from '../../services/color_convert/color_convert.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get, reduce } from 'lodash'
|
||||
import { get, reduce } from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
|
||||
import ChatMessageList from 'src/components/chat_message_list/chat_message_list.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get } from 'lodash'
|
||||
import { get } from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { take } from 'lodash'
|
||||
import { take } from 'lodash-es'
|
||||
|
||||
import Popover from 'src/components/popover/popover.vue'
|
||||
import ScreenReaderNotice from 'src/components/screen_reader_notice/screen_reader_notice.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { chunk, debounce, trim } from 'lodash'
|
||||
import { chunk, debounce, trim } from 'lodash-es'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { set, sumBy } from 'lodash'
|
||||
import { set, sumBy } from 'lodash-es'
|
||||
|
||||
import Attachment from 'src/components/attachment/attachment.vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { isEmpty } from 'lodash'
|
||||
import { isEmpty } from 'lodash-es'
|
||||
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { debounce } from 'lodash'
|
||||
import { debounce } from 'lodash-es'
|
||||
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { debounce } from 'lodash'
|
||||
import { debounce } from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
|
||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { last } from 'lodash'
|
||||
import { last } from 'lodash-es'
|
||||
|
||||
import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue'
|
||||
import Popover from 'src/components/popover/popover.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get } from 'lodash'
|
||||
import { get } from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import {
|
|||
unescape as ldUnescape,
|
||||
reject,
|
||||
uniqBy,
|
||||
} from 'lodash'
|
||||
} from 'lodash-es'
|
||||
import { mapActions, mapState } from 'pinia'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { debounce } from 'lodash'
|
||||
import { debounce } from 'lodash-es'
|
||||
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
import Quote from './quote.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { flattenDeep, unescape as ldUnescape } from 'lodash'
|
||||
import { flattenDeep, unescape as ldUnescape } from 'lodash-es'
|
||||
|
||||
import HashtagLink from 'src/components/hashtag_link/hashtag_link.vue'
|
||||
import { MENTIONS_LIMIT } from 'src/components/mentions_line/mentions_line.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { map, uniqBy } from 'lodash'
|
||||
import { map, uniqBy } from 'lodash-es'
|
||||
|
||||
import Conversation from 'src/components/conversation/conversation.vue'
|
||||
import FollowCard from 'src/components/follow_card/follow_card.vue'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import Checkbox from 'components/checkbox/checkbox.vue'
|
|||
import Popover from 'components/popover/popover.vue'
|
||||
import Select from 'components/select/select.vue'
|
||||
import StillImage from 'components/still-image/still-image.vue'
|
||||
import { clone } from 'lodash'
|
||||
import { clone } from 'lodash-es'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get } from 'lodash'
|
||||
import { get } from 'lodash-es'
|
||||
|
||||
import AttachmentSetting from '../helpers/attachment_setting.vue'
|
||||
import BooleanSetting from '../helpers/boolean_setting.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get } from 'lodash'
|
||||
import { get } from 'lodash-es'
|
||||
|
||||
import AttachmentSetting from '../helpers/attachment_setting.vue'
|
||||
import BooleanSetting from '../helpers/boolean_setting.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get } from 'lodash'
|
||||
import { get } from 'lodash-es'
|
||||
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
import AttachmentSetting from '../helpers/attachment_setting.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { clone } from 'lodash'
|
||||
import { clone } from 'lodash-es'
|
||||
|
||||
import Attachment from 'src/components/attachment/attachment.vue'
|
||||
import MediaUpload from 'src/components/media_upload/media_upload.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { cloneDeep, get, isEqual, set } from 'lodash'
|
||||
import { cloneDeep, get, isEqual, set } from 'lodash-es'
|
||||
|
||||
import DraftButtons from './draft_buttons.vue'
|
||||
import LocalSettingIndicator from './local_setting_indicator.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { cloneDeep, isEqual } from 'lodash'
|
||||
import { cloneDeep, isEqual } from 'lodash-es'
|
||||
import { mapActions, mapState } from 'pinia'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { cloneDeep } from 'lodash'
|
||||
import { cloneDeep } from 'lodash-es'
|
||||
import { mapActions, mapState } from 'pinia'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get, map, reject } from 'lodash'
|
||||
import { get, map, reject } from 'lodash-es'
|
||||
|
||||
import Autosuggest from 'src/components/autosuggest/autosuggest.vue'
|
||||
import BlockCard from 'src/components/block_card/block_card.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get, set, throttle, unset } from 'lodash'
|
||||
import { get, set, throttle, unset } from 'lodash-es'
|
||||
import {
|
||||
computed,
|
||||
getCurrentInstance,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { flattenDeep, throttle } from 'lodash'
|
||||
import { flattenDeep, throttle } from 'lodash-es'
|
||||
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
import ColorInput from 'src/components/color_input/color_input.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { groupBy, map } from 'lodash'
|
||||
import { groupBy, map } from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
|
||||
import BasicUserCard from 'src/components/basic_user_card/basic_user_card.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { debounce, throttle } from 'lodash'
|
||||
import { debounce, throttle } from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
|
||||
import Conversation from 'src/components/conversation/conversation.vue'
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import {
|
|||
escape as ldEscape,
|
||||
unescape as ldUnescape,
|
||||
merge,
|
||||
} from 'lodash'
|
||||
} from 'lodash-es'
|
||||
import { mapState } from 'pinia'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get } from 'lodash'
|
||||
import { get } from 'lodash-es'
|
||||
|
||||
import FollowCard from 'src/components/follow_card/follow_card.vue'
|
||||
import List from 'src/components/list/list.vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { shuffle } from 'lodash'
|
||||
import { shuffle } from 'lodash-es'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
// sed -i -e "s/'//gm" -e 's/"/\\"/gm' -re 's/^( +)(.+?): ((.+?))?(,?)(\{?)$/\1"\2": "\4"/gm' -e 's/\"\{\"/{/g' -e 's/,"$/",/g' file.json
|
||||
// There's only problem that apostrophe character ' gets replaced by \\ so you have to fix it manually, sorry.
|
||||
|
||||
import { isEqual } from 'lodash'
|
||||
import { isEqual } from 'lodash-es'
|
||||
|
||||
import enMessages from './en.json'
|
||||
import { langCodeToJsonName, languages } from './languages.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { cloneDeep, get, set } from 'lodash'
|
||||
import { cloneDeep, get, set } from 'lodash-es'
|
||||
|
||||
import { storage } from './storage.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get } from 'lodash'
|
||||
import { get } from 'lodash-es'
|
||||
|
||||
const browserLocale = (navigator.language || 'en').split('-')[0]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { kebabCase } from 'lodash'
|
||||
import { kebabCase } from 'lodash-es'
|
||||
|
||||
const propsToNative = (props) =>
|
||||
Object.keys(props).reduce((acc, cur) => {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { find, reduce } from 'lodash'
|
||||
import { find, reduce } from 'lodash-es'
|
||||
|
||||
export const replaceWord = (str, toReplace, replacement) => {
|
||||
return str.slice(0, toReplace.start) + replacement + str.slice(toReplace.end)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { isFunction } from 'lodash'
|
||||
import { isFunction } from 'lodash-es'
|
||||
|
||||
const getComponentOptions = (Component) =>
|
||||
isFunction(Component) ? Component.options : Component
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { parseLinkHeader } from '@web3-storage/parse-link-header'
|
||||
import escapeHtml from 'escape-html'
|
||||
import { unescape as lodashUnescape } from 'lodash'
|
||||
import { unescape as lodashUnescape } from 'lodash-es'
|
||||
import punycode from 'punycode.js'
|
||||
|
||||
import { fileType } from '../file_type/file_type.service.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { capitalize } from 'lodash'
|
||||
import { capitalize } from 'lodash-es'
|
||||
|
||||
function humanizeErrors(errors) {
|
||||
return Object.entries(errors).reduce((errs, [k, val]) => {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { unescape as ldUnescape } from 'lodash'
|
||||
import { unescape as ldUnescape } from 'lodash-es'
|
||||
|
||||
import { getTagName } from './utility.service.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import ISO6391 from 'iso-639-1'
|
||||
import { map } from 'lodash'
|
||||
import { map } from 'lodash-es'
|
||||
|
||||
import languagesObject from '../../i18n/messages'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import sum from 'hash-sum'
|
||||
import localforage from 'localforage'
|
||||
import { chunk, throttle } from 'lodash'
|
||||
import { chunk, throttle } from 'lodash-es'
|
||||
|
||||
import { getCssRules } from '../theme_data/css_utils.js'
|
||||
import { getEngineChecksum, init } from '../theme_data/theme_data_3.service.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { flattenDeep } from 'lodash'
|
||||
import { flattenDeep } from 'lodash-es'
|
||||
|
||||
export const deserializeShadow = (string) => {
|
||||
const modes = [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { sortBy } from 'lodash'
|
||||
import { sortBy } from 'lodash-es'
|
||||
|
||||
// "Unrolls" a tree structure of item: { parent: { ...item2, parent: { ...item3, parent: {...} } }}
|
||||
// into an array [item2, item3] for iterating
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { brightness, convert } from 'chromatism'
|
||||
import sum from 'hash-sum'
|
||||
import { flattenDeep, sortBy } from 'lodash'
|
||||
import { flattenDeep, sortBy } from 'lodash-es'
|
||||
|
||||
import {
|
||||
alphaBlend,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { includes } from 'lodash'
|
||||
import { includes } from 'lodash-es'
|
||||
|
||||
const generateProfileLink = (id, screenName, restrictedNicknames) => {
|
||||
const complicated =
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { cloneDeep, differenceWith, get, isEqual, set } from 'lodash'
|
||||
import { cloneDeep, differenceWith, get, isEqual, set } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { find, remove } from 'lodash'
|
||||
import { find, remove } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { orderBy, sumBy } from 'lodash'
|
||||
import { orderBy, sumBy } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { maybeShowChatNotification } from '../services/chat_utils/chat_utils.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { merge } from 'lodash'
|
||||
import { merge } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { set } from 'lodash'
|
||||
import { set } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { find, remove } from 'lodash'
|
||||
import { find, remove } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { cloneDeep, set } from 'lodash'
|
||||
import { cloneDeep, set } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { merge } from 'lodash'
|
||||
import { merge } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { get, set } from 'lodash'
|
||||
import { get, set } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
take,
|
||||
uniqWith,
|
||||
unset,
|
||||
} from 'lodash'
|
||||
} from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { toRaw } from 'vue'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { first, last } from 'lodash'
|
||||
import { first, last } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import timelineFetcher from 'src/stores/fetchers/timeline_fetcher.js'
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import {
|
|||
groupBy,
|
||||
isEqual,
|
||||
last,
|
||||
} from 'lodash'
|
||||
} from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
import { toRaw } from 'vue'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import Cookies from 'js-cookie'
|
||||
import { last } from 'lodash'
|
||||
import { last } from 'lodash-es'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { useAnnouncementsStore } from 'src/stores/announcements.js'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { createTestingPinia } from '@pinia/testing'
|
||||
import { snakeCase } from 'lodash'
|
||||
import { snakeCase } from 'lodash-es'
|
||||
import { setActivePinia } from 'pinia'
|
||||
|
||||
import { useStatusesStore } from 'src/stores/statuses.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { cloneDeep } from 'lodash'
|
||||
import { cloneDeep } from 'lodash-es'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import { useLocalConfigStore } from 'src/stores/local_config.js'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { createTestingPinia } from '@pinia/testing'
|
||||
import { snakeCase } from 'lodash'
|
||||
import { snakeCase } from 'lodash-es'
|
||||
import { setActivePinia } from 'pinia'
|
||||
|
||||
import { useAnnouncementsStore } from 'src/stores/announcements.js'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue