Init project
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
export default [
|
||||
// {
|
||||
// path: '/apps/todo',
|
||||
// redirect: '/apps/todo/all',
|
||||
// name: 'todo'
|
||||
// },
|
||||
// {
|
||||
// path: '/apps/todo/:filter',
|
||||
// component: () => import('@/views/apps/todo/Todo.vue'),
|
||||
// meta: {
|
||||
// rule: 'editor',
|
||||
// parent: 'todo',
|
||||
// no_scroll: true
|
||||
// }
|
||||
// },
|
||||
{
|
||||
path: '/apps/ticket',
|
||||
redirect: '/apps/ticket/inbox',
|
||||
name: 'ticket'
|
||||
},
|
||||
{
|
||||
path: '/apps/ticket/:filter',
|
||||
component: () => import('@/views/apps/ticket/Ticket.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'ticket',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/apps/finance',
|
||||
redirect: '/apps/finance/order',
|
||||
name: 'finance'
|
||||
},
|
||||
{
|
||||
path: '/apps/finance/fee-list',
|
||||
component: () => import('@/views/apps/finance/FeeList.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'finance',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,38 @@
|
||||
export default [
|
||||
// Category
|
||||
{
|
||||
path: '/category',
|
||||
redirect: '/category/list',
|
||||
name: 'category'
|
||||
},
|
||||
{
|
||||
path: '/category/add',
|
||||
name:'category-add',
|
||||
component: () => import('@/views/apps/category/Add.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'category',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/category/edit/:id',
|
||||
component: () => import('@/views/apps/category/Edit.vue'),
|
||||
name:'category-edit',
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'category',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/category/list',
|
||||
name:'category-list',
|
||||
component: () => import('@/views/apps/category/List.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'category',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,112 @@
|
||||
|
||||
export default [
|
||||
{
|
||||
path: '/customer/list',
|
||||
name: 'app-user-list',
|
||||
component: () => import('@/views/customer/List.vue'),
|
||||
meta: {
|
||||
breadcrumb: [
|
||||
{title: 'خانه', url: '/'},
|
||||
{title: 'مشتریان', active: true}
|
||||
],
|
||||
pageTitle: 'لیست مشتریان',
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/customer/view/:userId',
|
||||
name: 'app-user-view',
|
||||
component: () => import('@/views/apps/user/UserView.vue'),
|
||||
meta: {
|
||||
breadcrumb: [
|
||||
{title: 'Home', url: '/'},
|
||||
{title: 'User'},
|
||||
{title: 'View', active: true}
|
||||
],
|
||||
pageTitle: 'User View',
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/apps/user/user-edit/:userId',
|
||||
name: 'app-user-edit',
|
||||
component: () => import('@/views/apps/user/user-edit/UserEdit.vue'),
|
||||
meta: {
|
||||
breadcrumb: [
|
||||
{title: 'Home', url: '/'},
|
||||
{title: 'User'},
|
||||
{title: 'Edit', active: true}
|
||||
],
|
||||
pageTitle: 'User Edit',
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/customer/edit/:id',
|
||||
name: 'edit-customer',
|
||||
component: () => import('@/views/apps/customer/Edit.vue'),
|
||||
meta: {
|
||||
breadcrumb: [
|
||||
{title: 'خانه', url: '/'},
|
||||
{title: 'مشتریان'},
|
||||
{title: 'ویرایش', active: true}
|
||||
],
|
||||
pageTitle: 'ویرایش مشتری',
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/customer/add',
|
||||
name: 'add-customer',
|
||||
component: () => import('@/views/apps/customer/AddCustomer.vue'),
|
||||
meta: {
|
||||
breadcrumb: [
|
||||
{title: 'خانه', url: '/'},
|
||||
{title: 'مشتریان'},
|
||||
{title: 'افزودن مشتری', active: true}
|
||||
],
|
||||
pageTitle: 'افزودن مشتری',
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
path: '/apps/finance/bag-list',
|
||||
component: () => import('@/views/apps/finance/BagList.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'finance',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/apps/finance/debit-list',
|
||||
component: () => import('@/views/apps/finance/DebitList.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'finance',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: '/pages/user-settings',
|
||||
name: 'page-user-settings',
|
||||
component: () => import('@/views/pages/user-settings/UserSettings.vue'),
|
||||
meta: {
|
||||
breadcrumb: [
|
||||
{title: 'خانه', url: '/'},
|
||||
{title: 'پروفایل کاربری', active: true},
|
||||
],
|
||||
pageTitle: 'پروفایل کاربری',
|
||||
rule: 'editor'
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
export default [
|
||||
{
|
||||
path: '/',
|
||||
name: 'dashboard',
|
||||
redirect: '/dashboard/analytics'
|
||||
},
|
||||
{
|
||||
path: '/dashboard/analytics',
|
||||
name: 'dashboard-analytics',
|
||||
component: () => import('@/views/DashboardAnalytics.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/dashboard/ecommerce',
|
||||
name: 'dashboard-ecommerce',
|
||||
component: () => import('@/views/DashboardECommerce.vue'),
|
||||
meta:{
|
||||
rule: 'admin'
|
||||
}
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,79 @@
|
||||
export default [
|
||||
// =============================================================================
|
||||
// FULL PAGE LAYOUTS
|
||||
// =============================================================================
|
||||
{
|
||||
path: '',
|
||||
component: () => import('@/layouts/full-page/FullPage.vue'),
|
||||
children: [
|
||||
// =============================================================================
|
||||
// PAGES
|
||||
// =============================================================================
|
||||
{
|
||||
path: '/callback',
|
||||
name: 'auth-callback',
|
||||
component: () => import('@/views/Callback.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/auth/login',
|
||||
name: 'page-login',
|
||||
component: () => import('@/views/auth/Login.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/auth/register',
|
||||
name: 'page-register',
|
||||
component: () => import('@/views/pages/register/Register.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/auth/forgot-password',
|
||||
name: 'page-forgot-password',
|
||||
component: () => import('@/views/pages/ForgotPassword.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: '/pages/error-404',
|
||||
name: 'page-error-404',
|
||||
component: () => import('@/views/pages/Error404.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/pages/error-500',
|
||||
name: 'page-error-500',
|
||||
component: () => import('@/views/pages/Error500.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/pages/not-authorized',
|
||||
name: 'page-not-authorized',
|
||||
component: () => import('@/views/pages/NotAuthorized.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/pages/maintenance',
|
||||
name: 'page-maintenance',
|
||||
component: () => import('@/views/pages/Maintenance.vue'),
|
||||
meta: {
|
||||
rule: 'editor'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,35 @@
|
||||
export default [
|
||||
{
|
||||
path: '/config/manage',
|
||||
redirect: '/config/manage/logs',
|
||||
name: 'manage'
|
||||
},
|
||||
{
|
||||
path: '/config/manage/logs',
|
||||
component: () => import('@/views/apps/logs/LogsList.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'manage',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/config/manage/rules',
|
||||
component: () => import('@/views/apps/logs/Rules.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'manage',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: '/config/manage/const',
|
||||
component: () => import('@/views/manage/Const.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'manage',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,38 @@
|
||||
export default [
|
||||
{
|
||||
path: '/apps/finance/order-list',
|
||||
component: () => import('@/views/apps/finance/OrderList.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'finance',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
|
||||
// Order
|
||||
{
|
||||
path: '/order',
|
||||
redirect: '/order/list',
|
||||
name: 'order'
|
||||
},
|
||||
{
|
||||
path: '/order/list',
|
||||
component: () => import('@/views/order/List.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'order',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
path: '/apps/finance/order-list',
|
||||
component: () => import('@/views/apps/finance/OrderList.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'finance',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,55 @@
|
||||
export default [
|
||||
{
|
||||
path: '/apps/product',
|
||||
redirect: '/apps/product/list',
|
||||
name: 'product'
|
||||
},
|
||||
{
|
||||
path: '/apps/product/add',
|
||||
component: () => import('@/views/apps/product/AddProduct.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'product',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/apps/product/edit/:id',
|
||||
name: 'product-edit',
|
||||
component: () => import('@/views/apps/product/EditProduct.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'product',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/apps/product/variant/add',
|
||||
component: () => import('@/views/apps/product/Varaint.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'product',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/apps/product/variant/edit/:id',
|
||||
name: 'variant-edit',
|
||||
component: () => import('@/views/apps/product/EditVariant.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'product',
|
||||
no_scroll: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/apps/product/list',
|
||||
name: 'product-list',
|
||||
component: () => import('@/views/apps/product/ProductList.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
parent: 'product',
|
||||
no_scroll: true
|
||||
}
|
||||
}
|
||||
]
|
||||
+1182
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user