From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 14 Mar 2016 08:50:46 -0400 Subject: Converting to Webpack. Stage 1. --- .../user_settings/user_settings_developer.jsx | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 webapp/components/user_settings/user_settings_developer.jsx (limited to 'webapp/components/user_settings/user_settings_developer.jsx') diff --git a/webapp/components/user_settings/user_settings_developer.jsx b/webapp/components/user_settings/user_settings_developer.jsx new file mode 100644 index 000000000..cabb021cb --- /dev/null +++ b/webapp/components/user_settings/user_settings_developer.jsx @@ -0,0 +1,138 @@ +// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import SettingItemMin from '../setting_item_min.jsx'; +import SettingItemMax from '../setting_item_max.jsx'; +import * as GlobalActions from 'action_creators/global_actions.jsx'; + +import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl'; + +const holders = defineMessages({ + applicationsPreview: { + id: 'user.settings.developer.applicationsPreview', + defaultMessage: 'Applications (Preview)' + }, + thirdParty: { + id: 'user.settings.developer.thirdParty', + defaultMessage: 'Open to register a new third-party application' + } +}); + +import React from 'react'; + +class DeveloperTab extends React.Component { + constructor(props) { + super(props); + + this.register = this.register.bind(this); + + this.state = {}; + } + register() { + this.props.closeModal(); + GlobalActions.showRegisterAppModal(); + } + render() { + var appSection; + var self = this; + const {formatMessage} = this.props.intl; + if (this.props.activeSection === 'app') { + var inputs = []; + + inputs.push( +
+
+ + + +
+
+ ); + + appSection = ( + + ); + } else { + appSection = ( + + ); + } + + return ( +
+
+ +

+
+ +
+ +

+
+
+

+ +

+
+ {appSection} +
+
+
+ ); + } +} + +DeveloperTab.defaultProps = { + activeSection: '' +}; +DeveloperTab.propTypes = { + intl: intlShape.isRequired, + activeSection: React.PropTypes.string, + updateSection: React.PropTypes.func, + closeModal: React.PropTypes.func.isRequired, + collapseModal: React.PropTypes.func.isRequired +}; + +export default injectIntl(DeveloperTab); \ No newline at end of file -- cgit v1.2.3-1-g7c22