UNPKG

@ergonode/import

Version:

Ergonode import module

118 lines (115 loc) 3.4 kB
/* * Copyright © Ergonode Sp. z o.o. All rights reserved. * See LICENSE for license details. */ import { Icons, Pages, Tabs, } from '@Import/config/imports'; import Privileges from '@Import/config/privileges'; export const GROUP = { id: 'data-exchange', title: '@Import._.routes.group', }; export const ROUTE_NAME = { IMPORTS: 'imports', IMPORTS_GRID: 'imports-grid', IMPORT_EDIT: 'import-id', IMPORT_EDIT_GENERAL: 'import-id-general', IMPORT_EDIT_HISTORY: 'import-id-history', }; export default [ { name: ROUTE_NAME.IMPORTS, path: '/imports', component: Pages.Imports, redirect: { name: ROUTE_NAME.IMPORTS_GRID, }, meta: { access: true, title: '@Import._.routes.title', group: { id: GROUP.id, title: GROUP.title, menuPosition: 4, icon: Icons.Channels, }, isMenu: true, menuPosition: 1, privileges: { namespace: Privileges.IMPORT.namespace, read: Privileges.IMPORT.read, }, }, children: [ { name: ROUTE_NAME.IMPORTS_GRID, path: 'grid', component: Tabs.ImportProfilesTab, meta: { title: '', breadcrumbs: [ { title: GROUP.title, icon: Icons.Channels, }, ], privileges: [], }, }, ], }, { name: ROUTE_NAME.IMPORT_EDIT, path: '/imports/import/:id', component: Pages.ImportProfileEdit, redirect: { name: ROUTE_NAME.IMPORT_EDIT_GENERAL, }, meta: { isMenu: false, }, children: [ { name: ROUTE_NAME.IMPORT_EDIT_GENERAL, path: 'general', component: Tabs.ImportProfileGeneralTab, meta: { title: '@Import._.routes.editOption', breadcrumbs: [ { title: GROUP.title, icon: Icons.Channels, }, { title: '@Import._.routes.title', routeName: ROUTE_NAME.IMPORTS_GRID, }, ], privileges: [], }, }, { name: ROUTE_NAME.IMPORT_EDIT_HISTORY, path: 'history', component: Tabs.ImportProfileHistoryTab, meta: { title: '@Import._.routes.editHistory', breadcrumbs: [ { title: GROUP.title, icon: Icons.Channels, }, { title: '@Import._.routes.title', routeName: ROUTE_NAME.IMPORTS_GRID, }, ], privileges: [], }, }, ], }, ];