Skip to content

Commit

Permalink
Merge pull request #115 from Team-inglo/feat/IGW-44/65
Browse files Browse the repository at this point in the history
[feat/103] 불필요한 더미데이터 제거하기
  • Loading branch information
naarang authored Nov 5, 2024
2 parents b330260 + 6a3dc83 commit 3ac6f36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 236 deletions.
27 changes: 0 additions & 27 deletions src/constants/alarm.ts

This file was deleted.

77 changes: 1 addition & 76 deletions src/constants/application.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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[] = [
{
Expand Down
58 changes: 5 additions & 53 deletions src/constants/post.ts
Original file line number Diff line number Diff line change
@@ -1,59 +1,11 @@
import { Gender } from '@/types/api/users';
import { EmployerPostItemType } from '@/types/post/employerPostItem';
import { PostSummaryItemType } from '@/types/post/postSummaryItem';
import {
EducationLevel,
JobCategory,
VisaGroup,
} 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: '일반통역/번역',
Expand Down Expand Up @@ -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;
key: 'NONE',
},
} as const;
80 changes: 0 additions & 80 deletions src/constants/postDetail.ts
Original file line number Diff line number Diff line change
@@ -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: '[email protected]',
},
created_at: '2024-10-22T12:00:00',
};

0 comments on commit 3ac6f36

Please sign in to comment.