2016-09-26 03:27:16 +00:00
|
|
|
/* main */
|
|
|
|
|
import Introduction from './pages/Introduction';
|
|
|
|
|
import GettingStarted from './pages/GettingStarted';
|
|
|
|
|
import About from './pages/About';
|
2016-08-30 15:41:16 +00:00
|
|
|
import Error404 from './pages/Error';
|
2016-07-21 21:56:06 +00:00
|
|
|
|
2016-09-26 03:27:16 +00:00
|
|
|
/* Components */
|
|
|
|
|
import Avatar from './pages/components/Avatar';
|
|
|
|
|
import BottomBar from './pages/components/BottomBar';
|
|
|
|
|
import Buttons from './pages/components/Buttons';
|
|
|
|
|
import ButtonToggle from './pages/components/ButtonToggle';
|
|
|
|
|
import Checkbox from './pages/components/Checkbox';
|
|
|
|
|
import Icon from './pages/components/Icon';
|
|
|
|
|
import Input from './pages/components/Input';
|
|
|
|
|
import List from './pages/components/List';
|
|
|
|
|
import Radio from './pages/components/Radio';
|
|
|
|
|
import Ripple from './pages/components/Ripple';
|
|
|
|
|
import Select from './pages/components/Select';
|
|
|
|
|
import Sidenav from './pages/components/Sidenav';
|
|
|
|
|
import Subheader from './pages/components/Subheader';
|
|
|
|
|
import Switch from './pages/components/Switch';
|
|
|
|
|
import Tabs from './pages/components/Tabs';
|
|
|
|
|
import Toolbar from './pages/components/Toolbar';
|
|
|
|
|
import Tooltip from './pages/components/Tooltip';
|
|
|
|
|
import Whiteframe from './pages/components/Whiteframe';
|
|
|
|
|
|
|
|
|
|
/* UI Elements */
|
|
|
|
|
import Typography from './pages/ui-elements/Typography';
|
|
|
|
|
import GridSystem from './pages/ui-elements/GridSystem';
|
|
|
|
|
|
|
|
|
|
/* Themes */
|
|
|
|
|
import Configuration from './pages/themes/Configuration';
|
|
|
|
|
import DynamicThemes from './pages/themes/DynamicThemes';
|
|
|
|
|
|
|
|
|
|
const main = [
|
2016-08-30 15:41:16 +00:00
|
|
|
{
|
2016-09-09 19:59:55 +00:00
|
|
|
path: '/',
|
2016-09-26 03:27:16 +00:00
|
|
|
name: 'introduction',
|
|
|
|
|
component: Introduction
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/getting-started',
|
|
|
|
|
name: 'getting-started',
|
|
|
|
|
component: GettingStarted
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/about',
|
|
|
|
|
name: 'about',
|
|
|
|
|
component: About
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const components = [
|
|
|
|
|
{
|
|
|
|
|
path: '/components',
|
|
|
|
|
name: 'components',
|
|
|
|
|
redirect: '/components/avatar'
|
2016-07-22 04:45:15 +00:00
|
|
|
},
|
2016-08-31 23:22:36 +00:00
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/avatar',
|
|
|
|
|
name: 'components:avatar',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Avatar
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/bottom-bar',
|
|
|
|
|
name: 'components:bottom-bar',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: BottomBar
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/button',
|
|
|
|
|
name: 'components:button',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Buttons
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/button-toggle',
|
|
|
|
|
name: 'components:button-toggle',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: ButtonToggle
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/checkbox',
|
|
|
|
|
name: 'components:checkbox',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Checkbox
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/icon',
|
|
|
|
|
name: 'components:icon',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Icon
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/input',
|
|
|
|
|
name: 'components:input',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Input
|
|
|
|
|
},
|
2016-08-30 15:41:16 +00:00
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/list',
|
|
|
|
|
name: 'components:list',
|
2016-08-09 03:29:20 +00:00
|
|
|
component: List
|
2016-08-03 06:32:30 +00:00
|
|
|
},
|
2016-08-31 23:22:36 +00:00
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/radio',
|
|
|
|
|
name: 'components:radio',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Radio
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/ripple',
|
|
|
|
|
name: 'components:ripple',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Ripple
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/select',
|
|
|
|
|
name: 'components:select',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Select
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/sidenav',
|
|
|
|
|
name: 'components:sidenav',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Sidenav
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/switch',
|
|
|
|
|
name: 'components:switch',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Switch
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/subheader',
|
|
|
|
|
name: 'components:subheader',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Subheader
|
|
|
|
|
},
|
2016-09-12 05:34:07 +00:00
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/tabs',
|
|
|
|
|
name: 'components:tabs',
|
2016-09-12 05:34:07 +00:00
|
|
|
component: Tabs
|
|
|
|
|
},
|
2016-08-31 23:22:36 +00:00
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/toolbar',
|
|
|
|
|
name: 'components:toolbar',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Toolbar
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/tooltip',
|
|
|
|
|
name: 'components:tooltip',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Tooltip
|
|
|
|
|
},
|
|
|
|
|
{
|
2016-09-26 03:27:16 +00:00
|
|
|
path: '/components/whiteframe',
|
|
|
|
|
name: 'components:whiteframe',
|
2016-08-31 23:22:36 +00:00
|
|
|
component: Whiteframe
|
2016-09-26 03:27:16 +00:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const theme = [
|
|
|
|
|
{
|
|
|
|
|
path: '/themes',
|
|
|
|
|
name: 'themes',
|
|
|
|
|
redirect: '/themes/configuration'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/themes/configuration',
|
|
|
|
|
name: 'themes:configuration',
|
|
|
|
|
component: Configuration
|
2016-08-31 23:22:36 +00:00
|
|
|
},
|
2016-09-26 03:27:16 +00:00
|
|
|
{
|
|
|
|
|
path: '/themes/dynamic-themes',
|
|
|
|
|
name: 'themes:dynamic-themes',
|
|
|
|
|
component: DynamicThemes
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const uiElements = [
|
|
|
|
|
{
|
|
|
|
|
path: '/ui-elements',
|
|
|
|
|
name: 'ui-elements',
|
|
|
|
|
redirect: '/ui-elements/typography'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/ui-elements/typography',
|
|
|
|
|
name: 'ui-elements:typography',
|
|
|
|
|
component: Typography
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/ui-elements/grid-system',
|
|
|
|
|
name: 'ui-elements:grid-system',
|
|
|
|
|
component: GridSystem
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const error = [
|
2016-08-30 15:41:16 +00:00
|
|
|
{
|
|
|
|
|
path: '*',
|
|
|
|
|
name: 'error',
|
|
|
|
|
component: Error404
|
2016-07-21 21:56:06 +00:00
|
|
|
}
|
2016-08-30 15:41:16 +00:00
|
|
|
];
|
2016-07-21 21:56:06 +00:00
|
|
|
|
2016-09-26 03:27:16 +00:00
|
|
|
export default [].concat(main, components, theme, uiElements, error);
|