@taboo/cms
Version:
A node.js powered CMS (Content Management System) that is built on Koa web framework, uses mongoose for MongoDB connections and has admin dashboard built in React with Mobx and Rsuite. It can be used as React client side application, or as server side ren
43 lines (36 loc) • 919 B
JavaScript
import React from 'react';
import { Icon } from 'rsuite';
import IndexPage from './components/admin/IndexPage';
import RouterStore from './stores/RouterStore';
import UIAdminStore from './stores/UIAdminStore';
import UIStore from './stores/UIStore';
import NotificationsStore from './stores/NotificationsStore';
import LocaleStore from './stores/LocaleStore';
const enabled = true;
const stores = {
routerStore: RouterStore,
uiAdminStore: UIAdminStore,
uiStore: UIStore,
notificationsStore: NotificationsStore,
localeStore: LocaleStore,
};
const routes = [
{
path: '/admin',
exact: true,
component: IndexPage,
admin: true,
},
];
const primaryMenu = [
{
order: 100,
icon: React.createElement(Icon, { icon: 'dashboard' }),
name: 'Dashboard',
linkProps: {
to: '/admin',
},
acl: 'admin.dashboard',
},
];
export { enabled, routes, stores, primaryMenu };