From aeef12acf0d3c3706007eb3bfa7a19188c339528 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 18 Sep 2021 18:31:22 -0500 Subject: [PATCH] Rip out react-redux-loading-bar --- .../features/ui/components/image_loader.js | Bin 4100 -> 3928 bytes .../ui/containers/loading_bar_container.js | Bin 281 -> 0 bytes app/soapbox/features/ui/index.js | Bin 24400 -> 24272 bytes app/soapbox/middleware/loading_bar.js | Bin 854 -> 0 bytes app/soapbox/reducers/index.js | Bin 3581 -> 3487 bytes app/soapbox/store/configureStore.js | Bin 641 -> 496 bytes app/styles/loading.scss | 8 -------- app/styles/ui.scss | 4 ---- docs/store.md | 9 --------- package.json | 1 - yarn.lock | 8 -------- 11 files changed, 30 deletions(-) delete mode 100644 app/soapbox/features/ui/containers/loading_bar_container.js delete mode 100644 app/soapbox/middleware/loading_bar.js diff --git a/app/soapbox/features/ui/components/image_loader.js b/app/soapbox/features/ui/components/image_loader.js index 4b699365b9b90c49e83b0ced8eb0071134ca8ac6..99f7c298194ca69620ee02852b21c1627ed96a80 100644 GIT binary patch delta 15 WcmZosxFI(od*i}B-pxz-;u!%pwgyQ6 delta 169 zcmca1*P<{XTc=vVCqFSIGcVmKu}Gm-A+0DsS3$ifH8HtFw5}!EX9I_L=oRsN!Dm`2*UuvV4>P4i+d7{aY)5( cseP1Iag`*z2}{LKgbeT)EsRMh;kYT zl2T}uo_zL3!Z5*$&(M;35s78-va+Ex02+WyauSYr08Owv^znKff|fJ@3`Nc;SS5sn zXTAtdAhl+XK(P?&X-PLEV11_$07%qbxc+8hTu zYYwu<0q~meR)X*iQZ+akP4NO-jJ+bWj-#@zU5$>?@7T1bHE1VI_##gtk|Y@Z$<#3a z=5Fx|12K@=!S^y-**k~av+~u_`1Z{k(6(E>#k6eQK?Rs_y!TvJ)Q#C7hulsN!mq1y#zZ#6Y4;}-?x577Vs diff --git a/app/soapbox/reducers/index.js b/app/soapbox/reducers/index.js index 5c050b1333e9f0371ee7fd88de71e6705aa5bb39..2b7ecd23c81736bb0fd35a1dbd2b6d4cfaa32b49 100644 GIT binary patch delta 17 Zcmew>Jzsi*KI7&b#y#wtJvq0q002JH22%h4 delta 99 zcmbO){a1Q}KBIB9LQZ~SN@iZVQ({q2YD#HxYLP;%LRwLNu7Y||YGQJUZV^zlLKmt^ ZHz~1bvnt~;c3FfrD@-FcKj+xN0stI;B=P_N diff --git a/app/soapbox/store/configureStore.js b/app/soapbox/store/configureStore.js index 0e0d45c668898f513f3fa2b422da03a414ecfbcf..63f92cf5302a1137cd25d5a0e0dbb953a9b3f5d4 100644 GIT binary patch delta 13 VcmZo<{lGk-cjDh|D9X>x zEKUunEJzJ5O-swHNG-Nfh*l4B4GeV+4pG-pP!A4uc6JR81~J_nJ$=+;6>2pn$1_d@ E0A#=^ssI20 diff --git a/app/styles/loading.scss b/app/styles/loading.scss index 6f5f1736fd..45145d1f21 100644 --- a/app/styles/loading.scss +++ b/app/styles/loading.scss @@ -148,14 +148,6 @@ animation: shake-bottom 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) 2s 2 both; } -.loading-bar { - background-color: var(--highlight-text-color); - height: 3px; - position: absolute; - top: 0; - left: 0; -} - .load-more { display: block; color: var(--primary-text-color); diff --git a/app/styles/ui.scss b/app/styles/ui.scss index d05a18e4c2..a51495ec84 100644 --- a/app/styles/ui.scss +++ b/app/styles/ui.scss @@ -279,10 +279,6 @@ object-fit: contain; } - .loading-bar { - position: relative; - } - &.image-loader--amorphous .image-loader__preview-canvas { display: none; } diff --git a/docs/store.md b/docs/store.md index 69f2ba1e45..34088ab8c0 100644 --- a/docs/store.md +++ b/docs/store.md @@ -104,15 +104,6 @@ If it's not documented, it's because I inherited it from Mastodon and I don't kn alerts: [] ``` -- `loadingBar` - Managed by [react-redux-loading-bar](https://github.com/mironov/react-redux-loading-bar) - - Sample: - ``` - loadingBar: { - 'default': 0 - } - ``` - - `modal` Sample: diff --git a/package.json b/package.json index e497e8b2bb..f06f4fa270 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,6 @@ "react-overlays": "^0.9.0", "react-popper": "^2.2.3", "react-redux": "^7.2.5", - "react-redux-loading-bar": "^5.0.0", "react-router-dom": "^4.3.1", "react-router-scroll-4": "^1.0.0-beta.1", "react-sparklines": "^1.7.0", diff --git a/yarn.lock b/yarn.lock index 7fb7cb9f57..3bc208261a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7879,14 +7879,6 @@ react-popper@^2.2.3, react-popper@^2.2.5: react-fast-compare "^3.0.1" warning "^4.0.2" -react-redux-loading-bar@^5.0.0: - version "5.0.2" - resolved "https://registry.yarnpkg.com/react-redux-loading-bar/-/react-redux-loading-bar-5.0.2.tgz#e62d527892b0a7682baa2ebbb3fd34c0b807e485" - integrity sha512-M+gK/Q79UG3iVljv6myRJptdQ5sIKdYDigeukwGocvWLCgWFdtpeP8IY8lBIYsqHXtuFBP/gj7E3qvGwCtcpRQ== - dependencies: - prop-types "^15.7.2" - react-lifecycles-compat "^3.0.4" - react-redux@^7.2.5: version "7.2.5" resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-7.2.5.tgz#213c1b05aa1187d9c940ddfc0b29450957f6a3b8"