From 895461b65bd80c8fda8769695b8865597c0d7343 Mon Sep 17 00:00:00 2001 From: Adi Gunawan Date: Thu, 15 Aug 2024 13:10:22 +0800 Subject: [PATCH] feat(cv): #199 update cv work experience --- public/_data/en-US/config.json | 15 +++++++-------- public/_data/id-ID/config.json | 15 +++++++-------- src/api.ts | 2 +- src/cvUtils.ts | 6 +++--- src/data/langs/en-US/config.yaml | 27 ++++++++++++++++++--------- src/data/langs/id-ID/config.yaml | 26 +++++++++++++++++--------- src/hooks/useCreatorCv.ts | 2 +- 7 files changed, 54 insertions(+), 39 deletions(-) diff --git a/public/_data/en-US/config.json b/public/_data/en-US/config.json index 3f9665a7..fe4a1656 100644 --- a/public/_data/en-US/config.json +++ b/public/_data/en-US/config.json @@ -42,14 +42,6 @@ "about": { "intro": "Hello, I'm Adi Gunawan from Bali, Indonesia! I started my programming career right out of school and studied online. Beautiful Bali has inspired me in developing my programming skills.\n", "jobExperiences": [ - { - "company": "Bungamata", - "location": "Dalung, Bali", - "position": "Junior Software Engginer", - "startAt": "2017-07-01T05:31:32.099Z", - "endAt": "2018-01-08T05:31:32.099Z", - "description": "Create a wordpress template, develop\nMarketplace Platform Buying and Selling Images, Making Applications\nfor hotel visitors feedback in the form of rating\n" - }, { "company": "Sindata", "location": "DKI Jakarta", @@ -65,6 +57,13 @@ "startAt": "2022-08-29T05:31:32.099Z", "endAt": "2023-08-29T05:31:32.099Z", "description": "Migration from monolithic to microservices\nusing golang, manage hotel management system. Develop smarthome system \ndeploy to google home\n" + }, + { + "company": "Starworks", + "location": "Bali, Indonesia", + "position": "NodeJS Backend Developer", + "startAt": "2023-11-01T05:31:32.099Z", + "description": "Develop backend for reward system with nestjs\nCreate booking system for hotel with reward system\nMaintenance and develop HRM system\n" } ], "educations": [ diff --git a/public/_data/id-ID/config.json b/public/_data/id-ID/config.json index b17e225a..c99772ac 100644 --- a/public/_data/id-ID/config.json +++ b/public/_data/id-ID/config.json @@ -42,14 +42,6 @@ "about": { "intro": "Halo, saya Adi Gunawan dari Bali, Indonesia! Saya memulai karier \npemrograman setelah lulus sekolah dan belajar secara online. \nBali yang indah memberi inspirasi dalam pengembangan skill pemrograman saya.\n", "jobExperiences": [ - { - "company": "Bungamata", - "location": "Dalung, Bali", - "position": "Junior Software Engginer", - "startAt": "2017-07-01T05:31:32.099Z", - "endAt": "2018-01-08T05:31:32.099Z", - "description": "Membuat template wordpress, mengembangkan \nplatform marketplace jual beli gambar, membuat aplikasi \nuntuk feedback pengunjung hotel berupa rating\n" - }, { "company": "Sindata", "location": "DKI Jakarta", @@ -65,6 +57,13 @@ "startAt": "2022-08-29T05:31:32.099Z", "endAt": "2023-08-29T05:31:32.099Z", "description": "Bermigrasi dari monolitik ke layanan mikro menggunakan golang,\npengembangan sistem manajemen hotel.\nSistem rumah pintar dan diterapkan ke google home\n" + }, + { + "company": "Starworks", + "location": "Bali, Indonesia", + "position": "NodeJS Backend Developer", + "startAt": "2023-11-01T05:31:32.099Z", + "description": "Mengembangkan backend untuk sistem reward hadiah dengan nestjs\nMembuat sistem pemesanan hotel dengan sistem reward hadiah\nPemeliharaan dan pengembangan sistem manajemen SDM\n" } ], "educations": [ diff --git a/src/api.ts b/src/api.ts index 860d249e..c27b7819 100644 --- a/src/api.ts +++ b/src/api.ts @@ -91,7 +91,7 @@ export interface JobExperience { location: string position: string startAt: Date - endAt: Date + endAt?: Date description: string } diff --git a/src/cvUtils.ts b/src/cvUtils.ts index bb2f8d2f..2ba5b17a 100644 --- a/src/cvUtils.ts +++ b/src/cvUtils.ts @@ -16,7 +16,7 @@ interface CvJobExperience { location: string position: string startAt: Date - endAt: Date + endAt?: Date description: string } @@ -60,7 +60,7 @@ export interface ListItem { title: string subtitle?: string startAt: Date - endAt: Date + endAt?: Date description: string } @@ -484,7 +484,7 @@ function drawItem({ day: 'numeric' }) const startDate = dateFormatter.format(data.startAt) - const endDate = dateFormatter.format(data.endAt) + const endDate = data.endAt ? dateFormatter.format(data.endAt) : 'Present' page.drawText(`${startDate} - ${endDate}`, { x: position.x, y: workTimeYPosition, diff --git a/src/data/langs/en-US/config.yaml b/src/data/langs/en-US/config.yaml index c4faab84..99fa63dd 100644 --- a/src/data/langs/en-US/config.yaml +++ b/src/data/langs/en-US/config.yaml @@ -50,15 +50,15 @@ about: intro: | Hello, I'm Adi Gunawan from Bali, Indonesia! I started my programming career right out of school and studied online. Beautiful Bali has inspired me in developing my programming skills. jobExperiences: - - company: Bungamata - location: Dalung, Bali - position: Junior Software Engginer - startAt: '2017-07-01T05:31:32.099Z' - endAt: '2018-01-08T05:31:32.099Z' - description: | - Create a wordpress template, develop - Marketplace Platform Buying and Selling Images, Making Applications - for hotel visitors feedback in the form of rating + # - company: Bungamata + # location: Dalung, Bali + # position: Junior Software Engginer + # startAt: '2017-07-01T05:31:32.099Z' + # endAt: '2018-01-08T05:31:32.099Z' + # description: | + # Create a wordpress template, develop + # Marketplace Platform Buying and Selling Images, Making Applications + # for hotel visitors feedback in the form of rating - company: Sindata location: DKI Jakarta position: Remote Front End Develope @@ -77,6 +77,15 @@ about: Migration from monolithic to microservices using golang, manage hotel management system. Develop smarthome system deploy to google home + - company: Starworks + location: 'Bali, Indonesia' + position: NodeJS Backend Developer + startAt: '2023-11-01T05:31:32.099Z' + description: | + Develop backend for reward system with nestjs + Create booking system for hotel with reward system + Maintenance and develop HRM system + educations: - type: school name: SMA Negeri 1 Pekutatan diff --git a/src/data/langs/id-ID/config.yaml b/src/data/langs/id-ID/config.yaml index c1da0b53..4227800c 100644 --- a/src/data/langs/id-ID/config.yaml +++ b/src/data/langs/id-ID/config.yaml @@ -53,15 +53,15 @@ about: pemrograman setelah lulus sekolah dan belajar secara online. Bali yang indah memberi inspirasi dalam pengembangan skill pemrograman saya. jobExperiences: - - company: Bungamata - location: Dalung, Bali - position: Junior Software Engginer - startAt: '2017-07-01T05:31:32.099Z' - endAt: '2018-01-08T05:31:32.099Z' - description: | - Membuat template wordpress, mengembangkan - platform marketplace jual beli gambar, membuat aplikasi - untuk feedback pengunjung hotel berupa rating + # - company: Bungamata + # location: Dalung, Bali + # position: Junior Software Engginer + # startAt: '2017-07-01T05:31:32.099Z' + # endAt: '2018-01-08T05:31:32.099Z' + # description: | + # Membuat template wordpress, mengembangkan + # platform marketplace jual beli gambar, membuat aplikasi + # untuk feedback pengunjung hotel berupa rating - company: Sindata location: DKI Jakarta position: Remote Front End Develope @@ -80,6 +80,14 @@ about: Bermigrasi dari monolitik ke layanan mikro menggunakan golang, pengembangan sistem manajemen hotel. Sistem rumah pintar dan diterapkan ke google home + - company: Starworks + location: 'Bali, Indonesia' + position: NodeJS Backend Developer + startAt: '2023-11-01T05:31:32.099Z' + description: | + Mengembangkan backend untuk sistem reward hadiah dengan nestjs + Membuat sistem pemesanan hotel dengan sistem reward hadiah + Pemeliharaan dan pengembangan sistem manajemen SDM educations: - type: school diff --git a/src/hooks/useCreatorCv.ts b/src/hooks/useCreatorCv.ts index 91262f2c..ef65c044 100644 --- a/src/hooks/useCreatorCv.ts +++ b/src/hooks/useCreatorCv.ts @@ -70,7 +70,7 @@ export default function useCreatorCv(): CreateCV { jobExperience: config.data.about.jobExperiences.map(jobExperience => ({ ...jobExperience, startAt: new Date(jobExperience.startAt), - endAt: new Date(jobExperience.endAt) + endAt: jobExperience.endAt ? new Date(jobExperience.endAt) : undefined })), projects: project.data.map(item => ({ ...item,