mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Add boilerplate table and tableitem. Also integrate bootstrap
This commit is contained in:
parent
60c4b3ac8b
commit
5080de1481
@ -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
15
js/components/table.js
Normal 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;
|
13
js/components/table_item.js
Normal file
13
js/components/table_item.js
Normal file
@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
|
||||
let TableItem = React.createClass({
|
||||
render() {
|
||||
return (
|
||||
<ul>
|
||||
<TableItem />
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
export default TableItem;
|
@ -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>
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user