返回 AiToEarn
index.ts
根目录 / project / aitoearn-web / src / store / plugin / index.ts
1 /**
2 * 浏览器插件模块统一导出
3 */
4
5 // Utils
6 export { getWxSphLoginStatus, getXhsLoginStatus, isPluginPlatformAccountReady } from './account.utils'
7
8 // Constants
9 export {
10 DEFAULT_POLLING_INTERVAL,
11 ERROR_MESSAGE_I18N_KEY,
12 PLUGIN_DOWNLOAD_LINKS,
13 PLUGIN_STATUS_I18N_KEY,
14 PUBLISH_STAGE_I18N_KEY,
15 TASK_STATUS_I18N_KEY,
16 } from './constants'
17
18 // Hooks
19 export { usePlugin, usePluginLogin, usePluginPublish, usePluginWorkflow } from './hooks'
20
21 // Platform Interaction (平台交互模块 - 点赞、评论、收藏等)
22 export { douyinInteraction, platformManager, xhsInteraction } from './plats'
23 export type {
24 BaseResult,
25 CommentParams,
26 CommentResult,
27 FavoriteResult,
28 IPlatformInteraction,
29 LikeResult,
30 SupportedPlatformType,
31 } from './plats'
32 export { proxyRequest } from './request'
33
34 // Store
35 export { usePluginStore } from './store'
36
37 export type { ExecutePluginPublishParams, PlatformAccountsMap, PlatformProgressMap, PluginPublishItem } from './store'
38
39 // Types
40 export type {
41 AIToEarnPluginAPI,
42 OperationResult,
43 PermissionCheckResult,
44 PlatAccountInfo,
45 PlatformPublishMode,
46 PlatformPublishTask,
47 PlatformPublishUserAction,
48 PluginPlatformType,
49 PluginProxyRequestParams,
50 PluginProxyResponse,
51 PluginStore,
52 ProgressCallback,
53 ProgressEvent,
54 PublishParams,
55 PublishResult,
56 PublishTask,
57 PublishTaskListConfig,
58 UnifiedPublishParams,
59 WxSphEventInfo,
60 WxSphLinkAnchor,
61 WxSphLocationItem,
62 WxSphLocationSearchParams,
63 WxSphLoginStatus,
64 WxSphStartLinkPollingParams,
65 WxSphStartLinkPollingResult,
66 XhsLoginStatus,
67 } from './types/baseTypes'
68
69 export {
70 PlatformTaskStatus,
71 PLUGIN_SUPPORTED_PLATFORMS,
72 PluginStatus,
73 WX_SPH_LOGIN_EXPIRED_CODE,
74 } from './types/baseTypes'
75 export {
76 formatFileSize,
77 formatProgress,
78 getPluginStatusI18nKey,
79 getPublishStageI18nKey,
80 isPluginConnected,
81 isPluginInstalledNoPermission,
82 isPluginNotInstalled,
83 isPluginReady,
84 isValidImageFile,
85 isValidVideoFile,
86 validateFileSize,
87 validateFileType,
88 withRetry,
89 } from './utils'
90
90 lines TYPESCRIPT