Browse Source

fix Style

pull/391/head
王良 7 days ago
parent
commit
3d11d8c660
  1. 2
      packages/gui/src/view/App.vue
  2. 2
      packages/gui/src/view/pages/plugin/pip.vue
  3. 6
      packages/gui/src/view/pages/setting.vue
  4. 2
      packages/mitmproxy/src/lib/dns/ipaddress.js
  5. 4
      packages/mitmproxy/src/lib/interceptor/impl/req/abort.js
  6. 4
      packages/mitmproxy/src/lib/interceptor/impl/req/success.js

2
packages/gui/src/view/App.vue

@ -20,7 +20,7 @@ export default {
},
theme () {
return this.config.app.theme
}
},
},
created () {
this.menus = createMenus(this)

2
packages/gui/src/view/pages/plugin/pip.vue

@ -2,7 +2,7 @@
import Plugin from '../../mixins/plugin'
export default {
name: 'pip',
name: 'Pip',
mixins: [Plugin],
data () {
return {

6
packages/gui/src/view/pages/setting.vue

@ -258,7 +258,7 @@ export default {
width: 610,
content: (h) => (
<div class="restore-factory-settings">
<hr>
<hr/>
<p>
<h3>操作警告</h3>
<div>
@ -269,11 +269,11 @@ export default {
请谨慎操作
</div>
</p>
<hr>
<hr/>
<p>
<h3>找回个性化配置的方法</h3>
<div>
1. 找到备份文件路径<span>~/.dev-sidecar/config.json..bak.json</span><br>
1. 找到备份文件路径<span>~/.dev-sidecar/config.json..bak.json</span><br/>
2. 将该备份文件重命名为<span>config.json</span>再重启软件即可恢复个性化配置
</div>
</p>

2
packages/mitmproxy/src/lib/dns/ipaddress.js

@ -9,7 +9,7 @@ module.exports = class DNSOverIpAddress extends BaseDNS {
// const res = fs.readFileSync(path.resolve(__dirname, './data.txt')).toString()
const res = await axios.get(url)
if (res.status !== 200 && res.status !== 201) {
log.info(`[dns] get ${hostname} ipaddress: error:${res}`)
log.error(`[dns] get ${hostname} ipaddress: error: ${res}`)
return
}
const ret = res.data

4
packages/mitmproxy/src/lib/interceptor/impl/req/abort.js

@ -10,8 +10,8 @@ module.exports = {
})
res.write(
'DevSidecar 403: Request abort.\n\n'
+ ' This request is matched by abort intercept.\n'
+ ' 因配置abort拦截器,本请求直接返回403禁止访问。',
+ ' This request is matched by abort intercept.\n'
+ ' 因配置abort拦截器,本请求直接返回403禁止访问。',
)
res.end()

4
packages/mitmproxy/src/lib/interceptor/impl/req/success.js

@ -10,8 +10,8 @@ module.exports = {
})
res.write(
'DevSidecar 200: Request success.\n\n'
+ ' This request is matched by success intercept.\n\n'
+ ' 因配置success拦截器,本请求直接返回200成功。',
+ ' This request is matched by success intercept.\n\n'
+ ' 因配置success拦截器,本请求直接返回200成功。',
)
res.end()

Loading…
Cancel
Save