Open xiaofan9 opened 3 years ago
谢谢~!
- 希望在线打开的代码能够切换分支;
这个目前支持了,只是目前只能通过 Shift + Command + P 的方式,选择 GitHub1s: Switch to Another Branch/Tag 的形式切换,后面在支持 SCM 能力的时候会提供可视化按钮操作~
- 希望能够直接在页面中能够搜索出对应的github项目,然后打开;
有计划做这个,考虑后面做一个首页,提供 Trending Repos 列表、用户代码仓库列表及搜索仓库能力~
- 希望能够直接编辑这些代码(切换成其它文件时,修改的文件还能保持不变),还能够保存修改的文件(也能导出到本地),意外关闭浏览器还能够恢复相关代码,等等;
这个也可以做,优先级稍低些。导出代码能力现在也有,在文件树里面右键点想要导出文件夹,然后选择 Download... 即可
- 希望能够直接在线运行,在3的基础上,能够实时预览效果;
这个不容易,GitHub1s 目前是纯静态的应用,这个可能需要服务端支持
- 希望第一次进入github1s的时候,如果当前浏览器不存在OAuth Token,能够有提示/指引
现在打开 GitHub1s 如果直接报 Rate Limit Exceed 错误的话,会打开 Welcome 页面,上面描述着 OAuth Token 相关,后面会做的更清晰方便些~
蛮想参与开发的,但是不知道目前的计划,不知从何下手 @conwnet
蛮想参与开发的,但是不知道目前的计划,不知从何下手 @conwnet
计划这个我今天整理一个文档大家一起 review 和补充吧
- 希望能够直接在线运行,在3的基础上,能够实时预览效果;
这个不容易,GitHub1s 目前是纯静态的应用,这个可能需要服务端支持
这个可以参考,CodeSandbox 这个就是完全运行在浏览器上面的
CodeSandbox does provide a way to import GitHub project and run it directly https://codesandbox.io/docs/importing#import-from-github
I suggest we integrate with CodeSandbox. Like add a button or command to open the githubbox link.
CodeSandbox确实提供了一种导入GitHub项目并直接运行它的方法https://codesandbox.io/docs/importing#import-from-github
我建议我们与CodeSandbox集成。像添加按钮或命令一样打开githubbox链接。
good idea
@conwnet
Rate Limit Exceed
访问同一个仓库,经常出现这个报错,时灵时不灵的
@conwnet
Rate Limit Exceed
访问同一个仓库,经常出现这个报错,时灵时不灵的
配置 OAuth token 了吗?
蛮想参与开发的,但是不知道目前的计划,不知从何下手 @conwnet
计划这个我今天整理一个文档大家一起 review 和补充吧
大佬,我想在本地运行gitlab 平台,但代码里面的变量太多,没有设置对,一直处于github平台,请问可以怎么弄让我可以调试gitlab平台?或者说gitlab1s.com
这个代码是运行哪个命令生成的?
大佬,我想在本地运行gitlab 平台,但代码里面的变量太多,没有设置对,一直处于github平台,请问可以怎么弄让我可以调试gitlab平台?或者说
gitlab1s.com
这个代码是运行哪个命令生成的?
@wd2010
一个很简单方法就是,在 hosts 指定 127.0.0.1 gitlab1s.com
大佬,我想在本地运行gitlab 平台,但代码里面的变量太多,没有设置对,一直处于github平台,请问可以怎么弄让我可以调试gitlab平台?或者说
gitlab1s.com
这个代码是运行哪个命令生成的?@wd2010 一个很简单方法就是,在 hosts 指定
127.0.0.1 gitlab1s.com
具体的判断逻辑在这里:
非常感谢大佬,还有一个问题,本地跑gitlab1s时,如果gitlab的仓库是私有的,发现没有授权的地方,请问这一块代码可以怎么弄?最近公司内网的gitlab想接github1s,但我们的仓库都是私有的,麻烦大佬再指导一下,感激不尽
@wd2010 目前 gitlab 平台用的是 SourceGraph API,没有用 GitLab 的官方 API,所以不支持私有仓库。
如果你需要自己适配的话,相关的逻辑在这里:
更详细的信息,我后面专门写一个文档吧~
English :