mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 12:27:17 +00:00
Add type definition for Resume feature
This commit is contained in:
@@ -10,9 +10,6 @@ const config = {
|
|||||||
projects: [], // These projects will not be displayed. example: ['my-project1', 'my-project2']
|
projects: [], // These projects will not be displayed. example: ['my-project1', 'my-project2']
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
resume: {
|
|
||||||
fileUrl: 'resume.pdf', // Empty fileUrl will hide the `Download Resume` button.
|
|
||||||
},
|
|
||||||
social: {
|
social: {
|
||||||
linkedin: 'ariful-alam',
|
linkedin: 'ariful-alam',
|
||||||
twitter: 'arif_szn',
|
twitter: 'arif_szn',
|
||||||
@@ -26,6 +23,9 @@ const config = {
|
|||||||
phone: '',
|
phone: '',
|
||||||
email: 'arifulalamszn@gmail.com',
|
email: 'arifulalamszn@gmail.com',
|
||||||
},
|
},
|
||||||
|
resume: {
|
||||||
|
fileUrl: 'resume.pdf', // Empty fileUrl will hide the `Download Resume` button.
|
||||||
|
},
|
||||||
skills: [
|
skills: [
|
||||||
'PHP',
|
'PHP',
|
||||||
'Laravel',
|
'Laravel',
|
||||||
|
|||||||
@@ -144,9 +144,6 @@ export const sanitizeConfig = (config) => {
|
|||||||
projects: config?.github?.exclude?.projects || [],
|
projects: config?.github?.exclude?.projects || [],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
resume: {
|
|
||||||
fileUrl: config?.resume?.fileUrl || '',
|
|
||||||
},
|
|
||||||
social: {
|
social: {
|
||||||
linkedin: config?.social?.linkedin,
|
linkedin: config?.social?.linkedin,
|
||||||
twitter: config?.social?.twitter,
|
twitter: config?.social?.twitter,
|
||||||
@@ -160,6 +157,9 @@ export const sanitizeConfig = (config) => {
|
|||||||
phone: config?.social?.phone,
|
phone: config?.social?.phone,
|
||||||
email: config?.social?.email,
|
email: config?.social?.email,
|
||||||
},
|
},
|
||||||
|
resume: {
|
||||||
|
fileUrl: config?.resume?.fileUrl || '',
|
||||||
|
},
|
||||||
skills: config?.skills || [],
|
skills: config?.skills || [],
|
||||||
experiences: config?.experiences || [],
|
experiences: config?.experiences || [],
|
||||||
education: config?.education || [],
|
education: config?.education || [],
|
||||||
|
|||||||
9
types/index.d.ts
vendored
9
types/index.d.ts
vendored
@@ -216,6 +216,10 @@ export interface Education {
|
|||||||
to?: string;
|
to?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Resume {
|
||||||
|
fileUrl?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface Config {
|
export interface Config {
|
||||||
/**
|
/**
|
||||||
* GitHub Config
|
* GitHub Config
|
||||||
@@ -227,6 +231,11 @@ export interface Config {
|
|||||||
*/
|
*/
|
||||||
social?: Social;
|
social?: Social;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resume
|
||||||
|
*/
|
||||||
|
resume?: Resume;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Skill list
|
* Skill list
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user