fromis_9/frontend-temp/src/utils/index.js

57 lines
876 B
JavaScript
Raw Normal View History

/**
* 유틸리티 함수 통합 export
*/
// className 유틸리티
export { cn } from './cn';
// 날짜 관련
export {
getTodayKST,
nowKST,
formatDate,
parseDateKST,
isSameDay,
isToday,
isPast,
isFuture,
formatFullDate,
formatXDateTime,
extractDate,
extractTime,
dayjs,
} from './date';
// 포맷팅 관련
export {
decodeHtmlEntities,
formatTime,
formatNumber,
formatViewCount,
formatFileSize,
formatDuration,
truncateText,
parseCredits,
calculateTotalDuration,
} from './format';
// YouTube 관련
export {
getYoutubeVideoId,
getYoutubeThumbnail,
getYoutubeEmbedUrl,
} from './youtube';
// 스케줄 관련
export {
getCategoryId,
getCategoryInfo,
getScheduleDate,
getScheduleTime,
getMemberList,
getDisplayMembers,
isBirthdaySchedule,
groupSchedulesByDate,
countByCategory,
} from './schedule';