From de7fa347df32787415ecda722c6c642b1ef36c3e Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 16 Jun 2022 15:32:17 -0400 Subject: [PATCH] Specifically import the single lodash function --- app/soapbox/actions/compose.js | Bin 21748 -> 21753 bytes app/soapbox/actions/instance.ts | 2 +- app/soapbox/actions/preload.js | Bin 1889 -> 1895 bytes app/soapbox/build_config.js | Bin 999 -> 1034 bytes .../components/autosuggest_account_input.tsx | 2 +- app/soapbox/components/filter_bar.js | Bin 3717 -> 3722 bytes app/soapbox/components/hover_ref_wrapper.tsx | 2 +- app/soapbox/components/scroll-top-button.tsx | 2 +- app/soapbox/components/scrollable_list.tsx | 2 +- app/soapbox/components/status_list.tsx | 2 +- app/soapbox/components/sub_navigation.js | Bin 2361 -> 2366 bytes .../features/account/components/header.js | Bin 24481 -> 24485 bytes app/soapbox/features/admin/user_index.js | Bin 3726 -> 3732 bytes app/soapbox/features/audio/index.js | Bin 15912 -> 15947 bytes .../components/registration_form.tsx | 2 +- app/soapbox/features/blocks/index.tsx | 2 +- app/soapbox/features/bookmarks/index.tsx | 2 +- .../chats/components/chat_message_list.js | Bin 10284 -> 10317 bytes .../compose/components/compose_form.js | Bin 14497 -> 14497 bytes .../components/conversations_list.tsx | 2 +- app/soapbox/features/domain_blocks/index.tsx | 2 +- .../emoji/__tests__/emoji_index.test.ts | 2 +- .../features/favourited_statuses/index.js | Bin 5295 -> 5300 bytes .../features/follow_requests/index.tsx | 2 +- app/soapbox/features/followers/index.js | Bin 4446 -> 4451 bytes app/soapbox/features/following/index.js | Bin 4451 -> 4456 bytes app/soapbox/features/groups/members/index.js | Bin 2170 -> 2175 bytes .../features/groups/removed_accounts/index.js | Bin 2815 -> 2820 bytes .../features/hashtag_timeline/index.js | Bin 4053 -> 4057 bytes app/soapbox/features/mutes/index.tsx | 2 +- app/soapbox/features/notifications/index.js | Bin 7138 -> 7143 bytes .../features/scheduled_statuses/index.tsx | 4 ++-- .../features/ui/components/timeline.tsx | 2 +- app/soapbox/features/ui/index.tsx | 2 +- app/soapbox/features/video/index.js | Bin 19910 -> 19945 bytes .../normalizers/soapbox/soapbox_config.ts | 2 +- .../reducers/__tests__/notifications-test.js | Bin 20431 -> 20432 bytes app/soapbox/reducers/auth.js | Bin 10733 -> 10734 bytes app/soapbox/reducers/relationships.ts | 2 +- .../service_worker/web_push_notifications.ts | 2 +- app/soapbox/utils/config_db.ts | 2 +- 41 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/soapbox/actions/compose.js b/app/soapbox/actions/compose.js index fe54c843e5301ea808784195812073fe5056b044..c42176fa2408c22459ce2ff9950ec50cf9f2bf7e 100644 GIT binary patch delta 43 scmeyelJVzC#tEfzB^gEeB_%nj3TZ|8xeDqz`6-FT8Tv5MjeTh$0GL%04*&oF delta 38 ucmeyllJUz*#tEg8)e0pUMfoKqIjIV@3TZ|8xeDqz`6-FT85<|3g#Z9O3J;)yC9ya|A0(`0OGmkrQlEp Kl-bxH!3+SasU1E5 delta 46 ycmeC;c+Nf{N4Z*|q$o322TZ!=r6|-Y*eVpI7M5lfrD~|>coT`vkl%K1ho|B)FSe&5`6W!?Qzy|;_Hx9P| delta 36 rcmeB@ZIzv%BU!DGlA4rXnwOlaP^*wul%K1ho|B)FSe&uZ%YhF7yozxK^ delta 41 wcmdldv{OhSGq)hWs6?S!p(LXyzoaB5RiRcPttdZNK|LowC9ybTqpBn)0732!vj6}9 diff --git a/app/soapbox/features/account/components/header.js b/app/soapbox/features/account/components/header.js index b76a156a561737ec3208206423efc0b4b2a95a0e..62cfd201034b719639a107799496e7f8fb2c2da3 100644 GIT binary patch delta 47 xcmZ3upKJtszo(5q$CGT L9ZYni|4mx}5w{S$Xwg9mU B5?KHM diff --git a/app/soapbox/features/auth_login/components/registration_form.tsx b/app/soapbox/features/auth_login/components/registration_form.tsx index 0c3e048cee..eba70437aa 100644 --- a/app/soapbox/features/auth_login/components/registration_form.tsx +++ b/app/soapbox/features/auth_login/components/registration_form.tsx @@ -1,6 +1,6 @@ import axios from 'axios'; import { Map as ImmutableMap } from 'immutable'; -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React, { useState, useRef, useCallback } from 'react'; import { useIntl, FormattedMessage, defineMessages } from 'react-intl'; import { Link, useHistory } from 'react-router-dom'; diff --git a/app/soapbox/features/blocks/index.tsx b/app/soapbox/features/blocks/index.tsx index 8b56fc262b..c3ea6585f7 100644 --- a/app/soapbox/features/blocks/index.tsx +++ b/app/soapbox/features/blocks/index.tsx @@ -1,4 +1,4 @@ -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { useDispatch } from 'react-redux'; diff --git a/app/soapbox/features/bookmarks/index.tsx b/app/soapbox/features/bookmarks/index.tsx index 343d7ffc62..c9e3e5de30 100644 --- a/app/soapbox/features/bookmarks/index.tsx +++ b/app/soapbox/features/bookmarks/index.tsx @@ -1,4 +1,4 @@ -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; diff --git a/app/soapbox/features/chats/components/chat_message_list.js b/app/soapbox/features/chats/components/chat_message_list.js index 7090d7074ce4d66a2b54ca8a543adfd2c6d17622..7f02219b44fdd7b278306928410886a715d92eb0 100644 GIT binary patch delta 77 zcmZ1za5i8HvwR9peB1 delta 44 zcmX>buqI$aiDI=vYH@O6L8^{INk&nANl8wsLajntQGTw1dQN^yVsXaCZPV2Oh?fy% diff --git a/app/soapbox/features/compose/components/compose_form.js b/app/soapbox/features/compose/components/compose_form.js index 15b14fadb6ad299211a0b636c69e95b5d16e8223..bfce5173b7890146a61efe4a9b095a7b6600eca9 100644 GIT binary patch delta 31 lcmZ2jxUg`7j!1fHi9%XYey)OgPJT*aafUunV538#1pvYu3&a2b delta 31 mcmZ2jxUg`7j!3madTNP6twLH+ey)OgPJT*aamGf6L<<1D>I;nk diff --git a/app/soapbox/features/conversations/components/conversations_list.tsx b/app/soapbox/features/conversations/components/conversations_list.tsx index 32fbb3e552..9773b246e9 100644 --- a/app/soapbox/features/conversations/components/conversations_list.tsx +++ b/app/soapbox/features/conversations/components/conversations_list.tsx @@ -1,4 +1,4 @@ -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React, { useRef } from 'react'; import { FormattedMessage } from 'react-intl'; diff --git a/app/soapbox/features/domain_blocks/index.tsx b/app/soapbox/features/domain_blocks/index.tsx index 88ddc1a129..cad165b3b9 100644 --- a/app/soapbox/features/domain_blocks/index.tsx +++ b/app/soapbox/features/domain_blocks/index.tsx @@ -1,4 +1,4 @@ -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React from 'react'; import { defineMessages, useIntl, FormattedMessage } from 'react-intl'; import { useDispatch } from 'react-redux'; diff --git a/app/soapbox/features/emoji/__tests__/emoji_index.test.ts b/app/soapbox/features/emoji/__tests__/emoji_index.test.ts index 90ae0993d0..99f46e3b3e 100644 --- a/app/soapbox/features/emoji/__tests__/emoji_index.test.ts +++ b/app/soapbox/features/emoji/__tests__/emoji_index.test.ts @@ -1,5 +1,5 @@ import { emojiIndex } from 'emoji-mart'; -import { pick } from 'lodash'; +import pick from 'lodash/pick'; import { search } from '../emoji_mart_search_light'; diff --git a/app/soapbox/features/favourited_statuses/index.js b/app/soapbox/features/favourited_statuses/index.js index 0de3d520d7bdae85f717b3a84f72bd89df23f094..b4ffb6a8a286223ed2657b5f5b9f327d724583c3 100644 GIT binary patch delta 46 vcmZ3lxkXboGq)hWs6-(pH7UO|FF92qttdZNK|LowC9ya|A11m{pBBGq)hWs6-(pH7UO|FF92qttdZNK|LowC9ya|A11m{!C4Rhs*Dk2 delta 41 wcmaE%^jJwDGq)hWs6?S!Atf~_zcep7RiRcPttdZNK|LowC9ybTqpGtY08f$+C;$Ke diff --git a/app/soapbox/features/groups/members/index.js b/app/soapbox/features/groups/members/index.js index 2b7ef8ecd15805aec699f7d75fcb0958b5e70079..a7b56aeb177aca3b48b329f511c07a3c2c0adacd 100644 GIT binary patch delta 46 vcmew*@LxbRGq)hWs6-(pH7UO|FF92qttdZNK|LowC9ya|A11m{A&LV4td|jd delta 41 wcmew_@Jm1;Gq)hWs6?S!Atf~_zcep7RiRcPttdZNK|LowC9ybTqiPff08wiXKmY&$ diff --git a/app/soapbox/features/groups/removed_accounts/index.js b/app/soapbox/features/groups/removed_accounts/index.js index 5227e0af081a7672bad00191a78511670bbb1bef..cc7e1111def508013ff5a85186a705b4d5e911b9 100644 GIT binary patch delta 46 vcmew_+9IZ!nOl%wRHBfQnv`Ffmz=7QR+OKspq`VTl31Lf4-?&}aGwhRn@ACu delta 41 wcmZn>`!A}HnOl%wRH9I=kdm5|Uz(Sks!*$tR+OKspq`VTl31LvQT09-06{emTmS$7 diff --git a/app/soapbox/features/hashtag_timeline/index.js b/app/soapbox/features/hashtag_timeline/index.js index bf050766c11d53dc1c5af3c2cea6b3a69e1b5bec..8e40a9b85080681e4d8911c0c40b3792fb52a6a4 100644 GIT binary patch delta 44 ucmcaAe^XvLGq)hWs6-*N*tM`UF-IY-C_h(0JtsdUu{c8?D!5U88$SSlyb#R* delta 40 vcmca9e^p*SGq)hWs6?S!A+y-Eurx78p;jTSC_h(0JtsdUu{dL+@-}_|Ijau> diff --git a/app/soapbox/features/mutes/index.tsx b/app/soapbox/features/mutes/index.tsx index adaa390e9f..d564c68e7d 100644 --- a/app/soapbox/features/mutes/index.tsx +++ b/app/soapbox/features/mutes/index.tsx @@ -1,4 +1,4 @@ -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React from 'react'; import { defineMessages, useIntl, FormattedMessage } from 'react-intl'; import { useDispatch } from 'react-redux'; diff --git a/app/soapbox/features/notifications/index.js b/app/soapbox/features/notifications/index.js index d3b5cb3187d9f2629ae27188a5e79eef335e0049..5ac0877d1ce698c3537de3584e841741c9532b2e 100644 GIT binary patch delta 41 qcmaE4{@i>*yj)6ZQhsS(a;idFQGTw1dQN^yVsVB(Omt&KmNWogSr9@1 delta 36 rcmaEE{>XenykxaPN@`MmX { ); }; -export default ScheduledStatuses; \ No newline at end of file +export default ScheduledStatuses; diff --git a/app/soapbox/features/ui/components/timeline.tsx b/app/soapbox/features/ui/components/timeline.tsx index 109fa7dcb0..c58d9db799 100644 --- a/app/soapbox/features/ui/components/timeline.tsx +++ b/app/soapbox/features/ui/components/timeline.tsx @@ -1,5 +1,5 @@ import { OrderedSet as ImmutableOrderedSet } from 'immutable'; -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React, { useCallback } from 'react'; import { defineMessages } from 'react-intl'; diff --git a/app/soapbox/features/ui/index.tsx b/app/soapbox/features/ui/index.tsx index 22037b5abf..9f5bfe5039 100644 --- a/app/soapbox/features/ui/index.tsx +++ b/app/soapbox/features/ui/index.tsx @@ -1,6 +1,6 @@ 'use strict'; -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React, { useState, useEffect, useRef, useCallback } from 'react'; import { HotKeys } from 'react-hotkeys'; import { defineMessages, useIntl } from 'react-intl'; diff --git a/app/soapbox/features/video/index.js b/app/soapbox/features/video/index.js index 423468f6526403664ac1714765e6edf6aff75bb0..0bcb094d727d0dc84d3164c183422812d73ce3df 100644 GIT binary patch delta 83 zcmX>$oAKpr#t9*ADXB^MrFqGz3TZ|8xeDqz`6-FT8Tv3$b!)E7+=Bd~5`~hCqWqGQ N95i(>(T(N)z5qwmAN>FT delta 48 zcmaDkoAKCe#t9+H)e0pUMfoKqIjK4dDXB^MrFqGz3bhJpMftf3>N)u-iNzTkXZiaA E0Mf}4s{jB1 diff --git a/app/soapbox/normalizers/soapbox/soapbox_config.ts b/app/soapbox/normalizers/soapbox/soapbox_config.ts index de7324e00e..d9860909de 100644 --- a/app/soapbox/normalizers/soapbox/soapbox_config.ts +++ b/app/soapbox/normalizers/soapbox/soapbox_config.ts @@ -4,7 +4,7 @@ import { Record as ImmutableRecord, fromJS, } from 'immutable'; -import { trimStart } from 'lodash'; +import trimStart from 'lodash/trimStart'; import { toTailwind } from 'soapbox/utils/tailwind'; import { generateAccent } from 'soapbox/utils/theme'; diff --git a/app/soapbox/reducers/__tests__/notifications-test.js b/app/soapbox/reducers/__tests__/notifications-test.js index 7061c60bb920137d798b8f46bc4befaecfe96496..1ea296c60ac558a5c5dcd934fb8b5c2870b5c4bd 100644 GIT binary patch delta 35 ocmX>; export type Policy = ImmutableMap;