File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
src/plugins/console/public/application Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1818 */
1919import { EuiScreenReaderOnly } from '@elastic/eui' ;
2020import { i18n } from '@kbn/i18n' ;
21- // @ts -ignore
22- import exampleText from 'raw-loader!../constants/help_example.txt' ;
2321import React , { useEffect } from 'react' ;
2422import { createReadOnlyAceEditor } from '../models/legacy_core_editor' ;
2523
2624interface EditorExampleProps {
2725 panel : string ;
2826}
2927
28+ const exampleText = `
29+ # index a doc
30+ PUT index/1
31+ {
32+ "body": "here"
33+ }
34+
35+ # and get it ...
36+ GET index/1
37+ ` ;
38+
3039export function EditorExample ( props : EditorExampleProps ) {
3140 const elemId = `help-example-${ props . panel } ` ;
3241 const inputId = `help-example-${ props . panel } -input` ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments