80 lines
2.1 KiB
TypeScript
80 lines
2.1 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
const Setting: RouteRecordRaw = {
|
|
name: 'settings',
|
|
path: '/settings',
|
|
component: () => import('@core/layouts/BasicLayout.vue'),
|
|
redirect: { name: 'settingMain' },
|
|
meta: {
|
|
icon: 'vuesax-linear:setting',
|
|
permissionsKey: 'config',
|
|
title: 'پیکربندی',
|
|
disabled: false,
|
|
hideMenu: false,
|
|
hideChildren: true,
|
|
order: 10
|
|
},
|
|
children: [
|
|
{
|
|
name: 'settingMain',
|
|
path: '',
|
|
component: () => import('@/pages/menuPages/setting/index.vue'),
|
|
meta: {
|
|
permissionsKey: 'config',
|
|
icon: 'vuesax-linear:setting',
|
|
order: 5,
|
|
title: 'پیکربندی',
|
|
disabled: false,
|
|
hideMenu: true
|
|
//hideChildren: false
|
|
},
|
|
children: [
|
|
{
|
|
name: 'settingMain_limitedOrder',
|
|
path: 'limitedOrder',
|
|
component: () => import('@/pages/menuPages/setting/limitedOrder/index.vue'),
|
|
meta: {
|
|
permissionsKey: 'config.limitedOrder',
|
|
icon: 'vuesax-linear:document-text',
|
|
title: '' +
|
|
'' +
|
|
'محدودیت سفارش'
|
|
}
|
|
},
|
|
{
|
|
name: 'usersMain',
|
|
path: 'admins',
|
|
component: () => import('@/pages/menuPages/users/index.vue'),
|
|
meta: {
|
|
permissionsKey: 'user',
|
|
icon: 'vuesax-linear:profile',
|
|
title: 'لیست مدیران'
|
|
}
|
|
},
|
|
{
|
|
name: 'priceTriggers',
|
|
path: 'priceTriggers',
|
|
component: () => import('@/pages/menuPages/priceTriggers/index.vue'),
|
|
meta: {
|
|
permissionsKey: 'priceTriggers',
|
|
icon: 'vuesax-linear:notification-bing',
|
|
title: 'هشدار قیمت'
|
|
}
|
|
},
|
|
{
|
|
name: 'configuration',
|
|
path: 'configuration',
|
|
component: () => import('@/pages/menuPages/configuration/index.vue'),
|
|
meta: {
|
|
icon: 'vuesax-linear:setting-2',
|
|
title: 'تنظیمات'
|
|
//hideChildren: false
|
|
}
|
|
},
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
export default Setting
|