Add manifest.json, icons and install button, flatten client/src
This commit is contained in:
parent
a219e689c1
commit
474afda9c2
105 changed files with 338 additions and 283 deletions
29
client/js/containers/Settings.js
Normal file
29
client/js/containers/Settings.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { createStructuredSelector } from 'reselect';
|
||||
import Settings from 'components/pages/Settings';
|
||||
import { appSet } from 'state/app';
|
||||
import {
|
||||
getSettings,
|
||||
setSetting,
|
||||
setCert,
|
||||
setKey,
|
||||
uploadCert
|
||||
} from 'state/settings';
|
||||
import connect from 'utils/connect';
|
||||
|
||||
const mapState = createStructuredSelector({
|
||||
settings: getSettings,
|
||||
installable: state => state.app.installable
|
||||
});
|
||||
|
||||
const mapDispatch = {
|
||||
onCertChange: setCert,
|
||||
onKeyChange: setKey,
|
||||
uploadCert,
|
||||
setSetting,
|
||||
onInstall: () => appSet('installable', null)
|
||||
};
|
||||
|
||||
export default connect(
|
||||
mapState,
|
||||
mapDispatch
|
||||
)(Settings);
|
Loading…
Add table
Add a link
Reference in a new issue