Browse Source

格式调整

pull/396/head
王良 4 days ago
parent
commit
5fe8a43cfb
  1. 8
      README.md
  2. 2
      package.json
  3. 448
      packages/core/src/config/remote_config.json5
  4. 22
      packages/gui/public/index.html

8
README.md

@ -282,10 +282,10 @@ networksetup -setwebproxy 'WiFi' 127.0.0.1 31181
#### 3)火狐浏览器:火狐浏览器不走系统的根证书,需要在选项中添加根证书 #### 3)火狐浏览器:火狐浏览器不走系统的根证书,需要在选项中添加根证书
> 1. 火狐浏览器->选项->隐私与安全->证书->查看证书 - 1. 火狐浏览器->选项->隐私与安全->证书->查看证书
> 2. 证书颁发机构->导入 - 2. 证书颁发机构->导入
> 3. 选择证书文件`C:\Users(用户)\Administrator(你的账号)\.dev-sidecar\dev-sidecar.ca.crt`(Mac或linux为`~/.dev-sidecar`目录) - 3. 选择证书文件`C:\Users(用户)\Administrator(你的账号)\.dev-sidecar\dev-sidecar.ca.crt`(Mac或linux为`~/.dev-sidecar`目录)
> 4. 勾选信任由此证书颁发机构来标识网站,确定即可 - 4. 勾选信任由此证书颁发机构来标识网站,确定即可
### 6.4、打开github显示连接超时 ### 6.4、打开github显示连接超时

2
package.json

@ -1,7 +1,7 @@
{ {
"name": "dev-sidecar-parent", "name": "dev-sidecar-parent",
"packageManager": "pnpm@9.13.2",
"private": false, "private": false,
"packageManager": "pnpm@9.13.2",
"author": "Greper", "author": "Greper",
"license": "MPL-2.0" "license": "MPL-2.0"
} }

448
packages/core/src/config/remote_config.json5

