-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
54 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
x-pack/legacy/plugins/painless_playground/common/constants/index.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
x-pack/legacy/plugins/painless_playground/common/constants/plugin.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
x-pack/legacy/plugins/painless_playground/public/lib/execute_code.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* 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 { ROUTES } from '../../common/constants'; | ||
|
||
export async function executeCode(http: any, payload: Record<string, any>) { | ||
try { | ||
return await http.post(`${ROUTES.API_ROOT}/simulate`, { | ||
body: JSON.stringify(payload), | ||
}); | ||
} catch (e) { | ||
return e; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
x-pack/legacy/plugins/painless_playground/public/register_feature.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
x-pack/legacy/plugins/painless_playground/public/services/painless_playground_service.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
90 changes: 0 additions & 90 deletions
90
...ck/legacy/plugins/painless_playground/server/lib/check_license/__tests__/check_license.js
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
x-pack/legacy/plugins/painless_playground/server/lib/check_license/index.ts
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
x-pack/legacy/plugins/painless_playground/server/lib/error_wrappers/index.ts
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
x-pack/legacy/plugins/painless_playground/server/lib/error_wrappers/wrap_es_error.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.