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.
25 lines
625 B
25 lines
625 B
/** |
|
* 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 storageManager, STORAGE_KEYS } from './storageManager'; |
|
|
|
// Config |
|
export { default as config, printConfig } from './config'; |
|
|
|
// Date utilities |
|
export { formatDate, formatRelativeTime, formatChatTime, isToday, isYesterday } from './date'; |
|
|
|
// Image utilities |
|
export { getImageSource, getImageSourceWithDefault, isExternalUrl } from './image';
|
|
|