var AppActions = require('../actions/AppActions'); var React = require('react'); var ReactBootstrap = require('react-bootstrap'); var Button = ReactBootstrap.Button; var Input = ReactBootstrap.Input; var Panel = ReactBootstrap.Panel; var Login = React.createClass({ getInitialState: function() { return { "user": "", "password": "" }; }, render: function() { return ( <form onSubmit={this.handleFormSubmit}> <Panel> <h3> Log In </h3> <Input type='text' name='user' onChange={this.handleUserChange} placeholder='Enter Login' /> <Input name='password' type='password' onChange={this.handlePasswordChange} placeholder='Enter Password' /> <Button bsStyle='primary' type='submit' > Log In </Button> </Panel> </form> ); }, handleUserChange: function(evt) { this.state.user = evt.target.value; }, handlePasswordChange: function(evt) { this.state.password = evt.target.value; }, handleFormSubmit: function(event) { AppActions.logIn(this.state.user, this.state.password); event.stopPropagation(); event.preventDefault(); } }); module.exports = Login;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15688 | Doug Scheirer |
Populate -o //guest/perforce_software/helix-web-services/... //guest/doug_scheirer/helix-web-services/.... |
||
//guest/perforce_software/helix-web-services/main/source/helix_web_components/project_management/components/Login.jsx | |||||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_components/project_management/components/Login.jsx | |||||
#1 | 13974 | tjuricek |
Moving 'ui/static' to 'helix_web_components' project, and altering some notes. Also, removed obsolete top-level Rake tasks. The "Helix Web Components" project will likely get moved elsewhere in the future. |
||
//guest/perforce_software/helix-web-services/main/ui/static/project_management/components/Login.jsx | |||||
#1 | 13707 | tjuricek |
Infrastructure for including a "project management" React application. This attempts to create a fairly simple installer that creates a 'static' folder based on ui/static that gets hosted by the nginx front end. Right now, it's the only app, so the default page is this application. It was called "pws2" during a prototyping phase. Another prototype, "pws" and the related "project" module, is removed since that was a Sinatra-based approach that will be much more difficult to integrate into anything else. I'm running into a couple of issues with notifications setup, it's still not 100%, so I'm disabling this for now from the default 'god' configuration. (The service isn't 100% functional yet, anyway.) |
||
//guest/perforce_software/helix-web-services/main/ui/static/pms2/components/Login.jsx | |||||
#1 | 13645 | tjuricek |
React.js + Flux prototype This just logs in and displays a list of projects (create one with the other app for now). |