diff --git a/frontend/src/components/pure/ms-code-editor/types.ts b/frontend/src/components/pure/ms-code-editor/types.ts index 87fed3c84a..c80f57f225 100644 --- a/frontend/src/components/pure/ms-code-editor/types.ts +++ b/frontend/src/components/pure/ms-code-editor/types.ts @@ -102,7 +102,7 @@ export const editorProps = { // 是否显示字符集切换 showCharsetChange: { type: Boolean as PropType, - default: true, + default: false, }, // 是否显示主题切换 showThemeChange: { diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index a7960833b7..af783e65e6 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -87,7 +87,7 @@ diff --git a/frontend/src/views/api-test/debug/locale/en-US.ts b/frontend/src/views/api-test/debug/locale/en-US.ts index f4ca65ded9..8cabc77efc 100644 --- a/frontend/src/views/api-test/debug/locale/en-US.ts +++ b/frontend/src/views/api-test/debug/locale/en-US.ts @@ -7,8 +7,8 @@ export default { 'apiTestDebug.noMatchModule': 'No matching module data yet', 'apiTestDebug.header': 'Header', 'apiTestDebug.body': 'Body', - 'apiTestDebug.prefix': 'Prefix', - 'apiTestDebug.post': 'Post', + 'apiTestDebug.prefix': 'Precondition', + 'apiTestDebug.post': 'Postcondition', 'apiTestDebug.assertion': 'Assertion', 'apiTestDebug.auth': 'Auth', 'apiTestDebug.setting': 'Setting', @@ -22,6 +22,15 @@ export default { 'apiTestDebug.paramValuePlaceholder': 'Starting with {at}, double-click to quickly enter', 'apiTestDebug.paramValuePreview': 'Parameter preview', 'apiTestDebug.desc': 'Description', + 'apiTestDebug.paramRequired': 'Required', + 'apiTestDebug.paramNotRequired': 'Optional', + 'apiTestDebug.paramType': 'Param type', + 'apiTestDebug.paramLengthRange': 'Length range', + 'apiTestDebug.paramMin': 'Min', + 'apiTestDebug.paramMax': 'Max', + 'apiTestDebug.encode': 'Encoding', + 'apiTestDebug.encodeTip1': 'On: Use encoding', + 'apiTestDebug.encodeTip2': 'Off: No encoding is used', 'apiTestDebug.apply': 'Apply', 'apiTestDebug.batchAddParamsTip': 'Writing format: parameter name: parameter value; such as nama: natural', 'apiTestDebug.batchAddParamsTip2': 'Multiple records are separated by newlines.', @@ -29,4 +38,146 @@ export default { 'Parameter names in batch addition are repeated. By default, the last data is the latest data.', 'apiTestDebug.quickInputParamsTip': 'Support Mock/JMeter/Json/Text/String, etc.', 'apiTestDebug.descPlaceholder': 'Please enter content', + 'apiTestDebug.noneBody': 'Request without Body', + 'apiTestDebug.sendAsMainText': 'Send as main text', + 'apiTestDebug.sendAsMainTextTip1': + 'Enable: Directly read the file content and display it in the response body, such as: files in image format', + 'apiTestDebug.sendAsMainTextTip2': 'Close: Return as download file', + 'apiTestDebug.queryTip': 'In the address bar followed by ? The following parameters, such as updateapi?id=112', + 'apiTestDebug.restTip': 'Parameters separated by slash/ in the address bar, such as updateapi/{id}', + 'apiTestDebug.authType': 'Authentication', + 'apiTestDebug.account': 'Account', + 'apiTestDebug.accountRequired': 'Account cannot be empty', + 'apiTestDebug.password': 'Password', + 'apiTestDebug.passwordRequired': 'Password cannot be empty', + 'apiTestDebug.commonPlaceholder': 'Please enter', + 'apiTestDebug.connectTimeout': 'Connection timed out', + 'apiTestDebug.responseTimeout': 'Response timeout', + 'apiTestDebug.certificateAlias': 'Certificate alias', + 'apiTestDebug.redirect': 'Redirect', + 'apiTestDebug.follow': 'Follow', + 'apiTestDebug.auto': 'Auto', + 'apiTestDebug.precondition': 'Precondition', + 'apiTestDebug.openGlobalPrecondition': 'Enable global precondition', + 'apiTestDebug.openGlobalPreconditionTip': + 'It is enabled by default. If it is disabled, the global precondition will not be executed when running this interface.', + 'apiTestDebug.sql': 'SQL', + 'apiTestDebug.sqlScript': 'SQL script', + 'apiTestDebug.waitTime': 'Wait time', + 'apiTestDebug.script': 'Script', + 'apiTestDebug.preconditionScriptName': 'Pre-script name', + 'apiTestDebug.preconditionScriptNamePlaceholder': 'Please enter the pre-script name', + 'apiTestDebug.manual': 'Manual entry', + 'apiTestDebug.quote': 'Quoting public scripts', + 'apiTestDebug.commonScriptList': 'Public script list', + 'apiTestDebug.scriptEx': 'Script case', + 'apiTestDebug.copyNotSupport': 'Your browser does not support automatic copying, please copy manually', + 'apiTestDebug.scriptExCopySuccess': 'Script case copied', + 'apiTestDebug.parameters': 'Pass parameters', + 'apiTestDebug.scriptContent': 'Script content', + 'apiTestDebug.introduceSource': 'Introduce data sources', + 'apiTestDebug.quoteSource': 'Reference data source', + 'apiTestDebug.sourceList': 'Data source list', + 'apiTestDebug.quoteSourcePlaceholder': 'Please select a data source', + 'apiTestDebug.storageType': 'Storage method', + 'apiTestDebug.storageTypeTip1': + 'Store by column: Specify the names of columns extracted from the database result set; multiple columns can be separated by ","', + 'apiTestDebug.storageTypeTip2': + 'Store by result: Save the entire result set as a variable instead of saving each column value as a separate variable', + 'apiTestDebug.storageByCol': 'Store by columns', + 'apiTestDebug.storageByColPlaceholder': 'For example, {a} is changed to {b}', + 'apiTestDebug.storageByResult': 'Store by result', + 'apiTestDebug.storageByResultPlaceholder': 'Such as {a}', + 'apiTestDebug.extractParameter': 'Extract', + 'apiTestDebug.searchTip': 'Please enter a group name', + 'apiTestDebug.allRequest': 'All requests', + 'apiTestDebug.deleteFolderTipTitle': 'Remove the `{name}` module?', + 'apiTestDebug.deleteFolderTipContent': + 'This operation will delete the module and all resources under it, please operate with caution!', + 'apiTestDebug.deleteConfirm': 'Confirm delete', + 'apiTestDebug.deleteSuccess': 'Successfully deleted', + 'apiTestDebug.moduleMoveSuccess': 'Module moved successfully', + 'apiTestDebug.sqlSourceName': 'Data source name', + 'apiTestDebug.driver': 'Drive', + 'apiTestDebug.username': 'Username', + 'apiTestDebug.maxConnection': 'Max connections', + 'apiTestDebug.timeout': 'Timeout (ms)', + 'apiTestDebug.postCondition': 'Postcondition', + 'apiTestDebug.openGlobalPostCondition': 'Enable global postcondition', + 'apiTestDebug.openGlobalPostConditionTip': + 'It is enabled by default. If it is disabled, the global post-processing will not be executed when running this interface.', + 'apiTestDebug.globalParameter': 'Global parameter', + 'apiTestDebug.envParameter': 'Env parameters', + 'apiTestDebug.tempParameter': 'Temporary parameters', + 'apiTestDebug.mode': 'Type', + 'apiTestDebug.range': 'Scope', + 'apiTestDebug.expression': 'Expression', + 'apiTestDebug.expressionTip1': 'Reason for unavailability:', + 'apiTestDebug.expressionTip2': '1. Interface not implemented', + 'apiTestDebug.expressionTip3': '2. There is no data in the response content', + 'apiTestDebug.regular': 'Regular', + 'apiTestDebug.fastExtraction': 'Quick extraction', + 'apiTestDebug.regularExpression': 'Regular expression', + 'apiTestDebug.regularExpressionRequired': 'Regular expression cannot be empty', + 'apiTestDebug.regularExpressionPlaceholder': 'Such as {ex}', + 'apiTestDebug.test': 'Test', + 'apiTestDebug.JSONPathRequired': 'JSONPath cannot be empty', + 'apiTestDebug.JSONPathPlaceholder': 'Such as $.users', + 'apiTestDebug.XPathRequired': 'XPath cannot be empty', + 'apiTestDebug.XPathPlaceholder': 'Such as /books/book[1]/title', + 'apiTestDebug.matchResult': 'Match results', + 'apiTestDebug.noMatchResult': 'No matching results', + 'apiTestDebug.matchExpressionTip': + '{prefix} Gets the complete expression for matching, including all tag contents in the expression', + 'apiTestDebug.matchGroupTip': + '{prefix} Gets the matching group in the expression for matching, including only the regular content in the expression', + 'apiTestDebug.matchExpression': 'Matching expression', + 'apiTestDebug.matchGroup': 'Matching group', + 'apiTestDebug.moreSetting': 'More settings', + 'apiTestDebug.expressionMatchRule': 'Expression matching rules', + 'apiTestDebug.resultMatchRule': 'Result matching rules', + 'apiTestDebug.randomMatch': 'Random match', + 'apiTestDebug.randomMatchTip': 'Get any matching result', + 'apiTestDebug.specifyMatch': 'Specify match', + 'apiTestDebug.specifyMatchResult': 'Specify matching results', + 'apiTestDebug.index': 'No.', + 'apiTestDebug.unit': 'item', + 'apiTestDebug.specifyMatchTip': + 'The Nth matching result needs to be specified. If it exceeds the specified number, it will return empty.', + 'apiTestDebug.allMatch': 'Match all', + 'apiTestDebug.allMatchTip': 'The regular return is an array of matching results.', + 'apiTestDebug.contentType': 'Response content format', + 'apiTestDebug.responseTime': 'Response time', + 'apiTestDebug.responseStage': 'Stage', + 'apiTestDebug.time': 'Duration', + 'apiTestDebug.ready': 'Preparation stage', + 'apiTestDebug.socketInit': 'Socket init', + 'apiTestDebug.dnsQuery': 'DNS query', + 'apiTestDebug.tcpHandshake': 'TCP handshake', + 'apiTestDebug.sslHandshake': 'SSL handshake', + 'apiTestDebug.waitingTTFB': 'Waiting (TTFB)', + 'apiTestDebug.downloadContent': 'Content download', + 'apiTestDebug.deal': 'Deal with', + 'apiTestDebug.total': 'Total', + 'apiTestDebug.responseBody': 'Response body', + 'apiTestDebug.responseHeader': 'Response header', + 'apiTestDebug.realRequest': 'Real request', + 'apiTestDebug.console': 'Console', + 'apiTestDebug.extract': 'Extract', + 'apiTestDebug.statusCode': 'Status code', + 'apiTestDebug.responseSize': 'Response size', + 'apiTestDebug.runningEnv': 'Operating environment', + 'apiTestDebug.resourcePool': 'Resource pool', + 'apiTestDebug.content': 'Content', + 'apiTestDebug.status': 'Status', + 'apiTestDebug.requestName': 'Request name', + 'apiTestDebug.requestNameRequired': 'Request name cannot be empty', + 'apiTestDebug.requestNamePlaceholder': 'Please enter a request name', + 'apiTestDebug.requestUrl': 'Request URL', + 'apiTestDebug.requestUrlRequired': 'Request URL cannot be empty', + 'apiTestDebug.requestModule': 'Belonging module', + 'apiTestDebug.closeOther': 'Close other', + 'apiTestDebug.importByCURL': 'Import cURL', + 'apiTestDebug.importByCURLTip': + 'Supports quick import of packet capture data from tools such as Chrome, Charles or Fiddler', }; diff --git a/frontend/src/views/api-test/debug/locale/zh-CN.ts b/frontend/src/views/api-test/debug/locale/zh-CN.ts index c61edf18f5..b80679e2c1 100644 --- a/frontend/src/views/api-test/debug/locale/zh-CN.ts +++ b/frontend/src/views/api-test/debug/locale/zh-CN.ts @@ -63,7 +63,7 @@ export default { 'apiTestDebug.waitTime': '等待时间', 'apiTestDebug.script': '脚本操作', 'apiTestDebug.preconditionScriptName': '前置脚本名称', - 'apiTestDebug.preconditionScriptNamePlaceholder': '前置脚本名称', + 'apiTestDebug.preconditionScriptNamePlaceholder': '请输入前置脚本名称', 'apiTestDebug.manual': '手动录入', 'apiTestDebug.quote': '引用公共脚本', 'apiTestDebug.commonScriptList': '公共脚本列表', @@ -139,8 +139,8 @@ export default { 'apiTestDebug.contentType': '响应内容格式', 'apiTestDebug.responseTime': '响应时间', 'apiTestDebug.responseStage': '阶段', - 'apiTestDebug.time': '时间', - 'apiTestDebug.ready': '准备', + 'apiTestDebug.time': '耗时', + 'apiTestDebug.ready': '准备阶段', 'apiTestDebug.socketInit': 'Socket 初始化', 'apiTestDebug.dnsQuery': 'DNS 查询', 'apiTestDebug.tcpHandshake': 'TCP 握手', @@ -167,4 +167,6 @@ export default { 'apiTestDebug.requestUrlRequired': '请求 URL不能为空', 'apiTestDebug.requestModule': '请求所属模块', 'apiTestDebug.closeOther': '关闭其他请求', + 'apiTestDebug.importByCURL': '导入 cURL', + 'apiTestDebug.importByCURLTip': '支持快速导入 Chrome、Charles 或 Fiddler 等工具中的抓包数据', };