-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.jsx
57 lines (49 loc) · 2.42 KB
/
routes.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
'use strict';
var React = require('react');
var Router = require('react-router');
var Route = Router.Route;
var Redirect = Router.Redirect;
var DefaultRoute = Router.DefaultRoute;
var NotFoundRoute = Router.NotFoundRoute;
/* Components */
var App = require('./components/App.jsx');
var NotFound = require('./components/NotFound.jsx');
var IssuesMain = require('./components/IssuesMain.jsx');
var IssueTemplate = require('./components/IssueTemplate.jsx');
var IssuesWrapper = require('./components/IssuesWrapper.jsx');
var IssueWrapper = require('./components/IssueWrapper.jsx');
var IssueSidebar = require('./components/IssueSidebar.jsx');
var ProjectMain = require('./components/ProjectMain.jsx');
var ProjectBlank = require('./components/ProjectBlank.jsx');
var ProjectList = require('./components/ProjectList.jsx');
var ProjectTemplate = require('./components/ProjectTemplate.jsx');
var ProjectWrapper = require('./components/ProjectWrapper.jsx');
var TeamMain = require('./components/TeamMain.jsx');
var SettingsMain = require('./components/SettingsMain.jsx');
var TeamInviteBox = require('./components/TeamInviteBox.jsx');
var TeamAddUser = require('./components/TeamAddUser.jsx');
var TeamList = require('./components/TeamList.jsx');
var RegisterMain = require('./components/RegisterMain.jsx');
var routes = (
<Route name="app" path="/" handler={App}>
<Route name="projects" path="/projects/" handler={ProjectMain} >
<DefaultRoute name="projectlist" handler={ProjectList} />
<Route name="project" path=":id/" handler={ProjectWrapper}>
<Route name="issues" path="issues/" handler={ProjectTemplate}>
<Route name="issue" path=":issue_id/" handler={IssueSidebar} />
</Route>
</Route>
<Route name="newproject" path="/projects/new" handler={ProjectBlank} />
</Route>
<Route name="team" path="/team" handler={TeamMain}>
<DefaultRoute name="teamlist" handler={TeamList} />
<Route name="invite" path="/team/invite" handler={TeamInviteBox} >
<Route name="addmember" path=":id/" handler={TeamAddUser} />
</Route>
</Route>
<Route name="settings" path="/settings" handler={SettingsMain} />
<Route name="register" path='/register' handler={RegisterMain} />
<NotFoundRoute name="notfound" handler={ NotFound }/>
</Route>
);
module.exports = routes;