Skip to content

Commit

Permalink
Merge pull request #45 from visiky/add-more-config
Browse files Browse the repository at this point in the history
feat: add `workPlace` and `positionTitle` config
visiky authored Jan 21, 2022
2 parents 8829c56 + 7686d46 commit e9fec40
Showing 7 changed files with 21 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/Resume/Template1/index.tsx
Original file line number Diff line number Diff line change
@@ -144,11 +144,11 @@ export const Template1: React.FC<Props> = props => {
</span>
</div>
)}
{profile?.expectJob && (
{profile?.positionTitle && (
<div className="expect-job">
<HeartFilled style={{ color: theme.color, opacity: 0.85 }} />
<span>
{i18n.get('求职意向')}: {profile.expectJob}
{i18n.get('职位')}: {profile.positionTitle}
</span>
</div>
)}
4 changes: 2 additions & 2 deletions src/components/Resume/Template2/index.tsx
Original file line number Diff line number Diff line change
@@ -140,11 +140,11 @@ export const Template2: React.FC<Props> = props => {
</span>
</div>
)}
{profile?.expectJob && (
{profile?.positionTitle && (
<div className="expect-job">
<HeartFilled style={{ color: theme.color, opacity: 0.85 }} />
<span>
{i18n.get('求职意向')}: {profile.expectJob}
{i18n.get('职位')}: {profile.positionTitle}
</span>
</div>
)}
4 changes: 2 additions & 2 deletions src/components/Resume/Template3/index.tsx
Original file line number Diff line number Diff line change
@@ -152,11 +152,11 @@ export const Template3: React.FC<Props> = props => {
</span>
</div>
)}
{profile?.expectJob && (
{profile?.positionTitle && (
<div className="expect-job">
<HeartFilled style={{ color: theme.color, opacity: 0.85 }} />
<span>
{i18n.get('求职意向')}: {profile.expectJob}
{i18n.get('职位')}: {profile.positionTitle}
</span>
</div>
)}
4 changes: 2 additions & 2 deletions src/components/types.ts
Original file line number Diff line number Diff line change
@@ -17,8 +17,8 @@ export type ResumeConfig = {
workExpYear?: string;
/** 工作地 */
workPlace?: string;
/** 求职意向 */
expectJob?: string;
/** 职位 */
positionTitle?: string;
};

/** 标题名称映射 */
2 changes: 1 addition & 1 deletion src/datas/resume.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ export const RESUME_INFO: ResumeConfig = {
zhihu: 'https://zhihu.com/people/visiky',
workExpYear: '',
workPlace: '浙江杭州',
expectJob: '前端工程师',
positionTitle: '前端工程师',
},
educationList: [
{
10 changes: 10 additions & 0 deletions src/helpers/contant.tsx
Original file line number Diff line number Diff line change
@@ -113,6 +113,16 @@ export const CONTENT_OF_MODULE = ({ i18n }) => {
attributeId: 'workExpYear',
displayName: i18n.get('工作经验'),
},
{
type: 'input',
attributeId: 'workPlace',
displayName: i18n.get('工作地'),
},
{
type: 'input',
attributeId: 'positionTitle',
displayName: i18n.get('职位'),
},
],
educationList: [
{
2 changes: 2 additions & 0 deletions src/locale/locales/en_US.ts
Original file line number Diff line number Diff line change
@@ -40,6 +40,8 @@ export const EN_US_LOCALE: Locale = {
手机号码: 'Mobile',
邮箱: 'Email',
知乎: 'Zhihu',
职位: 'Position title',
工作地: 'work space',
起始时间: 'Start time',
学校: 'School',
专业: 'Major in',

0 comments on commit e9fec40

Please sign in to comment.