mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
re-structure to monorepo.
This commit is contained in:
37
packages/webapp/src/routes/authentication.tsx
Normal file
37
packages/webapp/src/routes/authentication.tsx
Normal file
@@ -0,0 +1,37 @@
|
||||
// @ts-nocheck
|
||||
import LazyLoader from '@/components/LazyLoader';
|
||||
|
||||
const BASE_URL = '/auth';
|
||||
|
||||
export default [
|
||||
{
|
||||
path: `${BASE_URL}/login`,
|
||||
component: LazyLoader({
|
||||
loader: () => import('@/containers/Authentication/Login'),
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/send_reset_password`,
|
||||
component: LazyLoader({
|
||||
loader: () => import('@/containers/Authentication/SendResetPassword'),
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/reset_password/:token`,
|
||||
component: LazyLoader({
|
||||
loader: () => import('@/containers/Authentication/ResetPassword'),
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/invite/:token/accept`,
|
||||
component: LazyLoader({
|
||||
loader: () => import('@/containers/Authentication/InviteAccept'),
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/register`,
|
||||
component: LazyLoader({
|
||||
loader: () => import('@/containers/Authentication/Register'),
|
||||
}),
|
||||
}
|
||||
];
|
||||
1063
packages/webapp/src/routes/dashboard.tsx
Normal file
1063
packages/webapp/src/routes/dashboard.tsx
Normal file
File diff suppressed because it is too large
Load Diff
71
packages/webapp/src/routes/preferences.tsx
Normal file
71
packages/webapp/src/routes/preferences.tsx
Normal file
@@ -0,0 +1,71 @@
|
||||
// @ts-nocheck
|
||||
import General from '@/containers/Preferences/General/General';
|
||||
import Users from '../containers/Preferences/Users/Users';
|
||||
import Roles from '../containers/Preferences/Users/Roles/RolesForm/RolesFormPage';
|
||||
import Accountant from '@/containers/Preferences/Accountant/Accountant';
|
||||
import Currencies from '@/containers/Preferences/Currencies/Currencies';
|
||||
import Item from '@/containers/Preferences/Item';
|
||||
import SMSIntegration from '../containers/Preferences/SMSIntegration';
|
||||
import DefaultRoute from '../containers/Preferences/DefaultRoute';
|
||||
import Warehouses from '../containers/Preferences/Warehouses';
|
||||
import Branches from '../containers/Preferences/Branches';
|
||||
|
||||
const BASE_URL = '/preferences';
|
||||
|
||||
export default [
|
||||
{
|
||||
path: `${BASE_URL}/general`,
|
||||
component: General,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/users`,
|
||||
component: Users,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/roles`,
|
||||
component: Roles,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/roles/:id`,
|
||||
component: Roles,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/currencies`,
|
||||
component: Currencies,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/warehouses`,
|
||||
component: Warehouses,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/branches`,
|
||||
component: Branches,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/accountant`,
|
||||
component: Accountant,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/items`,
|
||||
component: Item,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/sms-message`,
|
||||
component: SMSIntegration,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: `${BASE_URL}/`,
|
||||
component: DefaultRoute,
|
||||
exact: true,
|
||||
},
|
||||
];
|
||||
21
packages/webapp/src/routes/preferencesTabs.tsx
Normal file
21
packages/webapp/src/routes/preferencesTabs.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
// @ts-nocheck
|
||||
// import AccountsCustomFields from "containers/Preferences/AccountsCustomFields";
|
||||
import UsersList from '../containers/Preferences/Users/UsersList';
|
||||
import RolesList from '../containers/Preferences/Users/Roles/RolesLanding/RolesList';
|
||||
|
||||
export default {
|
||||
users: [
|
||||
{
|
||||
path: '',
|
||||
component: UsersList,
|
||||
exact: true,
|
||||
},
|
||||
],
|
||||
roles: [
|
||||
{
|
||||
path: '',
|
||||
component: RolesList,
|
||||
exact: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
23
packages/webapp/src/routes/register.tsx
Normal file
23
packages/webapp/src/routes/register.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
// @ts-nocheck
|
||||
import LazyLoader from '@/components/LazyLoader';
|
||||
|
||||
export default [
|
||||
{
|
||||
path: '/register/subscription',
|
||||
component: LazyLoader({
|
||||
loader: () => import('@/containers/Authentication/Register/RegisterSubscriptionForm'),
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: '/register/organization',
|
||||
component: LazyLoader({
|
||||
loader: () => import('@/containers/Authentication/Register/RegisterOrganizationForm'),
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: `/`,
|
||||
component: LazyLoader({
|
||||
loader: () => import('@/containers/Authentication/Register/RegisterUserForm'),
|
||||
}),
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user