[Grokdebugger] Theme and Mode imports (#50473) (#50777)

* Added textmate theme and JSON mode imports

* Added text themes to other inputs [skip ci]
This commit is contained in:
Jean-Louis Leysens 2019-11-15 17:31:15 +01:00 committed by GitHub
parent 1d9e4f6f65
commit 3437765361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 0 deletions

View file

@ -57,6 +57,8 @@ MSG message-id=<%{GREEDYDATA}>`;
<EuiPanel paddingSize="s">
<EuiCodeEditor
width="100%"
theme="textmate"
mode="text"
value={value}
onChange={onChange}
setOptions={{

View file

@ -28,6 +28,8 @@ export function EventInput({ value, onChange }) {
<EuiPanel paddingSize="s">
<EuiCodeEditor
width="100%"
theme="textmate"
mode="text"
value={value}
onChange={onChange}
setOptions={{

View file

@ -27,6 +27,7 @@ export function EventOutput({ value }) {
<EuiPanel paddingSize="s">
<EuiCodeEditor
mode="json"
theme="textmate"
isReadOnly
width="100%"
height="340px"

View file

@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import 'brace/mode/json';
import 'brace/mode/text';
import 'brace/theme/textmate';

View file

@ -5,6 +5,9 @@
*/
import React from 'react';
import { isEmpty } from 'lodash';
import './brace_imports';
import {
EuiForm,
EuiButton,

View file

@ -29,6 +29,7 @@ export function PatternInput({ value, onChange }) {
<EuiPanel paddingSize="s">
<EuiCodeEditor
width="100%"
theme="textmate"
value={value}
onChange={onChange}
mode={new GrokMode()}