Skip to content

Commit

Permalink
[Grokdebugger] Theme and Mode imports (elastic#50473) (elastic#50777)
Browse files Browse the repository at this point in the history
* Added textmate theme and JSON mode imports

* Added text themes to other inputs [skip ci]
  • Loading branch information
jloleysens authored Nov 15, 2019
1 parent 1d9e4f6 commit 3437765
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ MSG message-id=<%{GREEDYDATA}>`;
<EuiPanel paddingSize="s">
<EuiCodeEditor
width="100%"
theme="textmate"
mode="text"
value={value}
onChange={onChange}
setOptions={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export function EventInput({ value, onChange }) {
<EuiPanel paddingSize="s">
<EuiCodeEditor
width="100%"
theme="textmate"
mode="text"
value={value}
onChange={onChange}
setOptions={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function EventOutput({ value }) {
<EuiPanel paddingSize="s">
<EuiCodeEditor
mode="json"
theme="textmate"
isReadOnly
width="100%"
height="340px"
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*/
import React from 'react';
import { isEmpty } from 'lodash';

import './brace_imports';

import {
EuiForm,
EuiButton,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function PatternInput({ value, onChange }) {
<EuiPanel paddingSize="s">
<EuiCodeEditor
width="100%"
theme="textmate"
value={value}
onChange={onChange}
mode={new GrokMode()}
Expand Down

0 comments on commit 3437765

Please sign in to comment.