Skip to content

Commit

Permalink
Added textmate theme and JSON mode imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Nov 13, 2019
1 parent f48497b commit 6a80c6a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ MSG message-id=<%{GREEDYDATA}>`;
<EuiPanel paddingSize="s">
<EuiCodeEditor
width="100%"
theme="textmate"
value={value}
onChange={onChange}
setOptions={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function EventInput({ value, onChange }) {
<EuiPanel paddingSize="s">
<EuiCodeEditor
width="100%"
theme="textmate"
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,8 @@
/*
* 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/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 6a80c6a

Please sign in to comment.