netcon

Results 68 comments of netcon

> mark 域名被抢注了...后面我搞个不一样的域名写一下...

now you can visit https://github1s.com/editor, you can edit local file here. This is similar to vscode.dev

> 大佬,我想在本地运行gitlab 平台,但代码里面的变量太多,没有设置对,一直处于github平台,请问可以怎么弄让我可以调试gitlab平台?或者说`gitlab1s.com`这个代码是运行哪个命令生成的? @wd2010 一个很简单方法就是,在 hosts 指定 `127.0.0.1 gitlab1s.com` 具体的判断逻辑在这里: https://github.com/conwnet/github1s/blob/a91c7f3fdcf7ee66afe9f6596da5c53c3d1180b8/resources/initialize.js#L54-L71

@wd2010 目前 gitlab 平台用的是 SourceGraph API,没有用 GitLab 的官方 API,所以不支持私有仓库。 如果你需要自己适配的话,相关的逻辑在这里: https://github.com/conwnet/github1s/blob/a91c7f3fdcf7ee66afe9f6596da5c53c3d1180b8/extensions/github1s/src/adapters/index.ts 更详细的信息,我后面专门写一个文档吧~

You can add a entry in /etc/hosts: ~~~ 127.0.0.1 gitlab1s.com ~~~ The relevant code is implemented here: https://github.com/conwnet/github1s/blob/a91c7f3fdcf7ee66afe9f6596da5c53c3d1180b8/resources/initialize.js#L54-L71

now you can visit https://github1s.com/editor, you can edit local file here. This is similar to vscode.dev

https://github.com/conwnet/github1s/blob/master/docs/guide.md This document introduces the general principles of github1s. We also have plans to make github1s work with user's own SCM systems easily.

> how does it get files from any github repo, and why is there a extension named github1s? @eppisai we use [GitHub REST API](https://docs.github.com/en/rest) and [Sourcegraph API](https://docs.sourcegraph.com/api/graphql) to fetch github...

> cc: @conwnet wdyt about this? I found some copy-and-paste code in this PR, so I'm going to take the time to sort it out.

For a easy way to use github1s, you can just run `yarn watch` or `yarn build`, it will use our prebuilt vscode. If you want to customized vscode source code,...