You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
805 B
39 lines
805 B
|
1 month ago
|
/**
|
||
|
|
* Utils 模块统一导出
|
||
|
|
*/
|
||
|
|
|
||
|
|
// Network API
|
||
|
|
export {
|
||
|
|
default as api,
|
||
|
|
request,
|
||
|
|
cancelAllRequests,
|
||
|
|
cancelRequest,
|
||
|
|
createRetryRequest,
|
||
|
|
} from './network/api';
|
||
|
|
export type { ApiResponse, ApiError, RequestConfig } from './network/api';
|
||
|
|
|
||
|
|
// Storage
|
||
|
|
export { default as Storage, STORAGE_KEYS } from './storage';
|
||
|
|
export { default as SessionStorage, SESSION_KEYS } from './sessionStorage';
|
||
|
|
export { default as StorageManager } from './storageManager';
|
||
|
|
export type { StorageType, StorageOptions } from './storageManager';
|
||
|
|
|
||
|
|
// Config
|
||
|
|
export { default as config, printConfig } from './config';
|
||
|
|
|
||
|
|
// Date utilities
|
||
|
|
export {
|
||
|
|
formatDate,
|
||
|
|
formatRelativeTime,
|
||
|
|
formatChatTime,
|
||
|
|
parseDate,
|
||
|
|
isToday,
|
||
|
|
isYesterday,
|
||
|
|
isSameDay,
|
||
|
|
addDays,
|
||
|
|
subtractDays,
|
||
|
|
startOfDay,
|
||
|
|
endOfDay,
|
||
|
|
} from './date';
|
||
|
|
|