From 6a3dc83b6caf44a6cde34aabf07e9abc51db6e05 Mon Sep 17 00:00:00 2001 From: nakyong82 Date: Wed, 6 Nov 2024 00:50:43 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20=EB=B6=88?= =?UTF-8?q?=ED=95=84=EC=9A=94=ED=95=9C=20=EB=8D=94=EB=AF=B8=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=EC=A0=9C=EA=B1=B0=ED=95=98=EA=B8=B0=20#10?= =?UTF-8?q?3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/alarm.ts | 27 ------------ src/constants/application.ts | 77 +--------------------------------- src/constants/post.ts | 58 +++----------------------- src/constants/postDetail.ts | 80 ------------------------------------ 4 files changed, 6 insertions(+), 236 deletions(-) delete mode 100644 src/constants/alarm.ts diff --git a/src/constants/alarm.ts b/src/constants/alarm.ts deleted file mode 100644 index 89aa557e..00000000 --- a/src/constants/alarm.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { AlarmItemType } from '@/types/api/alarm'; - -// 더미데이터 -export const ALARM_LIST_DATA: AlarmItemType[] = [ - { - id: 1, - title: 'Welcome to the platform!', - description: "Thank you for joining. We're glad to have you on board!", - is_read: false, - created_at: '2024.10.29', - }, - { - id: 2, - title: 'System Maintenance', - description: - 'Scheduled maintenance will occur on 2024.11.05 from 2:00 AM to 4:00 AM.', - is_read: false, - created_at: '2024.10.20', - }, - { - id: 3, - title: 'New Features Released', - description: 'Check out the latest features in your profile settings.', - is_read: true, - created_at: '2024.10.27', - }, -]; diff --git a/src/constants/application.ts b/src/constants/application.ts index fecf8e2a..19687133 100644 --- a/src/constants/application.ts +++ b/src/constants/application.ts @@ -1,8 +1,4 @@ -import { - ApplicantDetailItemType, - ApplicantItemType, - ApplicationStepExplainType, -} from '@/types/application/applicationItem'; +import { ApplicationStepExplainType } from '@/types/application/applicationItem'; export const enum APPLICATION_STEP { RESUME_UNDER_REVIEW = 'RESUME_UNDER_REVIEW', @@ -44,77 +40,6 @@ export const EN_APPLICATION_STATUS_TYPE = { //['대기']: 'pending', } as const; -// 지원자 리스트 더미데이터 -export const APPLICANT_LIST_DATA: ApplicantItemType[] = [ - { - id: 1001, - profile_img_url: 'https://example.com/images/applicant1.jpg', - name: 'John Doe', - nationality: 'USA', - gender: 'Male', - visa: 'D_2_1', - school_name: 'Seoul National University', - duration_of_days: 30, - step: 'RESUME_UNDER_REVIEW', - }, - { - id: 1002, - profile_img_url: 'https://example.com/images/applicant2.jpg', - name: 'Jane Smith', - nationality: 'Canada', - gender: 'Female', - visa: 'D_2_3', - school_name: 'Korea University', - duration_of_days: 60, - step: 'WAITING_FOR_INTERVIEW', - }, - { - id: 1003, - profile_img_url: 'https://example.com/images/applicant3.jpg', - name: 'Samuel Green', - nationality: 'UK', - gender: 'Male', - visa: 'F_2', - school_name: 'Yonsei University', - duration_of_days: 90, - step: 'APPLICATION_SUCCESS', - }, - { - id: 1004, - profile_img_url: 'https://example.com/images/applicant4.jpg', - name: 'Emily White', - nationality: 'Australia', - gender: 'Female', - visa: 'D_4_1', - school_name: 'Sogang University', - duration_of_days: 120, - step: 'APPLICATION_IN_PROGRESS', - }, - { - id: 1005, - profile_img_url: 'https://example.com/images/applicant5.jpg', - name: 'Michael Brown', - nationality: 'Germany', - gender: 'Male', - visa: 'D_2_2', - school_name: 'Hanyang University', - duration_of_days: 45, - step: 'PENDING', - }, -]; - -// 지원 상태 상세 조회 더미데이터 -export const APPLICANT_DETAIL_DATA: ApplicantDetailItemType = { - profile_img_url: 'https://example.com/images/applicant1.jpg', - name: 'John Doe', - nationality: 'USA', - gender: 'Male', - visa: 'D_2_1', - school_name: 'Seoul National University', - duration_of_days: 30, - step: 'RESUME_UNDER_REVIEW', -}; - // 지원 상태 단계별 문구 export const APPLICATION_STEP_EXPLAIN_DATA: ApplicationStepExplainType[] = [ { diff --git a/src/constants/post.ts b/src/constants/post.ts index 4a63ce82..4cc8e3f7 100644 --- a/src/constants/post.ts +++ b/src/constants/post.ts @@ -1,6 +1,4 @@ import { Gender } from '@/types/api/users'; -import { EmployerPostItemType } from '@/types/post/employerPostItem'; -import { PostSummaryItemType } from '@/types/post/postSummaryItem'; import { EducationLevel, JobCategory, @@ -8,52 +6,6 @@ import { } from '@/types/postCreate/postCreate'; import { EducationCategoryNames, JobCategoryNames } from '@/utils/post'; -// 더미데이터 -export const EMPLOYER_POST_LIST: EmployerPostItemType[] = [ - { - id: 1, - icon_img_url: 'https://example.com/image1.png', - title: 'Barista', - address_name: '123 Main St, City', - hourly_rate: 15, - duration_of_days: 30, - }, - { - id: 2, - icon_img_url: 'https://example.com/image2.png', - title: 'Delivery Driver', - address_name: '456 Side St, City', - hourly_rate: 18, - duration_of_days: 15, - }, - { - id: 3, - icon_img_url: 'https://example.com/image3.png', - title: 'Tutor', - address_name: '789 Park Ave, City', - hourly_rate: 25, - duration_of_days: 45, - }, -]; - -// 4.7 더미데이터 -export const POST_SUMMARY_ITEM: PostSummaryItemType = { - icon_img_url: 'https://example.com/icon.png', - company_name: 'Global Translations Ltd.', - title: 'General Interpretation & Translation', - tags: { - is_recruiting: true, - visa: 'D_2_1', - job_category: 'GENERAL_INTERPRETATION_TRANSLATION', - }, - summaries: { - address: '123 Translation Ave, Seoul', - hourly_rate: 15000, - work_period: 'ONE_MONTH_TO_THREE_MONTHS', - work_days_per_week: 5, - }, -}; - export const JobCategoryInfo = { [JobCategory.GENERAL_INTERPRETATION_TRANSLATION]: { name: '일반통역/번역', @@ -148,14 +100,14 @@ export const GenderList = ['남', '여', '무관']; export const genderInfo = { [Gender.MALE]: { name: '남', - key: 'MALE' + key: 'MALE', }, [Gender.FEMALE]: { name: '여', - key: 'FEMALE' + key: 'FEMALE', }, [Gender.NONE]: { name: '무관', - key: 'NONE' - } - } as const; \ No newline at end of file + key: 'NONE', + }, +} as const; diff --git a/src/constants/postDetail.ts b/src/constants/postDetail.ts index 2455331c..2b4240d3 100644 --- a/src/constants/postDetail.ts +++ b/src/constants/postDetail.ts @@ -1,85 +1,5 @@ -import { PostDetailItemType } from '@/types/postDetail/postDetailItem'; - export const enum PostDetailContentMenu { RECUITMENT = 'RECUITMENT', WORPLACE = 'WORPLACE', COMPANY = 'COMPANY', } - -// 더미데이터 -export const POST_DETAIL_DATA: PostDetailItemType = { - id: 1, - is_my_post: true, - is_book_marked: false, - company_name: 'Tech Solutions Inc.', - title: 'Part-time English Tutor', - icon_img_url: 'https://example.com/icon.png', - company_img_url_list: [ - { - id: 1, - img_url: 'https://example.com/company1.png', - }, - { - id: 2, - img_url: 'https://example.com/company2.png', - }, - { - id: 3, - img_url: 'https://example.com/company3.png', - }, - ], - tags: { - is_recruiting: true, - visa: 'D_2_7', - job_category: 'ENGLISH_KIDS_CAFE', - }, - summaries: { - address: '123 Main St, Seoul', - hourly_rate: 15000, - work_period: 'ONE_MONTH_TO_THREE_MONTHS', - work_days_per_week: 5, - }, - recruitment_conditions: { - recruitment_dead_line: '2024-12-31', - education: 'BACHELOR', - number_of_recruits: 3, - visa: 'D_2_7', - gender: 'NONE', - preferred_conditions: 'Previous tutoring experience preferred', - }, - detailed_overview: - 'We are looking for a part-time English tutor for a kids cafe. The role requires providing fun and interactive English lessons for young children. We are looking for a part-time English tutor for a kids cafe. The role requires providing fun and interactive English lessons for young children. We are looking for a part-time English tutor for a kids cafe. The role requires providing fun and interactive English lessons for young children.', - workplace_information: { - main_address: '123 Main St, Seoul', - detailed_address: '5th Floor, Room 501', - distance: 1.5, - latitude: 37.5665, - longitude: 126.978, - }, - working_conditions: { - hourly_rate: 15000, - work_period: 'ONE_MONTH_TO_THREE_MONTHS', - work_day_times: [ - { - day_of_week: 'WEEKDAYS', - work_start_time: '14:00', - work_end_time: '18:00', - }, - { - day_of_week: 'SATURDAY', - work_start_time: '10:00', - work_end_time: '14:00', - }, - ], - job_category: 'ENGLISH_KIDS_CAFE', - employment_type: 'PARTTIME', - }, - company_information: { - company_address: '123 Main St, Seoul', - representative_name: 'John Doe', - recruiter: 'Jane Smith', - contact: '+82 10-1234-5678', - email: 'recruiter@example.com', - }, - created_at: '2024-10-22T12:00:00', -};