From 3d11d8c660d5edd0b51262bc1477b69364bebdc6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com>
Date: Fri, 15 Nov 2024 15:01:11 +0800
Subject: [PATCH] fix Style
---
packages/gui/src/view/App.vue | 2 +-
packages/gui/src/view/pages/plugin/pip.vue | 2 +-
packages/gui/src/view/pages/setting.vue | 6 +++---
packages/mitmproxy/src/lib/dns/ipaddress.js | 2 +-
packages/mitmproxy/src/lib/interceptor/impl/req/abort.js | 4 ++--
packages/mitmproxy/src/lib/interceptor/impl/req/success.js | 4 ++--
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/packages/gui/src/view/App.vue b/packages/gui/src/view/App.vue
index a2f847e..17b666c 100644
--- a/packages/gui/src/view/App.vue
+++ b/packages/gui/src/view/App.vue
@@ -20,7 +20,7 @@ export default {
},
theme () {
return this.config.app.theme
- }
+ },
},
created () {
this.menus = createMenus(this)
diff --git a/packages/gui/src/view/pages/plugin/pip.vue b/packages/gui/src/view/pages/plugin/pip.vue
index 6d55a50..1c09d9d 100644
--- a/packages/gui/src/view/pages/plugin/pip.vue
+++ b/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 {
diff --git a/packages/gui/src/view/pages/setting.vue b/packages/gui/src/view/pages/setting.vue
index 4d03151..6806809 100644
--- a/packages/gui/src/view/pages/setting.vue
+++ b/packages/gui/src/view/pages/setting.vue
@@ -258,7 +258,7 @@ export default {
width: 610,
content: (h) => (
-
+
操作警告:
@@ -269,11 +269,11 @@ export default {
,请谨慎操作!!!
-
+
找回个性化配置的方法:
- 1. 找到备份文件,路径:~/.dev-sidecar/config.json.时间戳.bak.json
+ 1. 找到备份文件,路径:~/.dev-sidecar/config.json.时间戳.bak.json
2. 将该备份文件重命名为config.json,再重启软件即可恢复个性化配置。
diff --git a/packages/mitmproxy/src/lib/dns/ipaddress.js b/packages/mitmproxy/src/lib/dns/ipaddress.js
index 9ee8867..9ed0bf3 100644
--- a/packages/mitmproxy/src/lib/dns/ipaddress.js
+++ b/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
diff --git a/packages/mitmproxy/src/lib/interceptor/impl/req/abort.js b/packages/mitmproxy/src/lib/interceptor/impl/req/abort.js
index 645b7c0..b0ff6eb 100644
--- a/packages/mitmproxy/src/lib/interceptor/impl/req/abort.js
+++ b/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()
diff --git a/packages/mitmproxy/src/lib/interceptor/impl/req/success.js b/packages/mitmproxy/src/lib/interceptor/impl/req/success.js
index e424a8c..3991c43 100644
--- a/packages/mitmproxy/src/lib/interceptor/impl/req/success.js
+++ b/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()