|
@@ -0,0 +1,30 @@
|
|
1
|
+/// <reference path="../external/react/react.d.ts"/>
|
|
2
|
+/// <reference path="../stores/store.ts"/>
|
|
3
|
+/// <reference path="./header.ts"/>
|
|
4
|
+/// <reference path="./components/deck.ts"/>
|
|
5
|
+
|
|
6
|
+module rpgcards {
|
|
7
|
+
|
|
8
|
+ const deckColor = "#F44336";
|
|
9
|
+
|
|
10
|
+ function menuItem(header: string, desc: string) {
|
|
11
|
+ return <React.ReactElement<any>> DeckTile({
|
|
12
|
+ key : header,
|
|
13
|
+ id : header,
|
|
14
|
+ name : header,
|
|
15
|
+ desc : desc
|
|
16
|
+ });
|
|
17
|
+ }
|
|
18
|
+
|
|
19
|
+ export function renderMain(store: Store): React.ReactElement<any> {
|
|
20
|
+
|
|
21
|
+ return React.DOM.div({}
|
|
22
|
+ , renderHeader(store)
|
|
23
|
+ , React.DOM.div({ className: 'decks' }
|
|
24
|
+ , menuItem("Card data", "Edit or import card data")
|
|
25
|
+ , menuItem("Templates", "Design the layout of cards")
|
|
26
|
+ , menuItem("Decks", "Edit the layout of cards")
|
|
27
|
+ , menuItem("Help", "Read documentation")
|
|
28
|
+ ));
|
|
29
|
+ }
|
|
30
|
+}
|