Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: import sdk, add request & request.ssr #18

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Conversation

Vsion
Copy link
Collaborator

@Vsion Vsion commented Jan 25, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

feat: import sdk, add request & request.ssr

📝 补充信息 | Additional Information

  • 引入 sdk / @tenx-ui/request
  • 添加 utils/request, utils/request.ssr, 使用方法详见示例 (/actions)
  • 临时引入 next-with-less 处理 sdk 报错
  • 修改之前加的 fetch 示例, 改为 request.ssr (fetch)
  • 由于本地开发时 nextjs 不支持关闭 secure, 引入 express 自定义代理配置
  • 获取用户改为客户端渲染, 从 bff-client 获取
  • 调整登出逻辑
  • 引入 node-fetch, (服务端原生 fetch 不支持 agent)

@yunti-bot
Copy link

👍 @Vsion


Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@Vsion Vsion force-pushed the main branch 2 times, most recently from 8a84e9b to c098bc1 Compare January 25, 2024 10:16
'use client';

import { IOptions, IRequest, IRequestResponse, IUploadRequestOptions } from '@tenx-ui/request';
import RequestCore from '@tenx-ui/request/es/core';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后续改成使用 axios,减少对 tenx-ui 组件的依赖

@Carrotzpc Carrotzpc merged commit 2d304f6 into kubeagi:main Jan 26, 2024
1 check failed
@yunti-bot
Copy link

❤️ Great PR @Vsion ❤️


The growth of project is inseparable from user feedback and contribution, thanks for your contribution!
项目的成长离不开用户反馈和贡献,感谢您的贡献!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants