fix: codesandbox 跳转

Open
#2 2 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

enhancement help wanted
image

由于集成到VSCode插件,导致页面是嵌入到iframe时,a标签新开浏览器页面是无效的

解决方案:

  • 按钮点击时,派发事件到 VSCode容器,容器帮忙使用VSCode打开浏览器的方式实现。

要求:

  • 保留目前的情况,codegen单独开发时支持跳转。类似接口请求兼容方案一样。

插件开发将 codgen 集成到 vscode,完美解决cors 跨域问题,采用类似qiankun 微前端的思路。
在vscode 环境下,通过类似微前端(iframe通信)方式,vscode来发请求,将数据传给 codegen web。这样就避开了web端浏览器跨域的问题。
codegen web可以独立启动开发,可完全解耦,也是个独立web应用,也可以集成到 vscode 开发。

Dominant language
TypeScript
Stars
15
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RootLinkFE/roothub-codegen

All issues in RootLinkFE/roothub-codegen

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.