mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
WIP
This commit is contained in:
@@ -1,17 +1,92 @@
|
||||
import Homepage from "containers/Dashboard/Homepage";
|
||||
import AccountsChart from 'containers/Dashboard/Accounts/AccountsChart';
|
||||
import LazyLoader from 'components/LazyLoader';
|
||||
|
||||
const BASE_URL = '/dashboard';
|
||||
|
||||
export default [
|
||||
// Homepage
|
||||
{
|
||||
path: '/dashboard/homepage',
|
||||
component: Homepage,
|
||||
path: `${BASE_URL}/homepage`,
|
||||
name: 'dashboard.homepage',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/Homepage')
|
||||
}),
|
||||
exact: true,
|
||||
},
|
||||
|
||||
// Accounts.
|
||||
{
|
||||
path: '/dashboard/accounts',
|
||||
component: AccountsChart,
|
||||
icon: 'cut',
|
||||
text: 'Chart of Accounts',
|
||||
label: 'Chart of Accounts'
|
||||
path: `${BASE_URL}/accounts`,
|
||||
name: 'dashboard.accounts',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/Accounts/AccountsChart')
|
||||
}),
|
||||
},
|
||||
|
||||
// Custom views.
|
||||
{
|
||||
path: `${BASE_URL}/custom_views/:resource_slug/new`,
|
||||
name: 'dashboard.custom_view.new',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/Views/ViewFormPage')
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/custom_views/:view_id/edit`,
|
||||
name: 'dashboard.custom_view.edit',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/Views/ViewFormPage')
|
||||
}),
|
||||
},
|
||||
|
||||
// Expenses.
|
||||
{
|
||||
path: `${BASE_URL}/expenses/new`,
|
||||
name: 'dashboard.expense.new',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/Expenses/ExpenseForm')
|
||||
}),
|
||||
text: 'New Expense',
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/expenses`,
|
||||
name: 'dashboard.expeneses.list',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/Expenses/ExpensesList')
|
||||
}),
|
||||
},
|
||||
|
||||
|
||||
// Accounting
|
||||
{
|
||||
path: `${BASE_URL}/accounting/make-journal-entry`,
|
||||
name: 'dashboard.accounting.make.journal',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/Accounting/MakeJournalEntriesPage')
|
||||
}),
|
||||
text: 'Make Journal Entry',
|
||||
},
|
||||
|
||||
|
||||
// Financial Reports.
|
||||
{
|
||||
path: `${BASE_URL}/accounting/general-ledger`,
|
||||
name: 'dashboard.accounting.general.ledger',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/FinancialStatements/LedgerSheet')
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/accounting/trial-balance`,
|
||||
name: 'dashboard.accounting.trial.balance',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/FinancialStatements/TrialBalanceSheet')
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/accounting/balance-sheet`,
|
||||
name: 'dashboard.accounting.balance.sheet',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Dashboard/FinancialStatements/BalanceSheet')
|
||||
}),
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user