feat: Create portal UI improvements (#5261)

This commit is contained in:
Muhsin Keloth
2022-08-18 17:11:19 +05:30
committed by GitHub
parent ea918d9c5a
commit a788e7ac7a
20 changed files with 629 additions and 57 deletions

View File

@@ -3,18 +3,19 @@ import { getPortalRoute } from './helpers/routeHelper';
const ListAllPortals = () => import('./pages/portals/ListAllPortals');
const NewPortal = () => import('./pages/portals/NewPortal');
const EditPortal = () => import('./pages/portals/EditPortal');
const ShowPortal = () => import('./pages/portals/ShowPortal');
const PortalDetails = () => import('./pages/portals/PortalDetails');
const PortalCustomization = () => import('./pages/portals/PortalCustomization');
const PortalSettingsFinish = () =>
import('./pages/portals/PortalSettingsFinish');
const ListAllCategories = () => import('./pages/categories/ListAllCategories');
const NewCategory = () => import('./pages/categories/NewCategory');
const EditCategory = () => import('./pages/categories/EditCategory');
// const ShowCategory = () => import('./pages/categories/ShowCategory');
const ListCategoryArticles = () =>
import('./pages/articles/ListCategoryArticles');
const ListAllArticles = () => import('./pages/articles/ListAllArticles');
const NewArticle = () => import('./pages/articles/NewArticle');
const EditArticle = () => import('./pages/articles/EditArticle');
@@ -27,9 +28,27 @@ const portalRoutes = [
},
{
path: getPortalRoute('new'),
name: 'new_portal',
roles: ['administrator', 'agent'],
component: NewPortal,
children: [
{
path: '',
name: 'new_portal_information',
component: PortalDetails,
roles: ['administrator'],
},
{
path: ':portal_slug/customization',
name: 'portal_customization',
component: PortalCustomization,
roles: ['administrator'],
},
{
path: ':portal_slug/finish',
name: 'portal_finish',
component: PortalSettingsFinish,
roles: ['administrator'],
},
],
},
{
path: getPortalRoute(':portalSlug'),