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(core): built-in console application #604

Merged
merged 16 commits into from
Jan 22, 2023
Merged

Conversation

wibus-wee
Copy link
Member

@wibus-wee wibus-wee commented Jan 21, 2023

image

Tasks

  • 文档相关部分更新 ( /config/ )

核心逻辑

将全部请求转接到后端中,把 Cookie 等注入返回中,请求远端 HTML 等文件,将内容返回

新增自定义配置

console:
  enable: false
  versionType: "pre-release"
  source: "gh" # gh or npm, default: npm
  proxy: 
    gh: "https://ghproxy.com" # default: https://ghproxy.com
  • enable: 服务启动
  • versionType: 版本类型,若需要使用非正式版本,则填入 pre-release,若需要正式版本,则无所谓
  • source: 获取方式,gh 即 GitHub Release,npm 即 npmjs.com。事实上,并不建议使用 npm 方式,这似乎会导致 rate limit
  • proxy: 下载“代理”,是指使用 ghproxy 类型的工具下载包
    • gh:GitHub Release 的下载代理,默认为 https://ghproxy.com
    • npm: 没有提供支持 -- 原因是我们从 npm 获取文件使用的是官方的一个接口 https://www.npmjs.com/package/${name}/file/${fileId},而此接口似乎无镜像

@wibus-wee wibus-wee self-assigned this Jan 22, 2023
@wibus-wee wibus-wee added the enhancement New feature or request label Jan 22, 2023
@wibus-wee wibus-wee marked this pull request as ready for review January 22, 2023 11:55
@github-actions github-actions bot added the ci-failed PRs that was failed in ci label Jan 22, 2023
@github-actions github-actions bot added ci-passed PRs that was passed in ci and removed ci-failed PRs that was failed in ci labels Jan 22, 2023
@wibus-wee wibus-wee merged commit 7475fce into main Jan 22, 2023
@wibus-wee wibus-wee deleted the feat/console-in-core branch January 22, 2023 12:26
@wibus-wee wibus-wee mentioned this pull request Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-passed PRs that was passed in ci enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant