프리티어 변경
필터링 AND OR 조건 추가 데이터 JSON 구조 변경 오류 수정
This commit is contained in:
@@ -37,31 +37,30 @@ export const SEARCH_CONFIG = {
|
||||
* isSystemVisible: 필터 목록 및 리스트 노출 여부
|
||||
* soldOut: 판매 완료 처리 여부 (이미지 그레이스케일 등)
|
||||
*/
|
||||
export const STATUS = {
|
||||
UNLISTED: '미판매',
|
||||
RESERVED: '판매예정',
|
||||
ON_SALE: '판매중',
|
||||
SOLD_OUT: '판매완료',
|
||||
};
|
||||
|
||||
export const STATUS_META = {
|
||||
미판매: {
|
||||
selectable: false,
|
||||
isDefaultActive: false,
|
||||
isSystemVisible: true,
|
||||
soldOut: false,
|
||||
},
|
||||
판매예정: {
|
||||
selectable: false,
|
||||
isDefaultActive: false,
|
||||
isSystemVisible: true,
|
||||
soldOut: false,
|
||||
},
|
||||
판매중: {
|
||||
selectable: true,
|
||||
isDefaultActive: true,
|
||||
isSystemVisible: true,
|
||||
soldOut: false,
|
||||
},
|
||||
판매완료: {
|
||||
selectable: false,
|
||||
isDefaultActive: false,
|
||||
isSystemVisible: true,
|
||||
soldOut: true,
|
||||
},
|
||||
[STATUS.UNLISTED]: { selectable: false, isDefaultActive: false, isSystemVisible: true, soldOut: false },
|
||||
[STATUS.RESERVED]: { selectable: false, isDefaultActive: false, isSystemVisible: true, soldOut: false },
|
||||
[STATUS.ON_SALE]: { selectable: true, isDefaultActive: true, isSystemVisible: true, soldOut: false },
|
||||
[STATUS.SOLD_OUT]: { selectable: false, isDefaultActive: false, isSystemVisible: true, soldOut: true },
|
||||
};
|
||||
|
||||
export const CATEGORIES = {
|
||||
GAMES: 'Games',
|
||||
TECH: 'Tech',
|
||||
FURNITURE: 'Furniture',
|
||||
};
|
||||
|
||||
export const CURRENCIES = {
|
||||
KRW: '₩',
|
||||
USD: '$',
|
||||
JPY: '¥'
|
||||
};
|
||||
|
||||
/** 필터 칩 표시 순서 정의 */
|
||||
@@ -106,15 +105,26 @@ export const TAG_STYLES = {
|
||||
export const TAG_DEFAULT_STYLE = 'bg-indigo-100 text-indigo-700 dark:bg-indigo-900/30 dark:text-indigo-400';
|
||||
|
||||
/** * 상품 상태(Condition) 등급 및 라벨 설정
|
||||
* specs.condition 값과 매칭됩니다.
|
||||
* condition 값과 매칭됩니다.
|
||||
*/
|
||||
export const CONDITIONS = {
|
||||
BRAND_NEW: 'BRAND_NEW',
|
||||
LIKE_NEW: 'LIKE_NEW',
|
||||
EXCELLENT: 'EXCELLENT',
|
||||
GOOD: 'GOOD',
|
||||
INCOMPLETE: 'INCOMPLETE',
|
||||
DAMAGED: 'DAMAGED',
|
||||
JUNK: 'JUNK',
|
||||
OTHER: 'OTHER',
|
||||
};
|
||||
|
||||
export const PRODUCT_CONDITIONS = {
|
||||
BRAND_NEW: { label: 'Brand New (미개봉)', color: 'text-emerald-600', level: 'S' },
|
||||
LIKE_NEW: { label: 'Like New (단순개봉)', color: 'text-blue-600', level: 'A+' },
|
||||
EXCELLENT: { label: 'Excellent (최상급)', color: 'text-sky-600', level: 'A' },
|
||||
GOOD: { label: 'Good (보통/사용감)', color: 'text-slate-600', level: 'B' },
|
||||
INCOMPLETE: { label: 'Incomplete (구성품 누락)', color: 'text-amber-600', level: 'C' },
|
||||
DAMAGED: { label: 'Damaged (하자/파손)', color: 'text-orange-600', level: 'D' },
|
||||
JUNK: { label: 'Junk (동작불가/부품용)', color: 'text-red-600', level: 'F' },
|
||||
OTHER: { label: '기타 (상세설명 참고)', color: 'text-indigo-600', level: '-' },
|
||||
[CONDITIONS.BRAND_NEW]: { label: 'Brand New (미개봉)', color: 'text-emerald-600', level: 'S' },
|
||||
[CONDITIONS.LIKE_NEW]: { label: 'Like New (단순개봉)', color: 'text-blue-600', level: 'A+' },
|
||||
[CONDITIONS.EXCELLENT]: { label: 'Excellent (최상급)', color: 'text-sky-600', level: 'A' },
|
||||
[CONDITIONS.GOOD]: { label: 'Good (보통/사용감)', color: 'text-slate-600', level: 'B' },
|
||||
[CONDITIONS.INCOMPLETE]: { label: 'Incomplete (구성품 누락)', color: 'text-amber-600', level: 'C' },
|
||||
[CONDITIONS.DAMAGED]: { label: 'Damaged (하자/파손)', color: 'text-orange-600', level: 'D' },
|
||||
[CONDITIONS.JUNK]: { label: 'Junk (동작불가/부품용)', color: 'text-red-600', level: 'F' },
|
||||
[CONDITIONS.OTHER]: { label: '기타 (상세설명 참고)', color: 'text-indigo-600', level: '-' },
|
||||
};
|
||||
Reference in New Issue
Block a user