Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HIMS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sandeep Sagar
HIMS
Commits
0e23a8b4
Commit
0e23a8b4
authored
Oct 13, 2023
by
Sandeep Sagar Panjala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added lazy loading
parent
20249b7f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
36 deletions
+74
-36
app.module.ts
Presentation/Hims.Admin/src/app/app.module.ts
+0
-4
app.routing.module.ts
Presentation/Hims.Admin/src/app/app.routing.module.ts
+5
-18
masters.module.ts
.../Hims.Admin/src/app/areas/admin/masters/masters.module.ts
+17
-0
masters.routing.module.ts
...min/src/app/areas/admin/masters/masters.routing.module.ts
+26
-0
index.html
Presentation/Hims.Admin/src/index.html
+26
-14
No files found.
Presentation/Hims.Admin/src/app/app.module.ts
View file @
0e23a8b4
...
@@ -9,8 +9,6 @@ import { AppConfig, AppData } from "@shared/services";
...
@@ -9,8 +9,6 @@ import { AppConfig, AppData } from "@shared/services";
import
{
SharedModule
}
from
"@shared/shared.module"
;
import
{
SharedModule
}
from
"@shared/shared.module"
;
import
{
OTPWidget
}
from
"@shared/widgets"
;
import
{
OTPWidget
}
from
"@shared/widgets"
;
import
{
LayoutComponent
}
from
'./areas/layout/layout.component'
;
import
{
LayoutComponent
}
from
'./areas/layout/layout.component'
;
import
{
MastersPage
}
from
'./areas/admin/masters/masters.page'
;
import
{
CubiclePage
}
from
'./areas/admin/masters/pages/cubicle/cubicle.page'
;
const
widgets
=
[
OTPWidget
];
const
widgets
=
[
OTPWidget
];
const
components
=
[
AvatarImageComponent
,
SymptomsViewComponent
];
const
components
=
[
AvatarImageComponent
,
SymptomsViewComponent
];
...
@@ -25,8 +23,6 @@ const components = [AvatarImageComponent, SymptomsViewComponent];
...
@@ -25,8 +23,6 @@ const components = [AvatarImageComponent, SymptomsViewComponent];
declarations
:
[
declarations
:
[
AppComponent
,
AppComponent
,
LayoutComponent
,
LayoutComponent
,
MastersPage
,
CubiclePage
,
widgets
,
widgets
,
components
,
components
,
routePages
,
routePages
,
...
...
Presentation/Hims.Admin/src/app/app.routing.module.ts
View file @
0e23a8b4
...
@@ -2,13 +2,11 @@ import { ForgotPasswordPage } from "@account/forgot-password/forgot-password.pag
...
@@ -2,13 +2,11 @@ import { ForgotPasswordPage } from "@account/forgot-password/forgot-password.pag
import
{
LoginPage
}
from
"@account/login/login.page"
;
import
{
LoginPage
}
from
"@account/login/login.page"
;
import
{
AccountsPage
}
from
"@admin/accounts/accounts.page"
;
import
{
AccountsPage
}
from
"@admin/accounts/accounts.page"
;
import
{
NgModule
}
from
"@angular/core"
;
import
{
NgModule
}
from
"@angular/core"
;
import
{
Route
,
Route
rModule
,
Routes
}
from
"@angular/router"
;
import
{
RouterModule
,
Routes
}
from
"@angular/router"
;
import
{
NotFoundPage
}
from
"@error/not-found/not-found.page"
;
import
{
NotFoundPage
}
from
"@error/not-found/not-found.page"
;
import
{
ServerErrorPage
}
from
"@error/server-error/server-error.page"
;
import
{
ServerErrorPage
}
from
"@error/server-error/server-error.page"
;
import
{
AccessGuard
,
AuthGuard
,
DeactivateGuard
,
TelemedicineGuard
}
from
"@shared/guards"
;
import
{
AccessGuard
,
AuthGuard
,
DeactivateGuard
,
TelemedicineGuard
}
from
"@shared/guards"
;
import
{
LayoutComponent
}
from
"./areas/layout/layout.component"
;
import
{
LayoutComponent
}
from
"./areas/layout/layout.component"
;
import
{
MastersPage
}
from
"./areas/admin/masters/masters.page"
;
import
{
CubiclePage
}
from
"./areas/admin/masters/pages/cubicle/cubicle.page"
;
// STARTING PAGES
// STARTING PAGES
const
startingRoutes
=
[
const
startingRoutes
=
[
...
@@ -24,20 +22,6 @@ const errorRoutes = [
...
@@ -24,20 +22,6 @@ const errorRoutes = [
]
]
const
errorRouteComponents
=
[
NotFoundPage
,
ServerErrorPage
];
const
errorRouteComponents
=
[
NotFoundPage
,
ServerErrorPage
];
// MASTERS
const
masterPages
=
{
path
:
"masters"
,
data
:
{
title
:
"Masters"
},
canActivate
:
[
AuthGuard
],
canActivateChild
:
[
AuthGuard
],
component
:
MastersPage
,
children
:
[
{
path
:
""
,
redirectTo
:
"accounts"
,
pathMatch
:
"full"
},
{
path
:
"cubicle"
,
component
:
CubiclePage
,
data
:
{
title
:
"cubicle"
}
},
{
path
:
"**"
,
redirectTo
:
"accounts"
},
]
}
// HIDDEN PAGES
// HIDDEN PAGES
const
hiddenPages
=
[
const
hiddenPages
=
[
{
path
:
"accounts"
,
component
:
AccountsPage
,
data
:
{
title
:
"Accounts"
,
}
}
{
path
:
"accounts"
,
component
:
AccountsPage
,
data
:
{
title
:
"Accounts"
,
}
}
...
@@ -56,7 +40,10 @@ const routes: Routes = [
...
@@ -56,7 +40,10 @@ const routes: Routes = [
children
:
[
children
:
[
{
path
:
""
,
redirectTo
:
"dashboard"
,
pathMatch
:
"full"
},
{
path
:
""
,
redirectTo
:
"dashboard"
,
pathMatch
:
"full"
},
...
hiddenPages
,
...
hiddenPages
,
masterPages
as
Route
{
path
:
"masters"
,
loadChildren
:
()
=>
import
(
'./areas/admin/masters/masters.module'
).
then
(
m
=>
m
.
MastersModule
)
},
]
]
},
},
{
path
:
"**"
,
redirectTo
:
"not-found"
},
{
path
:
"**"
,
redirectTo
:
"not-found"
},
...
...
Presentation/Hims.Admin/src/app/areas/admin/masters/masters.module.ts
0 → 100644
View file @
0e23a8b4
import
{
NgModule
}
from
'@angular/core'
;
import
{
MastersPage
}
from
'./masters.page'
;
import
{
CubiclePage
}
from
'./pages/cubicle/cubicle.page'
;
import
{
SharedModule
}
from
'@src/app/shared/shared.module'
;
import
{
MastersRoutingModule
}
from
'./masters.routing.module'
;
@
NgModule
({
declarations
:
[
MastersPage
,
CubiclePage
],
imports
:
[
MastersRoutingModule
,
SharedModule
]
})
export
class
MastersModule
{
}
Presentation/Hims.Admin/src/app/areas/admin/masters/masters.routing.module.ts
0 → 100644
View file @
0e23a8b4
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
import
{
CubiclePage
}
from
'./pages/cubicle/cubicle.page'
;
import
{
MastersPage
}
from
'./masters.page'
;
import
{
AuthGuard
}
from
'@src/app/shared/guards'
;
const
routes
:
Routes
=
[
{
path
:
""
,
data
:
{
title
:
"Masters"
},
canActivate
:
[
AuthGuard
],
canActivateChild
:
[
AuthGuard
],
component
:
MastersPage
,
children
:
[
{
path
:
""
,
redirectTo
:
"cubicle"
,
pathMatch
:
"full"
},
{
path
:
"cubicle"
,
component
:
CubiclePage
,
data
:
{
title
:
"cubicle"
}
},
{
path
:
"**"
,
redirectTo
:
"cubicle"
},
]
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forChild
(
routes
)],
exports
:
[
RouterModule
]
})
export
class
MastersRoutingModule
{
}
Presentation/Hims.Admin/src/index.html
View file @
0e23a8b4
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
>
<meta
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, shrink-to-fit=no"
>
name=
"viewport"
<meta
name=
"description"
content=
"Careaxes"
>
content=
"width=device-width, initial-scale=1, shrink-to-fit=no"
<meta
name=
"author"
content=
"Careaxes"
>
/>
<meta
name=
"description"
content=
"Careaxes"
/>
<meta
name=
"author"
content=
"Careaxes"
/>
<title>
Careaxes
</title>
<title>
Careaxes
</title>
<base
href=
"/"
>
<base
href=
"/"
/>
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"assets/images/favicon.png"
/>
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"assets/images/favicon.png"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/fonts/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/fonts/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/css/bootstrap.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/css/bootstrap.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/css/toastr.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/css/toastr.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/css/app.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/css/app.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/css/custom.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"assets/css/custom.css"
/>
</head>
</head>
<body
data-layout-mode=
"two-column"
data-sidebar-size=
"condensed"
data-sidebar-color=
"light"
data-layout-width=
"fluid"
data-layout-menu-position=
"fixed"
data-sidebar-showuser=
"false"
data-topbar-color=
"light"
onmousemove=
"showCoords(event)"
onclick=
"sidebarEnable1(event); leave1(event); show(event);"
onresize=
"hide(event);"
>
<body
data-layout-mode=
"two-column"
data-sidebar-size=
"condensed"
data-sidebar-color=
"light"
data-layout-width=
"fluid"
data-layout-menu-position=
"fixed"
data-sidebar-showuser=
"false"
data-topbar-color=
"light"
>
<app-root></app-root>
<app-root></app-root>
</body>
</body>
</html>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment