From cd9c561ddfb9ebb28ac7a73a47db6459c4dffea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Wed, 17 Jun 2015 17:48:52 +0200 Subject: [PATCH] boilerplate for piece registration --- .../piece_list_toolbar.js | 7 +++++++ js/components/register_piece.js | 13 +++++++++++++ js/routes.js | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 js/components/register_piece.js diff --git a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar.js b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar.js index 9722fcae..e260e4f7 100644 --- a/js/components/ascribe_piece_list_toolbar/piece_list_toolbar.js +++ b/js/components/ascribe_piece_list_toolbar/piece_list_toolbar.js @@ -1,9 +1,13 @@ 'use strict'; import React from 'react'; +import Router from 'react-router'; import Input from 'react-bootstrap/lib/Input'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; +import Button from 'react-bootstrap/lib/Button'; + +let Link = Router.Link; let PieceListToolbar = React.createClass({ @@ -30,6 +34,9 @@ let PieceListToolbar = React.createClass({    {/**/} + + + diff --git a/js/components/register_piece.js b/js/components/register_piece.js new file mode 100644 index 00000000..77ef24c3 --- /dev/null +++ b/js/components/register_piece.js @@ -0,0 +1,13 @@ +'use strict'; + +import React from 'react'; + +let RegisterPiece = React.createClass( { + render() { + return ( + test + ); + } +}); + +export default RegisterPiece; \ No newline at end of file diff --git a/js/routes.js b/js/routes.js index b5196a77..5c99de3c 100644 --- a/js/routes.js +++ b/js/routes.js @@ -8,6 +8,7 @@ import PieceList from './components/piece_list'; import EditionContainer from './components/edition_container'; import PasswordResetContainer from './components/password_reset_container'; import AppConstants from './constants/application_constants'; +import RegisterPiece from './components/register_piece'; //import LoginModalHandler from './components/login_modal_handler'; let Route = Router.Route; @@ -20,6 +21,7 @@ let routes = ( +