mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
apply prettier styles
This commit is contained in:
parent
64ad4f3f92
commit
bf04235dae
7130 changed files with 31393 additions and 37163 deletions
|
@ -37,17 +37,17 @@ export class GrokDebuggerComponent extends React.Component {
|
|||
this.grokdebuggerRequest = new GrokdebuggerRequest();
|
||||
}
|
||||
|
||||
onRawEventChange = rawEvent => {
|
||||
onRawEventChange = (rawEvent) => {
|
||||
this.setState({ rawEvent });
|
||||
this.grokdebuggerRequest.rawEvent = rawEvent.trimEnd();
|
||||
};
|
||||
|
||||
onPatternChange = pattern => {
|
||||
onPatternChange = (pattern) => {
|
||||
this.setState({ pattern });
|
||||
this.grokdebuggerRequest.pattern = pattern.trimEnd();
|
||||
};
|
||||
|
||||
onCustomPatternsChange = customPatterns => {
|
||||
onCustomPatternsChange = (customPatterns) => {
|
||||
this.setState({ customPatterns });
|
||||
|
||||
customPatterns = customPatterns.trim();
|
||||
|
@ -58,7 +58,7 @@ export class GrokDebuggerComponent extends React.Component {
|
|||
return;
|
||||
}
|
||||
|
||||
customPatterns.split('\n').forEach(customPattern => {
|
||||
customPatterns.split('\n').forEach((customPattern) => {
|
||||
// Patterns are defined like so:
|
||||
// patternName patternDefinition
|
||||
// For example:
|
||||
|
|
|
@ -28,7 +28,7 @@ export class Plugin {
|
|||
},
|
||||
});
|
||||
|
||||
plugins.licensing.license$.subscribe(license => {
|
||||
plugins.licensing.license$.subscribe((license) => {
|
||||
if (!license.isActive && !devTool.isDisabled()) {
|
||||
devTool.disable();
|
||||
} else if (devTool.isDisabled()) {
|
||||
|
|
|
@ -17,10 +17,10 @@ export class GrokdebuggerService {
|
|||
.post(`${ROUTES.API_ROOT}/simulate`, {
|
||||
body: JSON.stringify(grokdebuggerRequest.upstreamJSON),
|
||||
})
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
return GrokdebuggerResponse.fromUpstreamJSON(response);
|
||||
})
|
||||
.catch(e => {
|
||||
.catch((e) => {
|
||||
throw e.body.message;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ export class Plugin {
|
|||
setup(coreSetup, plugins) {
|
||||
const framework = new KibanaFramework(coreSetup);
|
||||
|
||||
plugins.licensing.license$.subscribe(license => {
|
||||
plugins.licensing.license$.subscribe((license) => {
|
||||
framework.setLicense(license);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue