mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* Accept triple quoted input in Search Profiler. (#39984) * Remove unused translations.
This commit is contained in:
parent
ee3f9bd0bb
commit
6641f5bed5
3 changed files with 11 additions and 8 deletions
|
@ -4,12 +4,19 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
// Convert triple quotes into regular quotes and escape internal quotes.
|
||||
function collapseLiteralStrings(data) {
|
||||
return data.replace(/"""(?:\s*\r?\n)?((?:.|\r?\n)*?)(?:\r?\n\s*)?"""/g, function (match, literal) {
|
||||
return JSON.stringify(literal);
|
||||
});
|
||||
}
|
||||
|
||||
export function checkForParseErrors(json) {
|
||||
const sanitizedJson = collapseLiteralStrings(json);
|
||||
try {
|
||||
json = JSON.parse(json);
|
||||
const parsedJson = JSON.parse(sanitizedJson);
|
||||
return { status: true, parsed: parsedJson };
|
||||
} catch (error) {
|
||||
return { status: false, error };
|
||||
}
|
||||
|
||||
return { status: true, parsed: json };
|
||||
}
|
||||
|
|
|
@ -10764,7 +10764,6 @@
|
|||
"xpack.uptime.monitorCharts.monitorDuration.titleLabel": "ミリ秒単位の監視時間",
|
||||
"xpack.uptime.monitorList.downLineSeries.downLabel": "ダウン",
|
||||
"xpack.uptime.monitorList.geoName": "場所",
|
||||
"xpack.uptime.monitorList.geoName.helpLinkAnnotation": "場所を追加",
|
||||
"xpack.uptime.monitorList.idColumnLabel": "ID",
|
||||
"xpack.uptime.monitorList.infraIntegrationAction.container.message": "コンテナーメトリックを表示",
|
||||
"xpack.uptime.monitorList.infraIntegrationAction.docker.description": "このモニターのコンテナー ID のインフラストラクチャ UI を確認します",
|
||||
|
@ -10797,7 +10796,6 @@
|
|||
"xpack.uptime.monitorStatusBar.healthStatusMessage.upLabel": "アップ",
|
||||
"xpack.uptime.monitorStatusBar.healthStatusMessageAriaLabel": "監視ステータス",
|
||||
"xpack.uptime.monitorStatusBar.loadingMessage": "読み込み中…",
|
||||
"xpack.uptime.monitorStatusBar.locationName": "場所",
|
||||
"xpack.uptime.monitorStatusBar.monitorUrlLinkAriaLabel": "監視 URL リンク",
|
||||
"xpack.uptime.monitorStatusBar.timestampFromNowTextAriaLabel": "最終確認からの経過時間",
|
||||
"xpack.uptime.overviewPage.headerText": "概要",
|
||||
|
|
|
@ -10764,7 +10764,6 @@
|
|||
"xpack.uptime.monitorCharts.monitorDuration.titleLabel": "监测持续时间(毫秒)",
|
||||
"xpack.uptime.monitorList.downLineSeries.downLabel": "关闭",
|
||||
"xpack.uptime.monitorList.geoName": "位置",
|
||||
"xpack.uptime.monitorList.geoName.helpLinkAnnotation": "添加位置",
|
||||
"xpack.uptime.monitorList.idColumnLabel": "ID",
|
||||
"xpack.uptime.monitorList.infraIntegrationAction.container.message": "显示容器指标",
|
||||
"xpack.uptime.monitorList.infraIntegrationAction.docker.description": "在 Infrastructure UI 上查找此监测的容器 ID",
|
||||
|
@ -10797,7 +10796,6 @@
|
|||
"xpack.uptime.monitorStatusBar.healthStatusMessage.upLabel": "运行",
|
||||
"xpack.uptime.monitorStatusBar.healthStatusMessageAriaLabel": "检测状态",
|
||||
"xpack.uptime.monitorStatusBar.loadingMessage": "正在加载……",
|
||||
"xpack.uptime.monitorStatusBar.locationName": "位置",
|
||||
"xpack.uptime.monitorStatusBar.monitorUrlLinkAriaLabel": "监测 URL 链接",
|
||||
"xpack.uptime.monitorStatusBar.timestampFromNowTextAriaLabel": "自上次检查以来经过的时间",
|
||||
"xpack.uptime.overviewPage.headerText": "概览",
|
||||
|
@ -10941,4 +10939,4 @@
|
|||
"xpack.watcher.watchActions.logging.logTextIsRequiredValidationMessage": "“日志文本”必填。",
|
||||
"xpack.watcher.watcherDescription": "通过创建、管理和监测警报来检测数据中的更改。"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue