Commit d7797d65 authored by Medicean's avatar Medicean

(Enhance:Settings) 默认设置新增「使用随机英文单词变量」配置项

parent 5e9e6722
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
* `jsp_custom_script_for_mysql` 提供 `AES` 编码解码示例 * `jsp_custom_script_for_mysql` 提供 `AES` 编码解码示例
* `jsp_custom_script_for_mysql` 增加 Version 显示 * `jsp_custom_script_for_mysql` 增加 Version 显示
* windows 下单击鼠标左键 Tray Icon 显示/隐藏 主窗口 改为 「双击」 * windows 下单击鼠标左键 Tray Icon 显示/隐藏 主窗口 改为 「双击」
* 默认设置新增 「使用随机英文单词变量」配置项
## 2019/08/19 `v(2.1.5)` ## 2019/08/19 `v(2.1.5)`
......
...@@ -176,7 +176,7 @@ module.exports = { ...@@ -176,7 +176,7 @@ module.exports = {
otherConf: { otherConf: {
nohttps: 'Ignore HTTPS certificate', nohttps: 'Ignore HTTPS certificate',
usemultipart: 'Use Multipart send payload', usemultipart: 'Use Multipart send payload',
userandomvariable:'Use random English word variables', userandomvariable: 'Use random English word variables',
chunk: { chunk: {
title: 'Chunked Transfer (Experimentally)', title: 'Chunked Transfer (Experimentally)',
usechunk: 'Use Chunked send payload.', usechunk: 'Use Chunked send payload.',
...@@ -944,6 +944,7 @@ Hot Keys: ...@@ -944,6 +944,7 @@ Hot Keys:
}, },
other: { other: {
nohttps: 'Ignore HTTPS certificate', nohttps: 'Ignore HTTPS certificate',
userandomvariable: 'Use random English word variables',
requestTimeout: 'Request timeout' requestTimeout: 'Request timeout'
} }
}, },
......
...@@ -944,6 +944,7 @@ module.exports = { ...@@ -944,6 +944,7 @@ module.exports = {
}, },
other: { other: {
nohttps: '忽略HTTPS证书', nohttps: '忽略HTTPS证书',
userandomvariable: '使用随机英文单词变量',
requestTimeout: '请求超时' requestTimeout: '请求超时'
} }
}, },
......
...@@ -942,6 +942,7 @@ module.exports = { ...@@ -942,6 +942,7 @@ module.exports = {
}, },
other: { other: {
nohttps: '忽略HTTPS證書', nohttps: '忽略HTTPS證書',
userandomvariable: '使用隨機英文單詞變量',
requestTimeout: '請求超時' requestTimeout: '請求超時'
} }
}, },
......
...@@ -177,7 +177,7 @@ module.exports = { ...@@ -177,7 +177,7 @@ module.exports = {
otherConf: { otherConf: {
nohttps: '忽略HTTPS證書', nohttps: '忽略HTTPS證書',
usemultipart: '使用 Multipart 發包', usemultipart: '使用 Multipart 發包',
userandomvariable:'使用隨機英文單詞變量', userandomvariable: '使用隨機英文單詞變量',
chunk: { chunk: {
title: '分塊傳輸(實驗性功能)', title: '分塊傳輸(實驗性功能)',
usechunk: '開啟分塊傳輸發包', usechunk: '開啟分塊傳輸發包',
...@@ -943,6 +943,7 @@ module.exports = { ...@@ -943,6 +943,7 @@ module.exports = {
}, },
other: { other: {
nohttps: '忽略HTTPS證書', nohttps: '忽略HTTPS證書',
userandomvariable: '使用隨機英文單詞變量',
requestTimeout: '請求超時' requestTimeout: '請求超時'
} }
}, },
......
...@@ -27,6 +27,7 @@ class ADefault { ...@@ -27,6 +27,7 @@ class ADefault {
bodys: {}, bodys: {},
others: { others: {
"ignore-https": 0, "ignore-https": 0,
"use-random-variable": 0,
"request-timeout": '10000' "request-timeout": '10000'
} }
}, },
...@@ -145,6 +146,12 @@ class ADefault { ...@@ -145,6 +146,12 @@ class ADefault {
name: 'shellmanager_ignore-https', name: 'shellmanager_ignore-https',
label: LANG['shellmanager']['other']['nohttps'], label: LANG['shellmanager']['other']['nohttps'],
checked: self.shellmanager_settings.others['ignore-https'] === 1 checked: self.shellmanager_settings.others['ignore-https'] === 1
}, {
type: 'checkbox',
position: 'label-right',
name: 'shellmanager_use-random-variable',
label: LANG['shellmanager']['other']['userandomvariable'],
checked: self.shellmanager_settings.others['use-random-variable'] === 1
}, { }, {
type: "label", type: "label",
label: LANG['shellmanager']['other']['requestTimeout'] label: LANG['shellmanager']['other']['requestTimeout']
...@@ -391,6 +398,7 @@ class ADefault { ...@@ -391,6 +398,7 @@ class ADefault {
config.shellmanager.headers = self.shellmanager_settings.headers; config.shellmanager.headers = self.shellmanager_settings.headers;
config.shellmanager.bodys = self.shellmanager_settings.bodys; config.shellmanager.bodys = self.shellmanager_settings.bodys;
config.shellmanager.others["ignore-https"] = _formvals['shellmanager_ignore-https']; config.shellmanager.others["ignore-https"] = _formvals['shellmanager_ignore-https'];
config.shellmanager.others["use-random-variable"] = _formvals['shellmanager_use-random-variable'];
config.shellmanager.others["request-timeout"] = _formvals['shellmanager_request-timeout']; config.shellmanager.others["request-timeout"] = _formvals['shellmanager_request-timeout'];
config.terminal.tsize = self.terminal_settings.tsize; config.terminal.tsize = self.terminal_settings.tsize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment