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 () { theme () {
return this.config.app.theme return this.config.app.theme
} },
}, },
created () { created () {
this.menus = createMenus(this) this.menus = createMenus(this)

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

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

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

@ -258,7 +258,7 @@ export default {
width: 610, width: 610,
content: (h) => ( content: (h) => (
<div class="restore-factory-settings"> <div class="restore-factory-settings">
<hr> <hr/>
<p> <p>
<h3>操作警告</h3> <h3>操作警告</h3>
<div> <div>
@ -269,11 +269,11 @@ export default {
请谨慎操作 请谨慎操作
</div> </div>
</p> </p>
<hr> <hr/>
<p> <p>
<h3>找回个性化配置的方法</h3> <h3>找回个性化配置的方法</h3>
<div> <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>再重启软件即可恢复个性化配置 2. 将该备份文件重命名为<span>config.json</span>再重启软件即可恢复个性化配置
</div> </div>
</p> </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 = fs.readFileSync(path.resolve(__dirname, './data.txt')).toString()
const res = await axios.get(url) const res = await axios.get(url)
if (res.status !== 200 && res.status !== 201) { if (res.status !== 200 && res.status !== 201) {
log.info(`[dns] get ${hostname} ipaddress: error:${res}`) log.error(`[dns] get ${hostname} ipaddress: error: ${res}`)
return return
} }
const ret = res.data const ret = res.data

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

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

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

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

Loading…
Cancel
Save