Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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