mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
WIP
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
import Login from 'containers/Authentication/Login';
|
||||
import ResetPassword from 'containers/Authentication/ResetPassword';
|
||||
import LazyLoader from 'components/LazyLoader';
|
||||
|
||||
const BASE_URL = '/auth';
|
||||
|
||||
export default [
|
||||
// {
|
||||
// path: '/',
|
||||
// exact: true,
|
||||
// component: Login,
|
||||
// },
|
||||
{
|
||||
path: '/auth/login',
|
||||
exact: true,
|
||||
component: Login,
|
||||
path: `${BASE_URL}/login`,
|
||||
name: 'auth.login',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Authentication/Login')
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: '/auth/reset_password',
|
||||
exact: true,
|
||||
component: ResetPassword,
|
||||
path: `${BASE_URL}/reset_password`,
|
||||
name: 'auth.reset_password',
|
||||
component: LazyLoader({
|
||||
loader: () => import('containers/Authentication/ResetPassword')
|
||||
}),
|
||||
}
|
||||
];
|
||||
@@ -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')
|
||||
}),
|
||||
}
|
||||
];
|
||||
32
client/src/routes/preferences.js
Normal file
32
client/src/routes/preferences.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import General from 'containers/Dashboard/Preferences/General';
|
||||
import Users from 'containers/Dashboard/Preferences/Users';
|
||||
import Accountant from 'containers/Dashboard/Preferences/Accountant';
|
||||
import Accounts from 'containers/Dashboard/Preferences/Accounts';
|
||||
|
||||
const BASE_URL = '/dashboard/preferences';
|
||||
|
||||
export default [
|
||||
{
|
||||
path: `${BASE_URL}/general`,
|
||||
name: 'dashboard.preferences.general',
|
||||
component: General,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/users`,
|
||||
name: 'dashboard.preferences.users',
|
||||
component: Users,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/accountant`,
|
||||
name: 'dashboard.preferences.accountant',
|
||||
component: Accountant,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/accounts`,
|
||||
name: 'dashboard.preferences.accounts',
|
||||
component: Accounts,
|
||||
},
|
||||
];
|
||||
32
client/src/routes/preferencesTabs.js
Normal file
32
client/src/routes/preferencesTabs.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import AccountsCustomFields from "containers/Dashboard/Preferences/AccountsCustomFields";
|
||||
import UsersList from 'containers/Dashboard/Preferences/UsersList';
|
||||
import RolesList from 'containers/Dashboard/Preferences/RolesList';
|
||||
|
||||
export default {
|
||||
accounts: [
|
||||
{
|
||||
path: '',
|
||||
component: AccountsCustomFields,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
name: 'dashboard.preferences.accounts.custom_fields',
|
||||
path: 'custom_fields',
|
||||
component: AccountsCustomFields,
|
||||
exact: true,
|
||||
},
|
||||
],
|
||||
users: [
|
||||
{
|
||||
path: '',
|
||||
component: UsersList,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
name: 'dashboard.preferences.users.roles',
|
||||
path: '/roles',
|
||||
component: RolesList,
|
||||
exact: true,
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user