/**
 * 同步加载的代码
 * 用于导出常见的模块依赖
 */ export * from './reg' ; export { useGroupPanelParams , useCurrentGroupPanelInfo , } from '@/routes/Main/Content/Group/utils' ; export { openModal , closeModal , ModalWrapper , useModalContext , } from '@/components/Modal' ; export { Loadable } from '@/components/Loadable' ; export { getGlobalState } from '@/utils/global-state-helper' ; export { dataUrlToFile } from '@/utils/file-helper' ; import { request , RequestConfig } from 'tailchat-shared' ; export { getCachedUserInfo , getCachedConverseInfo , localTrans , getLanguage , sharedEvent , useAsync , useAsyncFn , uploadFile , } from 'tailchat-shared' ; /**
 * 插件仅可以通过这种方式进行网络请求发送
 */ export function createPluginRequest ( pluginName ) { return { get ( actionName , config ? ) { return request . get ( `/api/plugin:${ pluginName }/${ actionName }` , config ) ; } , post ( actionName , data ? , config ? ) { return request . post ( `/api/plugin:${ pluginName }/${ actionName }` , data , config ) ; } } ; }