Merge pull request #536 from yuya-oc/update-dependencies
Update dependencies
This commit is contained in:
87
NOTICE.txt
87
NOTICE.txt
@@ -382,10 +382,53 @@ limitations under the License.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## prop-types
|
||||||
|
|
||||||
|
This product contains a modified portion of 'prop-types', runtime type checking for React props and similar objects, by Facebook, Inc.
|
||||||
|
|
||||||
|
* HOMEPAGE:
|
||||||
|
* https://github.com/facebook/prop-types
|
||||||
|
|
||||||
|
* LICENSE:
|
||||||
|
|
||||||
|
BSD License
|
||||||
|
|
||||||
|
For React software
|
||||||
|
|
||||||
|
Copyright (c) 2013-present, Facebook, Inc.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
* Neither the name Facebook nor the names of its contributors may be used to
|
||||||
|
endorse or promote products derived from this software without specific
|
||||||
|
prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## react
|
## react
|
||||||
|
|
||||||
This product contains a modified portion of 'react', a declarative, efficient, and flexible JavaScript library for building user interfaces,
|
This product contains a modified portion of 'react', a declarative, efficient, and flexible JavaScript library for building user interfaces,
|
||||||
'react-addons-css-transition-group', the React CSSTransitionGroup add-on, and 'react-dom', the entry point of the DOM-related
|
'create-react-class', a drop-in replacement for React.createClass, and 'react-dom', the entry point of the DOM-related
|
||||||
rendering paths, by Facebook, Inc.
|
rendering paths, by Facebook, Inc.
|
||||||
|
|
||||||
* HOMEPAGE:
|
* HOMEPAGE:
|
||||||
@@ -489,6 +532,48 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## react-transition-group
|
||||||
|
|
||||||
|
This product contains a modified portion of 'react-transition-group', a fork, and "drop in" replacement for the original React TransitionGroup addons, by React Community.
|
||||||
|
|
||||||
|
* HOMEPAGE:
|
||||||
|
* https://github.com/reactjs/react-transition-group
|
||||||
|
|
||||||
|
* LICENSE:
|
||||||
|
|
||||||
|
BSD 3-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2016, React Community
|
||||||
|
Forked from React (https://github.com/facebook/react) Copyright 2013-present, Facebook, Inc.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
* Neither the name of the copyright holder nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## simple-spellchecker
|
## simple-spellchecker
|
||||||
|
|
||||||
This product contains a modified portion of 'simple-spellchecker', a simple and fast spellchecker with spelling suggestions and Electron's integration, by jfmdev.
|
This product contains a modified portion of 'simple-spellchecker', a simple and fast spellchecker with spelling suggestions and Electron's integration, by jfmdev.
|
||||||
|
30
package.json
30
package.json
@@ -38,27 +38,27 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"7zip-bin": "^2.0.4",
|
"7zip-bin": "^2.0.4",
|
||||||
"babel-core": "^6.23.1",
|
"babel-core": "^6.24.1",
|
||||||
"babel-eslint": "^7.1.1",
|
"babel-eslint": "^7.2.3",
|
||||||
"babel-loader": "^6.3.2",
|
"babel-loader": "^7.0.0",
|
||||||
"babel-plugin-transform-object-rest-spread": "^6.23.0",
|
"babel-plugin-transform-object-rest-spread": "^6.23.0",
|
||||||
"babel-preset-react": "^6.23.0",
|
"babel-preset-react": "^6.24.1",
|
||||||
"chai": "^3.5.0",
|
"chai": "^3.5.0",
|
||||||
"cross-env": "^3.1.4",
|
"cross-env": "^4.0.0",
|
||||||
"devtron": "^1.4.0",
|
"devtron": "^1.4.0",
|
||||||
"electron": "1.6.2",
|
"electron": "1.6.6",
|
||||||
"electron-builder": "^14.5.3",
|
"electron-builder": "17.4.0",
|
||||||
"electron-builder-squirrel-windows": "^15.0.0",
|
"electron-builder-squirrel-windows": "17.4.0",
|
||||||
"electron-connect": "^0.6.1",
|
"electron-connect": "^0.6.1",
|
||||||
"eslint": "^3.16.1",
|
"eslint": "^3.19.0",
|
||||||
"eslint-plugin-react": "^6.10.0",
|
"eslint-plugin-react": "^7.0.0",
|
||||||
"mocha": "^3.2.0",
|
"mocha": "^3.3.0",
|
||||||
"mocha-circleci-reporter": "0.0.2",
|
"mocha-circleci-reporter": "0.0.2",
|
||||||
"npm-run-all": "^4.0.2",
|
"npm-run-all": "^4.0.2",
|
||||||
"spectron": "~3.6.0",
|
"spectron": "~3.6.2",
|
||||||
"url-loader": "^0.5.8",
|
"url-loader": "^0.5.8",
|
||||||
"webpack": "^2.2.1",
|
"webpack": "^2.5.1",
|
||||||
"webpack-dev-server": "^2.4.1",
|
"webpack-dev-server": "^2.4.5",
|
||||||
"webpack-merge": "^3.0.0"
|
"webpack-merge": "^4.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -10,7 +10,7 @@ cp "${SRC}/Mattermost-${VERSION}-ia32-win.zip" "${DEST}/mattermost-desktop-${VER
|
|||||||
cp "${SRC}/win/Mattermost Setup ${VERSION}.exe" "${DEST}/mattermost-setup-${VERSION}-win64.exe"
|
cp "${SRC}/win/Mattermost Setup ${VERSION}.exe" "${DEST}/mattermost-setup-${VERSION}-win64.exe"
|
||||||
cp "${SRC}/win-ia32/Mattermost Setup ${VERSION}-ia32.exe" "${DEST}/mattermost-setup-${VERSION}-win32.exe"
|
cp "${SRC}/win-ia32/Mattermost Setup ${VERSION}-ia32.exe" "${DEST}/mattermost-setup-${VERSION}-win32.exe"
|
||||||
|
|
||||||
cp "${SRC}/mac/Mattermost-${VERSION}-mac.tar.gz" "${DEST}/mattermost-desktop-${VERSION}-mac.tar.gz"
|
cp "${SRC}/Mattermost-${VERSION}-mac.tar.gz" "${DEST}/mattermost-desktop-${VERSION}-mac.tar.gz"
|
||||||
|
|
||||||
cp "${SRC}/mattermost-desktop-${VERSION}.tar.gz" "${DEST}/mattermost-desktop-${VERSION}-linux-x64.tar.gz"
|
cp "${SRC}/mattermost-desktop-${VERSION}.tar.gz" "${DEST}/mattermost-desktop-${VERSION}-linux-x64.tar.gz"
|
||||||
cp "${SRC}/mattermost-desktop-${VERSION}-ia32.tar.gz" "${DEST}/mattermost-desktop-${VERSION}-linux-ia32.tar.gz"
|
cp "${SRC}/mattermost-desktop-${VERSION}-ia32.tar.gz" "${DEST}/mattermost-desktop-${VERSION}-linux-ia32.tar.gz"
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
const {Alert} = require('react-bootstrap');
|
const {Alert} = require('react-bootstrap');
|
||||||
|
|
||||||
const baseClassName = 'AutoSaveIndicator';
|
const baseClassName = 'AutoSaveIndicator';
|
||||||
@@ -34,8 +35,8 @@ function AutoSaveIndicator(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AutoSaveIndicator.propTypes = {
|
AutoSaveIndicator.propTypes = {
|
||||||
savingState: React.PropTypes.string.isRequired,
|
savingState: PropTypes.string.isRequired,
|
||||||
errorMessage: React.PropTypes.string
|
errorMessage: PropTypes.string
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = AutoSaveIndicator;
|
module.exports = AutoSaveIndicator;
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
const {Button, Modal} = require('react-bootstrap');
|
const {Button, Modal} = require('react-bootstrap');
|
||||||
|
|
||||||
function DestructiveConfirmationModal(props) {
|
function DestructiveConfirmationModal(props) {
|
||||||
@@ -31,12 +32,12 @@ function DestructiveConfirmationModal(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DestructiveConfirmationModal.propTypes = {
|
DestructiveConfirmationModal.propTypes = {
|
||||||
title: React.PropTypes.string.isRequired,
|
title: PropTypes.string.isRequired,
|
||||||
body: React.PropTypes.node.isRequired,
|
body: PropTypes.node.isRequired,
|
||||||
acceptLabel: React.PropTypes.string.isRequired,
|
acceptLabel: PropTypes.string.isRequired,
|
||||||
cancelLabel: React.PropTypes.string.isRequired,
|
cancelLabel: PropTypes.string.isRequired,
|
||||||
onAccept: React.PropTypes.func.isRequired,
|
onAccept: PropTypes.func.isRequired,
|
||||||
onCancel: React.PropTypes.func.isRequired
|
onCancel: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = DestructiveConfirmationModal;
|
module.exports = DestructiveConfirmationModal;
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
// ErrorCode: https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h
|
// ErrorCode: https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h
|
||||||
|
|
||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
const {Grid, Row, Col} = require('react-bootstrap');
|
const {Grid, Row, Col} = require('react-bootstrap');
|
||||||
|
|
||||||
const errorPage = {
|
const errorPage = {
|
||||||
@@ -92,10 +93,10 @@ function ErrorView(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ErrorView.propTypes = {
|
ErrorView.propTypes = {
|
||||||
errorInfo: React.PropTypes.object,
|
errorInfo: PropTypes.object,
|
||||||
id: React.PropTypes.number,
|
id: PropTypes.number,
|
||||||
active: React.PropTypes.bool,
|
active: PropTypes.bool,
|
||||||
withTab: React.PropTypes.bool
|
withTab: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = ErrorView;
|
module.exports = ErrorView;
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
|
|
||||||
function HoveringURL(props) {
|
function HoveringURL(props) {
|
||||||
return (
|
return (
|
||||||
@@ -9,8 +10,8 @@ function HoveringURL(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
HoveringURL.propTypes = {
|
HoveringURL.propTypes = {
|
||||||
style: React.PropTypes.object,
|
style: PropTypes.object,
|
||||||
targetURL: React.PropTypes.string
|
targetURL: PropTypes.string
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = HoveringURL;
|
module.exports = HoveringURL;
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
const ReactDOM = require('react-dom');
|
const ReactDOM = require('react-dom');
|
||||||
const {Button, Col, ControlLabel, Form, FormGroup, FormControl, Modal} = require('react-bootstrap');
|
const {Button, Col, ControlLabel, Form, FormGroup, FormControl, Modal} = require('react-bootstrap');
|
||||||
|
|
||||||
@@ -86,12 +87,12 @@ class LoginModal extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LoginModal.propTypes = {
|
LoginModal.propTypes = {
|
||||||
authInfo: React.PropTypes.object,
|
authInfo: PropTypes.object,
|
||||||
authServerURL: React.PropTypes.string,
|
authServerURL: PropTypes.string,
|
||||||
onCancel: React.PropTypes.func,
|
onCancel: PropTypes.func,
|
||||||
onLogin: React.PropTypes.func,
|
onLogin: PropTypes.func,
|
||||||
request: React.PropTypes.object,
|
request: PropTypes.object,
|
||||||
show: React.PropTypes.bool
|
show: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = LoginModal;
|
module.exports = LoginModal;
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
const ReactCSSTransitionGroup = require('react-addons-css-transition-group');
|
const PropTypes = require('prop-types');
|
||||||
|
const createReactClass = require('create-react-class');
|
||||||
|
const ReactCSSTransitionGroup = require('react-transition-group/CSSTransitionGroup');
|
||||||
const {Grid, Row} = require('react-bootstrap');
|
const {Grid, Row} = require('react-bootstrap');
|
||||||
|
|
||||||
const {ipcRenderer, remote} = require('electron');
|
const {ipcRenderer, remote} = require('electron');
|
||||||
@@ -34,14 +36,14 @@ const styles = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const MainPage = React.createClass({
|
const MainPage = createReactClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
onUnreadCountChange: React.PropTypes.func.isRequired,
|
onUnreadCountChange: PropTypes.func.isRequired,
|
||||||
teams: React.PropTypes.array.isRequired,
|
teams: PropTypes.array.isRequired,
|
||||||
onTeamConfigChange: React.PropTypes.func.isRequired,
|
onTeamConfigChange: PropTypes.func.isRequired,
|
||||||
initialIndex: React.PropTypes.number.isRequired,
|
initialIndex: PropTypes.number.isRequired,
|
||||||
useSpellChecker: React.PropTypes.bool.isRequired,
|
useSpellChecker: PropTypes.bool.isRequired,
|
||||||
onSelectSpellCheckerLocale: React.PropTypes.func.isRequired
|
onSelectSpellCheckerLocale: PropTypes.func.isRequired
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
|
const createReactClass = require('create-react-class');
|
||||||
const {findDOMNode} = require('react-dom');
|
const {findDOMNode} = require('react-dom');
|
||||||
const {ipcRenderer, remote, shell} = require('electron');
|
const {ipcRenderer, remote, shell} = require('electron');
|
||||||
const url = require('url');
|
const url = require('url');
|
||||||
@@ -8,17 +10,17 @@ const ErrorView = require('./ErrorView.jsx');
|
|||||||
|
|
||||||
const preloadJS = `file://${remote.app.getAppPath()}/browser/webview/mattermost_bundle.js`;
|
const preloadJS = `file://${remote.app.getAppPath()}/browser/webview/mattermost_bundle.js`;
|
||||||
|
|
||||||
const MattermostView = React.createClass({
|
const MattermostView = createReactClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
name: React.PropTypes.string,
|
name: PropTypes.string,
|
||||||
id: React.PropTypes.string,
|
id: PropTypes.string,
|
||||||
onTargetURLChange: React.PropTypes.func,
|
onTargetURLChange: PropTypes.func,
|
||||||
onUnreadCountChange: React.PropTypes.func,
|
onUnreadCountChange: PropTypes.func,
|
||||||
src: React.PropTypes.string,
|
src: PropTypes.string,
|
||||||
active: React.PropTypes.bool,
|
active: PropTypes.bool,
|
||||||
withTab: React.PropTypes.bool,
|
withTab: PropTypes.bool,
|
||||||
useSpellChecker: React.PropTypes.bool,
|
useSpellChecker: PropTypes.bool,
|
||||||
onSelectSpellCheckerLocale: React.PropTypes.func
|
onSelectSpellCheckerLocale: PropTypes.func
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
const {Modal, Button, FormGroup, FormControl, ControlLabel, HelpBlock} = require('react-bootstrap');
|
const {Modal, Button, FormGroup, FormControl, ControlLabel, HelpBlock} = require('react-bootstrap');
|
||||||
|
|
||||||
class NewTeamModal extends React.Component {
|
class NewTeamModal extends React.Component {
|
||||||
@@ -199,11 +200,11 @@ class NewTeamModal extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
NewTeamModal.propTypes = {
|
NewTeamModal.propTypes = {
|
||||||
onClose: React.PropTypes.func,
|
onClose: PropTypes.func,
|
||||||
onSave: React.PropTypes.func,
|
onSave: PropTypes.func,
|
||||||
team: React.PropTypes.object,
|
team: PropTypes.object,
|
||||||
editMode: React.PropTypes.bool,
|
editMode: PropTypes.bool,
|
||||||
show: React.PropTypes.bool
|
show: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = NewTeamModal;
|
module.exports = NewTeamModal;
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
const {Modal} = require('react-bootstrap');
|
const {Modal} = require('react-bootstrap');
|
||||||
const DestructiveConfirmationModal = require('./DestructiveConfirmModal.jsx');
|
const DestructiveConfirmationModal = require('./DestructiveConfirmModal.jsx');
|
||||||
|
|
||||||
@@ -26,7 +27,7 @@ function RemoveServerModal(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RemoveServerModal.propTypes = {
|
RemoveServerModal.propTypes = {
|
||||||
serverName: React.PropTypes.string.isRequired
|
serverName: PropTypes.string.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = RemoveServerModal;
|
module.exports = RemoveServerModal;
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
|
const createReactClass = require('create-react-class');
|
||||||
const ReactDOM = require('react-dom');
|
const ReactDOM = require('react-dom');
|
||||||
const {Button, Checkbox, Col, FormGroup, Grid, HelpBlock, Navbar, Radio, Row} = require('react-bootstrap');
|
const {Button, Checkbox, Col, FormGroup, Grid, HelpBlock, Navbar, Radio, Row} = require('react-bootstrap');
|
||||||
|
|
||||||
@@ -22,9 +24,9 @@ function backToIndex(index) {
|
|||||||
remote.getCurrentWindow().loadURL(`${indexURL}?index=${target}`);
|
remote.getCurrentWindow().loadURL(`${indexURL}?index=${target}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const SettingsPage = React.createClass({
|
const SettingsPage = createReactClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
configFile: React.PropTypes.string
|
configFile: PropTypes.string
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
const {Nav, NavItem, Button} = require('react-bootstrap');
|
const {Nav, NavItem, Button} = require('react-bootstrap');
|
||||||
|
|
||||||
class TabBar extends React.Component {
|
class TabBar extends React.Component {
|
||||||
@@ -116,11 +117,11 @@ class TabBar extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TabBar.propTypes = {
|
TabBar.propTypes = {
|
||||||
activeKey: React.PropTypes.number,
|
activeKey: PropTypes.number,
|
||||||
id: React.PropTypes.string,
|
id: PropTypes.string,
|
||||||
onSelect: React.PropTypes.func,
|
onSelect: PropTypes.func,
|
||||||
teams: React.PropTypes.array,
|
teams: PropTypes.array,
|
||||||
onAddServer: React.PropTypes.func
|
onAddServer: PropTypes.func
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = TabBar;
|
module.exports = TabBar;
|
||||||
|
@@ -1,19 +1,21 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
|
const createReactClass = require('create-react-class');
|
||||||
const {ListGroup} = require('react-bootstrap');
|
const {ListGroup} = require('react-bootstrap');
|
||||||
const TeamListItem = require('./TeamListItem.jsx');
|
const TeamListItem = require('./TeamListItem.jsx');
|
||||||
const NewTeamModal = require('./NewTeamModal.jsx');
|
const NewTeamModal = require('./NewTeamModal.jsx');
|
||||||
const RemoveServerModal = require('./RemoveServerModal.jsx');
|
const RemoveServerModal = require('./RemoveServerModal.jsx');
|
||||||
|
|
||||||
const TeamList = React.createClass({
|
const TeamList = createReactClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
onTeamsChange: React.PropTypes.func,
|
onTeamsChange: PropTypes.func,
|
||||||
showAddTeamForm: React.PropTypes.bool,
|
showAddTeamForm: PropTypes.bool,
|
||||||
teams: React.PropTypes.array,
|
teams: PropTypes.array,
|
||||||
addServer: React.PropTypes.func,
|
addServer: PropTypes.func,
|
||||||
updateTeam: React.PropTypes.func,
|
updateTeam: PropTypes.func,
|
||||||
toggleAddTeamForm: React.PropTypes.func,
|
toggleAddTeamForm: PropTypes.func,
|
||||||
setAddTeamFormVisibility: React.PropTypes.func,
|
setAddTeamFormVisibility: PropTypes.func,
|
||||||
onTeamClick: React.PropTypes.func
|
onTeamClick: PropTypes.func
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
const PropTypes = require('prop-types');
|
||||||
|
|
||||||
class TeamListItem extends React.Component {
|
class TeamListItem extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@@ -49,11 +50,11 @@ class TeamListItem extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TeamListItem.propTypes = {
|
TeamListItem.propTypes = {
|
||||||
name: React.PropTypes.string,
|
name: PropTypes.string,
|
||||||
onTeamEditing: React.PropTypes.func,
|
onTeamEditing: PropTypes.func,
|
||||||
onTeamRemove: React.PropTypes.func,
|
onTeamRemove: PropTypes.func,
|
||||||
onTeamClick: React.PropTypes.func,
|
onTeamClick: PropTypes.func,
|
||||||
url: React.PropTypes.string
|
url: PropTypes.string
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = TeamListItem;
|
module.exports = TeamListItem;
|
||||||
|
@@ -14,14 +14,16 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"auto-launch": "^5.0.1",
|
"auto-launch": "^5.0.1",
|
||||||
"bootstrap": "^3.3.7",
|
"bootstrap": "^3.3.7",
|
||||||
"electron-context-menu": "^0.8.0",
|
"create-react-class": "^15.5.3",
|
||||||
"electron-devtools-installer": "^2.1.0",
|
"electron-context-menu": "^0.9.0",
|
||||||
|
"electron-devtools-installer": "^2.2.0",
|
||||||
"electron-is-dev": "^0.1.2",
|
"electron-is-dev": "^0.1.2",
|
||||||
"electron-squirrel-startup": "^1.0.0",
|
"electron-squirrel-startup": "^1.0.0",
|
||||||
"react": "^15.4.2",
|
"prop-types": "^15.5.9",
|
||||||
"react-addons-css-transition-group": "^15.4.2",
|
"react": "^15.5.4",
|
||||||
"react-bootstrap": "~0.30.7",
|
"react-bootstrap": "~0.31.0",
|
||||||
"react-dom": "^15.4.2",
|
"react-dom": "^15.5.4",
|
||||||
|
"react-transition-group": "^1.1.1",
|
||||||
"simple-spellchecker": "git://github.com/jfmdev/simple-spellchecker.git#723062952a0290c6285aeaf02f14d9c74c41cadb",
|
"simple-spellchecker": "git://github.com/jfmdev/simple-spellchecker.git#723062952a0290c6285aeaf02f14d9c74c41cadb",
|
||||||
"underscore": "^1.8.3",
|
"underscore": "^1.8.3",
|
||||||
"yargs": "^3.32.0"
|
"yargs": "^3.32.0"
|
||||||
|
Reference in New Issue
Block a user