forked from 0wczar/airframe-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
executable file
·269 lines (242 loc) · 12 KB
/
index.js
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
import React from 'react';
import {
Route,
Switch,
Redirect
} from 'react-router';
// ----------- Pages Imports ---------------
import Analytics from './Dashboards/Analytics';
import ProjectsDashboard from './Dashboards/Projects';
import System from './Dashboards/System';
import Monitor from './Dashboards/Monitor';
import Financial from './Dashboards/Financial';
import Stock from './Dashboards/Stock';
import Reports from './Dashboards/Reports';
import Widgets from './Widgets';
import Cards from './Cards/Cards';
import CardsHeaders from './Cards/CardsHeaders';
import NavbarOnly from './Layouts/NavbarOnly';
import SidebarDefault from './Layouts/SidebarDefault';
import SidebarA from './Layouts/SidebarA';
import DragAndDropLayout from './Layouts/DragAndDropLayout';
import SidebarWithNavbar from './Layouts/SidebarWithNavbar';
import Accordions from './Interface/Accordions';
import Alerts from './Interface/Alerts';
import Avatars from './Interface/Avatars';
import BadgesLabels from './Interface/BadgesLabels';
import Breadcrumbs from './Interface/Breadcrumbs';
import Buttons from './Interface/Buttons';
import Colors from './Interface/Colors';
import Dropdowns from './Interface/Dropdowns';
import Images from './Interface/Images';
import ListGroups from './Interface/ListGroups';
import MediaObjects from './Interface/MediaObjects';
import Modals from './Interface/Modals';
import Navbars from './Interface/Navbars';
import Paginations from './Interface/Paginations';
import ProgressBars from './Interface/ProgressBars';
import TabsPills from './Interface/TabsPills';
import TooltipPopovers from './Interface/TooltipsPopovers';
import Typography from './Interface/Typography';
import Notifications from './Interface/Notifications';
import CropImage from './Interface/CropImage';
import DragAndDropElements from './Interface/DragAndDropElements';
import Calendar from './Interface/Calendar';
import ReCharts from './Graphs/ReCharts';
import Forms from './Forms/Forms';
import FormsLayouts from './Forms/FormsLayouts';
import InputGroups from './Forms/InputGroups';
import Wizard from './Forms/Wizard';
import TextMask from './Forms/TextMask';
import Typeahead from './Forms/Typeahead';
import Toggles from './Forms/Toggles';
import Editor from './Forms/Editor';
import DatePicker from './Forms/DatePicker';
import Dropzone from './Forms/Dropzone';
import Sliders from './Forms/Sliders';
import Tables from './Tables/Tables';
import ExtendedTable from './Tables/ExtendedTable';
import AgGrid from './Tables/AgGrid';
import AccountEdit from './Apps/AccountEdit';
import BillingEdit from './Apps/BillingEdit';
import Chat from './Apps/Chat';
import Clients from './Apps/Clients';
import EmailDetails from './Apps/EmailDetails';
import Files from './Apps/Files';
import GalleryGrid from './Apps/GalleryGrid';
import GalleryTable from './Apps/GalleryTable';
import ImagesResults from './Apps/ImagesResults';
import Inbox from './Apps/Inbox';
import NewEmail from './Apps/NewEmail';
import ProfileDetails from './Apps/ProfileDetails';
import ProfileEdit from './Apps/ProfileEdit';
import Projects from './Apps/Projects';
import SearchResults from './Apps/SearchResults';
import SessionsEdit from './Apps/SessionsEdit';
import SettingsEdit from './Apps/SettingsEdit';
import Tasks from './Apps/Tasks';
import TasksDetails from './Apps/TasksDetails';
import TasksKanban from './Apps/TasksKanban';
import Users from './Apps/Users';
import UsersResults from './Apps/UsersResults';
import VideosResults from './Apps/VideosResults';
import ComingSoon from './Pages/ComingSoon';
import Confirmation from './Pages/Confirmation';
import Danger from './Pages/Danger';
import Error404 from './Pages/Error404';
import ForgotPassword from './Pages/ForgotPassword';
import LockScreen from './Pages/LockScreen';
import Login from './Pages/Login';
import Register from './Pages/Register';
import Success from './Pages/Success';
import Timeline from './Pages/Timeline';
import Icons from './Icons';
// ----------- Layout Imports ---------------
import { DefaultNavbar } from './../layout/components/DefaultNavbar';
import { DefaultSidebar } from './../layout/components/DefaultSidebar';
import { SidebarANavbar } from './../layout/components/SidebarANavbar';
import { SidebarASidebar } from './../layout/components/SidebarASidebar';
//------ Route Definitions --------
// eslint-disable-next-line no-unused-vars
export const RoutedContent = () => {
return (
<Switch>
<Redirect from="/" to="/dashboards/projects" exact />
<Route path="/dashboards/analytics" exact component={Analytics} />
<Route path="/dashboards/projects" exact component={ProjectsDashboard} />
<Route path="/dashboards/system" exact component={System} />
<Route path="/dashboards/monitor" exact component={Monitor} />
<Route path="/dashboards/financial" exact component={Financial} />
<Route path="/dashboards/stock" exact component={Stock} />
<Route path="/dashboards/reports" exact component={Reports} />
<Route path='/widgets' exact component={Widgets} />
{ /* Cards Routes */ }
<Route path='/cards/cards' exact component={Cards} />
<Route path='/cards/cardsheaders' exact component={CardsHeaders} />
{ /* Layouts */ }
<Route path='/layouts/navbar' component={NavbarOnly} />
<Route path='/layouts/sidebar' component={SidebarDefault} />
<Route path='/layouts/sidebar-a' component={SidebarA} />
<Route path="/layouts/sidebar-with-navbar" component={SidebarWithNavbar} />
<Route path='/layouts/dnd-layout' component={DragAndDropLayout} />
{ /* Interface Routes */ }
<Route component={ Accordions } path="/interface/accordions" />
<Route component={ Alerts } path="/interface/alerts" />
<Route component={ Avatars } path="/interface/avatars" />
<Route component={ BadgesLabels } path="/interface/badges-and-labels" />
<Route component={ Breadcrumbs } path="/interface/breadcrumbs" />
<Route component={ Buttons } path="/interface/buttons" />
<Route component={ Colors } path="/interface/colors" />
<Route component={ Dropdowns } path="/interface/dropdowns" />
<Route component={ Images } path="/interface/images" />
<Route component={ ListGroups } path="/interface/list-groups" />
<Route component={ MediaObjects } path="/interface/media-objects" />
<Route component={ Modals } path="/interface/modals" />
<Route component={ Navbars } path="/interface/navbars" />
<Route component={ Paginations } path="/interface/paginations" />
<Route component={ ProgressBars } path="/interface/progress-bars" />
<Route component={ TabsPills } path="/interface/tabs-pills" />
<Route component={ TooltipPopovers } path="/interface/tooltips-and-popovers" />
<Route component={ Typography } path="/interface/typography" />
<Route component={ Notifications } path="/interface/notifications" />
<Route component={ CropImage } path="/interface/crop-image" />
<Route component={ DragAndDropElements } path="/interface/drag-and-drop-elements" />
<Route component={ Calendar } path="/interface/calendar" />
{ /* Forms Routes */ }
<Route component={ Forms } path="/forms/forms" />
<Route component={ FormsLayouts } path="/forms/forms-layouts" />
<Route component={ InputGroups } path="/forms/input-groups" />
<Route component={ Wizard } path="/forms/wizard" />
<Route component={ TextMask } path="/forms/text-mask" />
<Route component={ Typeahead } path="/forms/typeahead" />
<Route component={ Toggles } path="/forms/toggles" />
<Route component={ Editor } path="/forms/editor" />
<Route component={ DatePicker } path="/forms/date-picker" />
<Route component={ Dropzone } path="/forms/dropzone" />
<Route component={ Sliders } path="/forms/sliders" />
{ /* Graphs Routes */ }
<Route component={ ReCharts } path="/graphs/re-charts" />
{ /* Tables Routes */ }
<Route component={ Tables } path="/tables/tables" />
<Route component={ ExtendedTable } path="/tables/extended-table" />
<Route component={ AgGrid } path="/tables/ag-grid" />
{ /* Apps Routes */ }
<Route component={ AccountEdit } path="/apps/account-edit" />
<Route component={ BillingEdit } path="/apps/billing-edit" />
<Route component={ Chat } path="/apps/chat" />
<Route component={ Clients } path="/apps/clients" />
<Route component={ EmailDetails } path="/apps/email-details" />
<Route component={ Files } path="/apps/files/:type"/>
<Route component={ GalleryGrid } path="/apps/gallery-grid" />
<Route component={ GalleryTable } path="/apps/gallery-table" />
<Route component={ ImagesResults } path="/apps/images-results" />
<Route component={ Inbox } path="/apps/inbox" />
<Route component={ NewEmail } path="/apps/new-email" />
<Route component={ ProfileDetails } path="/apps/profile-details" />
<Route component={ ProfileEdit } path="/apps/profile-edit" />
<Route component={ Projects } path="/apps/projects/:type" />
<Route component={ SearchResults } path="/apps/search-results" />
<Route component={ SessionsEdit } path="/apps/sessions-edit" />
<Route component={ SettingsEdit } path="/apps/settings-edit" />
<Route component={ Tasks } path="/apps/tasks/:type" />
<Route component={ TasksDetails } path="/apps/task-details" />
<Route component={ TasksKanban } path="/apps/tasks-kanban" />
<Route component={ Users } path="/apps/users/:type" />
<Route component={ UsersResults } path="/apps/users-results" />
<Route component={ VideosResults } path="/apps/videos-results" />
{ /* Pages Routes */ }
<Route component={ ComingSoon } path="/pages/coming-soon" />
<Route component={ Confirmation } path="/pages/confirmation" />
<Route component={ Danger } path="/pages/danger" />
<Route component={ Error404 } path="/pages/error-404" />
<Route component={ ForgotPassword } path="/pages/forgot-password" />
<Route component={ LockScreen } path="/pages/lock-screen" />
<Route component={ Login } path="/pages/login" />
<Route component={ Register } path="/pages/register" />
<Route component={ Success } path="/pages/success" />
<Route component={ Timeline } path="/pages/timeline" />
<Route path='/icons' exact component={Icons} />
{ /* 404 */ }
<Redirect to="/pages/error-404" />
</Switch>
);
};
//------ Custom Layout Parts --------
export const RoutedNavbars = () => (
<Switch>
{ /* Other Navbars: */}
<Route
component={ SidebarANavbar }
path="/layouts/sidebar-a"
/>
<Route
component={ NavbarOnly.Navbar }
path="/layouts/navbar"
/>
<Route
component={ SidebarWithNavbar.Navbar }
path="/layouts/sidebar-with-navbar"
/>
{ /* Default Navbar: */}
<Route
component={ DefaultNavbar }
/>
</Switch>
);
export const RoutedSidebars = () => (
<Switch>
{ /* Other Sidebars: */}
<Route
component={ SidebarASidebar }
path="/layouts/sidebar-a"
/>
<Route
component={ SidebarWithNavbar.Sidebar }
path="/layouts/sidebar-with-navbar"
/>
{ /* Default Sidebar: */}
<Route
component={ DefaultSidebar }
/>
</Switch>
);