Removes use of braces plugin

This commit is contained in:
kay delaney 2019-08-26 14:23:27 +01:00
parent 2b38d2c2c7
commit 4cf4a6073b
3 changed files with 0 additions and 9 deletions

View File

@ -1,5 +1,4 @@
import PluginPrism from 'app/features/explore/slate-plugins/prism';
import BracesPlugin from 'app/features/explore/slate-plugins/braces';
import ClearPlugin from 'app/features/explore/slate-plugins/clear';
import NewlinePlugin from 'app/features/explore/slate-plugins/newline';
import RunnerPlugin from 'app/features/explore/slate-plugins/runner';
@ -68,7 +67,6 @@ class QueryField extends React.Component<any, any> {
const { prismDefinition = {}, prismLanguage = 'kusto' } = props;
this.plugins = [
BracesPlugin(),
ClearPlugin(),
RunnerPlugin({ handler: props.onPressEnter }),
NewlinePlugin(),

View File

@ -8,10 +8,6 @@ import PluginPrism from 'slate-prism';
// Components
import QueryField, { TypeaheadInput, QueryFieldState } from 'app/features/explore/QueryField';
// Utils & Services
// dom also includes Element polyfills
import BracesPlugin from 'app/features/explore/slate-plugins/braces';
// Types
import { LokiQuery } from '../types';
import { TypeaheadOutput, HistoryItem } from 'app/types/explore';
@ -84,7 +80,6 @@ export class LokiQueryFieldForm extends React.PureComponent<LokiQueryFieldFormPr
super(props, context);
this.plugins = [
BracesPlugin(),
PluginPrism({
onlyIn: (node: any) => node.type === 'code_block',
getSyntax: (node: any) => 'promql',

View File

@ -10,7 +10,6 @@ import Prism from 'prismjs';
import { TypeaheadOutput, HistoryItem } from 'app/types/explore';
// dom also includes Element polyfills
import BracesPlugin from 'app/features/explore/slate-plugins/braces';
import QueryField, { TypeaheadInput, QueryFieldState } from 'app/features/explore/QueryField';
import { PromQuery, PromContext, PromOptions } from '../types';
import { CancelablePromise, makePromiseCancelable } from 'app/core/utils/CancelablePromise';
@ -125,7 +124,6 @@ class PromQueryField extends React.PureComponent<PromQueryFieldProps, PromQueryF
}
this.plugins = [
BracesPlugin(),
PluginPrism({
onlyIn: (node: any) => node.type === 'code_block',
getSyntax: (node: any) => 'promql',