Initial commit: fabric-trade-admin panel with responsive layouts and UI refinements.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import AdminShell from '@/layouts/AdminShell.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
component: AdminShell,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'dashboard',
|
||||
component: () => import('@/views/dashboard/DashboardView.vue'),
|
||||
meta: { title: 'داشبورد مدیریتی' },
|
||||
},
|
||||
{
|
||||
path: 'orders',
|
||||
name: 'orders',
|
||||
component: () => import('@/views/orders/OrdersView.vue'),
|
||||
meta: { title: 'سفارشها' },
|
||||
},
|
||||
{
|
||||
path: 'orders/:id/pricing',
|
||||
name: 'order-pricing',
|
||||
component: () => import('@/views/orders/OrderPricingView.vue'),
|
||||
meta: { title: 'قیمتگذاری سفارش' },
|
||||
},
|
||||
{
|
||||
path: 'orders/:id/checks',
|
||||
name: 'order-checks',
|
||||
component: () => import('@/views/checks/CheckManagementView.vue'),
|
||||
meta: { title: 'مدیریت چکها' },
|
||||
},
|
||||
{
|
||||
path: 'companies',
|
||||
name: 'companies',
|
||||
component: () => import('@/views/companies/CompaniesView.vue'),
|
||||
meta: { title: 'مدیریت شرکتها' },
|
||||
},
|
||||
{
|
||||
path: 'companies/:companyId/accounts',
|
||||
name: 'bank-accounts',
|
||||
component: () => import('@/views/companies/BankAccountsView.vue'),
|
||||
meta: { title: 'حسابهای بانکی' },
|
||||
},
|
||||
{
|
||||
path: 'customers',
|
||||
name: 'customers',
|
||||
component: () => import('@/views/customers/CustomersView.vue'),
|
||||
meta: { title: 'مشتریان' },
|
||||
},
|
||||
{
|
||||
path: 'products',
|
||||
name: 'products',
|
||||
component: () => import('@/views/products/ProductsView.vue'),
|
||||
meta: { title: 'محصولات' },
|
||||
},
|
||||
{
|
||||
path: 'catalogs',
|
||||
name: 'catalogs',
|
||||
component: () => import('@/views/catalogs/CatalogsView.vue'),
|
||||
meta: { title: 'کالیتهها' },
|
||||
},
|
||||
{
|
||||
path: 'checks',
|
||||
name: 'checks',
|
||||
redirect: { name: 'order-checks', params: { id: 'ord-1' } },
|
||||
},
|
||||
{
|
||||
path: 'cash-payments',
|
||||
name: 'cash-payments',
|
||||
component: () => import('@/views/cash-payments/CashPaymentsView.vue'),
|
||||
meta: { title: 'پرداختهای نقدی' },
|
||||
},
|
||||
{
|
||||
path: 'shipping',
|
||||
name: 'shipping',
|
||||
component: () => import('@/views/shipping/ShippingView.vue'),
|
||||
meta: { title: 'ارسال و باربری' },
|
||||
},
|
||||
{
|
||||
path: 'reports',
|
||||
name: 'reports',
|
||||
component: () => import('@/views/reports/ReportsView.vue'),
|
||||
meta: { title: 'گزارشها' },
|
||||
},
|
||||
{
|
||||
path: 'settings',
|
||||
name: 'settings',
|
||||
component: () => import('@/views/settings/SettingsView.vue'),
|
||||
meta: { title: 'تنظیمات' },
|
||||
},
|
||||
{
|
||||
path: 'users',
|
||||
name: 'users',
|
||||
component: () => import('@/views/users/UsersView.vue'),
|
||||
meta: { title: 'کاربران و دسترسیها' },
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user