mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Added textmate theme and JSON mode imports * Added text themes to other inputs [skip ci]
This commit is contained in:
parent
1d9e4f6f65
commit
3437765361
6 changed files with 18 additions and 0 deletions
|
@ -57,6 +57,8 @@ MSG message-id=<%{GREEDYDATA}>`;
|
|||
<EuiPanel paddingSize="s">
|
||||
<EuiCodeEditor
|
||||
width="100%"
|
||||
theme="textmate"
|
||||
mode="text"
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
setOptions={{
|
||||
|
|
|
@ -28,6 +28,8 @@ export function EventInput({ value, onChange }) {
|
|||
<EuiPanel paddingSize="s">
|
||||
<EuiCodeEditor
|
||||
width="100%"
|
||||
theme="textmate"
|
||||
mode="text"
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
setOptions={{
|
||||
|
|
|
@ -27,6 +27,7 @@ export function EventOutput({ value }) {
|
|||
<EuiPanel paddingSize="s">
|
||||
<EuiCodeEditor
|
||||
mode="json"
|
||||
theme="textmate"
|
||||
isReadOnly
|
||||
width="100%"
|
||||
height="340px"
|
||||
|
|
|
@ -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';
|
|
@ -5,6 +5,9 @@
|
|||
*/
|
||||
import React from 'react';
|
||||
import { isEmpty } from 'lodash';
|
||||
|
||||
import './brace_imports';
|
||||
|
||||
import {
|
||||
EuiForm,
|
||||
EuiButton,
|
||||
|
|
|
@ -29,6 +29,7 @@ export function PatternInput({ value, onChange }) {
|
|||
<EuiPanel paddingSize="s">
|
||||
<EuiCodeEditor
|
||||
width="100%"
|
||||
theme="textmate"
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
mode={new GrokMode()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue