Skip to content

Commit

Permalink
增加提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaojianli committed Nov 6, 2024
1 parent 4e4f7c9 commit 4f6bcd8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
</a-form-item>
<a-form-item
:label="t('page.settings.tab.profile.module.btn.allowScript')"
:tooltip="t('page.settings.tab.profile.module.btn.allowScript.tips')"
field="model.enabled"
>
<a-switch v-model="model.allow_script_execute" />
<template v-if="model.allow_script_execute" #extra>
<a-typography-text type="danger">
{{ t('page.settings.tab.profile.module.btn.allowScript.tips') }}
{{ t('page.settings.tab.profile.module.btn.allowScript.warning') }}
</a-typography-text></template
>
</a-form-item>
Expand Down
4 changes: 3 additions & 1 deletion webui/src/views/settings/components/profile/locale/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ export default {
'Daily traffic alert threshold',

'page.settings.tab.profile.module.btn.allowScript': 'Allow BTN server push scripts',
'page.settings.tab.profile.module.btn.allowScript.warning':
'Warning, this means that the remote server can execute any code on your device, please enable with caution!',
'page.settings.tab.profile.module.btn.allowScript.tips':
'Warning, this means that the remote server can execute any code on your computer, please enable with caution!'
'This option will allow BTN server push scripts to your device, this may increase the accuracy of the ban'
}
4 changes: 3 additions & 1 deletion webui/src/views/settings/components/profile/locale/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ export default {
'每日流量告警阈值',

'page.settings.tab.profile.module.btn.allowScript': '允许 BTN 服务器下发脚本',
'page.settings.tab.profile.module.btn.allowScript.warning':
'警告,这意味着远程服务器可以在你的设备上执行任意代码,请谨慎开启',
'page.settings.tab.profile.module.btn.allowScript.tips':
'警告,这意味着远程服务器可以在你的计算机上执行任意代码,请谨慎开启'
'打开此选项后将允许 PeerBanHelper 接收并执行来自 BTN 服务器的动态脚本,这有助于提高反吸血精确度和反吸血效果。'
}

0 comments on commit 4f6bcd8

Please sign in to comment.