1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Add boilerplate table and tableitem. Also integrate bootstrap

This commit is contained in:
Tim Daubenschütz 2015-05-20 11:16:42 +02:00
parent 60c4b3ac8b
commit 5080de1481
4 changed files with 32 additions and 4 deletions

View File

@ -5,12 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>ascribe</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link ref="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"></link>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div id="main"></div>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="build/app.js"></script>
</body>
</html>

15
js/components/table.js Normal file
View File

@ -0,0 +1,15 @@
import React from 'react';
import TableItem from './table_item';
let Table = React.createClass({
render() {
return (
<ul>
<TableItem />
</ul>
);
}
});
export default Table;

View File

@ -0,0 +1,13 @@
import React from 'react';
let TableItem = React.createClass({
render() {
return (
<ul>
<TableItem />
</ul>
);
}
});
export default TableItem;

View File

@ -9,8 +9,9 @@ let Route = Router.Route;
let routes = (
<Route name="app" path="/" handler={AscribeApp}>
<Route name="pieces" handler={PieceList} />
<Route name="pieces" handler={<PieceList />}>
<Route name="piece" path="/pieces/:bitcoin_ID_noPrefix" handler={Piece} />
</Route>
</Route>
);