@ -1,226 +1,226 @@
{ {
"server": { "server": {
"compatible": { "compatible": {
"connect": { "connect": {
"218.18.106.132:443": { "218.18.106.132:443": {
"ssl": true "ssl": true
} }
}, },
"request": { "request": {
"218.18.106.132:443": { "218.18.106.132:443": {
"rejectUnauthorized": false "rejectUnauthorized": false
} }
} }
}, },
"intercepts": { "intercepts": {
"github.com": { "github.com": {
"^(/[\\w-.]+){2,}/?(\\?.*)?$": { "^(/[\\w-.]+){2,}/?(\\?.*)?$": {
"tampermonkeyScript": "https://gitee.com/wangliang181230/dev-sidecar/raw/scripts/tampermonkey.js", "tampermonkeyScript": "https://gitee.com/wangliang181230/dev-sidecar/raw/scripts/tampermonkey.js",
"script": "https://gitee.com/wangliang181230/dev-sidecar/raw/scripts/GithubEnhanced-High-Speed-Download.user.js" "script": "https://gitee.com/wangliang181230/dev-sidecar/raw/scripts/GithubEnhanced-High-Speed-Download.user.js"
}, },
"^(/[^/]+){2}/releases/download/.*$": { "^(/[^/]+){2}/releases/download/.*$": {
"redirect": "ghp.ci/https://github.com", "redirect": "ghp.ci/https://github.com",
"desc": "release文件加速下载重定向地址" "desc": "release文件加速下载重定向地址"
}, },
"^(/[^/]+){2}/archive/.*\\.(zip|tar.gz)$": { "^(/[^/]+){2}/archive/.*\\.(zip|tar.gz)$": {
"redirect": "ghp.ci/https://github.com", "redirect": "ghp.ci/https://github.com",
"desc": "release源代码加速下载重定向地址" "desc": "release源代码加速下载重定向地址"
}, },
"^((/[^/]+){2,})/raw((/[^/]+)+\\.(jpg|jpeg|png|gif))(\\?.*)?$": { "^((/[^/]+){2,})/raw((/[^/]+)+\\.(jpg|jpeg|png|gif))(\\?.*)?$": {
"sni": "baidu.com" // proxy拦截器不会使用 .* 中的sni配置,故补充此配置 "sni": "baidu.com" // proxy拦截器不会使用 .* 中的sni配置,故补充此配置
}, },
"^((/[^/]+){2,})/raw((/[^/]+)+\\.js)(\\?.*)?$": { "^((/[^/]+){2,})/raw((/[^/]+)+\\.js)(\\?.*)?$": {
"sni": "baidu.com" // proxy拦截器不会使用 .* 中的sni配置,故补充此配置 "sni": "baidu.com" // proxy拦截器不会使用 .* 中的sni配置,故补充此配置
} }
}, },
"api.github.com": { "api.github.com": {
".*": { ".*": {
"sni": "baidu.com" "sni": "baidu.com"
} }
}, },
"github.githubassets.com": { "github.githubassets.com": {
".*": { ".*": {
"sni": "baidu.com" "sni": "baidu.com"
} }
}, },
"avatars.githubusercontent.com": { "avatars.githubusercontent.com": {
".*": { ".*": {
"sni": "baidu.com" "sni": "baidu.com"
} }
}, },
"camo.githubusercontent.com": { "camo.githubusercontent.com": {
".*": { ".*": {
"sni": "baidu.com" "sni": "baidu.com"
} }
}, },
"collector.github.com": { "collector.github.com": {
".*": { ".*": {
"sni": "baidu.com" "sni": "baidu.com"
} }
}, },
"www.gstatic.com": { "www.gstatic.com": {
"/recaptcha/.*": { "/recaptcha/.*": {
"proxy": "www.recaptcha.net" "proxy": "www.recaptcha.net"
} }
} }
}, },
"preSetIpList": { "preSetIpList": {
"github.com": [ "github.com": [
"4.237.22.38", "4.237.22.38",
"20.26.156.215", "20.26.156.215",
"20.27.177.113", "20.27.177.113",
"20.87.245.0", "20.87.245.0",
"20.200.245.247", "20.200.245.247",
"20.201.28.151", "20.201.28.151",
"20.205.243.166", "20.205.243.166",
"140.82.113.3", "140.82.113.3",
"140.82.114.4", "140.82.114.4",
"140.82.116.3", "140.82.116.3",
"140.82.116.4", "140.82.116.4",
"140.82.121.3", "140.82.121.3",
"140.82.121.4" "140.82.121.4"
], ],
"hub.docker.com": null // 1.8.2版本中,该域名的预设IP有问题,现在远程配置中删除 "hub.docker.com": null // 1.8.2版本中,该域名的预设IP有问题,现在远程配置中删除
}, },
"dns": { "dns": {
"mapping": { "mapping": {
"*.jetbrains.com": "quad9", "*.jetbrains.com": "quad9",
"*.azureedge.net": "quad9", "*.azureedge.net": "quad9",
"*.stackoverflow.com": "quad9" "*.stackoverflow.com": "quad9"
}, },
"speedTest": { "speedTest": {
"interval": 300000 "interval": 300000
} }
}, },
"whiteList": { "whiteList": {
"*.icloud.com": true, "*.icloud.com": true,
"*.lenovo.net": true "*.lenovo.net": true
} }
}, },
"proxy": { "proxy": {
"remoteDomesticDomainAllowListFileUrl": "https://raw.kkgithub.com/pluwen/china-domain-allowlist/main/allow-list.sorl", "remoteDomesticDomainAllowListFileUrl": "https://raw.kkgithub.com/pluwen/china-domain-allowlist/main/allow-list.sorl",
"excludeIpList": { "excludeIpList": {
// Github文件上传所使用的域名,被DS代理会导致文件上传经常失败,从系统代理中排除掉 // Github文件上传所使用的域名,被DS代理会导致文件上传经常失败,从系统代理中排除掉
"objects-origin.githubusercontent.com": true, "objects-origin.githubusercontent.com": true,
// Github通过Actions上传的文件,下载时所需的域名,从系统代理中排除掉,否则下载会失败 // Github通过Actions上传的文件,下载时所需的域名,从系统代理中排除掉,否则下载会失败
"*.windows.net": true, "*.windows.net": true,
// Github下载release文件的高速镜像地址 // Github下载release文件的高速镜像地址
"*.ghproxy.net": true, "*.ghproxy.net": true,
"*.ghp.ci": true, "*.ghp.ci": true,
"*.kkgithub.com": true, "*.kkgithub.com": true,
// Github建站域名 // Github建站域名
"*.github.io": true, "*.github.io": true,
// bilibili相关 // bilibili相关
"*.bilicomic.com": true, "*.bilicomic.com": true,
// 中国移动云盘登录API // 中国移动云盘登录API
"[2049:8c54:813:10c::140]": true, "[2049:8c54:813:10c::140]": true,
"[2409:8a0c:a442:ff40:a51f:4b9c:8b41:25ea]": true, "[2409:8a0c:a442:ff40:a51f:4b9c:8b41:25ea]": true,
"[2606:2800:147:120f:30c:1ba0:fc6:265a]": true, "[2606:2800:147:120f:30c:1ba0:fc6:265a]": true,
// 移动云盘相关 // 移动云盘相关
"*.cmicapm.com": true, "*.cmicapm.com": true,
// cloudflare:排除以下域名,cloudflare的人机校验会更快,成功率更高。 // cloudflare:排除以下域名,cloudflare的人机校验会更快,成功率更高。
"*.cloudflare.com": true, "*.cloudflare.com": true,
"*.cloudflare-cn.com": true, "*.cloudflare-cn.com": true,
// VS相关 // VS相关
"*.microsoftonline.com": true, // 此域名不排除的话,部分功能将出现异常 "*.microsoftonline.com": true, // 此域名不排除的话,部分功能将出现异常
"*.msecnd.net": true, "*.msecnd.net": true,
"*.msedge.net": true, "*.msedge.net": true,
// 卡巴斯基升级域名 // 卡巴斯基升级域名
"*kaspersky*.com": true, "*kaspersky*.com": true,
"*.upd.kaspersky.com": true, "*.upd.kaspersky.com": true,
// sandbox沙盒域名 // sandbox沙盒域名
"*.sandboxie-plus.com": true, "*.sandboxie-plus.com": true,
// 无忧论坛 // 无忧论坛
"*.wuyou.net": true, "*.wuyou.net": true,
// python建图包域名(浏览器) // python建图包域名(浏览器)
"*.pyecharts.org": true, "*.pyecharts.org": true,
// 教育网站 // 教育网站
"*.bcloudlink.com": true, "*.bcloudlink.com": true,
// 奇迹秀(资源) // 奇迹秀(资源)
"*.qijishow.com": true, "*.qijishow.com": true,
// Z-Library // Z-Library
"*.z-lib.fo": true, "*.z-lib.fo": true,
// Finalshell(Linux学习网) // Finalshell(Linux学习网)
"*.finalshell.com": true, "*.finalshell.com": true,
// MineBBS(我的世界中文论坛) // MineBBS(我的世界中文论坛)
"*.minebbs.com": true, "*.minebbs.com": true,
// 我的世界插件网 // 我的世界插件网
"*.spigotmc.org": true, "*.spigotmc.org": true,
// bd测试 // bd测试
"*.virustotal.com": true, "*.virustotal.com": true,
// 未知 // 未知
"*.youdemai.com": true, "*.youdemai.com": true,
"*.casualthink.com": true, "*.casualthink.com": true,
"44.239.165.12": true, "44.239.165.12": true,
"3.164.110.117": true "3.164.110.117": true
} }
}, },
"plugin": { "plugin": {
"overwall": { "overwall": {
"targets": { "targets": {
"*.github.com": true, "*.github.com": true,
"*github*.com": true, "*github*.com": true,
"*.nodejs.org": true, "*.nodejs.org": true,
"*.npmjs.com": true, "*.npmjs.com": true,
"*.wikimedia.org": true, "*.wikimedia.org": true,
"*.v2ex.com": true, "*.v2ex.com": true,
"*.azureedge.net": true, "*.azureedge.net": true,
"*.cloudfront.net": true, "*.cloudfront.net": true,
"*.bing.com": true, "*.bing.com": true,
"*.discourse-cdn.com": true, "*.discourse-cdn.com": true,
"*.gravatar.com": true, "*.gravatar.com": true,
"*.docker.com": true, "*.docker.com": true,
"*.vueuse.org": true, "*.vueuse.org": true,
"*.elastic.co": true, "*.elastic.co": true,
"*.optimizely.com": true, "*.optimizely.com": true,
"*.stackpathcdn.com": true, "*.stackpathcdn.com": true,
"*.fastly.net": true, "*.fastly.net": true,
"*.cloudflare.com": true, "*.cloudflare.com": true,
"*.233v2.com": true, "*.233v2.com": true,
"*.v2fly.org": true, "*.v2fly.org": true,
"*.telegram.org": true, "*.telegram.org": true,
"*.amazon.com": true, "*.amazon.com": true,
"*.googleapis.com": true, "*.googleapis.com": true,
"*.google-analytics.com": true, "*.google-analytics.com": true,
"*.cloudflareinsights.com": true, "*.cloudflareinsights.com": true,
"*.intlify.dev": true, "*.intlify.dev": true,
"*.segment.io": true, "*.segment.io": true,
"*.shields.io": true, "*.shields.io": true,
"*.jsdelivr.net": true, "*.jsdelivr.net": true,
"*.z-library.sk": true, "*.z-library.sk": true,
"*.zlibrary*.se": true, "*.zlibrary*.se": true,
// 维基百科 // 维基百科
"*.wikipedia-on-ipfs.org": true, "*.wikipedia-on-ipfs.org": true,
// ChatGPT // ChatGPT
"*.oaiusercontent.com": true, // 在ChatGPT中生成文件并下载所需的域名 "*.oaiusercontent.com": true, // 在ChatGPT中生成文件并下载所需的域名
// Pixiv相关 // Pixiv相关
"*.pixiv.org": true, "*.pixiv.org": true,
"*.fanbox.cc": true, "*.fanbox.cc": true,
"*.onesignal.com": true // pixiv站点,会加载该域名下的js脚本 "*.onesignal.com": true // pixiv站点,会加载该域名下的js脚本
}, },
"pac": { "pac": {
"pacFileUpdateUrl": "https://raw.kkgithub.com/gfwlist/gfwlist/master/gfwlist.txt" "pacFileUpdateUrl": "https://raw.kkgithub.com/gfwlist/gfwlist/master/gfwlist.txt"
} }
} }
} }
} }

22
packages/gui/public/index.html

@ -1,16 +1,20 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" style="height:100%"> <html lang="en" style="height: 100%">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
<script type="application/javascript">window.config = {}</script> <script type="application/javascript">
window.config = {}
</script>
</head> </head>
<body style="height:100%"> <body style="height: 100%">
<div id="app" style="height:100%"> <div id="app" style="height: 100%">
<div style="display: flex;align-items: center;justify-content: center;height:100%;width:100%"><img src="loading-spin.svg"></div> <div style="display: flex; align-items: center; justify-content: center; height: 100%; width: 100%">
<img src="loading-spin.svg" />
</div>
</div> </div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>

Loading…
Cancel
Save