-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #342 from prgrms-web-devcourse-final-project/feature/
#340 chore: 판매내역, 구매내역 발표시연 용 더미데이터 추가
- Loading branch information
Showing
11 changed files
with
106 additions
and
16 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,66 @@ | ||
export const BUYING_TAB: string = "입찰중"; | ||
export const COMPLETED_TAB: string = "거래완료"; | ||
export const SELLING_TAB: string = "판매중"; | ||
|
||
/** 시연용 더미 데이터 */ | ||
const DUMMY_ING_URL: string = "/dummy/transaction"; | ||
interface DummyPost { | ||
imgUrl: string; | ||
title: string; | ||
price: number; | ||
address: string; | ||
uploadTime: string; | ||
expiredTime: string; | ||
maxPrice: number; | ||
} | ||
const address: string = "경기도 부천시 소사구 송내동"; | ||
const uploadTimeArr: string[] = [ | ||
"2024-12-05 10:00:00", | ||
"2024-12-08 15:00:00", | ||
"2024-12-08 20:00:00", | ||
"2024-12-04 23:00:00", | ||
"2024-12-02 23:00:00", | ||
"2024-11-01 23:00:00", | ||
"2024-03-08 23:00:00", | ||
"2023-12-08 23:00:00", | ||
]; | ||
const expiredTimeArr: string[] = [ | ||
"2024-12-12 10:00:00", | ||
"2024-12-11 15:00:00", | ||
"2024-12-10 20:00:00", | ||
"2024-12-10 23:00:00", | ||
"2024-12-12 10:00:00", | ||
"2024-12-11 15:00:00", | ||
"2024-12-10 20:00:00", | ||
"2024-12-10 23:00:00", | ||
]; | ||
const titleArr: string[] = [ | ||
"JImMM CHOO 구두 240", | ||
"스내치드 스몰 토트백 블랙", | ||
"중고 반클리프 아펠 스위트 알함브라 펜던트 목걸이", | ||
"L 사이즈 로즈 골드 컬러 쁘띠 CD 스타 참 반지", | ||
"아이패드 mini 2", | ||
"펠리칸 소베렌 M800", | ||
"다리미 팔아요~", | ||
"다이아 반지 처분합니다. ", | ||
]; | ||
const priceArr: number[] = [ | ||
550000, 895000, 1850000, 25000, 150000, 199999, 10000, 299999, | ||
]; | ||
const maxPriceArr: number[] = [ | ||
560000, 935000, 1855000, 30000, 150000, 230000, 13000, 499999, | ||
]; | ||
|
||
export const TempData: DummyPost[] = titleArr.map((title, idx) => ({ | ||
imgUrl: DUMMY_ING_URL + `/${idx + 1}.png`, | ||
title: title, | ||
price: priceArr[idx], | ||
address: address, | ||
uploadTime: uploadTimeArr[idx], | ||
expiredTime: expiredTimeArr[idx], | ||
maxPrice: maxPriceArr[idx], | ||
})); | ||
|
||
export const TempBuyData: DummyPost[] = TempData.slice(0, 4); | ||
|
||
export const TempSellData: DummyPost[] = TempData.slice(4, 8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters