-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
83 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,23 @@ | ||
export interface IEducationalInstitutionType { | ||
id: number; | ||
label: string; | ||
} | ||
import { ILabelled } from '../../interfaces/Labelled'; | ||
|
||
export type EducationalInstitutionType = ILabelled; | ||
|
||
export interface IEducationalInstitution { | ||
id: number; | ||
name: string; | ||
institutionType: IEducationalInstitutionType; | ||
type: ILabelled; | ||
} | ||
|
||
export class EducationalInstitution { | ||
id!: number; | ||
|
||
name!: string; | ||
|
||
type!: IEducationalInstitutionType; | ||
type!: EducationalInstitutionType; | ||
|
||
constructor(opts: IEducationalInstitution) { | ||
Object.assign(this, opts); | ||
} | ||
|
||
static Sort(a: EducationalInstitution, b: EducationalInstitution) { | ||
if (a.name !== b.name) return a.name.localeCompare(b.name); | ||
return a.type.label.localeCompare(b.type.label); | ||
} | ||
|
||
constructor(opts: IEducationalInstitution) { | ||
this.id = opts.id; | ||
this.name = opts.name; | ||
this.type = opts.institutionType; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
import { IDegreeOpts } from '../interfaces/education/Degree'; | ||
|
||
export const degreeMappings: IDegreeOpts[] = []; | ||
export const degreeMappings: IDegreeOpts[] = [ | ||
{ | ||
started_on: '2018-08-15T00:00:00+00:00', | ||
awarded_on: '2022-05-20T00:00:00+00:00', | ||
institution: { | ||
name: 'Kent State University', | ||
type: { | ||
label: 'University', | ||
}, | ||
}, | ||
type: { | ||
label: 'Bachelor', | ||
}, | ||
major: { | ||
label: 'Computer Science', | ||
}, | ||
field: { | ||
label: 'Science', | ||
suffix: 'S', | ||
}, | ||
honor: { | ||
label: 'Magna Cum Laude', | ||
}, | ||
gpa: 3.86, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface ILabelled { | ||
label: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,21 @@ | ||
import { EducationalInstitution } from 'src/app/classes/education/EducationalInstitution'; | ||
import { Major } from 'src/app/classes/education/Major'; | ||
import { IEducationalInstitution } from 'src/app/classes/education/EducationalInstitution'; | ||
import { IMajorOpts } from './Major'; | ||
import { ILabelled } from '../Labelled'; | ||
import { IEducationalField } from './EducationalField'; | ||
import { DegreeHonor, DegreeType } from 'src/app/classes/education/Degree'; | ||
import { EducationalLevel } from 'src/app/classes/education/EducationalLevel'; | ||
|
||
export interface IDegreeTypeOpts { | ||
id: number; | ||
prefix: string; | ||
usesSuffixInline: boolean; | ||
level: EducationalLevel; | ||
label: string; | ||
} | ||
|
||
export interface IDegreeHonorOpts { | ||
id: number; | ||
label: string; | ||
} | ||
export type IDegreeTypeOpts = ILabelled; | ||
|
||
export interface IDegreeTypeQryOpts { | ||
id: number; | ||
prefix: string; | ||
usesSuffixInline: boolean; | ||
education_level_fk: number; | ||
label: string; | ||
} | ||
export type IDegreeHonorOpts = ILabelled; | ||
|
||
export interface IDegreeQryOpts { | ||
id: number; | ||
gpa?: number; | ||
startedOn: string; | ||
awardedOn?: string; | ||
institution_fk: number; | ||
major_fk: number; | ||
degree_field_fk: number; | ||
degree_type_fk: number; | ||
honor_fk?: number; | ||
} | ||
export type IDegreeFieldOpts = ILabelled; | ||
|
||
export interface IDegreeOpts { | ||
id: number; | ||
gpa?: number; | ||
startedOn: string; | ||
awardedOn?: string; | ||
institution: EducationalInstitution; | ||
major: Major; | ||
started_on: string; | ||
awarded_on?: string; | ||
institution: IEducationalInstitution; | ||
major: IMajorOpts; | ||
type: IDegreeTypeOpts; | ||
field: IEducationalField; | ||
type: DegreeType; | ||
honor?: DegreeHonor; | ||
honor?: IDegreeHonorOpts; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export interface IEducationalField { | ||
id: number; | ||
label: string; | ||
suffix: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
export interface IMajorOpts { | ||
id: number; | ||
label: string; | ||
abbreviation: string; | ||
} |
2 changes: 1 addition & 1 deletion
2
src/app/modules/shared/components/attribution/attribution.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 10 additions & 9 deletions
19
src/app/modules/splash/education/degree-card/degree-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
<div class="degree-detail flex flex-row"> | ||
<!-- <span class="primary-text">{{degree.type.prefix}}{{degree.type.usesSuffixInline ? degree.field.suffix : ''}}, {{degree.major.label}}</span> --> | ||
<span class="secondary-text">Degree: </span> | ||
<span class="primary-text">{{degree.type.label}} of {{degree.field.label}}, {{degree.major.label}}</span> | ||
<span class="primary-text">{{ degree.type.label }} of {{ degree.field.label }}, {{ degree.major.label }}</span> | ||
</div> | ||
<div class="institution-detail flex flex-row"> | ||
<span class="secondary-text institution-type">{{degree.institution.type.label}}: </span> | ||
<span class="primary-text institution-name">{{degree.institution.name}}</span> | ||
<span class="secondary-text institution-type">{{ degree.institution.type.label }}: </span> | ||
<span class="primary-text institution-name">{{ degree.institution.name }}</span> | ||
<!-- <ng-container> | ||
<span class="degree-status secondary-text"> (<span *ngIf="degree.awardedOn; else currentlyEnrolled" class="secondary-text">Class of {{degree.awardedOn | date : "y"}}</span><ng-template #currentlyEnrolled><span class="degree-currently-enrolled secondary-text">Currently enrolled</span></ng-template>)</span> | ||
</ng-container> --> | ||
</div> | ||
<div class="graduation-status flex flex-row"> | ||
<span class="secondary-text">Graduation status: </span> | ||
<span *ngIf="degree.awardedOn; else currentlyEnrolled" class="primary-text class-of-year">Class of {{degree.awardedOn | date : "y"}}</span> | ||
<span *ngIf="degree.awardedOn; else currentlyEnrolled" | ||
class="primary-text class-of-year">Class of {{ degree.awardedOn | date : "y" }}</span> | ||
<ng-template #currentlyEnrolled> | ||
<span class="primary-text currently-enrolled">Currently enrolled</span> | ||
</ng-template> | ||
</div> | ||
<!-- <span class="degree-timeline">{{ degree.startedOn| date : "MMM y" }} - | ||
{{ (degree.awardedOn| date : "MMM y") || "Present" }}</span> --> | ||
<div class="degree-timeline"> | ||
<span *ngIf="degree.awardedOn" class="degree-c-o"></span> | ||
</div> | ||
<div class="degree-timeline"> | ||
<span *ngIf="degree.awardedOn" class="degree-c-o"></span> | ||
</div> | ||
<div *ngIf="degree.gpa" class="degree-gpa flex flex-row"> | ||
<span class="secondary-text degree-gpa-label">GPA: </span> | ||
<span class="primary-text degree-gpa-value">{{degree.gpa}}</span> | ||
<span *ngIf="degree.honor" class="primary-text degree-honor"> ({{degree.honor.label}})</span> | ||
<span class="primary-text degree-gpa-value">{{ degree.gpa }}</span> | ||
<span *ngIf="degree.honor" class="primary-text degree-honor"> ({{ degree.honor.label }})</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters