mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
138 lines
3.0 KiB
JavaScript
138 lines
3.0 KiB
JavaScript
import LazyLoader from 'components/LazyLoader';
|
|
|
|
const BASE_URL = '/dashboard';
|
|
|
|
export default [
|
|
// Homepage
|
|
{
|
|
path: `${BASE_URL}/homepage`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Homepage/Homepage')
|
|
}),
|
|
},
|
|
|
|
// Accounts.
|
|
{
|
|
path: `${BASE_URL}/accounts`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Accounts/AccountsChart')
|
|
})
|
|
},
|
|
|
|
// Custom views.
|
|
{
|
|
path: `${BASE_URL}/custom_views/:resource_slug/new`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Views/ViewFormPage')
|
|
})
|
|
},
|
|
{
|
|
path: `${BASE_URL}/custom_views/:view_id/edit`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Views/ViewFormPage')
|
|
})
|
|
},
|
|
|
|
// Expenses.
|
|
{
|
|
path: `${BASE_URL}/expenses/new`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Expenses/ExpenseForm')
|
|
}),
|
|
},
|
|
{
|
|
path: `${BASE_URL}/expenses`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Expenses/ExpensesList')
|
|
})
|
|
},
|
|
|
|
// Accounting
|
|
{
|
|
path: `${BASE_URL}/accounting/make-journal-entry`,
|
|
component: LazyLoader({
|
|
loader: () =>
|
|
import('containers/Accounting/MakeJournalEntriesPage')
|
|
}),
|
|
},
|
|
{
|
|
path: `${BASE_URL}/accounting/manual-journals/:id/edit`,
|
|
component: LazyLoader({
|
|
loader: () =>
|
|
import('containers/Accounting/MakeJournalEntriesPage')
|
|
}),
|
|
},
|
|
{
|
|
path: `${BASE_URL}/accounting/manual-journals`,
|
|
component: LazyLoader({
|
|
loader: () =>
|
|
import('containers/Accounting/ManualJournalsList')
|
|
}),
|
|
},
|
|
{
|
|
path: `${BASE_URL}/items/categories`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Items/ItemCategoriesList')
|
|
})
|
|
},
|
|
{
|
|
path: `${BASE_URL}/items/new`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Items/ItemFormPage')
|
|
})
|
|
},
|
|
|
|
// Items
|
|
{
|
|
path: `${BASE_URL}/items`,
|
|
component: LazyLoader({
|
|
loader: () => import('containers/Items/ItemsList')
|
|
})
|
|
},
|
|
|
|
// Financial Reports.
|
|
{
|
|
path: `${BASE_URL}/accounting/general-ledger`,
|
|
component: LazyLoader({
|
|
loader: () =>
|
|
import(
|
|
'containers/FinancialStatements/GeneralLedger/GeneralLedger'
|
|
)
|
|
})
|
|
},
|
|
{
|
|
path: `${BASE_URL}/accounting/balance-sheet`,
|
|
component: LazyLoader({
|
|
loader: () =>
|
|
import(
|
|
'containers/FinancialStatements/BalanceSheet/BalanceSheet'
|
|
)
|
|
})
|
|
},
|
|
{
|
|
path: `${BASE_URL}/accounting/trial-balance-sheet`,
|
|
component: LazyLoader({
|
|
loader: () =>
|
|
import(
|
|
'containers/FinancialStatements/TrialBalanceSheet/TrialBalanceSheet'
|
|
)
|
|
})
|
|
},
|
|
{
|
|
path: `${BASE_URL}/accounting/profit-loss-sheet`,
|
|
component: LazyLoader({
|
|
loader: () =>
|
|
import(
|
|
'containers/FinancialStatements/ProfitLossSheet/ProfitLossSheet'
|
|
)
|
|
})
|
|
},
|
|
{
|
|
path: `${BASE_URL}/accounting/journal-sheet`,
|
|
component: LazyLoader({
|
|
loader: () =>
|
|
import('containers/FinancialStatements/Journal/Journal')
|
|
})
|
|
},
|
|
];
|