src/app/services/mock-data/mock-data.service.ts
Mock data connection service. ~extends DataService
Supplies test data.
Properties |
|
Methods |
|
constructor(imageDataService: ImageDataService, httpClient: HttpClient)
|
||||||||||||
Constructs the data service. ~constructor
Parameters :
|
Public getAmendedAccomplishments | ||||||
getAmendedAccomplishments(cv: ICv)
|
||||||
Amends accomplishments for testing.
Parameters :
Returns :
Course[]
The amended accomplishments. |
Public getCv |
getCv()
|
Retrieves a CV.
Returns :
Observable<Indexable>
The CV. |
Public getEntities |
getEntities()
|
Retrieves an entities array.
Returns :
Observable<Indexable<any>>
The entities array. |
Public getGanttChart |
getGanttChart()
|
Retrieves a gantt chart.
Returns :
Observable<Indexable>
The gantt chart. |
Public getGeneralTimeline |
getGeneralTimeline()
|
Retrieves a general timeline.
Returns :
Observable<Indexable>
The general timeline. |
Public getOntology |
getOntology()
|
Retrieves an entities array.
Returns :
Observable<any>
The entities array. |
Public getProjects |
getProjects()
|
Retrieves a projects array.
Returns :
Observable<Indexable>
The projects array. |
Public getUi |
getUi()
|
Retrieves a UI.
Returns :
Observable<Indexable<UiEntry>>
The UI. |
Public getVersion |
getVersion()
|
Retrieves a Version.
Returns :
Observable<literal type>
The Version. |
Public getAccomplishments |
getAccomplishments()
|
Retrieves accomplishments.
Returns :
Observable<any>
The accomplishments. |
Public getEducation |
getEducation()
|
Retrieves education.
Returns :
Observable<any>
The education. |
Public getProfessionalExperience |
getProfessionalExperience()
|
Retrieves professional experience.
Returns :
Observable<any>
The professional experience. |
Public getPublications |
getPublications()
|
Retrieves publications.
Returns :
Observable<any>
The publications. |
Public getResourceUri | ||||||||||||
getResourceUri(resourceName: string, themeName: string)
|
||||||||||||
Retrieves a theme-dependent resource URI.
Parameters :
Returns :
string
The theme-dependent resource URI. |
Public urlResolve | ||||||||||||
urlResolve(base: string, url: string)
|
||||||||||||
Resolves an url to a base.
Parameters :
Returns :
string
The resolved url. |
Public imageDataService |
Type : ImageDataService
|
The data service injected dependency.
|
Public Readonly mockData |
Type : object
|
Default value : {
// tslint:disable-next-line: max-line-length
frequencies: [['Developer', { Count: 16, Percentage: 48, Lightness: 0, Label: 'Developer' }], ['Programmer', { Count: 5, Percentage: 15, Lightness: 37, Label: 'Programmer' }]], languages: [{ Language: 'English', Level: 'Full professional proficiency', Score: 4, Share: 30, Label: 'English' }], projects: [{ Id: 1, From: 43243, To: 61543, 'From Year': 2018, 'From Month': 5, 'Imported Name': 'Pluralsight Skill IQ in partnership with Stack Overflow', 'Months total': 601, 'Duration total': '601', Name: 'Pluralsight Skill IQ in partnership with Stack Overflow', Start: 2018.4166666666667, 'Years total': 50.083333333333336, Type: 'Certification', Color: '#7F00FFC0' }, { Id: 1, From: 43221, To: 43252, 'From Year': 2018, 'From Month': 5, 'Imported Name': 'Life Store (freelance)', 'Months total': 1, 'Duration total': '1 month', Name: 'Life Store (freelance)', Start: 2018.4166666666667, 'Years total': 0.08333333333333333, Type: 'Project', Color: '#004000C0' }], filteredProjects: [{ Id: 1, From: 43221, To: 43252, 'From Year': 2018, 'From Month': 5, 'Imported Name': 'Life Store (freelance)', 'Months total': 1, 'Duration total': '1 month', Name: 'Life Store (freelance)', Start: 2018.4166666666667, 'Years total': 0.08333333333333333, Type: 'Project', Color: '#004000C0' }]
}
|
Mock data. |