Use lodash-es everywhere

This commit is contained in:
JC Brand 2021-05-12 12:14:28 +02:00
parent 9e81fa495e
commit 2b12f8e257
15 changed files with 23 additions and 23 deletions

View File

@ -6,11 +6,11 @@ import Storage from '@converse/skeletor/src/storage.js';
import _converse from '@converse/headless/shared/_converse';
import advancedFormat from 'dayjs/plugin/advancedFormat';
import dayjs from 'dayjs';
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import i18n from '@converse/headless/shared/i18n';
import invoke from 'lodash/invoke';
import isFunction from 'lodash/isFunction';
import isObject from 'lodash/isObject';
import invoke from 'lodash-es/invoke';
import isFunction from 'lodash-es/isFunction';
import isObject from 'lodash-es/isObject';
import localDriver from 'localforage-webextensionstorage-driver/local';
import log from '@converse/headless/log';
import pluggable from 'pluggable.js/src/pluggable.js';

View File

@ -1,9 +1,9 @@
import ModelWithContact from './model-with-contact.js';
import filesize from "filesize";
import isMatch from "lodash/isMatch";
import isObject from "lodash/isObject";
import isMatch from "lodash-es/isMatch";
import isObject from "lodash-es/isObject";
import log from '@converse/headless/log';
import pick from "lodash/pick";
import pick from "lodash-es/pick";
import { Model } from '@converse/skeletor/src/model.js';
import { _converse, api, converse } from "../../core.js";
import { getOpenPromise } from '@converse/openpromise';

View File

@ -1,6 +1,6 @@
import RosterContact from './contact.js';
import log from "@converse/headless/log";
import sum from 'lodash/sum';
import sum from 'lodash-es/sum';
import { Collection } from "@converse/skeletor/src/collection";
import { Model } from "@converse/skeletor/src/model";
import { __ } from 'i18n';

View File

@ -5,7 +5,7 @@
import "@converse/headless/plugins/status";
import RosterContact from './contact.js';
import RosterContacts from './contacts.js';
import invoke from 'lodash/invoke';
import invoke from 'lodash-es/invoke';
import log from "@converse/headless/log";
import roster_api from './api.js';
import { Presence, Presences } from './presence.js';

View File

@ -1,4 +1,4 @@
import isNaN from "lodash/isNaN";
import isNaN from "lodash-es/isNaN";
import { Collection } from "@converse/skeletor/src/collection";
import { Model } from '@converse/skeletor/src/model.js';
import { converse } from "@converse/headless/core";

View File

@ -1,5 +1,5 @@
import debounce from 'lodash/debounce';
import isElement from 'lodash/isElement';
import debounce from 'lodash-es/debounce';
import isElement from 'lodash-es/isElement';
import log from "../log.js";
import sizzle from 'sizzle';
import { Strophe } from 'strophe.js/src/core';

View File

@ -7,7 +7,7 @@
* Copyright 2006-2017 Strophe (https://github.com/strophe/strophejs)
*/
import { _converse, converse } from "../core.js";
import pick from 'lodash/pick';
import pick from 'lodash-es/pick';
const { Strophe, $build } = converse.env;

View File

@ -1,8 +1,8 @@
import _converse from '@converse/headless/shared/_converse';
import assignIn from 'lodash/assignIn';
import isObject from 'lodash/isObject';
import assignIn from 'lodash-es/assignIn';
import isObject from 'lodash-es/isObject';
import log from '@converse/headless/log';
import pick from 'lodash/pick';
import pick from 'lodash-es/pick';
import u from '@converse/headless/utils/core';
import { Model } from '@converse/skeletor/src/model.js';
import { initStorage } from '@converse/headless/shared/utils.js';

View File

@ -1,5 +1,5 @@
import UserDetailsModal from 'modals/user-details.js';
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import tpl_chatbox_head from './templates/chat-head.js';
import { ElementView } from '@converse/skeletor/src/element.js';
import { __ } from 'i18n';

View File

@ -1,6 +1,6 @@
import 'shared/autocomplete/index.js';
import BottomPanel from 'plugins/chatview/bottom-panel.js';
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import tpl_muc_bottom_panel from './templates/muc-bottom-panel.js';
import { __ } from 'i18n';
import { _converse, api, converse } from "@converse/headless/core";

View File

@ -1,7 +1,7 @@
import ChatHeading from 'plugins/chatview/heading.js';
import MUCInviteModal from 'modals/muc-invite.js';
import RoomDetailsModal from 'modals/muc-details.js';
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import tpl_muc_head from './templates/muc-head.js';
import { Model } from '@converse/skeletor/src/model.js';
import { __ } from 'i18n';

View File

@ -1,4 +1,4 @@
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import tpl_roster from "./templates/roster.js";
import { ElementView } from "@converse/skeletor/src/element";
import { Model } from '@converse/skeletor/src/model.js';

View File

@ -1,4 +1,4 @@
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import log from '@converse/headless/log';
import tpl_spinner from 'templates/spinner.js';
import { ElementView } from '@converse/skeletor/src/element.js';

View File

@ -1,5 +1,5 @@
import "./message-history";
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import { CustomElement } from 'shared/components/element.js';
import { _converse, api } from "@converse/headless/core";
import { html } from 'lit';

View File

@ -1,6 +1,6 @@
import "./emoji-picker-content.js";
import DOMNavigator from "shared/dom-navigator";
import debounce from 'lodash/debounce';
import debounce from 'lodash-es/debounce';
import { BaseDropdown } from "shared/components/dropdown.js";
import { CustomElement } from 'shared/components/element.js';
import { __ } from 'i18n';