From 97b8a0e5e0b49f9d21679ced9f11032cf64bf685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Thu, 7 Sep 2023 16:31:25 -0300 Subject: [PATCH] remove lodash --- .../user-list-participants/list-item/component.tsx | 9 +++++---- bigbluebutton-html5/package-lock.json | 6 ------ bigbluebutton-html5/package.json | 4 +--- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx b/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx index 46d66ff79a..5e72999a23 100644 --- a/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx +++ b/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx @@ -8,7 +8,8 @@ import { EMOJI_STATUSES } from '/imports/utils/statuses'; import TooltipContainer from '/imports/ui/components/common/tooltip/container'; import Auth from '/imports/ui/services/auth'; import { LockSettings } from '/imports/ui/Types/meeting'; -import _ from 'lodash'; +import { uniqueId } from '/imports/utils/string-utils'; + const messages = defineMessages({ moderator: { id: 'app.userList.moderator', @@ -61,14 +62,14 @@ const UserListItem: React.FC = ({ user, lockSettings }) => { (user.mobile && LABEL.mobile) && intl.formatMessage(messages.mobile), (user.locked && lockSettings.hasActiveLockSetting && !user.isModerator) && ( - +   {intl.formatMessage(messages.locked)} ), user.lastBreakoutRoom?.currentlyInRoom && ( - +   {user.lastBreakoutRoom?.shortName @@ -77,7 +78,7 @@ const UserListItem: React.FC = ({ user, lockSettings }) => { ), (user.cameras.length > 0 && LABEL.sharingWebcam) && ( - + { user.pinned === true ? : } diff --git a/bigbluebutton-html5/package-lock.json b/bigbluebutton-html5/package-lock.json index e65fc339fa..cb45e2258f 100644 --- a/bigbluebutton-html5/package-lock.json +++ b/bigbluebutton-html5/package-lock.json @@ -3041,12 +3041,6 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, - "@types/lodash": { - "version": "4.14.198", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.198.tgz", - "integrity": "sha512-trNJ/vtMZYMLhfN45uLq4ShQSw0/S7xCTLLVM+WM1rmFpba/VS42jVUgaO3w/NOLiWR/09lnYk0yMaA/atdIsg==", - "dev": true - }, "@types/mdast": { "version": "3.0.12", "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz", diff --git a/bigbluebutton-html5/package.json b/bigbluebutton-html5/package.json index 0a40259f57..cf78cc7771 100644 --- a/bigbluebutton-html5/package.json +++ b/bigbluebutton-html5/package.json @@ -61,7 +61,6 @@ "html-to-image": "^1.9.0", "immutability-helper": "~2.8.1", "langmap": "0.0.16", - "lodash": "^4.17.21", "makeup-screenreader-trap": "0.0.5", "meteor-node-stubs": "^1.2.1", "mobx": "6.4.2", @@ -109,9 +108,8 @@ "yaml": "^2.2.2" }, "devDependencies": { - "@types/lodash": "^4.14.197", - "@types/react-virtualized": "^9.21.22", "@types/meteor": "^2.9.3", + "@types/react-virtualized": "^9.21.22", "@types/styled-components": "^5.1.26", "@types/uuid": "^9.0.2", "@typescript-eslint/eslint-plugin": "^6.4.0",