This commit is contained in:
Ahmed Bouhuolia
2020-03-16 00:06:15 +02:00
parent 56701951b7
commit 73711384f6
7925 changed files with 18478 additions and 959 deletions

View File

@@ -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')
}),
}
];

View File

@@ -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')
}),
}
];

View 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,
},
];

View 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,
},
],
}