* Move <kbn-dev-tools-app> Angular wrapper directive usage into route template * Move sole directive into new directives folder * WIP checkin: basic conversion to React components * Fix sample custom patterns indentation * Remove custom CSS * Wrap button in EuiFormRow + define isSimulateDisabled * Wire up simulate * Cleanup * Ace formatting options * Better styling * Adding spacing between custom patterns and simulate button * Fixing form row widths * Removing form row around button * Add indentation/newlines in structured output * Error handling * Use constants * Removing no-longer-used code * Implement syntax highlighting via custom mode * Making functional tests pass * Adding trailing comma back * Removing fixed heights * Removing unnecessary styles * Make Event Output form row full width as well * Wrapping EuiCodeEditors in EuiPanels * Adding spacer before callout; making spacing around callout consistent * Clear out custom patterns from request if field is cleared out * Clear out simulation results before attempting simulation * Set state with untrimmed value
12 lines
376 B
JavaScript
12 lines
376 B
JavaScript
/*
|
|
* 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.
|
|
*/
|
|
|
|
export const EDITOR = {
|
|
PATTERN_MIN_LINES: 3,
|
|
PATTERN_MAX_LINES: 10,
|
|
SAMPLE_DATA_MIN_LINES: 3,
|
|
SAMPLE_DATA_MAX_LINES: 50,
|
|
};
|