1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

typescript conversion

This commit is contained in:
2017-08-02 19:50:00 -05:00
parent 43fadf9c6a
commit 84c2425c6d
13 changed files with 347 additions and 64 deletions

22
client/app/app.tsx Normal file
View File

@@ -0,0 +1,22 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { Wrapper } from './Wrapper';
import { Home } from './pages/Home/Home';
import { Soundboard } from './pages/Soundboard/Soundboard';
import { NotFound } from './pages/NotFound/NotFound';
import { Downloader } from './pages/Downloader/Downloader';
import { Pubg } from './pages/Pubg/Pubg';
ReactDOM.render(
<Router history={browserHistory}>
<Route path="/" component={Wrapper}>
<IndexRoute component={Home}/>
<Route path="/soundboard" component={Soundboard}/>
<Route path="/downloader" component={Downloader}/>
<Route path="/pubg" component={Pubg}/>
<Route path="*" component={NotFound}/>
</Route>
</Router>
, document.getElementById('app'));