Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
MM-24009: remove redux-offline (#1396)
Browse files Browse the repository at this point in the history
* remove unused parameter re: redux-action-buffer

* remove remote-redux-devtools

* remove network detection

* actually enable frozen stores in development

* remove redux-offline

* leverage redux-devtools-extension to restore redux dev tools integration

* fix tests

* extend tests

* remove retry test that no longer applies

* type configure*Store

* re-simplify createDevReducer

* preserve return semantics of actions

* fix tests

* avoid wrapping setTimeout, prefer await promise

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
  • Loading branch information
lieut-data and mattermod committed Mar 17, 2021
1 parent b993648 commit a9a44d5
Show file tree
Hide file tree
Showing 16 changed files with 262 additions and 521 deletions.
58 changes: 0 additions & 58 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,41 +178,6 @@ SOFTWARE.

---

## redux-offline

This product contains 'redux-offline' by GitHub user "redux-offline".

Redux Offline-First Architecture

* HOMEPAGE:
* https://github.com/jevakallio/redux-offline#readme

* LICENSE: MIT

MIT License

Copyright (c) 2017 Jani Eväkallio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---

## redux-persist

This product contains 'redux-persist' by Zack Story.
Expand Down Expand Up @@ -296,29 +261,6 @@ SOFTWARE.

---

## remote-redux-devtools

This product contains 'remote-redux-devtools' by Mihail Diordiev.

Use Redux DevTools remotely for React Native, hybrid, desktop and server side Redux apps.

* HOMEPAGE:
* https://github.com/zalmoxisus/remote-redux-devtools

* LICENSE: MIT

The MIT License (MIT)

Copyright (c) 2015 Mihail Diordiev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

---

## reselect

This product contains 'reselect' by Lee Bannard.
Expand Down
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To hook up your application to the mattermost-redux store:
```
import configureServiceStore from 'mattermost-redux/store';
configureServiceStore(yourInitialState, yourAppReducers, yourOfflineOptions);
configureServiceStore(yourInitialState, yourAppReducers);
const store = configureStore();
Expand All @@ -24,7 +24,6 @@ const store = configureStore();

* `yourInitialState` - any initial state for any extra reducers you may have (set to `{}` if none)
* `yourAppReducers` - any reducers from your app (set to `{}` if none)
* `yourOfflineOptions` - any offline options, specified using [this redux-offline configuration object](https://github.com/jevakallio/redux-offline#configuration-object)

### Web Client Usage

Expand Down Expand Up @@ -157,30 +156,30 @@ client.login(username, password)

### How to Build mattermost-redux

You only need to build mattermost-redux if you are developing it.
You only need to build mattermost-redux if you are developing it.

#### Webapp Development
If your mattermost-webapp and mattermost-redux are in the same directory, you only
If your mattermost-webapp and mattermost-redux are in the same directory, you only
need to run `npm run dev` or `npm run dev:watch`.
If you have mattermost-webapp in other directory or you are developing your own
application, you can define the environment variable `WEBAPP_DIR` to change the

If you have mattermost-webapp in other directory or you are developing your own
application, you can define the environment variable `WEBAPP_DIR` to change the
destination app
(e. g. `WEBAPP_DIR=/tmp/mattermost-webapp`).

#### React Native (Mobile) Development
If your mattermost-mobile and mattermost-redux are in the same directory, you only
If your mattermost-mobile and mattermost-redux are in the same directory, you only
need to run `npm run dev-mobile` or `npm run dev-mobile:watch`.
If you have mattermost-mobile in other directory or you are developing your own
application, you can define the environment variable `MOBILE_DIR` to change the

If you have mattermost-mobile in other directory or you are developing your own
application, you can define the environment variable `MOBILE_DIR` to change the
destination app
(e. g. `MOBILE_DIR=/tmp/mattermost-mobile`).

#### Resetting apps to use package redux
If you want to go back to using the package specified redux in your web or mobile
app you can stop the server and run `rm -rf .npminstall` to force
your project to reset to the specified package version on next server start.
your project to reset to the specified package version on next server start.

### Contribute Code

Expand Down
Loading

0 comments on commit a9a44d5

Please sign in to comment.