Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lamarts mobile app angular
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Arko Dey Bhowmick
Lamarts mobile app angular
Commits
09a93397
Commit
09a93397
authored
Mar 21, 2025
by
achinta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: exam and routine component with routes
parent
7160043b
Changes
44
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
401 additions
and
97 deletions
+401
-97
src/app/app.routes.ts
src/app/app.routes.ts
+18
-0
src/app/auth/login/login.component.html
src/app/auth/login/login.component.html
+9
-7
src/app/component-library/colored-card/colored-card.component.html
...omponent-library/colored-card/colored-card.component.html
+10
-8
src/app/component-library/colored-card/colored-card.component.scss
...omponent-library/colored-card/colored-card.component.scss
+7
-4
src/app/component-library/colored-card/colored-card.component.ts
.../component-library/colored-card/colored-card.component.ts
+4
-2
src/app/component-library/custom-table/custom-table.component.html
...omponent-library/custom-table/custom-table.component.html
+5
-4
src/app/component-library/custom-table/custom-table.component.ts
.../component-library/custom-table/custom-table.component.ts
+1
-0
src/app/mappers/request-mapper.service.ts
src/app/mappers/request-mapper.service.ts
+4
-39
src/app/portal/assignment/assignment.routes.ts
src/app/portal/assignment/assignment.routes.ts
+20
-0
src/app/portal/assignment/assignment/assignment.component.html
...pp/portal/assignment/assignment/assignment.component.html
+1
-0
src/app/portal/assignment/assignment/assignment.component.scss
...pp/portal/assignment/assignment/assignment.component.scss
+0
-0
src/app/portal/assignment/assignment/assignment.component.spec.ts
...portal/assignment/assignment/assignment.component.spec.ts
+6
-6
src/app/portal/assignment/assignment/assignment.component.ts
src/app/portal/assignment/assignment/assignment.component.ts
+28
-0
src/app/portal/assignment/manage/manage.component.html
src/app/portal/assignment/manage/manage.component.html
+1
-0
src/app/portal/assignment/manage/manage.component.scss
src/app/portal/assignment/manage/manage.component.scss
+0
-0
src/app/portal/assignment/manage/manage.component.spec.ts
src/app/portal/assignment/manage/manage.component.spec.ts
+23
-0
src/app/portal/assignment/manage/manage.component.ts
src/app/portal/assignment/manage/manage.component.ts
+11
-0
src/app/portal/assignments/add-assignment/add-assignment.component.html
.../assignments/add-assignment/add-assignment.component.html
+0
-1
src/app/portal/exam/exam.routes.ts
src/app/portal/exam/exam.routes.ts
+19
-0
src/app/portal/exam/exam/exam.component.html
src/app/portal/exam/exam/exam.component.html
+1
-0
src/app/portal/exam/exam/exam.component.scss
src/app/portal/exam/exam/exam.component.scss
+0
-0
src/app/portal/exam/exam/exam.component.spec.ts
src/app/portal/exam/exam/exam.component.spec.ts
+23
-0
src/app/portal/exam/exam/exam.component.ts
src/app/portal/exam/exam/exam.component.ts
+11
-0
src/app/portal/exam/manage/manage.component.html
src/app/portal/exam/manage/manage.component.html
+1
-0
src/app/portal/exam/manage/manage.component.scss
src/app/portal/exam/manage/manage.component.scss
+0
-0
src/app/portal/exam/manage/manage.component.spec.ts
src/app/portal/exam/manage/manage.component.spec.ts
+23
-0
src/app/portal/exam/manage/manage.component.ts
src/app/portal/exam/manage/manage.component.ts
+11
-0
src/app/portal/navigation/model/sidebar/menu.ts
src/app/portal/navigation/model/sidebar/menu.ts
+30
-6
src/app/portal/navigation/model/sidebar/submenu.ts
src/app/portal/navigation/model/sidebar/submenu.ts
+2
-2
src/app/portal/navigation/topbar/topbar.component.html
src/app/portal/navigation/topbar/topbar.component.html
+1
-1
src/app/portal/portal-dashboard/portal-dashboard.component.html
...p/portal/portal-dashboard/portal-dashboard.component.html
+38
-0
src/app/portal/portal/portal.component.html
src/app/portal/portal/portal.component.html
+3
-16
src/app/portal/routine/manage/manage.component.html
src/app/portal/routine/manage/manage.component.html
+1
-0
src/app/portal/routine/manage/manage.component.scss
src/app/portal/routine/manage/manage.component.scss
+0
-0
src/app/portal/routine/manage/manage.component.spec.ts
src/app/portal/routine/manage/manage.component.spec.ts
+23
-0
src/app/portal/routine/manage/manage.component.ts
src/app/portal/routine/manage/manage.component.ts
+11
-0
src/app/portal/routine/routine.routes.ts
src/app/portal/routine/routine.routes.ts
+19
-0
src/app/portal/routine/routine/routine.component.html
src/app/portal/routine/routine/routine.component.html
+1
-0
src/app/portal/routine/routine/routine.component.scss
src/app/portal/routine/routine/routine.component.scss
+0
-0
src/app/portal/routine/routine/routine.component.spec.ts
src/app/portal/routine/routine/routine.component.spec.ts
+23
-0
src/app/portal/routine/routine/routine.component.ts
src/app/portal/routine/routine/routine.component.ts
+11
-0
src/assets/image/logo_blue_nkda.png
src/assets/image/logo_blue_nkda.png
+0
-0
src/assets/image/logo_lamarts.png
src/assets/image/logo_lamarts.png
+0
-0
src/index.html
src/index.html
+1
-1
No files found.
src/app/app.routes.ts
View file @
09a93397
...
...
@@ -66,6 +66,24 @@ export const routes: Routes = [
canActivate
:
[
verifyRoleGuard
],
},
{
path
:
RequestMapperService
.
BASE_RELATIVE_URL
,
loadChildren
:
()
=>
import
(
'
./portal/assignment/assignment.routes
'
)
.
then
(
r
=>
r
.
ASSIGNMENT_ROUTES
)
},
{
path
:
RequestMapperService
.
BASE_RELATIVE_URL
,
loadChildren
:
()
=>
import
(
'
./portal/exam/exam.routes
'
)
.
then
(
r
=>
r
.
EXAM_ROUTES
)
},
{
path
:
RequestMapperService
.
BASE_RELATIVE_URL
,
loadChildren
:
()
=>
import
(
'
./portal/routine/routine.routes
'
)
.
then
(
r
=>
r
.
ROUTINE_ROUTES
)
},
],
},
...
...
src/app/auth/login/login.component.html
View file @
09a93397
<div
class=
"login_outer"
>
<div
class=
"phone_section"
>
<img
class=
"login_logo"
[ngSrc]=
"'./assets/image/login_logo.png'"
alt=
"Logo"
width=
"100"
height=
"100"
/>
<div
class=
"logo_section"
>
<img
class=
"login_logo"
[ngSrc]=
"'./assets/image/logo_lamarts.png'"
alt=
"Logo"
width=
"100"
height=
"100"
/>
</div>
<h5>
Welcome
</h5>
<p>
Enter your
mobile number to recieve a one time passcod
e
</p>
<p>
Enter your
username and password to continu
e
</p>
<form
class=
"login_form"
[formGroup]=
"loginForm"
>
...
...
src/app/component-library/colored-card/colored-card.component.html
View file @
09a93397
<div
class=
"colored_card"
>
<p
class=
"cardTextOneHeading"
>
{{cardTextOneHeading}}
</p>
<p
class=
"cardTextOne"
>
{{cardTextOne}}
</p>
<p
class=
"cardTextTwoHeading"
>
{{cardTextTwoHeading}}
</p>
<p
class=
"cardTextTwo"
>
{{cardTextTwo}}
</p>
<img
[ngSrc]=
"CardImage"
width=
"100"
height=
"100"
/>
</div>
<a
[routerLink]=
"cardLink"
>
<div
class=
"colored_card"
>
<p
class=
"cardTextOneHeading"
>
{{cardTextOneHeading}}
</p>
<p
class=
"cardTextOne"
>
{{cardTextOne}}
</p>
<p
class=
"cardTextTwoHeading"
>
{{cardTextTwoHeading}}
</p>
<p
class=
"cardTextTwo"
>
{{cardTextTwo}}
</p>
<img
[ngSrc]=
"CardImage"
width=
"100"
height=
"100"
/>
</div>
</a>
src/app/component-library/colored-card/colored-card.component.scss
View file @
09a93397
a
{
text-decoration
:
none
;
}
.colored_card
{
background
:
var
(
--
accent-gradient
);
border-radius
:
16px
;
...
...
@@ -10,18 +13,18 @@
color
:
white
;
margin
:
0
;
}
.cardTextOneHeading
{
//
.cardTextOneHeading {
}
//
}
.cardTextOne
{
font-size
:
33px
;
font-family
:
"hlv_bold"
,
sans-serif
;
margin-top
:
6px
;
margin-bottom
:
14px
;
}
.cardTextTwoHeading
{
//
.cardTextTwoHeading {
}
//
}
.cardTextTwo
{
font-size
:
33px
;
font-family
:
"hlv_bold"
,
sans-serif
;
...
...
src/app/component-library/colored-card/colored-card.component.ts
View file @
09a93397
import
{
NgOptimizedImage
}
from
'
@angular/common
'
;
import
{
Component
,
Input
}
from
'
@angular/core
'
;
import
{
RouterModule
}
from
'
@angular/router
'
;
@
Component
({
selector
:
'
app-colored-card
'
,
imports
:
[
NgOptimizedImage
NgOptimizedImage
,
RouterModule
],
templateUrl
:
'
./colored-card.component.html
'
,
styleUrl
:
'
./colored-card.component.scss
'
...
...
@@ -15,7 +17,7 @@ export class ColoredCardComponent {
@
Input
()
cardTextOne
:
string
=
''
;
@
Input
()
cardTextTwoHeading
:
string
=
''
;
@
Input
()
cardTextTwo
:
string
=
''
;
@
Input
()
cardLink
:
string
=
''
;
@
Input
()
CardImage
:
string
=
''
;
}
src/app/component-library/custom-table/custom-table.component.html
View file @
09a93397
...
...
@@ -7,8 +7,6 @@
<td
mat-cell
*matCellDef=
"let element"
>
@if (column.key !== 'action' ) {
{{ element[column.key] }}
<input
type=
"text"
value=
{{column.label}}/
>
<button
(click)=
"editField(i)"
>
edit
</button>
} @else {
@for (item of element[column.key]; track item) {
...
...
@@ -32,5 +30,8 @@
<tr
mat-row
*matRowDef=
"let row; columns: displayedColumns;"
></tr>
</table>
<mat-paginator
[length]=
"count"
[pageSize]=
"pageSize"
(page)=
"onPageChanged($event)"
>
</mat-paginator>
\ No newline at end of file
@if (count
&&
pageSize ) {
<mat-paginator
[length]=
"count"
[pageSize]=
"pageSize"
(page)=
"onPageChanged($event)"
>
</mat-paginator>
}
\ No newline at end of file
src/app/component-library/custom-table/custom-table.component.ts
View file @
09a93397
...
...
@@ -32,6 +32,7 @@ export class CustomTableComponent {
public
ngOnInit
():
void
{
// console.log(this.data);
}
get
displayedColumns
():
string
[]
{
// console.log(this.data);
return
this
.
columns
.
map
(
col
=>
col
.
key
);
...
...
src/app/mappers/request-mapper.service.ts
View file @
09a93397
...
...
@@ -18,45 +18,10 @@ export class RequestMapperService {
public
static
readonly
PORTAL_URL
:
string
=
'
portal
'
;
public
static
readonly
DASHBOARD_URL
:
string
=
'
dashboard
'
;
// accounts navigation
public
static
readonly
CHARTS_OF_ACCOUNTS_URL
:
string
=
'
charts-of-accounts
'
;
public
static
readonly
AUDIT_LOG_URL
:
string
=
'
audit-log
'
;
public
static
readonly
SCHEDULE_OF_RATES_URL
:
string
=
'
schedule-of-rates
'
;
public
static
readonly
FUND_ALLOTMENT_URL
:
string
=
'
fund-allotment
'
;
public
static
readonly
FUND_ALLOTMENT_AUDIT_LOG_URL
:
string
=
'
fund-allotment-log
'
;
public
static
readonly
BUDGET_URL
:
string
=
'
budget
'
;
// assignment navigation
public
static
readonly
ASSIGNMENT_URL
:
string
=
'
assignment
'
;
public
static
readonly
EXAM_URL
:
string
=
'
exam
'
;
public
static
readonly
ROUTINE_URL
:
string
=
'
routine
'
;
public
static
readonly
FUND_SUBMITTED_BUDGET
:
string
=
'
fund-submitted-budget
'
;
static
SCHEDULE_OF_RATE_AUDIT_LOG_URL
:
string
=
"
schedule-of-rate-audit-log
"
;
// temp links for guard demo start
public
static
readonly
TEMP_ACCOUNT_URL1
:
string
=
'
acc1
'
;
public
static
readonly
TEMP_ACCOUNT_URL2
:
string
=
'
acc2
'
;
public
static
readonly
TEMP_ACCOUNT_URL3
:
string
=
'
acc3
'
;
public
static
readonly
TEMP_FO_URL1
:
string
=
'
of1
'
;
public
static
readonly
TEMP_FO_URL2
:
string
=
'
of2
'
;
public
static
readonly
TEMP_FO_URL3
:
string
=
'
of3
'
;
public
static
readonly
TEMP_EE_URL1
:
string
=
'
ee1
'
;
public
static
readonly
TEMP_EE_URL2
:
string
=
'
ee2
'
;
public
static
readonly
TEMP_EE_URL3
:
string
=
'
ee3
'
;
// temp links for guard demo end
//water body
public
static
readonly
WATER_BODY_URL
:
string
=
'
water-bodies
'
;
public
static
readonly
WATER_BODY_ADD_URL
:
string
=
'
water-body-add
'
;
}
src/app/portal/assignment/assignment.routes.ts
0 → 100644
View file @
09a93397
import
{
Routes
}
from
"
@angular/router
"
;
import
{
verifyRoleGuard
}
from
"
../../auth/guard/verify-role.guard
"
;
import
{
RequestMapperService
}
from
"
../../mappers/request-mapper.service
"
;
import
{
Submenu
}
from
"
../navigation/model/sidebar/submenu
"
;
import
{
Menu
}
from
"
../navigation/model/sidebar/menu
"
;
export
const
ASSIGNMENT_ROUTES
:
Routes
=
[
{
path
:
RequestMapperService
.
ASSIGNMENT_URL
,
loadComponent
:
()
=>
import
(
'
./assignment/assignment.component
'
)
.
then
((
m
)
=>
m
.
AssignmentComponent
),
data
:
{
roles
:
Menu
.
AssignmentItems
.
roles
},
canActivate
:
[
verifyRoleGuard
],
},
]
src/app/portal/assignment/assignment/assignment.component.html
0 → 100644
View file @
09a93397
<app-custom-table
[columns]=
"columns"
[data]=
"data"
/>
src/app/portal/assignment
s/add-assignment/add-
assignment.component.scss
→
src/app/portal/assignment
/assignment/
assignment.component.scss
View file @
09a93397
File moved
src/app/portal/assignment
s/add-assignment/add-
assignment.component.spec.ts
→
src/app/portal/assignment
/assignment/
assignment.component.spec.ts
View file @
09a93397
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
A
ddAssignmentComponent
}
from
'
./add-
assignment.component
'
;
import
{
A
ssignmentComponent
}
from
'
./
assignment.component
'
;
describe
(
'
A
ddA
ssignmentComponent
'
,
()
=>
{
let
component
:
A
ddA
ssignmentComponent
;
let
fixture
:
ComponentFixture
<
A
ddA
ssignmentComponent
>
;
describe
(
'
AssignmentComponent
'
,
()
=>
{
let
component
:
AssignmentComponent
;
let
fixture
:
ComponentFixture
<
AssignmentComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
imports
:
[
A
ddA
ssignmentComponent
]
imports
:
[
AssignmentComponent
]
})
.
compileComponents
();
fixture
=
TestBed
.
createComponent
(
A
ddA
ssignmentComponent
);
fixture
=
TestBed
.
createComponent
(
AssignmentComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
...
...
src/app/portal/assignment/assignment/assignment.component.ts
0 → 100644
View file @
09a93397
import
{
Component
}
from
'
@angular/core
'
;
import
{
CustomTableComponent
}
from
'
../../../component-library/custom-table/custom-table.component
'
;
@
Component
({
selector
:
'
app-assignment
'
,
imports
:
[
CustomTableComponent
],
templateUrl
:
'
./assignment.component.html
'
,
styleUrl
:
'
./assignment.component.scss
'
})
export
class
AssignmentComponent
{
public
columns
=
[
{
key
:
'
class
'
,
label
:
'
Class
'
},
{
key
:
'
subject
'
,
label
:
'
Subject
'
},
{
key
:
'
section
'
,
label
:
'
Section
'
},
{
key
:
'
action
'
,
label
:
'
Action
'
},
];
public
data
=
[
{
class
:
"
VI
"
,
subject
:
"
Math
"
,
section
:
"
5A
"
,
action
:
[
'
view
'
,
'
edit
'
]
}
];
}
src/app/portal/assignment/manage/manage.component.html
0 → 100644
View file @
09a93397
<p>
manage works!
</p>
src/app/portal/assignment/manage/manage.component.scss
0 → 100644
View file @
09a93397
src/app/portal/assignment/manage/manage.component.spec.ts
0 → 100644
View file @
09a93397
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
ManageComponent
}
from
'
./manage.component
'
;
describe
(
'
ManageComponent
'
,
()
=>
{
let
component
:
ManageComponent
;
let
fixture
:
ComponentFixture
<
ManageComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
imports
:
[
ManageComponent
]
})
.
compileComponents
();
fixture
=
TestBed
.
createComponent
(
ManageComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/portal/assignment
s/add-assignment/add-assignment
.component.ts
→
src/app/portal/assignment
/manage/manage
.component.ts
View file @
09a93397
import
{
Component
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-
add-assignment
'
,
selector
:
'
app-
manage
'
,
imports
:
[],
templateUrl
:
'
./
add-assignment
.component.html
'
,
styleUrl
:
'
./
add-assignment
.component.scss
'
templateUrl
:
'
./
manage
.component.html
'
,
styleUrl
:
'
./
manage
.component.scss
'
})
export
class
AddAssignment
Component
{
export
class
Manage
Component
{
}
src/app/portal/assignments/add-assignment/add-assignment.component.html
deleted
100644 → 0
View file @
7160043b
<p>
add-assignment works!
</p>
src/app/portal/exam/exam.routes.ts
0 → 100644
View file @
09a93397
import
{
Routes
}
from
"
@angular/router
"
;
import
{
verifyRoleGuard
}
from
"
../../auth/guard/verify-role.guard
"
;
import
{
RequestMapperService
}
from
"
../../mappers/request-mapper.service
"
;
import
{
Menu
}
from
"
../navigation/model/sidebar/menu
"
;
export
const
EXAM_ROUTES
:
Routes
=
[
{
path
:
RequestMapperService
.
EXAM_URL
,
loadComponent
:
()
=>
import
(
'
./exam/exam.component
'
)
.
then
((
m
)
=>
m
.
ExamComponent
),
data
:
{
roles
:
Menu
.
ExamItems
.
roles
},
canActivate
:
[
verifyRoleGuard
],
},
]
src/app/portal/exam/exam/exam.component.html
0 → 100644
View file @
09a93397
<p>
exam works!
</p>
src/app/portal/exam/exam/exam.component.scss
0 → 100644
View file @
09a93397
src/app/portal/exam/exam/exam.component.spec.ts
0 → 100644
View file @
09a93397
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
ExamComponent
}
from
'
./exam.component
'
;
describe
(
'
ExamComponent
'
,
()
=>
{
let
component
:
ExamComponent
;
let
fixture
:
ComponentFixture
<
ExamComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
imports
:
[
ExamComponent
]
})
.
compileComponents
();
fixture
=
TestBed
.
createComponent
(
ExamComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/portal/exam/exam/exam.component.ts
0 → 100644
View file @
09a93397
import
{
Component
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-exam
'
,
imports
:
[],
templateUrl
:
'
./exam.component.html
'
,
styleUrl
:
'
./exam.component.scss
'
})
export
class
ExamComponent
{
}
src/app/portal/exam/manage/manage.component.html
0 → 100644
View file @
09a93397
<p>
manage works!
</p>
src/app/portal/exam/manage/manage.component.scss
0 → 100644
View file @
09a93397
src/app/portal/exam/manage/manage.component.spec.ts
0 → 100644
View file @
09a93397
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
ManageComponent
}
from
'
./manage.component
'
;
describe
(
'
ManageComponent
'
,
()
=>
{
let
component
:
ManageComponent
;
let
fixture
:
ComponentFixture
<
ManageComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
imports
:
[
ManageComponent
]
})
.
compileComponents
();
fixture
=
TestBed
.
createComponent
(
ManageComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/portal/exam/manage/manage.component.ts
0 → 100644
View file @
09a93397
import
{
Component
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-manage
'
,
imports
:
[],
templateUrl
:
'
./manage.component.html
'
,
styleUrl
:
'
./manage.component.scss
'
})
export
class
ManageComponent
{
}
src/app/portal/navigation/model/sidebar/menu.ts
View file @
09a93397
...
...
@@ -37,24 +37,48 @@ export class Menu {
children
:
[]
};
p
rivate
static
readonly
_
AssignmentItems
:
Sidebar
=
{
p
ublic
static
readonly
AssignmentItems
:
Sidebar
=
{
id
:
3
,
title
:
'
Assignment
'
,
icon
:
'
assignment
'
,
route
:
'
disabled
'
,
route
:
RequestMapperService
.
ASSIGNMENT_URL
,
selected
:
false
,
roles
:
[
RoleMapperService
.
TEACHER_ROLE
RoleMapperService
.
TEACHER_ROLE
,
RoleMapperService
.
STUDENT_ROLE
],
children
:
Submenu
.
getAssignmentSubItems
children
:
[]
};
public
static
readonly
RoutineItems
:
Sidebar
=
{
id
:
4
,
title
:
'
Routine
'
,
icon
:
'
assignment
'
,
route
:
RequestMapperService
.
ROUTINE_URL
,
selected
:
false
,
roles
:
[
RoleMapperService
.
TEACHER_ROLE
,
RoleMapperService
.
STUDENT_ROLE
],
children
:
[]
};
public
static
readonly
ExamItems
:
Sidebar
=
{
id
:
5
,
title
:
'
Exam
'
,
icon
:
'
assignment
'
,
route
:
RequestMapperService
.
EXAM_URL
,
selected
:
false
,
roles
:
[
RoleMapperService
.
TEACHER_ROLE
,
RoleMapperService
.
STUDENT_ROLE
],
children
:
[]
};
private
static
readonly
_MenuItems
:
Sidebar
[]
=
[
Menu
.
_Dashboard
,
Menu
.
_AssignmentItems
,
Menu
.
AssignmentItems
,
Menu
.
RoutineItems
,
Menu
.
ExamItems
];
...
...
src/app/portal/navigation/model/sidebar/submenu.ts
View file @
09a93397
...
...
@@ -9,7 +9,7 @@ export class Submenu {
id
:
1
,
title
:
'
Add
'
,
icon
:
'
add
'
,
route
:
RequestMapperService
.
CHARTS_OF_ACCOUNTS
_URL
,
route
:
RequestMapperService
.
ASSIGNMENT
_URL
,
selected
:
false
,
roles
:
[
RoleMapperService
.
TEACHER_ROLE
...
...
@@ -21,7 +21,7 @@ export class Submenu {
id
:
1
,
title
:
'
History
'
,
icon
:
'
add
'
,
route
:
RequestMapperService
.
CHARTS_OF_ACCOUNTS
_URL
,
route
:
RequestMapperService
.
ASSIGNMENT
_URL
,
selected
:
false
,
roles
:
[
RoleMapperService
.
TEACHER_ROLE
...
...
src/app/portal/navigation/topbar/topbar.component.html
View file @
09a93397
<div
class=
"topbar_navigation_wrapper"
>
<div
class=
"topbar_logo"
>
<img
[ngSrc]=
"'./assets/image/logo_
blue
.png'"
[ngSrc]=
"'./assets/image/logo_
lamarts
.png'"
width=
"200"
height=
"100"
alt=
"logo"
...
...
src/app/portal/portal-dashboard/portal-dashboard.component.html
View file @
09a93397
<div
class=
"portal_dashboard_container"
>
<div
class=
"portal_dashboard_inner"
>
<div
class=
"portal_card_container"
>
<app-colored-card
[cardTextOneHeading]=
"'Assignment'"
[cardTextOne]=
"''"
[cardLink]=
"''"
[cardTextTwoHeading]=
"'Assignment'"
[cardTextTwo]=
"''"
[CardImage]=
"
'./assets/image/charts_and_calculations_for_business_analytics.svg'
"
class=
"portal_card_colored_card"
/>
<app-colored-card
[cardTextOneHeading]=
"'Routine'"
[cardTextOne]=
"''"
[cardLink]=
"''"
[cardTextTwoHeading]=
"'Routine'"
[cardTextTwo]=
"''"
[CardImage]=
"
'./assets/image/Mobile_banking_app_with_secure_payment.svg'
"
class=
"portal_card_colored_card"
/>
<app-colored-card
[cardTextOneHeading]=
"'Exam Schedule'"
[cardTextOne]=
"''"
[cardLink]=
"''"
[cardTextTwoHeading]=
"'Exam Schedule'"
[cardTextTwo]=
"''"
[CardImage]=
"'./assets/image/Digital_receipts_for_online_payments.svg'"
class=
"portal_card_colored_card"
/>
</div>
</div>
</div>
src/app/portal/portal/portal.component.html
View file @
09a93397
<!-- <p>portal-viewer works!</p> -->
<div
class=
"portal_viewer"
>
<
!-- <
div class="top_bar">
<div
class=
"top_bar"
>
<app-top-bar
/>
</div> -->
<!-- <mat-drawer-container class="example-container">
<mat-drawer mode="side" opened>
<div class="sidebar">
<app-sidebar />
</div>
</mat-drawer>
<mat-drawer-content>
<div class="portal_renderer">
<div class="portal_renderer_inner">
<router-outlet />
</div>
</div>
</mat-drawer-content>
</mat-drawer-container> -->
</div>
<div
class=
"sidebar"
>
<app-sidebar
/>
</div>
...
...
src/app/portal/routine/manage/manage.component.html
0 → 100644
View file @
09a93397
<p>
manage works!
</p>
src/app/portal/routine/manage/manage.component.scss
0 → 100644
View file @
09a93397
src/app/portal/routine/manage/manage.component.spec.ts
0 → 100644
View file @
09a93397
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
ManageComponent
}
from
'
./manage.component
'
;
describe
(
'
ManageComponent
'
,
()
=>
{
let
component
:
ManageComponent
;
let
fixture
:
ComponentFixture
<
ManageComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
imports
:
[
ManageComponent
]
})
.
compileComponents
();
fixture
=
TestBed
.
createComponent
(
ManageComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/portal/routine/manage/manage.component.ts
0 → 100644
View file @
09a93397
import
{
Component
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-manage
'
,
imports
:
[],
templateUrl
:
'
./manage.component.html
'
,
styleUrl
:
'
./manage.component.scss
'
})
export
class
ManageComponent
{
}
src/app/portal/routine/routine.routes.ts
0 → 100644
View file @
09a93397
import
{
Routes
}
from
"
@angular/router
"
;
import
{
verifyRoleGuard
}
from
"
../../auth/guard/verify-role.guard
"
;
import
{
RequestMapperService
}
from
"
../../mappers/request-mapper.service
"
;
import
{
Menu
}
from
"
../navigation/model/sidebar/menu
"
;
export
const
ROUTINE_ROUTES
:
Routes
=
[
{
path
:
RequestMapperService
.
ROUTINE_URL
,
loadComponent
:
()
=>
import
(
'
./routine/routine.component
'
)
.
then
((
m
)
=>
m
.
RoutineComponent
),
data
:
{
roles
:
Menu
.
RoutineItems
.
roles
},
canActivate
:
[
verifyRoleGuard
],
},
]
src/app/portal/routine/routine/routine.component.html
0 → 100644
View file @
09a93397
<p>
routine works!
</p>
src/app/portal/routine/routine/routine.component.scss
0 → 100644
View file @
09a93397
src/app/portal/routine/routine/routine.component.spec.ts
0 → 100644
View file @
09a93397
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
RoutineComponent
}
from
'
./routine.component
'
;
describe
(
'
RoutineComponent
'
,
()
=>
{
let
component
:
RoutineComponent
;
let
fixture
:
ComponentFixture
<
RoutineComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
imports
:
[
RoutineComponent
]
})
.
compileComponents
();
fixture
=
TestBed
.
createComponent
(
RoutineComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/portal/routine/routine/routine.component.ts
0 → 100644
View file @
09a93397
import
{
Component
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-routine
'
,
imports
:
[],
templateUrl
:
'
./routine.component.html
'
,
styleUrl
:
'
./routine.component.scss
'
})
export
class
RoutineComponent
{
}
src/assets/image/logo_blue.png
→
src/assets/image/logo_blue
_nkda
.png
View file @
09a93397
File moved
src/assets/image/logo_lamarts.png
0 → 100644
View file @
09a93397
17.3 KB
src/index.html
View file @
09a93397
...
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<title>
W.B.L.M Portal
</title>
<title>
La Martiniere
</title>
<base
href=
"/"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"favicon.ico"
>
...
...
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