Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
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
Muhammad Usman
PERFORMA_REPLICA
Commits
7a407439
Commit
7a407439
authored
Jun 16, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
premium content commented out
parent
4c7bf15a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
58 deletions
+71
-58
home.component.html
...mponents/my-career-web/dashboard/home/home.component.html
+34
-33
home.component.ts
...components/my-career-web/dashboard/home/home.component.ts
+32
-1
profile-tasks.component.html
...-web/dashboard/profile-tasks/profile-tasks.component.html
+0
-1
profile-tasks.component.ts
...er-web/dashboard/profile-tasks/profile-tasks.component.ts
+5
-23
No files found.
frontend/angular/src/app/components/my-career-web/dashboard/home/home.component.html
View file @
7a407439
<div
class=
"home-wrapper"
*
ngIf=
"!isMobileView"
>
<div
class=
"home-wrapper position-relative"
*
ngIf=
"!isMobileView"
>
<app-overlay
[
isActive
]="
isLoading
"
></app-overlay>
<div
class=
"home-header"
>
<div
class=
"home-header"
>
<div
class=
"home-header-heading"
>
Hey
Mark
, Welcome to Matchd Career.
</div>
<div
class=
"home-header-heading"
>
Hey
{{careerProfile?.Candidate?.User?.FirstName}}
, Welcome to Matchd Career.
</div>
<div
class=
"home-header-card"
>
<div
class=
"home-header-card"
>
<div
class=
"home-header-card-content"
>
<div
class=
"home-header-card-content"
>
We need some information from you so you can fill out your career profile and get job hunting.
We need some information from you so you can fill out your career profile and get job hunting.
...
@@ -10,20 +11,20 @@
...
@@ -10,20 +11,20 @@
</div>
</div>
<div
class=
"home-body"
>
<div
class=
"home-body"
>
<div
class=
"home-body-heading"
>
<!-- <div class="home-body-heading">--
>
Get to know yourself
<!-- Get to know yourself-->
</div
>
<!-- </div>--
>
<div
class=
"home-body-extra-features"
style=
"min-height: 240px;"
>
<!-- <div class="home-body-extra-features" style="min-height: 240px;">--
>
<div
class=
"extra-feature"
>
<!-- <div class="extra-feature">--
>
<div
class=
"feature-heading"
>
Development Reports
</div
>
<!-- <div class="feature-heading">Development Reports</div>--
>
<div
class=
"feature-content"
>
Information about feature that gives user context as to why to upgrade.
</div
>
<!-- <div class="feature-content">Information about feature that gives user context as to why to upgrade.</div>--
>
<div
class=
"feature-action"
>
View my summary report
</div
>
<!-- <div class="feature-action">View my summary report</div>--
>
</div
>
<!-- </div>--
>
<div
class=
"extra-feature-image"
style=
"position: relative;"
>
<!-- <div class="extra-feature-image" style="position: relative;">--
>
<img
src=
"assets/my-career-web/svgs/summary-report.svg"
style=
"position: absolute; top: -54px; right: -26px;"
>
<!-- <img src="assets/my-career-web/svgs/summary-report.svg" style="position: absolute; top: -54px; right: -26px;">--
>
</div
>
<!-- </div>--
>
</div
>
<!-- </div>--
>
<div
class=
"home-body-heading"
>
<div
class=
"home-body-heading"
>
...
@@ -60,8 +61,8 @@
...
@@ -60,8 +61,8 @@
<!-- Mobile View -->
<!-- Mobile View -->
<div
class=
"home-mobile-wrapper"
*
ngIf=
"isMobileView"
>
<div
class=
"home-mobile-wrapper
position-relative
"
*
ngIf=
"isMobileView"
>
<app-overlay
[
isActive
]="
isLoading
"
></app-overlay>
<div
class=
"home-mobile-tabs"
>
<div
class=
"home-mobile-tabs"
>
<div
class=
"home-mobile-tab"
[
ngClass
]="{
selected:
selectedMobileTab =
==
'
dashboard
'}"
(
click
)="
selectedMobileTab =
'dashboard'
"
>
Dashboard
</div>
<div
class=
"home-mobile-tab"
[
ngClass
]="{
selected:
selectedMobileTab =
==
'
dashboard
'}"
(
click
)="
selectedMobileTab =
'dashboard'
"
>
Dashboard
</div>
<div
class=
"home-mobile-tab"
[
ngClass
]="{
selected:
selectedMobileTab =
==
'
tasks
'}"
(
click
)="
selectedMobileTab =
'tasks'
"
>
Tasks
</div>
<div
class=
"home-mobile-tab"
[
ngClass
]="{
selected:
selectedMobileTab =
==
'
tasks
'}"
(
click
)="
selectedMobileTab =
'tasks'
"
>
Tasks
</div>
...
@@ -70,7 +71,7 @@
...
@@ -70,7 +71,7 @@
<div
class=
"mobile-tab-content"
*
ngIf=
"selectedMobileTab === 'dashboard'"
>
<div
class=
"mobile-tab-content"
*
ngIf=
"selectedMobileTab === 'dashboard'"
>
<div
class=
"home-mobile-header"
>
<div
class=
"home-mobile-header"
>
<div
class=
"mobile-header-heading"
>
Hey
Mark
, Welcome to Matchd Career.
</div>
<div
class=
"mobile-header-heading"
>
Hey
{{careerProfile?.Candidate?.User?.FirstName}}
, Welcome to Matchd Career.
</div>
<div
class=
"mobile-header-card"
>
<div
class=
"mobile-header-card"
>
We need some information from you so you can fill out your career profile and get job hunting.
We need some information from you so you can fill out your career profile and get job hunting.
<div
class=
"mobile-header-card-action"
routerLink=
"/my-career-web/dashboard/personal-details"
>
I'm ready to get started
</div>
<div
class=
"mobile-header-card-action"
routerLink=
"/my-career-web/dashboard/personal-details"
>
I'm ready to get started
</div>
...
@@ -80,21 +81,21 @@
...
@@ -80,21 +81,21 @@
<div
class=
"home-mobile-body"
>
<div
class=
"home-mobile-body"
>
<div
class=
"mobile-body-heading"
>
<!-- <div class="mobile-body-heading">--
>
Get to know yourself
<!-- Get to know yourself-->
</div
>
<!-- </div>--
>
<div
class=
"home-mobile-body-features"
>
<!-- <div class="home-mobile-body-features">--
>
<div
class=
"feature"
>
<!-- <div class="feature">--
>
<div
class=
"feature-heading"
>
Development Reports
</div
>
<!-- <div class="feature-heading">Development Reports</div>--
>
<div
class=
"feature-content"
>
Information about feature that gives user context as to why to upgrade.
</div
>
<!-- <div class="feature-content">Information about feature that gives user context as to why to upgrade.</div>--
>
<div
class=
"feature-action"
>
Get this feature
</div
>
<!-- <div class="feature-action">Get this feature</div>--
>
<div
class=
"extra-feature-image"
style=
"position: relative;"
>
<!-- <div class="extra-feature-image" style="position: relative;">--
>
<img
src=
"assets/my-career-web/svgs/summary-report.svg"
style=
"margin-top: 10px;"
>
<!-- <img src="assets/my-career-web/svgs/summary-report.svg" style="margin-top: 10px;">--
>
</div
>
<!-- </div>--
>
</div
>
<!-- </div>--
>
</div
>
<!-- </div>--
>
<div
class=
"mobile-body-heading"
>
<div
class=
"mobile-body-heading"
>
...
...
frontend/angular/src/app/components/my-career-web/dashboard/home/home.component.ts
View file @
7a407439
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
BaseComponent
}
from
'../../base/base.component'
;
import
{
BaseComponent
}
from
'../../base/base.component'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
PersonalDetailsService
}
from
'../../services/personal-details.service'
;
import
{
CareerProfileModel
}
from
'../../models/career-profile.model'
;
import
{
UtilsService
}
from
'../../../../oneit/services/utils.service'
;
import
{
HelperService
}
from
'../../services/helper.service'
;
@
Component
({
@
Component
({
selector
:
'app-home'
,
selector
:
'app-home'
,
...
@@ -9,12 +14,38 @@ import { BaseComponent } from '../../base/base.component';
...
@@ -9,12 +14,38 @@ import { BaseComponent } from '../../base/base.component';
export
class
HomeComponent
extends
BaseComponent
implements
OnInit
{
export
class
HomeComponent
extends
BaseComponent
implements
OnInit
{
selectedMobileTab
=
'dashboard'
;
selectedMobileTab
=
'dashboard'
;
careerProfile
=
new
CareerProfileModel
();
assocs
=
[
'Candidate.User'
,
'Candidate.OccupationPreference'
];
constructor
()
{
constructor
(
private
ps
:
PersonalDetailsService
,
private
hs
:
HelperService
,
private
us
:
UtilsService
,
)
{
super
();
super
();
}
}
ngOnInit
()
{
ngOnInit
()
{
this
.
getCareerProfile
();
this
.
ps
.
careerProfileUpdated$
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
profile
=>
{
this
.
careerProfile
=
this
.
us
.
cloneObject
(
profile
);
})
}
getCareerProfile
():
void
{
this
.
isLoading
=
true
;
this
.
ps
.
getCareerProfile
(
this
.
assocs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
careerProfile
=
response
;
this
.
ps
.
careerProfileUpdated
=
this
.
careerProfile
;
this
.
isLoading
=
false
;
},
err
=>
{
this
.
hs
.
handleHttpError
(
err
);
this
.
isLoading
=
false
;
})
}
}
}
}
frontend/angular/src/app/components/my-career-web/dashboard/profile-tasks/profile-tasks.component.html
View file @
7a407439
<div
class=
"right-sidebar"
>
<div
class=
"right-sidebar"
>
<app-overlay
[
isActive
]="
isLoading
"
></app-overlay>
<div
class=
"user-profile"
>
<div
class=
"user-profile"
>
<i
class=
"fa fa-bell"
*
ngIf=
"!isMobileView"
></i>
<i
class=
"fa fa-bell"
*
ngIf=
"!isMobileView"
></i>
<div
class=
"user-profile-avatar-wrapper"
[
ngStyle
]="{
backgroundImage:
avatarBorder
}"
>
<div
class=
"user-profile-avatar-wrapper"
[
ngStyle
]="{
backgroundImage:
avatarBorder
}"
>
...
...
frontend/angular/src/app/components/my-career-web/dashboard/profile-tasks/profile-tasks.component.ts
View file @
7a407439
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
BaseComponent
}
from
'../../base/base.component'
;
import
{
BaseComponent
}
from
'../../base/base.component'
;
import
{
PersonalDetailsService
}
from
'../../services/personal-details.service'
;
import
{
PersonalDetailsService
}
from
'../../services/personal-details.service'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
CareerProfileModel
}
from
'../../models/career-profile.model'
;
import
{
HelperService
}
from
'../../services/helper.service'
;
import
{
UtilsService
}
from
'../../../../oneit/services/utils.service'
;
import
{
UtilsService
}
from
'../../../../oneit/services/utils.service'
;
import
{
CareerProfileModel
}
from
'../../models/career-profile.model'
;
@
Component
({
@
Component
({
selector
:
'app-profile-tasks'
,
selector
:
'app-profile-tasks'
,
templateUrl
:
'./profile-tasks.component.html'
,
templateUrl
:
'./profile-tasks.component.html'
,
styleUrls
:
[
'./profile-tasks.component.scss'
]
styleUrls
:
[
'./profile-tasks.component.scss'
]
})
})
export
class
ProfileTasksComponent
extends
BaseComponent
implements
OnInit
{
export
class
ProfileTasksComponent
extends
BaseComponent
{
assocs
=
[
'Candidate.User'
,
'Candidate.OccupationPreference'
];
careerProfile
=
new
CareerProfileModel
();
careerProfile
=
new
CareerProfileModel
();
avatarBorder
=
'linear-gradient(90deg, transparent 50%, #EAECEE 50%), linear-gradient(90deg, #EAECEE 50%, transparent 50%)'
;
avatarBorder
=
'linear-gradient(90deg, transparent 50%, #EAECEE 50%), linear-gradient(90deg, #EAECEE 50%, transparent 50%)'
;
constructor
(
constructor
(
private
hs
:
HelperService
,
private
ps
:
PersonalDetailsService
,
private
us
:
UtilsService
,
private
us
:
UtilsService
private
ps
:
PersonalDetailsService
)
{
)
{
super
();
super
();
}
}
ngOnInit
()
{
ngOnInit
()
{
this
.
getCareerProfile
();
this
.
ps
.
careerProfileUpdated$
this
.
ps
.
careerProfileUpdated$
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
profile
=>
{
.
subscribe
(
profile
=>
{
...
@@ -35,20 +31,6 @@ export class ProfileTasksComponent extends BaseComponent implements OnInit {
...
@@ -35,20 +31,6 @@ export class ProfileTasksComponent extends BaseComponent implements OnInit {
})
})
}
}
getCareerProfile
():
void
{
this
.
isLoading
=
true
;
this
.
ps
.
getCareerProfile
(
this
.
assocs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
careerProfile
=
response
;
this
.
setProfileCompletion
();
this
.
isLoading
=
false
;
},
err
=>
{
this
.
hs
.
handleHttpError
(
err
);
this
.
isLoading
=
false
;
})
}
setProfileCompletion
():
void
{
setProfileCompletion
():
void
{
const
percentage
=
(
this
.
careerProfile
.
CompletedPercentage
||
0
)
*
3.6
;
const
percentage
=
(
this
.
careerProfile
.
CompletedPercentage
||
0
)
*
3.6
;
const
degree
=
percentage
<=
180
?
90
+
percentage
:
percentage
-
90
;
const
degree
=
percentage
<=
180
?
90
+
percentage
:
percentage
-
90
;
...
...
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