kibana/examples
Jean-Louis Leysens 3629e76251
[7.x] [Screenshot mode] Create plugin to provide "screenshot mode" awareness (#99627) (#100331)
* [Screenshot mode] Create plugin to provide "screenshot mode" awareness (#99627)

* initial version of the screenshot mode service

* First iteration of client side of screenshot mode plugin

Also hooked it up to the chromium browser imitating the preload
functionality of electron to set up the environment before
code runs.

* First implementation of server-side logic for detecting
screenshot mode

* fix some type issues and do a small refactor

* fix size limits, docs and ts issues

* fixed types issues and made sure screenshot mode is correctly detected on the client

* Moved the screenshot mode header definition to common
Added a server-side example for screenshot mode
Export the screenshot mode header in both public and server

* move require() to screenshotMode plugin

* Update chromium_driver.ts

* cleaned up some comments, minor refactor in ReportingCore and
changed the screenshotmode detection function to check for a
specific value.

* fix export

* Expanded server-side screenshot mode contract with function that
checks a kibana request to determine whether we in screenshot
mode

* added comments to explain use of literal value rather than external reference

* updated comment

* update reporting example

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/reporting/server/core.ts
#	x-pack/plugins/reporting/server/plugin.ts

* satisfy for tslint formatting

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-20 07:58:50 -04:00
..
bfetch_explorer [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
dashboard_embeddable_examples [Dashboard] Move all dashboard extract/inject into persistable state (#96095) (#96827) 2021-04-12 14:33:30 -04:00
developer_examples [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
embeddable_examples [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
embeddable_explorer [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
expressions_explorer [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
routing_example [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
screenshot_mode_example [7.x] [Screenshot mode] Create plugin to provide "screenshot mode" awareness (#99627) (#100331) 2021-05-20 07:58:50 -04:00
search_examples Add partial results to search examples demo (#96366) (#99835) 2021-05-11 17:39:02 -04:00
state_containers_examples [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
ui_action_examples [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
ui_actions_explorer [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
url_generators_examples [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
url_generators_explorer [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
README.asciidoc Add a few asciidoc readmes (#72082) (#72290) 2020-07-20 10:17:33 -04:00

[[example-plugins]]
== Example plugins

This folder contains example plugins.  To run the plugins in this folder, use the `--run-examples` flag, via

[source,bash]
----
yarn start --run-examples
----